/* ============================================================
   Gutachten Zürich — style.css
   Ein Stylesheet, keine Frameworks.
   Farbwelt: OneNote-Violett mit Verläufen auf hellem Grund.
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FBFAFC;
  --ink: #1C1626;
  --ink-soft: #575060;
  --accent: #7719AA;          /* OneNote-Violett */
  --accent-deep: #5B1382;
  --accent-bright: #A24EDC;
  --rule: #EAE4F0;
  --tint: #F6F1FA;

  --grad: linear-gradient(135deg, #A24EDC 0%, #7719AA 52%, #4B0E86 100%);
  --grad-btn: linear-gradient(135deg, #8A2BC2 0%, #6E16A2 55%, #4B0E86 100%);
  --grad-band: linear-gradient(130deg, #6E16A2 0%, #5B1382 45%, #3D0B6E 100%);

  --font: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --size-body: 1.0625rem;
  --size-lead: 1.25rem;
  --size-h3: 1.1875rem;
  --size-h2: clamp(1.625rem, 3vw, 2.25rem);
  --size-display: clamp(2.5rem, 6vw, 4.25rem);

  --space-section: clamp(4.5rem, 11vw, 9rem);
  --content-width: 70rem;   /* 1120px */
  --header-height: 4rem;
}

/* ---------- Reset (minimal) ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

body {
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 52rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: var(--size-display);
  font-weight: 620;
  font-variation-settings: "wght" 620;
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 24ch;
}
h2 { font-size: var(--size-h2); max-width: 32ch; }
h3 { font-size: var(--size-h3); }

p { max-width: 65ch; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-deep); }

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead, .section-lead {
  font-size: var(--size-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}
.section-lead { margin-top: 1.5rem; }

.button {
  display: inline-block;
  background: var(--grad-btn);
  color: #fff;
  text-decoration: none;
  font-weight: 550;
  font-variation-settings: "wght" 550;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(75, 14, 134, 0.25);
  transition: filter 120ms ease, transform 120ms ease;
}
.button:hover { filter: brightness(1.12); color: #fff; }
.button:active { transform: translateY(1px); }

.button-light {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: none;
}
.button-light:hover { filter: none; background: #F3EAFB; color: var(--accent-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 252, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  font-weight: 620;
  font-variation-settings: "wght" 620;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark::before {
  content: "";
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: url("/assets/img/logo-header.png") center / cover no-repeat;
  flex-shrink: 0;
}
.site-header nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.nav-cta { color: var(--accent); font-weight: 600; }
.site-header nav a.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-header nav a.lang-switch:hover { color: var(--accent); }
.site-header nav a.lang-switch svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 51.9375rem) {
  .nav-toggle { display: block; }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  }
  .site-header.nav-open nav { display: block; }
  .site-header.nav-open {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--rule);
  }
  .site-header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-header nav li { width: 100%; }
  .site-header nav a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--rule);
  }
  .site-header nav li:last-child a { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(4.5rem, 14vh, 8.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("/assets/img/logo-mark-hero.png") no-repeat calc(50% + 110px) 110px / 660px auto,
    radial-gradient(640px 640px at 88% -6%, rgba(162, 78, 220, 0.15), transparent 68%),
    radial-gradient(560px 560px at 72% 62%, rgba(91, 19, 130, 0.07), transparent 68%);
}
@media (max-width: 47.9375rem) {
  .hero-deco {
    background:
      url("/assets/img/logo-mark-hero.png") no-repeat center top 150px / 360px auto,
      radial-gradient(640px 640px at 88% -6%, rgba(162, 78, 220, 0.15), transparent 68%),
      radial-gradient(560px 560px at 72% 62%, rgba(91, 19, 130, 0.07), transparent 68%);
  }
}
.hero-deco .ring {
  position: absolute;
  top: 40px;
  right: -70px;
  width: 380px;
  height: 380px;
  color: var(--accent-bright);
  opacity: 0.35;
}
@media (max-width: 47.9375rem) {
  .hero-deco .ring { width: 240px; height: 240px; right: -90px; top: 20px; }
}
.hero .container { position: relative; }
.hero .lead {
  margin-top: 2rem;
  max-width: 52ch;
}
.hero-cta {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.hero-cta .minor {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Vorteils-Trio */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
@media (min-width: 48rem) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
.benefit {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.375rem;
}
.benefit svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 0.875rem;
}
.benefit .benefit-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}
.benefit p { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-height);
}
.section-tint {
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
}

/* ---------- Leistungsblöcke ---------- */
.service-list { margin-top: clamp(3rem, 6vw, 4.5rem); }
.service-block {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
.service-block:last-child { padding-bottom: 0; }
.service-block > h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}
.service-block .service-sub {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.service-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 56.25rem) {
  .service-cols { grid-template-columns: 5fr 6fr; }
}
.service-cols h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.service-cols p { color: var(--ink-soft); max-width: 52ch; }

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.625rem;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  max-width: 58ch;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.45em;
  width: 0.4em;
  height: 0.75em;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(43deg);
}
.goal {
  margin-top: 1.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--tint);
  border-left: 3px solid;
  border-image: var(--grad) 1;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 1rem;
  max-width: 60ch;
}
.goal strong { color: var(--accent-deep); }

/* Aufzählung mit Gedankenstrich (Rechtsgebiete) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 48rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.service h3 {
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.25rem;
}
.service ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.service li {
  position: relative;
  padding-left: 1.625rem;
  max-width: 60ch;
}
.service li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Typische Fälle */
.cases {
  margin-top: 2.25rem;
}
.cases .checklist { gap: 0.875rem; }

/* ---------- Qualität ---------- */
.quality { margin-top: clamp(3rem, 6vw, 4.5rem); }
.quality dt {
  font-weight: 600;
  font-size: var(--size-h3);
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}
.quality dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 56.25rem) {
  .about { grid-template-columns: 2fr 3fr; }
}
.about-photo { position: relative; }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  background: var(--grad);
  opacity: 0.10;
  border-radius: 8px;
  z-index: -1;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: saturate(0.88);
}
.cv {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
}
.cv li {
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 58ch;
}
.cv li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Praxis ---------- */
.praxis-photo {
  max-width: 77.5rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-inline: clamp(0rem, 2vw, 2.5rem);
}
.praxis-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  filter: saturate(0.88);
}
@media (max-width: 47.9375rem) {
  .praxis-photo { padding-inline: 0; }
  .praxis-photo img { border-radius: 0; }
}

/* ---------- Ablauf ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 75rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 1.75rem;
  font-weight: 650;
  font-variation-settings: "wght" 650;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.875rem;
}
.steps h3 { margin-bottom: 0.625rem; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-group > h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.faq-list { border-bottom: 1px solid var(--rule); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 550;
  font-variation-settings: "wght" 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 160ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
}

/* ---------- CTA-Band ---------- */
.cta-band {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.cta-band-inner {
  position: relative;
  overflow: hidden;
  background:
    url("/assets/img/logo-mark-faint.png") no-repeat right -3rem center / 24rem,
    var(--grad-band);
  border-radius: 18px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  color: #fff;
}
@media (max-width: 47.9375rem) {
  .cta-band-inner {
    background:
      url("/assets/img/logo-mark-faint.png") no-repeat right -5rem bottom -2rem / 18rem,
      var(--grad-band);
  }
}
.cta-band-inner::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}
.cta-band h2 {
  color: #fff;
  max-width: 24ch;
}
.cta-band p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 55ch;
}
.cta-band .cta-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
.cta-band a:not(.button) { color: #fff; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 48rem) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-grid h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.875rem;
}
.contact-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.contact-cta { margin-top: clamp(3rem, 6vw, 4rem); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Rechtsseiten ---------- */
.legal {
  padding-top: clamp(4rem, 10vh, 7rem);
  padding-bottom: var(--space-section);
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 0.875rem;
}
.legal p, .legal ul { margin-bottom: 1rem; color: var(--ink); }
.legal ul { padding-left: 1.25rem; }
.legal .updated {
  margin-top: 3.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq-list summary::after { transition: none; }
}
/* Ohne JavaScript bleibt alles sichtbar */
.no-js .reveal { opacity: 1; transform: none; }
