/* =============================================================
   Atelier Tanja — shared chrome for legal pages (Impressum / Datenschutz)
   Same design system as index.html.
   ============================================================= */

/* Self-hosted faces — these pages must not call Google Fonts, since the
   Datenschutzerklärung they render states that no such connection happens. */
@font-face {
  font-family: "Fraunces"; src: url("assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces"; src: url("assets/fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter Tight"; src: url("assets/fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #FBF7F1; --bg-alt: #F1EADF; --surface: #FFFFFF; --cream: #F7F1E9;
  --accent: #6C586D; --accent-deep: #56445A; --peach: #FAD7C8;
  --ink: #2A2326; --muted: #8A7F86;
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-micro: 200ms;
  --header-h: 76px;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 17px;
  line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--font-display); font-weight: 420; line-height: 1.1; letter-spacing: -0.01em; font-optical-sizing: auto; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-deep); color: var(--cream); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 0; top: 0; }

/* ---- Nav (always solid on legal pages) ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251,247,241,.82);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(108,88,109,.16);
}
.nav__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
/* Must match index.html's lockup exactly, or the header logo changes when a
   visitor clicks through to Impressum. Alpha PNG, so no mix-blend-mode needed. */
.wordmark { margin-right: auto; display: flex; align-items: center; gap: 13px; }
.wordmark__logo { height: 34px; width: auto; }
.wordmark__sub {
  font-family: var(--font-body); font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  line-height: 1.65; white-space: nowrap;
  padding-left: 13px; border-left: 1px solid rgba(108,88,109,.22);
}
.nav__links { display: flex; align-items: center; gap: clamp(18px,2.4vw,38px); }
.nav__link { position: relative; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 6px 0; opacity: .82; transition: opacity var(--t-micro) var(--ease); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-micro) var(--ease); }
.nav__link:hover { opacity: 1; } .nav__link:hover::after { transform: scaleX(1); }
.nav__cta { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid rgba(108,88,109,.4); border-radius: 999px; padding: 9px 20px; transition: background var(--t-micro) var(--ease), color var(--t-micro), border-color var(--t-micro); }
.nav__cta:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.nav__social { display: flex; gap: 12px; align-items: center; }
.nav__social a { color: var(--accent); width: 22px; height: 22px; display: inline-flex; transition: transform var(--t-micro) var(--ease); }
.nav__social a:hover { transform: translateY(-2px); }
.nav__social svg { width: 20px; height: 20px; }
.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.nav__burger svg { width: 26px; height: 26px; }
.mobile-nav { position: fixed; inset: 0; z-index: 99; background: var(--bg); transform: translateY(-100%); transition: transform .5s var(--ease); display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); visibility: hidden; }
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-size: clamp(2rem,9vw,3rem); font-weight: 420; color: var(--ink); padding: 10px 0; }
.mobile-nav__meta { margin-top: 36px; color: var(--muted); font-size: .9rem; }
.mobile-nav__meta a { font-family: var(--font-body); font-size: .95rem; display: inline; color: var(--accent); }

/* ---- Page title + prose ---- */
.legal-hero { padding: calc(var(--header-h) + clamp(40px,7vw,80px)) 0 clamp(20px,3vw,40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: clamp(28px,4vw,64px); height: 1px; background: var(--accent); display: inline-block; }
.legal-hero h1 { font-size: clamp(2.4rem,6vw,4rem); font-weight: 400; }
.prose { max-width: 760px; padding-bottom: clamp(64px,10vw,120px); font-size: 1.0625rem; line-height: 1.7; color: #443c40; }
.prose h2 { font-family: var(--font-display); font-weight: 440; font-size: clamp(1.3rem,2.6vw,1.7rem); color: var(--ink); margin: 1.8em 0 .5em; }
.prose p { margin-bottom: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-deep); }
.prose .meta { margin-top: 2.4em; color: var(--muted); font-size: .9rem; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- Service list (Behandlungen hub) ------------------------------
   Prose FIRST, tag list second. The old site led with bare tag lists,
   which is why 11 services shared about seven words each. -------------- */
.page-intro { max-width: 62ch; font-size: 1.15rem; line-height: 1.65; color: #443c40; margin-bottom: clamp(12px,2vw,24px); }
.svc-list { max-width: 900px; padding-bottom: clamp(56px,8vw,96px); }
.svc {
  border-top: 1px solid rgba(108,88,109,.2);
  padding: clamp(26px,4vw,42px) 0;
  display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(16px,3vw,34px);
}
/* The header is fixed, so an anchor jump would otherwise drop the heading
   underneath it — these are link targets from the homepage service rows. */
.svc, .page-cta { scroll-margin-top: calc(var(--header-h) + 26px); }
.svc:last-of-type { border-bottom: 1px solid rgba(108,88,109,.2); }
.svc__num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--accent); padding-top: .45em; }
.svc__name { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.5rem,3.2vw,2.2rem); color: var(--ink); line-height: 1.15; }
.svc__prose { margin: .65em 0 1.1em; font-size: 1.0625rem; line-height: 1.7; color: #443c40; max-width: 60ch; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.svc__tags li { font-size: .88rem; color: var(--accent-deep); background: var(--bg-alt); border-radius: 999px; padding: 6px 14px; }

/* ---- Closing CTA on inner pages ---- */
.page-cta { background: var(--cream); border: 1px solid rgba(108,88,109,.2); border-radius: 12px; padding: clamp(24px,4vw,40px); max-width: 900px; margin-bottom: clamp(56px,8vw,96px); }
.page-cta h2 { font-family: var(--font-display); font-weight: 440; font-size: clamp(1.3rem,2.6vw,1.8rem); margin-bottom: .5em; }
.page-cta p { color: #443c40; margin-bottom: 1em; max-width: 56ch; }
.page-cta__phone { font-family: var(--font-display); font-size: clamp(1.5rem,3.4vw,2.1rem); color: var(--accent-deep); }
.page-cta__meta { font-size: .92rem; color: var(--muted); margin-top: .8em; }

@media (max-width: 680px) {
  .svc { grid-template-columns: 1fr; gap: 0; }
  .svc__num { padding-top: 0; margin-bottom: 6px; }
}

/* ---- Footer colophon ---- */
.colophon { background: var(--accent-deep); color: var(--cream); padding-block: clamp(56px,8vw,96px); }
.colophon__grid { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.colophon__brand { font-family: var(--font-display); font-weight: 460; font-size: 2.4rem; }
.colophon__brand span { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 8px; }
.colophon h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .6; margin-bottom: 16px; }
.colophon ul li { margin-bottom: 10px; }
.colophon a { opacity: .9; }
.colophon .lk { position: relative; }
.colophon .lk::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: left; transition: transform var(--t-micro) var(--ease); }
.colophon .lk:hover::after { transform: scaleX(1); }
.colophon__social { display: flex; gap: 14px; margin-top: 6px; }
.colophon__social a { width: 34px; height: 34px; border: 1px solid rgba(247,241,233,.3); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-micro) var(--ease); }
.colophon__social a:hover { background: rgba(247,241,233,.14); }
.colophon__social svg { width: 17px; height: 17px; }
.colophon__base { max-width: var(--container); margin: clamp(40px,6vw,64px) auto 0; padding: 24px var(--gutter) 0; border-top: 1px solid rgba(247,241,233,.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .8rem; opacity: .7; }

/* ---- Cookie banner ---- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin-inline: auto; background: var(--surface); border: 1px solid rgba(108,88,109,.2); box-shadow: 0 18px 50px -20px rgba(86,68,90,.4); padding: 18px 22px; border-radius: 12px; display: none; z-index: 250; font-size: .9rem; }
.cookie.is-open { display: block; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie a { color: var(--accent); text-decoration: underline; }
.cookie__btns { display: flex; gap: 10px; }
.cookie button { padding: 9px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.cookie .accept { background: var(--accent); color: var(--cream); }
.cookie .accept:hover { background: var(--accent-deep); }
.cookie .decline { border: 1px solid rgba(108,88,109,.3); color: var(--ink); }

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .colophon__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__social { display: none; }
  .colophon__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
