/* =========================================================
   Meitinger Patentanwalts GmbH – Stufe-1 Website-Ökosystem
   Gemeinsames Design-System (pro Domain identisch nutzbar).
   Inhalte je Domain individuell – siehe index.html.
   ========================================================= */

:root {
  --primary: #0f2742;
  --secondary: #1f4e79;
  --accent: #c9a45c;
  --background: #ffffff;
  --light: #f5f7fa;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e2e6ea;

  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(15, 39, 66, 0.08);
  --shadow-lift: 0 16px 32px rgba(15, 39, 66, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0 0 20px; }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.contact h2::after,
.local h2::after { left: 50%; transform: translateX(-50%); }

.local-copy h2::after { left: 0; transform: none; }

h3 { font-size: 1.15rem; margin: 0 0 10px; }

p { margin: 0 0 16px; }

a { color: var(--secondary); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ============ Header ============ */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

/* Klickbarer Marken-Schriftzug: scrollt nach oben */
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  white-space: nowrap;
}

.brand:hover { color: var(--secondary); }
.brand:hover .brand-accent { color: var(--primary); }

.brand-accent {
  color: var(--secondary);
  font-weight: 400;
  transition: color 0.15s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a:hover { color: var(--secondary); }

.nav-cta {
  border: 1px solid var(--secondary);
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--secondary) !important;
}

.nav-cta:hover { background: var(--secondary); color: #fff !important; }

/* Hamburger-Button – nur mobil sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--secondary); color: #fff; border: 1px solid var(--secondary); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: #fff; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--light) 0%, var(--background) 100%);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-lead { font-size: 1.15rem; color: var(--secondary); font-weight: 600; }
.hero-text { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }

.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 420px; height: auto; }
.hero-visual-caption {
  margin: 12px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============ Vertrauen ============ */
.trust {
  padding: 44px 0;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 32px;
}

.trust-list li { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; color: var(--text); }

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.trust-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Services / Schwerpunkte ============ */
.services { padding: 80px 0; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  background: var(--background);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before { transform: scaleX(1); }

.card-index { position: absolute; top: 20px; right: 24px; font-size: 0.85rem; font-weight: 700; color: var(--border); }

.card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--light);
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--secondary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { color: var(--primary); }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

.services-alt { background: var(--light); }

/* ============ Video ============ */
.video-section { padding: 80px 0; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 32px auto 0;
  height: 0;
  padding-bottom: 56.25%; /* 16:9-Seitenverhältnis, browserübergreifend */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.18);
  background: var(--primary);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Büro-Box (echte Standorte) */
.office-box {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--light);
}

.office-box-item { flex: 1 1 220px; }
.office-box-item h3 { font-size: 1rem; margin-bottom: 6px; }
.office-box-item p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

/* ============ Lokaler / thematischer Abschnitt ============ */
.local { background: var(--primary); color: #f5f7fa; padding: 72px 0; position: relative; }
.local-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.local h2 { color: #fff; }
.local p { color: #d7dde5; }
.local-visual svg { width: 100%; height: auto; }

/* ============ Ablauf ============ */
.process { padding: 80px 0; background: var(--light); }

.process-steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  position: relative;
}

@media (min-width: 900px) {
  .process-steps::before {
    content: "";
    position: absolute;
    top: 20px; left: 8%; right: 8%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--accent) 0, var(--accent) 8px, transparent 8px, transparent 16px);
    z-index: 0;
  }
}

.process-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }

.step-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--background);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.step-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ============ Über die Kanzlei ============ */
.about-firm { background: var(--background); padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-firm-inner { max-width: 720px; position: relative; padding-left: 28px; border-left: 3px solid var(--accent); }
.quote-mark { position: absolute; left: -8px; top: -34px; font-size: 5rem; color: var(--accent); opacity: 0.25; font-family: Georgia, serif; line-height: 1; }
.about-firm p { color: var(--text); }

/* ============ Team + Bücher ============ */
.team { padding: 80px 0; background: var(--background); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.team-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; background: var(--light); }
.team-photo { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 2px solid var(--accent); }
.team-role { color: var(--secondary); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.team-card p:last-child { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

.book-intro { margin-top: 56px; }
.book-intro h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 6px; }
.book-intro p { color: var(--muted); max-width: 640px; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-top: 28px; }
.book-card { margin: 0; text-align: center; display: flex; flex-direction: column; }
.book-card img {
  width: 100%; height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card img:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.book-card figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--text); line-height: 1.4; font-weight: 600; }
.book-card .book-desc { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 6px; }
.book-link { display: inline-block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--secondary); }
.book-link:hover { text-decoration: underline; }

/* ============ FAQ ============ */
.faq { padding: 80px 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.03rem;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--secondary); }
.faq-item p { color: var(--muted); margin-bottom: 18px; padding-right: 32px; }

/* ============ Kontakt ============ */
.contact { background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); color: #fff; padding: 72px 0; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #e3ecf5; margin-bottom: 28px; }
.contact .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.contact .btn-primary:hover { background: #fff; border-color: #fff; }

/* ============ Footer ============ */
.site-footer { background: var(--primary); color: #b7c2cf; padding: 32px 0; font-size: 0.85rem; }
.footer-inner p { margin: 0 0 6px; }
.footer-inner a { color: #d7dde5; }
.footer-note { color: #8a97a6; }
.footer-legal-links { margin-top: 10px; }
.footer-legal-links a { margin-right: 16px; }

/* ============ Rechtsseiten ============ */
.legal-hero { background: linear-gradient(180deg, var(--light) 0%, var(--background) 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { margin-bottom: 0; }
.legal-content { padding: 56px 0 80px; }
.legal-content .container { max-width: 760px; }
.legal-content h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--muted); }
.back-link { display: inline-block; margin-top: 8px; color: var(--secondary); text-decoration: none; font-size: 0.95rem; }
.back-link:hover { text-decoration: underline; }

/* ============ Scroll-Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid, .local-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 320px; }
}

/* Mobile: Navigation einklappen */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .main-nav a:last-child { border-bottom: 0; }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: var(--radius);
  }
}

@media (max-width: 640px) {
  .hero, .services, .process, .faq, .local, .about-firm, .contact, .video-section { padding-top: 52px; padding-bottom: 52px; }
  .about-firm-inner { padding-left: 20px; }
  .quote-mark { font-size: 3.5rem; top: -20px; }
}
