/* Copyra — site styles. No external resources (GDPR: no third-party requests). */

/* Self-hosted fonts (SIL Open Font License 1.1): Cormorant Garamond, Inter */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }

:root {
  --ink: #0c1217;
  --ink-2: #111a21;
  --ink-3: #18232c;
  --ivory: #f3efe7;
  --ivory-2: #e9e3d8;
  --text: #171c21;
  --text-soft: #4a5057;
  --text-dim: #5f646a;
  --on-dark: #e9e6df;
  --on-dark-soft: #a4abb1;
  --on-dark-dim: #7b848b;
  --gold: #b8996a;
  --gold-soft: #d3bb92;
  --gold-deep: #7a6140;
  --gold-text: #98794e; /* gold for large text on ivory: >= 3:1 on --ivory and --ivory-2 */
  --line-dark: rgba(233, 230, 223, .12);
  --line-light: rgba(12, 18, 23, .13);
  --focus: #d3bb92;

  --display: "Cormorant Garamond", "Cormorant", Didot, "Bodoni 72", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 16.5px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
/* Long German compounds (e.g. "Berufshaftpflichtversicherung") must never overflow narrow columns */
:lang(de) { -webkit-hyphens: auto; hyphens: auto; -webkit-hyphenate-limit-before: 5; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 12 5 4; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.dark :focus-visible, .dark:focus-visible, .site-header.overlay :focus-visible, .js .nav.open :focus-visible, .site-footer :focus-visible { outline-color: var(--focus); }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
/* Even rag on display text, no one-word last lines in running text (progressive enhancement) */
.faq summary, .hero-meta dd, .framework strong, .client-list li { text-wrap: balance; }
p, li, dd, .framework span { text-wrap: pretty; }
strong, b { font-weight: 600; }
.nowrap { white-space: nowrap; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold-text); }
.dark h1 em, .dark h2 em { color: var(--gold); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

.label {
  display: flex; align-items: center; gap: 16px; margin: 0 0 32px;
  font: 500 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep);
}
.label::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; }
.dark .label { color: var(--gold); }

.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font: 500 .78rem/1.35 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 18px calc(34px - .1em) 18px calc(34px + .1em); border: 1px solid transparent; cursor: pointer; -webkit-hyphens: manual; hyphens: manual;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { border-color: var(--line-light); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.dark .btn-line { border-color: rgba(233,230,223,.3); color: #fff; }
.dark .btn-line:hover { border-color: var(--gold); color: var(--gold-soft); }
@media (max-width: 480px) { .btn { letter-spacing: .14em; padding: 18px calc(22px - .07em) 18px calc(22px + .07em); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.link-arrow svg { width: 26px; height: 10px; transition: transform .35s var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(6px); } }
.link-arrow:focus-visible svg { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--text); background: rgba(243, 239, 231, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
}
.site-header.overlay { background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.overlay.scrolled { background: rgba(12, 18, 23, .92); border-color: var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.page-offset { padding-top: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-name { display: block; font: 500 1.3rem/1 var(--display); letter-spacing: .34em; text-transform: uppercase; }
.logo-sub { display: block; margin-top: 6px; font: 500 .56rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; opacity: .62; }
@media (max-width: 380px) {
  .site-header .wrap { gap: 12px; }
  .logo { gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-sub { letter-spacing: .16em; }
}

/* Baseline alignment: every nav label (incl. the boxed CTA and the smaller DE/EN pair) sits on one baseline */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: baseline; gap: clamp(22px, 2.6vw, 40px); }
.nav a { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: .82; transition: opacity .3s, color .3s, border-color .3s; }
.nav a:hover { opacity: 1; color: var(--gold-soft); }
/* Tracked caps carry trailing letter-spacing; shift padding by half of it so the word is optically centred */
.nav .nav-cta { opacity: 1; padding: 14px calc(22px - .1em) 14px calc(22px + .1em); border: 1px solid currentColor; }
.nav .nav-cta:hover { border-color: var(--gold); }

.nav .lang { display: flex; align-items: baseline; gap: 12px; }
.nav .lang::before { content: ""; align-self: center; width: 1px; height: 14px; margin-right: 6px; background: currentColor; opacity: .28; }
.nav .lang a, .nav .lang span { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; }
.nav .lang > :last-child { margin-right: -.18em; }
.nav .lang span { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: inherit; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .js .nav-toggle { display: block; }
  .js .nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--ink); color: #fff;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
  }
  .js .nav:not(.open) { display: none; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .js .site-header.nav-open { background: var(--ink); color: #fff; border-color: var(--line-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li:not(.lang) a:not(.nav-cta) { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-dark); font: 400 1.9rem/1 var(--display); letter-spacing: 0; text-transform: none; opacity: 1; }
  .nav .nav-cta { display: block; margin-top: 32px; text-align: center; padding: 20px calc(20px - .1em) 20px calc(20px + .1em); }
  .nav .lang { margin-top: 28px; justify-content: center; gap: 18px; }
  .nav .lang::before { display: none; }
  .nav .lang a, .nav .lang span { font-size: .8rem; padding: 10px 6px; }
  html.nav-lock, html.nav-lock body { overflow: hidden; }
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 16px; }
  html:not(.js) .page-offset { padding-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: min(100vh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  /* vh-aware spacing keeps label → hero-meta inside the first view on common laptop screens (1440×900) */
  padding: calc(var(--header-h) + clamp(40px, 6vh, 80px)) 0 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 30%, rgba(184, 153, 106, .10), transparent 70%),
    linear-gradient(180deg, #0a0f13 0%, var(--ink) 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(233,230,223,.045) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-mark {
  position: absolute; right: -6vw; top: 50%; transform: translateY(-54%);
  width: clamp(420px, 52vw, 820px); height: auto; color: var(--gold); opacity: .16; pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 11.5em; margin-bottom: 36px; }
/* DE: greedy wrapping keeps "Den Wert kreativer Arbeit / schützen." — balancing would strand "Den Wert" on its own line */
.hero h1:lang(de) { text-wrap: wrap; }
.hero .lead { max-width: 34em; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--on-dark-soft); margin-bottom: 48px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.hero-actions .link-arrow { color: #fff; }
.hero-actions .link-arrow:hover { color: var(--gold-soft); }

.hero-meta {
  position: relative; margin-top: clamp(56px, min(10vw, 9vh), 128px);
  border-top: 1px solid var(--line-dark);
}
.hero-meta dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-meta div { padding: 28px 28px 32px; border-left: 1px solid var(--line-dark); }
.hero-meta div:first-child { border-left: 0; padding-left: 0; }
.hero-meta dt { font: 500 .66rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 14px; }
.hero-meta dd { margin: 0; font: 400 1.3rem/1.3 var(--display); color: #fff; }
@media (max-width: 760px) {
  .hero-meta dl { grid-template-columns: 1fr; }
  .hero-meta div { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line-dark); }
  .hero-meta div:first-child { border-top: 0; }
  .hero-mark { right: -30vw; top: 34%; opacity: .1; }
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: var(--header-h); }
.section { padding: clamp(96px, 13vw, 176px) 0; }
.section-ivory-2 { background: var(--ivory-2); }
.section-ink-2 { background: var(--ink-2); }
.split-gap { margin-bottom: clamp(56px, 7vw, 88px); }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.split-wide { grid-template-columns: 5fr 7fr; }
.split-wide h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
/* A heading that closes a split row sets no margin of its own: the gap to the following block is defined once */
.split > h2:last-child { margin-bottom: 0; }
.split > div > .label:only-child { margin-bottom: 0; }
/* Side labels: cap height of the label lines up with the cap height of the first line beside it.
   Offsets derive from the font metrics (Cormorant cap top = .2285em at line-height 1.08, .3285em at 1.28; Inter label cap top ≈ 1.6px). */
@media (min-width: 861px) {
  .split > div > .label:only-child { margin-top: calc(clamp(2.3rem, 4.6vw, 3.9rem) * .2285 - 1.6px); }
  .statement .split > div > .label:only-child { margin-top: calc(clamp(1.75rem, 3.3vw, 2.85rem) * .3285 - 1.6px); }
}
@media (max-width: 860px) {
  .split, .split-wide { grid-template-columns: 1fr; row-gap: 32px; }
  .split-wide { row-gap: clamp(40px, 8vw, 56px); }
}
/* Grid items default to min-width:auto, so one long unhyphenated word could widen a column past the viewport */
.hero-meta dl > *, .split > *, .statement .cols > *, .index li > *, .steps > *, .client-list > *, .framework > *,
.principles > *, .contact-grid > *, .contact dl div > *, .footer-grid > *, .legal .wrap > * { min-width: 0; }

/* Statement */
.statement p.big {
  font: 400 clamp(1.75rem, 3.3vw, 2.85rem)/1.28 var(--display); letter-spacing: -.01em; color: var(--text); margin-bottom: 1.1em;
}
.statement p.big em { color: var(--gold-deep); }
.statement .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--text-soft); padding-top: 40px; border-top: 1px solid var(--line-light); }
@media (max-width: 640px) { .statement .cols { grid-template-columns: 1fr; gap: 0; } }

/* Practice — editorial index */
/* Same column tracks as the index below, so the intro paragraph starts exactly on the description column */
.practice-head, .index li { grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; }
.practice-head { display: grid; align-items: end; margin-bottom: clamp(56px, 7vw, 88px); }
.practice-head > div { grid-column: 1 / 3; }
.practice-head h2 { max-width: 12em; margin: 0; }
.practice-head > p { grid-column: 3; max-width: 26em; color: var(--on-dark-soft); margin: 0; }
@media (max-width: 860px) {
  .practice-head { display: flex; flex-direction: column; align-items: start; gap: 28px; }
}

.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.index li {
  position: relative; display: grid; align-items: baseline;
  padding: 40px 0 42px; border-bottom: 1px solid var(--line-dark);
}
.index li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.index .no { font: italic 400 1.1rem/1 var(--display); color: var(--gold); }
.index h3 { margin: 0; color: #fff; transition: color .4s; }
/* Decorative hover only where a real pointer hovers — the rows are not links, so no sticky "tap" state on touch */
@media (hover: hover) {
  .index li:hover::after { transform: scaleX(1); }
  .index li:hover h3 { color: var(--gold-soft); }
}
.index p { margin: 0; color: var(--on-dark-soft); }
@media (max-width: 860px) {
  .index li { grid-template-columns: 56px 1fr; gap: 12px 16px; padding: 32px 0; }
  .index p { grid-column: 2; }
}

/* Approach */
.steps { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { padding: 36px 32px 0 0; border-top: 1px solid var(--text); }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line-light); }
.steps .roman { display: block; font: italic 400 1.1rem/1 var(--display); color: var(--gold-deep); margin-bottom: clamp(24px, 3vw, 44px); }
.steps h3 { margin-bottom: 16px; }
.steps p { color: var(--text-soft); margin: 0; font-size: .96rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; row-gap: 44px; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
}

/* Clients */
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line-light); }
.client-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-light); font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.2 var(--display); }
.client-list li span { font: italic 400 .95rem/1 var(--display); color: var(--gold-deep); }
.clients-intro p:not(.label) { color: var(--text-soft); max-width: 24em; }
@media (max-width: 520px) { .client-list { grid-template-columns: 1fr; } }

/* Framework */
.framework { list-style: none; margin: clamp(56px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.framework li { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line-dark); }
.framework li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.framework strong { display: block; font: 400 1.45rem/1.25 var(--display); color: #fff; margin-bottom: 10px; }
.framework span { font-size: .92rem; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .framework { grid-template-columns: 1fr 1fr; }
  .framework li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .framework li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
  .framework { grid-template-columns: 1fr; }
  .framework li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--text); }
.principles > div { padding: 44px 40px 0 0; }
.principles > div + div { padding-left: 40px; border-left: 1px solid var(--line-light); }
.principles h3 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-style: italic; margin-bottom: 22px; }
.principles p { color: var(--text-soft); margin: 0; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div, .principles > div + div { padding: 36px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-light); }
.faq details:first-of-type { border-top: 1px solid var(--text); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 32px 64px 32px 0;
  font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--display); transition: color .3s;
}
.faq summary:hover { color: var(--gold-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
/* Icon centred on the first line of the question (not the whole block), so it stays put when the item opens */
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: calc(32px + .65em); width: 18px; height: 1px; background: var(--gold-deep); transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { padding-bottom: 18px; }
.faq details[open] summary::after { transform: rotate(0); }
.faq .answer { padding: 0 0 36px; color: var(--text-soft); max-width: 44em; }
.faq .answer li::marker { color: var(--gold-deep); }
.faq .answer ul { margin: 0 0 1.1em; padding-left: 1.1em; }
.faq .answer li { margin-bottom: .4em; }
.faq-note { margin-top: 36px; font-size: .86rem; color: var(--text-dim); }

/* Contact */
.contact h2 { max-width: 11em; }
.contact .intro { color: var(--on-dark-soft); max-width: 30em; margin-bottom: 48px; }
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact dl { margin: 0; border-top: 1px solid var(--line-dark); }
.contact dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.contact dt { font: 500 .66rem/1.45 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-dim); }
.contact dd { margin: 0; font: 400 1.3rem/1.45 var(--display); color: #fff; overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact dd a:hover, .contact dd a:focus-visible { color: var(--gold-soft); background-size: 100% 1px; }
/* Touch screens get no hover preview: show a quiet hairline so phone and email read as tappable */
@media (hover: none) { .contact dd a { background-image: linear-gradient(rgba(184, 153, 106, .55), rgba(184, 153, 106, .55)); background-size: 100% 1px; } }
.notice { margin-top: 36px; padding-left: 20px; border-left: 1px solid var(--gold); font-size: .88rem; color: var(--on-dark-soft); }
.notice a { color: #fff; text-decoration-color: var(--gold); transition: color .3s; }
.notice a:hover { color: var(--gold-soft); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact dl div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Footer ---------- */
.site-footer { background: #080c10; color: var(--on-dark-soft); padding: clamp(72px, 9vw, 112px) 0 40px; font-size: .9rem; }
/* Link columns never squeeze their lines (e.g. a long legal name in the address) below their natural width */
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(max-content, 3fr)); gap: 40px; padding-bottom: 64px; }
.site-footer .logo { color: #fff; margin-bottom: 24px; }
.site-footer .tagline { max-width: 20em; margin: 0; color: var(--on-dark-dim); }
.site-footer h2 { margin: 0 0 20px; font: 500 .66rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
/* Same line rhythm as the address column next to it */
.site-footer li { margin: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer li a { display: inline-block; }
@media (pointer: coarse) { .site-footer li a { padding-block: 5px; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 32px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-dim); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
/* 404: a single line of links needs no full footer block */
.site-footer.compact { padding: 26px 0 28px; border-top: 1px solid var(--line-dark); }
.site-footer.compact .footer-bottom { padding-top: 0; border-top: 0; align-items: baseline; }
.site-footer.compact .footer-bottom a { color: var(--on-dark-soft); }
.site-footer.compact .footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Legal pages ---------- */
.page-head { background: var(--ink); color: var(--on-dark); padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 88px); }
/* min size keeps "Datenschutzerklärung" on one line at 320px even where hyphenation is unavailable */
.page-head h1 { color: #fff; font-size: clamp(2rem, 1.1rem + 4.5vw, 5rem); }
.page-head p:not(.label) { color: var(--on-dark-soft); max-width: 44em; margin: 0; }
.page-head .label { color: var(--gold); }
.legal { padding: clamp(64px, 8vw, 110px) 0 clamp(96px, 12vw, 160px); }
.legal .wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .88rem; border-top: 1px solid var(--text); padding-top: 22px; }
.toc p { font: 500 .66rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; line-height: 1.5; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; min-width: 1.35em; font: italic .95rem/1 var(--display); color: var(--text-dim); }
.toc a { text-decoration: none; color: var(--text-soft); transition: color .3s; }
.toc a:hover { color: var(--gold-deep); }
/* Measure: running text ~70 characters per line */
.prose { max-width: 36em; min-width: 0; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.5rem, .9rem + 2.8vw, 2.4rem); /* fits "Berufshaftpflichtversicherung" at 320px without hyphenation */ margin-top: 1.75em; padding-top: 1.1em; border-top: 1px solid var(--line-light); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.4rem; margin: 1.6em 0 .4em; }
.prose h2 + h3 { margin-top: .2em; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-deep); }
.prose a { color: var(--text); text-decoration-color: var(--gold); white-space: nowrap; transition: color .3s; }
.prose a:hover { color: var(--gold-deep); }
.prose address { font-style: normal; font: 400 1.25rem/1.5 var(--display); color: var(--text); padding: 4px 0 4px 22px; border-left: 1px solid var(--gold); margin: 0 0 1.4em; }
/* Cormorant ships 400/500 only — avoid faux bold */
.prose address strong { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.prose th, .prose td { text-align: left; vertical-align: baseline; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-light); }
.prose tr:first-child > * { border-top: 1px solid var(--line-light); }
/* A table that closes a section would draw a second rule right above the next section's rule */
.prose .table-scroll:has(+ h2) tr:last-child > * { border-bottom: 0; }
.prose th { width: 34%; font: 500 .7rem/1.9 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.table-scroll { overflow-x: auto; }
@media (max-width: 860px) {
  .legal .wrap { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  /* Stack label/value rows so long uppercase labels are not squeezed into a third of the width */
  .prose th, .prose td { display: block; width: auto; padding-right: 0; }
  .prose th { padding: 16px 0 2px; border-bottom: 0; }
  .prose td { padding-top: 0; }
  .prose tr:first-child > td { border-top: 0; }
}

/* 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.not-found { flex: 1 0 auto; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 56px) 0 80px; }
.not-found .code { font: italic 400 clamp(6rem, 16vw, 11rem)/1 var(--display); color: var(--gold); margin: 0 0 12px; }
.not-found p { color: var(--on-dark-soft); }
.not-found-actions { justify-content: center; margin-top: 36px; }
.not-found-actions .link-arrow { color: #fff; }

/* ---------- Reveal on scroll (only when JS is available) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .hero [data-reveal] { transition-duration: 1.4s; }
  .js [data-reveal="2"] { transition-delay: .12s; }
  .js [data-reveal="3"] { transition-delay: .24s; }
  .js [data-reveal="4"] { transition-delay: .36s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .toc, .hero-mark, .hero-grid { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  body, .dark, .page-head { background: #fff !important; color: #000 !important; }
  .page-offset { padding-top: 0; }
  .legal .wrap { display: block; }
}
