/* =====================================================================
   Gernot Roth · Praxis für Psychotherapie & psychologische Diagnostik
   Design „Lichter Raum“ – statische Fassung, ohne Build-Schritt.
   Keine externen Ressourcen: Schriften liegen unter assets/fonts/.
   ===================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Farben & Maße ---------- */
:root {
  --paper: #F8F3EB;
  --linen: #EFE5D6;
  --blush: #F3DCCB;
  --card: #FFFDF9;
  --sage: #8EA694;
  --sage-light: #DDE6DC;
  --sage-deep: #4D6A58;
  --sage-mist: #EEF2EC;
  --forest: #1E3A32;
  --forest-600: #264A40;
  --forest-500: #2F5A4D;
  --ink: #21302B;
  --muted: #5F6C66;
  --line: #E2D7C6;
  --orange: #E88A2B;
  --orange-dark: #B4601A;
  --orange-glow: #F4B66F;
  --orange-soft: #FBE3C9;
  --on-dark: #D5DDD6;
  --on-dark-muted: #9FB3A6;
  --danger: #B03A4E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --max: 1200px;
  --r-card: 1.75rem;
  --shadow-soft: 0 1px 2px rgba(33,48,43,.04), 0 18px 40px -22px rgba(33,48,43,.28);
  --shadow-lift: 0 2px 4px rgba(33,48,43,.05), 0 30px 60px -28px rgba(33,48,43,.38);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; color: var(--forest); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--orange-glow); color: var(--forest); }
:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 3px; border-radius: 6px; }
address { font-style: normal; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }
.wrap-narrow { max-width: 920px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: #1C1208; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kleine Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.light { color: var(--orange-glow); }
.eyebrow.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; line-height: 1.3;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-primary { background: var(--orange); color: #1C1208; box-shadow: 0 10px 24px -12px rgba(200,106,30,.8); }
.btn-primary:hover { background: #D67A1F; color: #fff; box-shadow: 0 16px 34px -14px rgba(200,106,30,.9); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }
.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: var(--forest-500); }
.btn-light { border-color: rgba(248,243,235,.5); color: var(--paper); }
.btn-light:hover { background: var(--paper); color: var(--forest); }
.btn-sm { padding: .55rem 1.1rem; font-size: 14.5px; }
.btn-icon { padding: .6rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border-radius: 999px;
  font-size: 14px; border: 1px solid #D6CCBB; background: var(--card); color: #3C4A44; transition: all .25s ease;
}
.chip:hover { border-color: var(--sage); background: var(--sage-mist); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.chip .n { opacity: .6; }
.chip-sm { padding: .2rem .75rem; font-size: 13px; }
.on-dark .chip { background: rgba(248,243,235,.06); border-color: rgba(248,243,235,.22); color: #E7E2D7; }
.on-dark .chip:hover { border-color: var(--orange-glow); color: var(--orange-glow); background: rgba(248,243,235,.1); }
.on-dark .chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1C1208; }

.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .75rem; font-size: 13px; background: var(--sage-light); color: #3E5A49; }
.on-dark .tag { background: rgba(142,166,148,.22); color: #CFE0D2; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.card {
  position: relative; border-radius: var(--r-card); background: var(--card); border: 1px solid rgba(226,215,198,.9);
  box-shadow: 0 1px 2px rgba(33,48,43,.04), 0 18px 40px -26px rgba(33,48,43,.30);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(33,48,43,.05), 0 34px 60px -30px rgba(33,48,43,.42); border-color: rgba(232,138,43,.45); }
.card.flat:hover { transform: none; }
.card.sage { background: var(--sage-mist); border-color: var(--sage-light); }
.card.linen { background: #F3EADC; border-color: #E6D9C4; }
.card.warm { background: rgba(251,227,201,.6); border-color: rgba(232,138,43,.4); }
.pad { padding: 1.75rem; }
@media (min-width: 640px) { .pad { padding: 2rem; } .pad-lg { padding: 2.25rem; } }

.round-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; flex-shrink: 0; background: var(--sage-light); color: var(--sage-deep); transition: all .5s ease; }
.round-icon.orange { background: var(--orange-soft); color: var(--orange-dark); }
.round-icon.solid { background: var(--orange); color: #1C1208; }
.round-icon.white { background: #fff; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Abschnittsköpfe ---------- */
.section { position: relative; padding-block: 6rem; }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }
.head { max-width: 48rem; }
.head.center { margin-inline: auto; text-align: center; }
.head .eyebrow { margin-bottom: 1.25rem; }
.h-xl { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
.h-lg { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; }
.h-md { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.h-card { font-size: 28px; line-height: 1.15; }
.lead { margin-top: 1.5rem; font-size: 18.5px; line-height: 1.7; color: var(--muted); }
.lead p + p { margin-top: 1rem; }
.dark .h-xl, .dark .h-lg, .dark h2, .dark h3 { color: var(--paper); }
.dark .lead { color: var(--on-dark); }

/* ---------- Kopfbereich ---------- */
.topbar { position: relative; z-index: 50; background: var(--forest); color: #DCE4DD; font-size: 13.5px; }
.topbar .wrap { display: flex; height: 2.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar p { display: flex; align-items: center; gap: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .icon { color: var(--orange-glow); }
.topbar .extra { color: var(--on-dark-muted); }
.topbar a { display: none; align-items: center; gap: .4rem; text-decoration: none; white-space: nowrap; transition: color .3s; }
.topbar a:hover { color: var(--orange-glow); }
@media (max-width: 639px) { .topbar .extra { display: none; } }
@media (min-width: 640px) { .topbar a { display: flex; } }

.site-header { position: sticky; top: 0; z-index: 40; transition: background-color .5s, box-shadow .5s, backdrop-filter .5s; }
.site-header.scrolled, .site-header:has(details[open]) { background: rgba(248,243,235,.92); box-shadow: 0 10px 30px -20px rgba(33,48,43,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.solid { background: rgba(248,243,235,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 84px; transition: height .5s; }
.scrolled .nav { height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand svg { width: 2.5rem; height: 2.5rem; transition: transform .7s; }
.brand:hover svg { transform: rotate(180deg); }
.brand-name { display: block; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1; color: var(--forest); letter-spacing: .01em; }
.brand-sub { display: block; margin-top: .3rem; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a:not(.btn) { position: relative; padding: .5rem 1rem; font-size: 15.5px; text-decoration: none; transition: color .3s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.nav-links a:not(.btn):hover { color: var(--orange-dark); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--orange-dark); }
.nav-links .btn { margin-left: .75rem; padding-block: .6rem; }
.nav-links a { white-space: nowrap; }
.brand-sub { white-space: nowrap; }
@media (min-width: 1120px) { .nav-links { display: flex; } .mnav { display: none; } }
@media (min-width: 1120px) and (max-width: 1279px) { .nav-links a:not(.btn) { padding-inline: .7rem; } .nav-links a:not(.btn)::after { left: .7rem; right: .7rem; } }

.mnav > summary { list-style: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--forest); color: var(--forest); }
.mnav > summary .close { display: none; }
.mnav[open] > summary .open { display: none; }
.mnav[open] > summary .close { display: block; }
.mnav-panel { position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); padding: .75rem; border-radius: 1.5rem; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-soft); animation: rise .35s var(--ease) both; }
.mnav-panel a { display: block; padding: .75rem 1rem; border-radius: 1rem; font-family: var(--serif); font-size: 22px; color: var(--forest); text-decoration: none; }
.mnav-panel a:hover { background: var(--sage-mist); color: var(--orange-dark); }

.side-tab { position: fixed; right: 0; top: 50%; z-index: 30; display: none; align-items: center; gap: .5rem; transform: translateY(-50%); writing-mode: vertical-rl; padding: 1.25rem .75rem; border-radius: 1rem 0 0 1rem; background: var(--forest); color: var(--paper); font-size: 13.5px; letter-spacing: .12em; text-decoration: none; box-shadow: var(--shadow-lift); transition: all .3s; }
.side-tab:hover { background: var(--orange); color: #1C1208; padding-right: 1.25rem; }
.side-tab .icon { transform: rotate(90deg); }
@media (min-width: 1280px) { .side-tab { display: flex; } }

/* ---------- Wellen, Körnung, Farbflächen ---------- */
.wave { display: block; width: 100%; height: 48px; }
@media (min-width: 640px) { .wave { height: 70px; } }
.wave.flip { transform: rotate(180deg); }
.wave-anim { animation: wave 14s ease-in-out infinite; }
@keyframes wave {
  0%, 100% { d: path("M0,40 C240,10 480,70 720,40 C960,10 1200,70 1440,40 L1440,80 L0,80 Z"); }
  50% { d: path("M0,40 C240,70 480,10 720,40 C960,70 1200,10 1440,40 L1440,80 L0,80 Z"); }
}
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blobs svg { position: absolute; }
.blob-1 { left: -12%; top: -18%; width: 60vmax; height: 60vmax; filter: blur(40px); animation: float 22s ease-in-out infinite; }
.blob-2 { right: -16%; top: 8%; width: 55vmax; height: 55vmax; filter: blur(48px); animation: float 34s ease-in-out infinite reverse; }
.blob-3 { bottom: -30%; left: 30%; width: 45vmax; height: 45vmax; filter: blur(56px); animation: float 22s ease-in-out -11s infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0,0,0) rotate(0) scale(1); } 50% { transform: translate3d(3%,-4%,0) rotate(8deg) scale(1.06); } }
.z2 { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F6E6D3 0%, var(--paper) 55%, var(--paper) 100%); padding-top: 2.5rem; }
@media (min-width: 1024px) { .hero { padding-top: 3.5rem; } }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; padding-bottom: 4rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; padding-bottom: 6rem; } }
.creds { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.creds li { display: flex; align-items: center; gap: .5rem; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); }
.creds li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--orange); }
.hero h1 { margin-top: 1.75rem; }
.hero-kicker { display: block; font-family: var(--sans); font-size: clamp(15px, 1.6vw, 17px); font-weight: 500; letter-spacing: .02em; color: var(--orange-dark); line-height: 1.4; margin-bottom: 1.25rem; }
.claim { display: block; font-size: clamp(3.4rem, 8.4vw, 7.2rem); line-height: .88; letter-spacing: -.02em; font-weight: 500; color: var(--forest); }
.claim span { display: block; }
.claim .soft { font-style: italic; font-weight: 400; color: var(--sage-deep); }
.claim .indent { padding-left: .6em; }
.hero-text { margin-top: 2rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.hero-text::before { content: ""; display: none; width: 3.5rem; height: 1px; margin-top: .9rem; background: var(--orange); flex-shrink: 0; }
@media (min-width: 640px) { .hero-text::before { display: block; } }
.hero-text p { max-width: 33rem; font-size: 19px; line-height: 1.7; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.portrait { position: relative; width: calc(100% - 2.5rem); max-width: 440px; margin-inline: auto; }
.portrait .back { position: absolute; inset: 0; transform: translate(1.25rem, 1.25rem); background: var(--orange-soft); border-radius: .5rem; transition: transform .7s; }
.portrait .line { position: absolute; inset: 0; transform: translate(-1rem, -1rem); border: 1px solid rgba(232,138,43,.5); border-radius: .5rem; }
.portrait:hover .back { transform: translate(1.75rem, 1.75rem); }
.portrait .frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .5rem; box-shadow: var(--shadow-lift); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s; }
.portrait:hover img { transform: scale(1.04); }
.scroll-hint { position: absolute; bottom: 4rem; left: 50%; z-index: 2; display: none; flex-direction: column; align-items: center; gap: .25rem; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-hint:hover { color: var(--orange-dark); }
.scroll-hint .icon { animation: bounce 1s infinite; }
@media (min-width: 1024px) { .scroll-hint { display: flex; } }
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); } }
.branch { position: absolute; pointer-events: none; height: auto; }
.hero .branch { left: -6rem; bottom: 1.5rem; height: 340px; width: auto; opacity: .45; display: none; }
@media (min-width: 1536px) { .hero .branch { display: block; } }

.rise { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }
.d5 { animation-delay: .7s; } .d6 { animation-delay: .85s; } .d7 { animation-delay: 1s; } .d8 { animation-delay: 1.15s; }

/* ---------- Laufband ---------- */
.ticker { position: relative; margin-top: -1px; background: var(--sage-deep); color: var(--paper); user-select: none; }
.ticker-mask { overflow: hidden; padding-block: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker ul { list-style: none; display: flex; align-items: center; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.ticker li { display: flex; align-items: center; }
.ticker li::after { content: ""; width: 1.25rem; height: 1.25rem; margin-inline: 1.75rem; background: var(--orange-glow); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c1.5 4.5 5.5 8.5 10 10c-4.5 1.5-8.5 5.5-10 10c-1.5-4.5-5.5-8.5-10-10c4.5-1.5 8.5-5.5 10-10z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c1.5 4.5 5.5 8.5 10 10c-4.5 1.5-8.5 5.5-10 10c-1.5-4.5-5.5-8.5-10-10c4.5-1.5 8.5-5.5 10-10z'/></svg>") center / contain no-repeat; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Psychotherapie ---------- */
.approach { display: grid; gap: 3rem; align-items: center; margin-top: 5rem; }
@media (min-width: 1024px) { .approach { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.room { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; margin-inline: auto; overflow: hidden; border-radius: .5rem; background: linear-gradient(180deg, var(--blush), var(--linen) 60%, #E9DCC6); box-shadow: var(--shadow-soft); }
.room::before { content: ""; position: absolute; inset: 0 0 33% 0; background: radial-gradient(60% 60% at 50% 10%, rgba(244,182,111,.55), transparent 70%); }
.room svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.room .ph { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(255,253,249,.8); padding: .2rem .6rem; border-radius: 99px; }
/* Praxisfotos: großes Quadrat, kleines Quadrat versetzt darüber */
.room-photos { position: relative; width: calc(100% - 2rem); max-width: 420px; margin: 0 auto 4.5rem; }
.room-photos figure { margin: 0; }
.room-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .5rem; box-shadow: var(--shadow-lift); }
.rp-main img { transition: transform 1.6s; }
.room-photos:hover .rp-main img { transform: scale(1.04); }
.room-photos::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translate(-1.1rem, -1.1rem); border: 1px solid rgba(77,106,88,.45); border-radius: .5rem; }
.rp-second { position: absolute; right: -1.25rem; bottom: -4rem; width: 48%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .5rem; border: 6px solid var(--paper); box-shadow: var(--shadow-lift); transition: transform .7s var(--ease); }
.room-photos:hover .rp-second { transform: translate(.4rem, .4rem); }
.room-photos figcaption { position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); padding: .2rem .65rem; border-radius: 99px; background: rgba(255,253,249,.88); font-size: 12px; letter-spacing: .06em; color: var(--forest); line-height: 1.35; }
.rp-main figcaption { bottom: auto; top: .6rem; }
.rp-second figcaption { left: .4rem; bottom: .4rem; max-width: calc(100% - .8rem); font-size: 11px; }
@media (max-width: 479px) { .rp-second { right: -.75rem; } .rp-second figcaption { font-size: 10px; } }
@media (min-width: 1024px) { .room-photos { margin-bottom: 3rem; } }

.principles { list-style: none; display: grid; gap: 1.5rem 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { display: flex; gap: 1rem; }
.principles li:hover .round-icon { transform: rotate(-12deg); background: var(--orange); color: #1C1208; }
.principles b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--forest); }
.principles span span { display: block; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* Themen */
.topics { display: grid; gap: 2rem; margin-top: 6rem; }
@media (min-width: 1024px) { .topics { grid-template-columns: .9fr 1.1fr; } }
.search { position: relative; display: block; margin-top: 1.5rem; }
.search .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: .85rem 1rem .85rem 2.75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 16px; outline: none; transition: all .3s; }
.search input:focus { border-color: var(--sage-deep); background: #fff; box-shadow: 0 0 0 4px rgba(142,166,148,.25); }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.topic-count { margin-top: 1.25rem; font-size: 14px; color: var(--muted); }
.topic-count b { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--orange-dark); }
.no-js .js-only { display: none !important; }
@media (min-width: 1024px) { .topic-list { max-height: 560px; overflow-y: auto; scrollbar-width: thin; padding-right: .25rem; } }
.topic-group { border-top: 1px solid var(--line); }
.topic-group > h4 { padding: 1.1rem .5rem .4rem; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topic { border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem .5rem; transition: background-color .3s; }
.topic > summary:hover { background: rgba(238,242,236,.6); }
.topic > summary h3 { font-size: 22px; line-height: 1.2; font-weight: 500; transition: color .3s, transform .3s; }
.topic > summary:hover h3 { transform: translateX(4px); }
.topic[open] > summary { background: var(--sage-mist); }
.topic[open] > summary h3 { color: var(--orange-dark); }
.chev { transition: transform .3s; color: var(--muted); }
.topic[open] .chev, .faq-item[open] .chev { transform: rotate(180deg); }
.topic p { padding: .25rem .5rem 1.1rem; font-size: 16px; line-height: 1.65; color: var(--muted); background: var(--sage-mist); }
.topics-empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: 1rem; font-size: 15px; color: var(--muted); margin-top: 1rem; }
.js .topic-group.hidden, .js .topic.hidden { display: none; }

/* Atempause, Setting, Kosten */
.trio { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.card-title { display: flex; align-items: center; gap: .6rem; }
.card-title .icon { color: var(--sage-deep); }
.card-title.orange .icon { color: var(--orange-dark); }
.breath { position: relative; display: grid; place-items: center; width: 12rem; height: 12rem; margin: 1.75rem auto; }
.breath .ring { position: absolute; inset: 0; border-radius: 999px; border: 1px solid rgba(142,166,148,.5); }
.breath .orb { position: absolute; inset: 0; border-radius: 999px; transform: scale(.55); transition: transform .6s ease; background: radial-gradient(circle at 40% 30%, #FBE3C9, #F4B66F 40%, #E88A2B 75%, #B4601A 100%); box-shadow: 0 0 40px rgba(232,138,43,.35); }
.breath .label { position: relative; text-align: center; color: #1C1208; }
.breath .label b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.breath .label span { display: block; margin-top: .25rem; font-size: 26px; font-variant-numeric: tabular-nums; }
.center-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.setting-list { list-style: none; margin-top: 1.25rem; display: grid; gap: 1rem; font-size: 16px; }
.setting-list li { display: flex; align-items: center; gap: .75rem; }
.setting-list .round-icon { width: 2.5rem; height: 2.5rem; }

/* Zitat */
.quote { position: relative; max-width: 56rem; margin: 7rem auto 0; text-align: center; }
.quote::before { content: "“"; position: absolute; left: 50%; top: -5rem; transform: translateX(-50%); font-family: var(--serif); font-size: 220px; line-height: 1; color: rgba(232,138,43,.25); pointer-events: none; }
.quote blockquote { position: relative; margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.18; color: var(--forest); }
.quote figcaption { margin-top: 1.5rem; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); }

/* Ablauf */
.process { margin-top: 7rem; }
.process-head { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 640px) { .process-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.steps-wrap { position: relative; margin-top: 2.5rem; }
.steps-line { position: absolute; left: 0; right: 0; top: 27px; width: 100%; height: 16px; display: none; }
.steps { list-style: none; position: relative; display: grid; gap: .75rem; }
@media (min-width: 768px) { .js .steps-line { display: block; } .steps { grid-template-columns: repeat(5, 1fr); } }
.step-btn { display: flex; width: 100%; align-items: center; gap: 1rem; text-align: left; }
@media (min-width: 768px) { .step-btn { flex-direction: column; align-items: flex-start; } }
.step-num { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--muted); transition: all .5s; }
.step-btn:hover .step-num { border-color: var(--sage-deep); color: var(--forest); }
.step.done .step-num, .step.active .step-num { border-color: var(--orange); background: var(--orange); color: #1C1208; box-shadow: 0 0 0 7px rgba(232,138,43,.15); }
.step-title { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--forest); transition: color .3s; }
.step.active .step-title, .step-btn:hover .step-title { color: var(--orange-dark); }
.step-short { display: block; font-size: 14px; color: var(--muted); }
.step-panels { margin-top: 2rem; display: grid; gap: 1rem; }
.step-panel { display: grid; gap: 1.25rem; padding: 1.5rem; }
@media (min-width: 640px) { .step-panel { padding: 2rem; } }
@media (min-width: 768px) { .step-panel { grid-template-columns: 1fr auto; align-items: center; } }
.step-panel h3 { font-size: 22px; }
.js .step-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.step-panel p.text { max-width: 62ch; font-size: 18px; line-height: 1.65; }
.note-pill { display: flex; align-items: center; gap: .5rem; border-radius: 999px; background: var(--sage-light); padding: .75rem 1.25rem; font-size: 15px; color: var(--forest); }
.note-pill .icon { color: var(--sage-deep); }
.js .step-panel[hidden] { display: none; }
.js .step-panel { animation: rise .5s var(--ease) both; }

/* ---------- Diagnostik-Bereich (dunkel) ---------- */
.forest-band { position: relative; overflow: hidden; background: var(--forest); color: var(--paper); padding: 4rem 0 6rem; }
@media (min-width: 1024px) { .forest-band { padding-bottom: 8rem; } }
.diag-intro { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .diag-intro { grid-template-columns: 1.15fr .85fr; align-items: end; } }
.dsteps { list-style: none; margin-left: 1rem; border-left: 1px solid rgba(255,255,255,.15); }
@media (min-width: 1024px) { .dsteps { margin-left: 0; } }
.dsteps li { position: relative; padding: .75rem 0 .75rem 2rem; }
.dsteps .num { position: absolute; left: -17px; top: .75rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid rgba(244,182,111,.6); background: var(--forest); font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--orange-glow); transition: all .3s; }
.dsteps li:hover .num { transform: scale(1.1); background: var(--orange); color: #1C1208; }
.dsteps b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--paper); }
.dsteps span.t { display: block; margin-top: .15rem; font-size: 15px; color: #B9C7BD; }
.area-grid { list-style: none; display: grid; gap: 1rem; margin-top: 4rem; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(5, 1fr); } }
.area-card { display: flex; height: 100%; flex-direction: column; gap: .75rem; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.15); text-decoration: none; transition: all .5s; }
.area-card:hover { border-color: rgba(244,182,111,.6); background: rgba(255,255,255,.04); transform: translateY(-4px); }
.area-card .icon { width: 1.6rem; height: 1.6rem; color: var(--orange-glow); }
.area-card h3 { font-size: 24px; color: var(--paper); }
.area-card p { font-size: 15px; line-height: 1.5; color: #B9C7BD; }
.area-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; color: var(--orange-glow); }
.big-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding: 1.75rem; border-radius: 2rem; border: 1px solid rgba(255,255,255,.15); text-decoration: none; transition: all .5s; }
@media (min-width: 640px) { .big-link { flex-direction: row; align-items: center; padding: 2.25rem; } }
.big-link:hover { border-color: rgba(244,182,111,.6); background: rgba(255,255,255,.04); }
.big-link .lock { display: grid; place-items: center; width: 3.5rem; height: 4rem; flex-shrink: 0; border-radius: .6rem; background: var(--orange); color: #1C1208; transition: transform .5s; }
.big-link:hover .lock { transform: translateY(-4px); }
.big-link .t1 { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; line-height: 1.15; color: var(--paper); }
.big-link .t2 { margin-top: .25rem; font-size: 15.5px; color: #B9C7BD; }
.row { display: flex; align-items: center; gap: 1.25rem; }

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.cred-grid { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
.cred-grid li { padding: 1.25rem; }
.cred-grid .badge { display: grid; place-items: center; width: 3rem; height: 3.5rem; border-radius: .6rem; background: var(--sage-light); color: var(--sage-deep); transition: all .5s; }
.cred-grid li:hover .badge { background: var(--orange); color: #1C1208; }
.cred-grid b { display: block; margin-top: 1rem; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--forest); }
.cred-grid span.t { display: block; margin-top: .25rem; font-size: 14.5px; color: var(--muted); }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 5rem; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { text-align: center; }
.medal { display: grid; place-items: center; width: 100%; max-width: 210px; aspect-ratio: 1; margin-inline: auto; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--forest); transition: all .5s; }
.stats li:hover .medal { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.medal.first { border-color: var(--orange); background: var(--orange); color: #1C1208; }
.medal .num { display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; }
.medal .lbl { display: block; max-width: 11rem; margin: .5rem auto 0; padding-inline: .5rem; font-size: 14.5px; font-weight: 500; line-height: 1.3; hyphens: auto; }
.stats .sub { margin-top: .75rem; font-size: 14px; color: var(--muted); }
.timeline-wrap { display: grid; gap: 2.5rem; margin-top: 6rem; }
@media (min-width: 1024px) { .timeline-wrap { grid-template-columns: .6fr 1.4fr; } }
.timeline { list-style: none; }
.timeline li { display: grid; gap: .25rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 10rem 1fr; gap: 1.5rem; } }
.timeline .yr { font-family: var(--serif); font-size: 26px; font-weight: 600; font-style: italic; line-height: 1; color: var(--orange-dark); transition: transform .3s; }
.timeline li:hover .yr { transform: translateX(4px); }
.timeline b { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2; color: var(--forest); }
.timeline span.t { display: block; margin-top: .25rem; font-size: 15.5px; color: var(--muted); }

/* ---------- Praxis & Kontakt ---------- */
.contact-grid { display: grid; gap: 1.5rem; margin-top: 4rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.map-frame { padding: .75rem; }
@media (min-width: 640px) { .map-frame { padding: 1.25rem; } }
.map-inner { overflow: hidden; border-radius: 1.3rem; border: 1px solid var(--line); }
.map-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; border-top: 1px solid var(--line); }
.addr-grid { display: grid; gap: 1.5rem; padding: 1.75rem; }
@media (min-width: 640px) { .addr-grid { grid-template-columns: 1fr 1fr; padding: 2.25rem; } }
.addr-grid h3 { display: flex; align-items: center; gap: .5rem; font-size: 22px; font-weight: 600; }
.addr-grid h3 .icon { color: var(--orange-dark); }
.addr-grid p, .addr-grid address { margin-top: .5rem; font-size: 16.5px; line-height: 1.7; }
.info-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
.info-card b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--forest); }
.info-card p { margin-top: .25rem; font-size: 15.5px; color: var(--muted); }
.contact-lines { margin-top: 1.75rem; border-block: 1px solid var(--line); }
.contact-lines a { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; text-decoration: none; }
.contact-lines a + a { border-top: 1px solid var(--line); }
.contact-lines .round-icon { transition: transform .3s; }
.contact-lines a:hover .round-icon { transform: scale(1.1); }
.contact-lines small { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-lines strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--forest); word-break: break-all; transition: color .3s; }
.contact-lines a:hover strong { color: var(--orange-dark); }
.composer { margin-top: 2rem; padding: 1.5rem; border-radius: 1.6rem; background: var(--forest); color: var(--paper); }
.composer .ttl { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.composer .grp { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .75rem; }
.composer .grp > span { margin-right: .25rem; font-size: 13.5px; color: #B9C7BD; }
.composer .note { margin-top: .75rem; font-size: 13px; color: var(--on-dark-muted); }

/* Anfahrtskarte */
.am svg { width: 100%; height: auto; }
.am-road { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .am .am-road { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.5,.1,.2,1); }
.js .am.am-in .am-road { stroke-dashoffset: 0; }
.js .am .am-fade { opacity: 0; transform: translateY(4px); transition: opacity .8s ease, transform .8s ease; }
.js .am.am-in .am-fade { opacity: 1; transform: none; }
.am-flow { animation: am-flow 1.2s linear infinite; }
.am-walk { animation: am-walk 1.6s linear infinite; }
@keyframes am-flow { to { stroke-dashoffset: -7; } }
@keyframes am-walk { to { stroke-dashoffset: 9.2; } }
.am-group { transition: opacity .45s ease; }
.am[data-focus="auto"] .am-group:not([data-k="auto"]),
.am[data-focus="fuss"] .am-group:not([data-k="fuss"]),
.am[data-focus="oepnv"] .am-group:not([data-k="oepnv"]) { opacity: .18; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 3.5rem auto 0; display: grid; gap: .75rem; }
.faq-item { border-radius: 1.4rem; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, box-shadow .3s; }
.faq-item:hover { border-color: rgba(232,138,43,.45); }
.faq-item[open] { box-shadow: var(--shadow-soft); border-color: rgba(232,138,43,.45); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; }
.faq-item > summary h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.25; }
.faq-item[open] > summary h3 { color: var(--orange-dark); }
.faq-body { padding: 0 1.5rem 1.5rem; font-size: 16.5px; line-height: 1.75; color: #3A4742; }
.faq-body p + p, .faq-body p + ul, .faq-body ul + p { margin-top: .85rem; }
.faq-body ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.faq-body a { color: var(--orange-dark); text-underline-offset: 3px; }
.faq-body strong { color: var(--forest); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 2.5rem; color: var(--on-dark); }
.site-footer .inner { background: var(--forest); padding: 2.5rem 0; }
.foot-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: .75rem; }
.foot-brand svg { width: 3rem; height: 3rem; }
.foot-brand b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--paper); }
.foot-brand span { display: block; margin-top: .25rem; font-size: 14px; color: var(--on-dark-muted); }
.foot-text { margin-top: 1.25rem; max-width: 24rem; font-size: 15px; color: #B9C7BD; }
.crisis { display: flex; gap: .6rem; max-width: 24rem; margin-top: 1.5rem; padding: 1rem; border-radius: 1rem; border: 1px solid rgba(232,138,43,.3); background: rgba(232,138,43,.1); font-size: 14px; line-height: 1.4; color: rgba(248,243,235,.9); }
.crisis .icon { margin-top: .1rem; color: var(--orange-glow); }
.foot-col { display: grid; align-content: start; gap: .75rem; font-size: 15px; }
.foot-col .ttl { font-family: var(--serif); font-size: 22px; color: var(--paper); }
.foot-col a, .foot-col p { display: flex; align-items: flex-start; gap: .6rem; text-decoration: none; transition: color .3s; }
.foot-col a:hover { color: var(--orange-glow); }
.foot-col .icon { margin-top: .2rem; }
.foot-bottom { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: var(--on-dark-muted); }
@media (min-width: 640px) { .foot-bottom { flex-direction: row; } }

/* ---------- Unterseiten-Kopf (Diagnostik, Rechtliches) ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--linen), var(--paper)); padding: 3rem 0 4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin-bottom: 2rem; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-dark); }
.page-title { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.02em; }
.page-lead { margin-top: 1.25rem; max-width: 46rem; font-size: 18.5px; color: var(--muted); }

.prose { padding: 1.5rem; border-radius: 2rem; background: rgba(255,253,249,.85); border: 1px solid var(--line); }
@media (min-width: 640px) { .prose { padding: 2.5rem; } }
@media (min-width: 1024px) { .prose { padding: 3.5rem; } }
.prose h2 { margin: 3.5rem 0 1rem; font-size: clamp(2.1rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.15; }
.prose h3 { margin: 2.25rem 0 .75rem; font-size: clamp(1.55rem, 3vw, 1.7rem); font-weight: 600; line-height: 1.25; color: var(--orange-dark); }
.prose h4 { margin: 1.5rem 0 .5rem; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose address { margin-bottom: 1rem; font-size: 16.5px; line-height: 1.8; color: #3A4742; }
.prose a { color: var(--orange-dark); text-decoration-color: rgba(232,138,43,.4); text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--orange); }
.facts { display: grid; gap: .75rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { padding: 1rem; border-radius: 1rem; border: 1px solid rgba(232,138,43,.25); background: rgba(251,227,201,.45); }
.facts b { display: flex; align-items: center; gap: .5rem; }
.facts b .icon { color: var(--orange-dark); }
.facts span { display: block; margin-top: .25rem; font-size: 14px; color: var(--muted); }

/* ---------- Diagnostik-Seite ---------- */
.diag-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F6E6D3 0%, var(--paper) 70%); padding: 3rem 0 5rem; }
.diag-hero-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 1024px) { .diag-hero-grid { grid-template-columns: 1.2fr .8fr; } }
.diag-hero .claim-sm { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.02em; }
.diag-hero .claim-sm em { font-weight: 400; color: var(--orange-dark); }
.light-steps { list-style: none; border-left: 1px solid var(--line); margin-left: 1rem; }
.light-steps li { position: relative; padding: .75rem 0 .75rem 2rem; }
.light-steps .num { position: absolute; left: -17px; top: .75rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid var(--orange); background: var(--paper); font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--orange-dark); }
.light-steps b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--forest); }
.light-steps span.t { display: block; font-size: 15px; color: var(--muted); }

.diag-box { overflow: hidden; border-radius: 2rem; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.tablist { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: rgba(239,229,214,.7); padding-inline: .5rem; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: .5rem; padding: 1.25rem; font-size: 15.5px; color: var(--muted); transition: color .3s; }
.tablist [role="tab"]:hover, .tablist [role="tab"][aria-selected="true"] { color: var(--forest); }
.tablist [role="tab"][aria-selected="true"] .icon { color: var(--orange-dark); }
.tablist [role="tab"]::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 3px; border-radius: 99px; background: var(--orange); transform: scaleX(0); transition: transform .5s; }
.tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.diag-panel { display: grid; gap: 2rem; padding: 1.5rem; scroll-margin-top: 100px; }
.diag-panel + .diag-panel { border-top: 1px solid var(--line); }
.js .diag-panel + .diag-panel { border-top: 0; }
.js .diag-panel[hidden] { display: none; }
@media (min-width: 640px) { .diag-panel { padding: 2rem; } }
@media (min-width: 1024px) { .diag-panel { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding: 3rem; } }
.js .diag-panel .copy { animation: rise .6s var(--ease) both; }
.diag-panel h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.02; }
.dark .diag-box h2, .dark .diag-box h3 { color: var(--forest); }
.diag-panel .copy > p.lead2 { margin-top: 1rem; max-width: 58ch; font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.diag-panel .eyebrow { margin-top: 2rem; }
.checks { list-style: none; display: grid; gap: .6rem; margin-top: 1rem; }
.checks li { display: flex; gap: .75rem; font-size: 16.5px; }
.checks .ck { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: .1rem; flex-shrink: 0; border-radius: 999px; background: var(--sage-light); color: var(--sage-deep); }
.checks .ck .icon { width: .85rem; height: .85rem; stroke-width: 3; }
.diag-panel .tags { margin-top: 1rem; }
.result-note { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; font-size: 15px; color: var(--muted); }
.result-note .icon { color: var(--orange-dark); }
.radar-box { border-radius: 1.6rem; background: var(--sage-mist); padding: 1rem; align-self: start; }
@media (min-width: 640px) { .radar-box { padding: 1.5rem; } }
.radar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.radar-top b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--forest); }
.radar-top b small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.radar-box svg { width: 100%; height: auto; }
.radar-box .cap { font-size: 14px; line-height: 1.4; color: var(--muted); }
.radar-box text, .hexradar text { font-family: var(--sans); font-size: 14px; font-weight: 500; fill: var(--ink); }
.key-self { display: inline-block; width: .65rem; height: .65rem; border-radius: 99px; border: 2px dashed currentColor; }
.key-test { display: inline-block; width: .65rem; height: .65rem; border-radius: 99px; background: var(--orange); }
.radar-box.no-self .r-self, .radar-box.no-test .r-test { display: none; }
.radar-box .r-self, .radar-box .r-test { transition: opacity .4s; }

/* PIN-Bereich & Kacheln */
.pin-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .pin-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.pin-points { list-style: none; display: grid; gap: .75rem; margin-top: 2rem; font-size: 15.5px; }
.pin-points li { display: flex; gap: .75rem; }
.pin-points .icon { margin-top: .2rem; color: var(--orange-dark); }
.occasions { list-style: none; display: grid; gap: 1rem; margin-top: 3.5rem; }
@media (min-width: 640px) { .occasions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .occasions { grid-template-columns: repeat(3, 1fr); } }
.occasions li { display: flex; gap: 1rem; padding: 1.5rem; }
.occasions b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--forest); }
.occasions span.t { display: block; margin-top: .35rem; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cta-band { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; justify-content: space-between; padding: 2rem; border-radius: 2rem; background: linear-gradient(135deg, var(--orange-soft), #F6E6D3); border: 1px solid rgba(232,138,43,.35); }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; padding: 2.75rem; } }
.pin-card { width: 100%; max-width: 440px; margin-inline: auto; padding: 1.75rem; color: var(--ink); }
@media (min-width: 640px) { .pin-card { padding: 2.25rem; } }
.pin-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.pin-card-head .lockbox { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--orange); color: #1C1208; box-shadow: 0 10px 30px -10px rgba(232,138,43,.9); }
.pin-card-head b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.pin-dots { display: flex; justify-content: center; gap: .75rem; }
.pin-dots span { display: grid; place-items: center; width: 3.5rem; height: 4rem; border-radius: 1rem; border: 2px solid var(--line); background: var(--card); transition: all .3s; }
.pin-dots span::after { content: ""; width: .9rem; height: .9rem; border-radius: 99px; background: var(--sage-mist); transform: scale(.5); transition: all .3s; }
.pin-dots span.on { border-color: var(--orange); background: rgba(232,138,43,.15); box-shadow: 0 0 24px -4px rgba(232,138,43,.7); }
.pin-dots span.on::after { background: var(--orange-glow); transform: scale(1); }
.pin-dots.busy span { animation: pulse 1s ease-in-out infinite; }
.pin-dots.shake { animation: shake .45s ease; }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-msg { min-height: 3rem; margin-top: 1rem; text-align: center; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.pin-msg.err { color: var(--danger); }
.pin-msg.busy { color: var(--orange-dark); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; max-width: 300px; margin: .5rem auto 0; }
.keypad button { height: 4rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--sage-mist); font-family: var(--serif); font-size: 28px; font-weight: 600; transition: all .2s; }
.keypad button:hover { transform: scale(1.04); border-color: var(--orange); background: rgba(232,138,43,.1); color: var(--orange-dark); }
.keypad button:active { transform: scale(.95); }
.keypad button:disabled { opacity: .4; pointer-events: none; }
.keypad .del { display: grid; place-items: center; border-color: transparent; background: transparent; color: var(--muted); }
.tiles { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(12, 1fr); } .tiles .test-tile { grid-column: span 4; } .tiles .know { grid-column: span 8; } .tiles .lockcard { grid-column: span 4; } }
@media (min-width: 1024px) { .tiles .test-tile h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); } }

/* ---------- Verb-Interessentest ---------- */
.scale-legend { list-style: none; display: grid; gap: .5rem; max-width: 40rem; }
.scale-legend li { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-radius: .9rem; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.scale-legend b { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 99px; background: var(--orange-soft); color: var(--orange-dark); font-family: var(--serif); font-size: 18px; }
.vit-card { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(13rem, 32vh, 17rem); overflow: hidden; border-radius: 2rem; border: 1px solid var(--line); background: linear-gradient(160deg, #F2EBE1, #E4D5BF); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); animation: rise .35s var(--ease) both; }
.vit-card .body { display: flex; flex: 1; align-items: center; justify-content: center; padding: 2.5rem 1.5rem 1rem; text-align: center; }
.vit-verb { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 600; line-height: 1.05; color: #1C1208; }
.vit-card .meta { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 1.5rem; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.scale5 { display: grid; gap: .5rem; }
@media (min-width: 640px) { .scale5 { grid-template-columns: repeat(5, 1fr); } }
.scale5 button { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 1rem; border: 2px solid var(--line); background: var(--card); text-align: left; line-height: 1.25; transition: all .25s; }
@media (min-width: 640px) { .scale5 button { flex-direction: column; justify-content: flex-start; text-align: center; min-height: 8.5rem; padding: .9rem .6rem; } }
.scale5 button b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; flex-shrink: 0; border-radius: 99px; background: var(--sage-mist); font-family: var(--serif); font-size: 20px; transition: all .25s; }
.scale5 button span { font-size: 14px; }
.scale5 button:hover { transform: translateY(-3px); border-color: var(--orange); }
.scale5 button:hover b, .scale5 button[aria-pressed="true"] b { background: var(--orange); color: #1C1208; }
.scale5 button[aria-pressed="true"] { border-color: var(--orange); background: rgba(251,227,201,.6); }
.code-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
@media (min-width: 640px) { .code-tiles { gap: .75rem; } }
.code-tile { min-width: 0; }
.code-tile .nm { max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 479px) { .code-tile .nm { font-size: 12px; } }
.code-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.25rem .5rem 1rem; border-radius: 1.4rem; background: var(--c); color: #fff; text-align: center; box-shadow: 0 18px 40px -24px var(--c); }
.code-tile .pos { position: absolute; left: .75rem; top: .6rem; font-size: 12px; font-weight: 600; opacity: .8; }
.code-tile b { font-family: var(--serif); font-size: clamp(3rem, 9vw, 4.6rem); font-weight: 600; line-height: 1; }
.code-tile .nm { font-size: 14px; font-weight: 600; line-height: 1.2; }
.code-tile .mv { font-size: 12.5px; opacity: .85; }
.vit-profile { display: grid; gap: 1.5rem; align-items: center; margin-top: 1rem; }
@media (min-width: 900px) { .vit-profile { grid-template-columns: 1.1fr .9fr; } }
.vit-bars { list-style: none; display: grid; gap: .5rem; }
.vit-bars li { display: grid; grid-template-columns: 2rem minmax(0, 8.5rem) 1fr 2.4rem; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: .8rem; }
.vit-bars li.top { background: rgba(251,227,201,.55); }
.vit-bars .lt, .tc-head .lt { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 18px; }
.vit-bars .nm b { display: block; font-size: 14.5px; line-height: 1.2; }
.vit-bars .nm span { display: block; font-size: 12px; color: var(--muted); }
.vit-bars .track { height: .8rem; overflow: hidden; border-radius: 99px; background: var(--sage-mist); }
.vit-bars .track i { display: block; height: 100%; border-radius: 99px; }
.vit-bars .val { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ind-grid { display: grid; gap: .75rem; }
@media (min-width: 768px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind-val { margin-top: .5rem; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--orange-dark); }
.type-card { margin-top: 1rem; padding: 1.5rem; border-top: 5px solid var(--c); }
@media (min-width: 640px) { .type-card { padding: 2rem; } }
.type-card.flat { margin-top: 0; box-shadow: none; }
.tc-head { display: flex; align-items: center; gap: 1rem; }
.tc-head .lt { width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: var(--c); font-size: 28px; }
.tc-head h3 { font-size: 28px; line-height: 1.15; }
.tc-head h3 span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.tc-desc { margin-top: 1rem; font-size: 16.5px; line-height: 1.7; }
.tc-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .tc-grid { grid-template-columns: 1fr 1fr; } }
.tc-grid .eyebrow { margin-top: 0; }
.field-chip { display: inline-flex; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--c); color: var(--ink); background: #fff; font-size: 14px; }
.ans-groups { display: grid; gap: 1rem; margin-top: 1rem; }
.ag-h { margin-bottom: .5rem; font-size: 14.5px; }
.ag-h b { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .3rem; border-radius: 99px; background: var(--orange-soft); color: var(--orange-dark); font-family: var(--serif); }
.ans-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .25rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.ans-chip i { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 99px; background: var(--c); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
@media print { .vit-card, .scale5 { display: none; } .code-tile, .type-card, .ind-grid .card { break-inside: avoid; } }
.test-tile { display: flex; flex-direction: column; padding: 1.75rem; text-decoration: none; color: var(--ink); }
@media (min-width: 640px) { .test-tile { padding: 2.25rem; } }
.test-tile .ico { display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 1.8rem; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: all .5s; }
.test-tile:hover .ico { box-shadow: 0 0 0 1px rgba(244,182,111,.5), 0 0 50px -10px rgba(232,138,43,.6); }
.test-tile .ico svg { width: 5rem; height: 5rem; }
.test-tile h3 { margin-top: 1.75rem; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.02; }
.test-tile .sub { margin-top: .25rem; font-size: 15px; font-weight: 600; color: var(--orange-dark); }
.test-tile .desc { margin-top: 1rem; max-width: 52ch; font-size: 16px; line-height: 1.6; }
.test-tile .meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.test-tile .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 2rem; }
.progress { height: 6px; margin-top: .4rem; overflow: hidden; border-radius: 99px; background: var(--sage-mist); }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange-glow), var(--orange)); transition: width .5s; }
.know-list { list-style: none; display: grid; gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .know-list { grid-template-columns: repeat(3, 1fr); } }
.know-list li { padding: 1rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--sage-mist); transition: border-color .3s; }
.know-list li:hover { border-color: var(--orange); }
.know-list .icon { color: var(--orange-dark); }
.know-list b { display: block; margin-top: .5rem; line-height: 1.3; }
.know-list span { display: block; margin-top: .25rem; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ---------- Testseiten ---------- */
.test-main { position: relative; overflow: hidden; min-height: 80svh; background: linear-gradient(180deg, var(--linen), var(--paper)); padding: 2.5rem 0 6rem; }
.test-wrap { position: relative; z-index: 2; width: 100%; max-width: 880px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .test-wrap { padding-inline: 24px; } }
.test-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--orange-dark); }
.space > * + * { margin-top: 1.75rem; }
.space-sm > * + * { margin-top: 1.25rem; }
.test-h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; }
.intro-text { max-width: 40rem; font-size: 18.5px; line-height: 1.7; }
.hint-text { max-width: 40rem; font-size: 15.5px; color: var(--muted); }
.hint-text p + p { margin-top: .5rem; }
.disclaimer { border-left: 2px solid rgba(232,138,43,.5); padding-left: 1rem; font-size: 14px; line-height: 1.6; color: var(--muted); }
.disclaimer a { color: var(--orange-dark); text-underline-offset: 4px; }
.legend { display: grid; gap: .6rem; }
@media (min-width: 640px) { .legend { grid-template-columns: repeat(3, 1fr); } }
.legend div { padding: 1rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); transition: transform .3s; }
.legend div:hover { transform: translateY(-2px); }
.legend b { display: flex; align-items: center; gap: .5rem; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.legend span { display: block; margin-top: .25rem; font-size: 14.5px; color: var(--muted); }
.test-bar { position: sticky; top: 72px; z-index: 30; margin-bottom: 1.5rem; }
.test-bar .glass { display: flex; flex-direction: column; gap: .75rem; padding: .75rem; border-radius: 1.4rem; background: rgba(255,253,249,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
@media (min-width: 640px) { .test-bar .glass { flex-direction: row; align-items: center; justify-content: space-between; } }
.test-bar .lbl { padding-left: .5rem; font-size: 14px; font-weight: 600; }
.seg { display: flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: var(--card); }
.seg button { padding: .5rem 1rem; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .3s; }
.seg button:hover { background: var(--sage-mist); color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--orange); color: #1C1208; box-shadow: 0 8px 20px -8px rgba(232,138,43,.9); }
.test-bar .progress { margin-inline: .75rem; margin-top: .5rem; }
.swipe-q { font-family: var(--serif); font-size: 22px; color: var(--muted); }
.deck { position: relative; padding-bottom: 1.25rem; }
.deck::before, .deck::after { content: ""; position: absolute; border-radius: 2rem; border: 1px solid var(--line); }
.deck::before { left: 1.5rem; right: 1.5rem; bottom: 0; top: 1.5rem; background: var(--sage-light); }
.deck::after { left: .75rem; right: .75rem; bottom: .6rem; top: .75rem; background: var(--linen); }
.swipe { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(17rem, 44vh, 22rem); overflow: hidden; border-radius: 2rem; border: 1px solid var(--line); background: linear-gradient(160deg, #F2EBE1, #E4D5BF); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); cursor: grab; touch-action: none; user-select: none; transition: transform .25s var(--ease); }
.swipe.drag { transition: none; cursor: grabbing; }
.swipe.fly { transition: transform .28s ease-in, opacity .28s ease-in; opacity: 0; }
.swipe .tint { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.swipe .stamp { position: absolute; top: 1.25rem; padding: .25rem .75rem; border-radius: .75rem; border: 3px solid; background: rgba(255,253,249,.95); font-family: var(--serif); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; opacity: 0; pointer-events: none; }
.swipe .stamp.s0 { left: 1.25rem; transform: rotate(-6deg); }
.swipe .stamp.s1 { left: 50%; transform: translateX(-50%); }
.swipe .stamp.s2 { right: 1.25rem; transform: rotate(6deg); }
.swipe .body { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: .75rem; padding: 4rem 1.5rem 1.25rem; color: #1C1208; }
@media (min-width: 640px) { .swipe .body { padding-inline: 2.25rem; } }
.swipe h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; line-height: 1.12; }
.swipe .sub { max-width: 34rem; font-size: 17px; color: var(--muted); }
.swipe .meta { position: relative; display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 1.5rem; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.answer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.answer-row button { display: flex; min-height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .5rem; border-radius: 1rem; border: 2px solid; background: var(--card); font-weight: 600; line-height: 1.2; text-align: center; transition: transform .3s; }
.answer-row button:hover { transform: translateY(-4px) scale(1.03); }
.answer-row .icon { width: 22px; height: 22px; }
.answer-row .lb { font-size: 14.5px; }
.answer-row .ct { font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.undo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: 13.5px; color: var(--muted); }
.kbd-hint { display: none; }
@media (min-width: 640px) { .kbd-hint { display: inline; } }
.sig-bar { position: sticky; top: 150px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-radius: 1rem; background: rgba(255,253,249,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.sig-bar p { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.sig-bar .icon { color: var(--orange-dark); fill: var(--orange); }
.mini3 { display: grid; gap: .6rem; }
@media (min-width: 640px) { .mini3 { grid-template-columns: repeat(3, 1fr); } }
.mini3 div { padding: 1rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--muted); }
.mini3 b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.rank { list-style: none; display: grid; gap: .5rem; }
.rank li { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: center; gap: .75rem; padding: .9rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); transition: all .3s; }
.rank li.sel { border-color: rgba(232,138,43,.6); background: rgba(251,227,201,.55); box-shadow: inset 4px 0 0 var(--orange); }
.rank .pos { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank .nm { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.rank .vt { margin-left: .4rem; font-size: 12.5px; color: var(--muted); }
.rank .ds { font-size: 14px; color: var(--muted); }
.rank .right { display: flex; align-items: center; gap: .75rem; }
.pips { display: none; gap: 3px; }
@media (min-width: 640px) { .pips { display: flex; } }
.pips i { width: .5rem; height: 1rem; border-radius: 2px; background: var(--sage-mist); }
.pips i.on { background: var(--orange-glow); }
.star-btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.star-btn:hover { transform: scale(1.1); border-color: var(--orange); color: var(--orange-dark); }
.star-btn[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: #1C1208; box-shadow: 0 0 20px -4px rgba(232,138,43,.8); }
.star-btn[aria-pressed="true"] .icon { fill: #fff; }
.star-btn:disabled { opacity: .3; pointer-events: none; }
.sig-cards { display: grid; gap: .75rem; }
@media (min-width: 640px) { .sig-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sig-cards { grid-template-columns: repeat(3, 1fr); } }
.sig-cards .card { padding: 1.25rem; }
.sig-cards .card.ember { background: linear-gradient(150deg, #F4B66F 0%, #E88A2B 45%, #C86A1E 100%); color: #20140A; border-color: rgba(255,255,255,.3); }
.sig-cards .k { display: flex; align-items: center; gap: .35rem; font-size: 12.5px; font-weight: 600; color: var(--orange-dark); }
.sig-cards .ember .k { color: inherit; }
.sig-cards h3 { margin-top: .5rem; font-size: 26px; line-height: 1.15; }
.sig-cards .ember h3 { color: #20140A; }
.sig-cards .v { font-size: 13px; color: var(--muted); }
.sig-cards .ember .v { color: inherit; opacity: .75; }
.sig-cards .d { margin-top: .5rem; font-size: 14.5px; }
.bars { list-style: none; display: grid; gap: .35rem; margin-top: 1rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 11.5rem) 1fr 2.8rem; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: .75rem; transition: background-color .3s; }
.bars li:hover { background: var(--sage-mist); }
.bars li.sel { background: rgba(251,227,201,.6); }
.bars .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bars .vt { display: block; font-size: 12px; color: var(--muted); }
.bars .track { height: .75rem; overflow: hidden; border-radius: 99px; background: var(--sage-mist); display: flex; }
.bars .track i { display: block; height: 100%; transition: width .7s; }
.bars .val { text-align: right; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.code-big { font-family: var(--serif); font-size: clamp(3.4rem, 12vw, 6rem); font-weight: 600; line-height: 1; letter-spacing: .12em; color: var(--orange-dark); }
.areas { display: grid; gap: .5rem; }
.areas details { border-radius: 1rem; border: 1px solid var(--line); background: var(--card); }
.areas details.top { border-color: rgba(232,138,43,.5); }
.areas summary { list-style: none; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .5rem .75rem; padding: 1rem; }
.areas .key { grid-row: span 2; text-align: center; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--muted); }
.areas .top .key { color: var(--orange-dark); }
.areas .pts { display: flex; align-items: center; gap: .5rem; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.areas details[open] .chev { transform: rotate(180deg); }
.areas .track { grid-column: span 2; height: .75rem; display: flex; overflow: hidden; border-radius: 99px; background: var(--sage-mist); }
.areas .track i { display: block; height: 100%; }
.areas ul { list-style: none; display: grid; gap: .35rem; padding: .75rem 1rem 1rem; border-top: 1px dashed var(--line); }
.areas ul li { display: flex; align-items: baseline; gap: .5rem; font-size: 15px; }
.areas ul li .mk { width: 1.25rem; flex-shrink: 0; }
.stack-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .5rem; margin-bottom: .75rem; border-bottom: 2px solid; }
.stack-head h2 { font-size: 24px; }
.stack-head .ct { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.stack-list { list-style: none; display: grid; gap: .5rem; }
.stack-list > li { padding: .9rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.stack-row .txt { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: .6rem; font-size: 15.5px; }
.mv { display: flex; gap: .25rem; }
.mv button { display: grid; place-items: center; width: 2.5rem; height: 2.25rem; border-radius: .75rem; border: 1px solid var(--line); transition: transform .2s; }
.mv button:hover { transform: scale(1.1); }
.why { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.why p { margin-bottom: .5rem; font-size: 13px; font-weight: 600; color: var(--muted); }
.why input { width: 100%; margin-top: .6rem; padding: .5rem .75rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--card); font-size: 15px; outline: none; }
.why input:focus { border-color: var(--orange); }
.legend-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .5rem; font-size: 13px; color: var(--muted); }
.legend-row span { display: flex; align-items: center; gap: .4rem; }
.legend-row i { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.confirm-row .warn { font-size: 15px; color: var(--danger); }
.btn-danger { background: #C2566C; color: #fff; }
.print-only { display: none; }
.locked-card { max-width: 32rem; margin: 0 auto; padding: 2rem; text-align: center; }
.locked-card .lockbox { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 1rem; background: var(--orange); color: #1C1208; }

/* ---------- Bewegung beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .draw path, .js .draw circle, .js .draw line, .js .draw rect { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 3.2s cubic-bezier(.4,.1,.2,1); }
.js .draw.is-in path, .js .draw.is-in circle, .js .draw.is-in line, .js .draw.is-in rect { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw path, .js .draw circle, .js .draw line, .js .draw rect { stroke-dashoffset: 0; }
  .am-moving { display: none; }
}

/* ---------- Druck: Testergebnis als PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .site-header, .side-tab, .site-footer, .test-top, .test-bar, .no-print, .btn, .confirm-row, .wave, .blobs { display: none !important; }
  .test-main { background: #fff; padding: 0; min-height: 0; }
  .grain::after { display: none; }
  .print-only { display: block; }
  .print-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 8pt; margin-bottom: 14pt; border-bottom: 2pt solid var(--orange); }
  .print-head b { font-family: var(--serif); font-size: 20pt; color: var(--forest); }
  .print-head span { font-size: 9pt; color: var(--muted); }
  .card, .areas details, .rank li { box-shadow: none !important; transform: none !important; break-inside: avoid; }
  .areas details > ul { display: grid !important; }
  .print-foot { margin-top: 18pt; padding-top: 6pt; border-top: 1px solid var(--line); font-size: 8pt; color: var(--muted); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
