/* Apotheke am Kirchplatz – Stylesheet
   Layout: weißer, klinisch klarer Grund · Eukalyptus-Grün als einzige Markenfarbe ·
   Rot ausschließlich für Angebotspreise · große, gut lesbare Schrift für ältere Kundschaft */

@font-face { font-family: "Lexend"; src: url("fonts/lexend-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/lexend-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f3f7f6;
  --mint: #e2f0eb;
  --line: #d8e3e0;
  --ink: #12211e;
  --ink-2: #435350;
  --ink-3: #5f6f6c;
  --euka: #1d6a5b;
  --euka-dark: #134a3f;
  --euka-soft: #cfe6de;
  --preis: #b3122a;
  --open: #17784a;
  --open-soft: #e1f3e9;
  --nd: #a35400;
  --nd-soft: #fdf0de;
  --closed: #a61b2b;
  --closed-soft: #fbe7e9;
  --koala: #9aa6ae;
  --koala-dark: #7c8891;
  --koala-light: #dfe5e9;

  --display: "Lexend", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", Tahoma, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 33, 30, .06), 0 8px 24px rgba(18, 33, 30, .06);
  --wrap: 1180px;
  color-scheme: light;
}

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html[data-size="l"] { font-size: 125%; }
html[data-size="xl"] { font-size: 140%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .2s !important; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--euka); text-underline-offset: .18em; }
a:hover { color: var(--euka-dark); }
:focus-visible { outline: 3px solid var(--euka); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--euka); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section.tinted { background: var(--surface); }
.eyebrow { font-family: var(--display); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--euka); font-weight: 600; }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 46rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; }
.section-head.split > div { display: grid; gap: .6rem; max-width: 46rem; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .7rem 1.35rem; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--euka); color: #fff; }
.btn-primary:hover { background: var(--euka-dark); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--euka-dark); border-color: var(--euka-soft); }
.btn-ghost:hover { border-color: var(--euka); color: var(--euka-dark); }
.btn:active { transform: scale(.97); transition-duration: 100ms; }

/* Top-Leiste */
.topbar { background: var(--euka-dark); color: #e9f4f0; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .meta { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; }
.topbar .meta span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 16px; height: 16px; opacity: .85; }
.textsize { display: flex; align-items: center; gap: .3rem; }
.textsize button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; min-width: 36px; min-height: 32px; cursor: pointer; font-family: var(--display); font-weight: 600; line-height: 1; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--euka-dark); border-color: #fff; }
.textsize button:nth-of-type(1) { font-size: .8rem; }
.textsize button:nth-of-type(2) { font-size: .95rem; }
.textsize button:nth-of-type(3) { font-size: 1.1rem; }

/* Kopfbereich */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { width: 48px; height: auto; flex: none; display: block; }
.brand strong { white-space: nowrap; display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.brand small { display: block; font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.nav a { white-space: nowrap; display: block; padding: .55rem .62rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: .95rem; }
.nav a:hover { background: var(--mint); color: var(--euka-dark); }
.nav a[aria-current="page"] { background: var(--euka); color: #fff; }
.header .status-pill { display: none; }
.menu-btn { display: none; background: var(--mint); border: 0; border-radius: 999px; min-height: 48px; padding: 0 1rem; font-family: var(--display); font-size: .95rem; color: var(--euka-dark); cursor: pointer; align-items: center; gap: .5rem; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1260px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(18,33,30,.14); display: block; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transform-origin: top right; transition: opacity .2s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s; }
  .nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s; }
  .nav ul { flex-direction: column; padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav a { padding: .9rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
}

/* Statusanzeige */
.status-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem .35rem .65rem; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: .9rem; background: var(--surface); color: var(--ink); white-space: nowrap; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--koala); position: relative; flex: none; }
[data-state="open"] .dot, .dot[data-state="open"] { background: var(--open); }
[data-state="soon"] .dot { background: var(--nd); }
[data-state="nd"] .dot { background: var(--nd); }
[data-state="closed"] .dot { background: var(--closed); }
[data-state="open"] .dot::after, [data-state="nd"] .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.4s ease-out infinite; }
[data-state="open"] .dot::after { color: var(--open); }
[data-state="nd"] .dot::after { color: var(--nd); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.topbar .status-pill { background: rgba(255,255,255,.12); color: #fff; padding-block: .2rem; font-size: .85rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); font-weight: 600; letter-spacing: -.028em; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--euka); }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero-copy > p { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-2); font-size: .95rem; margin-top: .5rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 20px; height: 20px; color: var(--euka); }
.hero-side { position: relative; display: grid; justify-items: center; min-width: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-side { order: -1; } }

/* Live-Status-Karte */
.status-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.4rem 1.5rem; width: 100%; max-width: 420px; display: grid; gap: .9rem; position: relative; z-index: 2; margin-top: -24px; }
.status-card .head { display: flex; align-items: center; gap: .7rem; }
.status-card .head .dot { width: 16px; height: 16px; }
.status-card .state { font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
[data-state="open"] .state { color: var(--open); }
[data-state="soon"] .state, [data-state="nd"] .state { color: var(--nd); }
[data-state="closed"] .state { color: var(--closed); }
.status-card .detail { color: var(--ink-2); font-size: 1rem; }
.status-card .note { font-size: .92rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--nd-soft); color: #5c3200; display: flex; gap: .55rem; align-items: flex-start; }
.status-card .note svg { width: 20px; height: 20px; flex: none; margin-top: .1rem; color: var(--nd); }
.status-card .today { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .95rem; color: var(--ink-2); }
.status-card .today b { color: var(--ink); font-variant-numeric: tabular-nums; }
.status-card .clock { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: .85rem; }

/* Koala */
.koala-stage { width: min(300px, 70vw); aspect-ratio: 300 / 260; max-width: 100%; position: relative; }
.koala-stage svg { width: 100%; height: 100%; overflow: visible; }
.koala .eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.1); } }
.koala .ear-l { transform-box: fill-box; transform-origin: 80% 80%; animation: ear 7s ease-in-out infinite; }
.koala .ear-r { transform-box: fill-box; transform-origin: 20% 80%; animation: ear 7s ease-in-out infinite reverse; }
@keyframes ear { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-7deg); } 90% { transform: rotate(4deg); } }
.koala .arm-wave { transform-box: fill-box; transform-origin: 15% 85%; animation: wave 1.1s ease-in-out 3 .6s; }
.koala-stage:hover .arm-wave { animation: wave 1.1s ease-in-out 2; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(10deg); } }
.koala .leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.koala .head { transform-box: fill-box; transform-origin: 50% 90%; animation: tilt 9s ease-in-out infinite; }
@keyframes tilt { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-3deg); } 88% { transform: rotate(2deg); } }
.speech { position: absolute; top: 2%; right: -2%; background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: .45rem .8rem; font-family: var(--display); font-size: .88rem; box-shadow: var(--shadow); color: var(--euka-dark); animation: pop .5s cubic-bezier(.3,1.6,.6,1) 1.2s both; }
@keyframes pop { from { transform: scale(.6) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .speech { right: 0; } }

/* Öffnungszeiten */
.hours-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.panel h3 { display: flex; align-items: center; gap: .6rem; }
.panel h3 svg { width: 26px; height: 26px; color: var(--euka); flex: none; }
.week { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.week th, .week td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.week td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.week th { font-weight: 400; }
.week tr.is-today { background: var(--mint); }
.week tr.is-today th { font-weight: 700; }
.week tr.is-today th::after { content: "heute"; margin-left: .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; background: var(--euka); color: #fff; padding: .15rem .45rem; border-radius: 4px; vertical-align: middle; }
.week td.closed { color: var(--ink-3); }
.week tr:last-child th, .week tr:last-child td { border-bottom: 0; }
.nd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.nd-list li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--nd-soft); }
.nd-list .date { font-family: var(--display); font-weight: 600; color: #5c3200; text-align: center; line-height: 1.1; min-width: 3.4rem; grid-row: span 2; }
.nd-list .date b { display: block; font-size: 1.5rem; }
.nd-list .date small { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.nd-list .t { font-weight: 700; }
.nd-list .h { color: var(--ink-2); font-size: .9rem; }
.nd-list li.special { background: var(--surface); }
.nd-list li.special .date { color: var(--euka-dark); }
.tag-ex { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; background: var(--koala-light); color: var(--ink-2); border-radius: 4px; padding: .05rem .35rem; margin-left: .4rem; vertical-align: middle; font-weight: 400; }
.help-box { display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.help-box .big { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.muted { color: var(--ink-3); font-size: .9rem; }

/* Angebote */
.offer-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; color: var(--ink-2); }
.chip svg { width: 18px; height: 18px; color: var(--euka); }
.example-note { background: var(--koala-light); color: var(--ink-2); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .9rem; margin-bottom: 1.25rem; display: flex; gap: .6rem; align-items: center; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .offers { gap: .7rem; } }
.offer { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1); min-width: 0; }
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.offer .pic { aspect-ratio: 4 / 3; background: var(--bg); position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); max-width: 100%; }
.offer .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .8rem; }
.offer .pic svg { width: 58%; height: 78%; }
.offer .badge { position: absolute; top: .6rem; left: .6rem; background: var(--preis); color: #fff; font-family: var(--display); font-weight: 600; font-size: .95rem; padding: .25rem .6rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.offer .body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .25rem; align-content: start; }
.offer h3 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.offer .menge { color: var(--ink-3); font-size: .9rem; }
.offer .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin-top: .45rem; }
.offer .preis { font-family: var(--display); font-size: 1.75rem; font-weight: 600; color: var(--preis); font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.offer .uvp { color: var(--ink-3); font-size: .9rem; }
.offer .uvp s { text-decoration-thickness: 1.5px; }
.offer .gp { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 520px) { .offer .body { padding: .8rem .8rem .9rem; } .offer h3 { font-size: .98rem; } .offer .preis { font-size: 1.45rem; } .offer .badge { font-size: .82rem; } }
.footnotes { margin-top: 1.5rem; display: grid; gap: .35rem; font-size: .85rem; color: var(--ink-2); max-width: 60rem; }
.pflicht { font-weight: 700; color: var(--ink); }

/* Themen des Monats */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .topics { grid-template-columns: 1fr; } }
.topic { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .8rem; align-content: start; grid-template-rows: auto auto auto 1fr auto; min-width: 0; }
.topic .kind { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.topic .kind svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; }
.topic[data-art="saison"] .kind { color: #1d5f86; } .topic[data-art="saison"] .kind svg { background: #e2eff8; }
.topic[data-art="tipp"] .kind { color: var(--euka); } .topic[data-art="tipp"] .kind svg { background: var(--mint); }
.topic[data-art="trend"] .kind { color: #7a3f8f; } .topic[data-art="trend"] .kind svg { background: #f2e8f6; }
.topic img { border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.topic p { color: var(--ink-2); }
.topic button { justify-self: start; }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(18, 33, 30, .55); }
dialog .dlg { padding: 2rem; display: grid; gap: 1rem; }
dialog .dlg p { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; }
dialog .close { position: sticky; top: 0; float: right; margin: .8rem .8rem 0 0; background: var(--surface); border: 0; border-radius: 999px; min-height: 44px; padding: 0 1rem; font-family: var(--display); cursor: pointer; font-size: .95rem; }
dialog img { border-radius: var(--radius-sm); }

/* E-Rezept & App */
.rx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .rx-grid { grid-template-columns: 1fr; } }
.rx { border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.rx .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--mint); display: grid; place-items: center; color: var(--euka); }
.rx .ic svg { width: 30px; height: 30px; }
.rx p { color: var(--ink-2); }
.rx.app { background: var(--euka-dark); color: #e6f2ee; border-color: var(--euka-dark); }
.rx.app h3 { color: #fff; }
.rx.app p { color: #cfe3dc; }
.rx.app .ic { background: rgba(255,255,255,.12); color: #fff; }
.store-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.store-links a { background: #fff; color: var(--euka-dark); border-radius: 999px; padding: .55rem 1rem; text-decoration: none; font-family: var(--display); font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; }
.store-links a:hover { background: var(--mint); }
.store-links svg { width: 18px; height: 18px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service { padding: 1.4rem 0 0; border-top: 2px solid var(--euka-soft); display: grid; gap: .55rem; align-content: start; min-width: 0; }
.service h3 { display: flex; gap: .6rem; align-items: center; }
.service h3 svg { width: 24px; height: 24px; color: var(--euka); flex: none; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; color: var(--ink-2); }
.service li { padding-left: 1.2rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--euka-soft); border: 1.5px solid var(--euka); }
.service p { color: var(--ink-2); }
.languages { margin-top: 2.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center; }
.languages ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.languages li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .95rem; }
.languages li span { color: var(--ink-3); font-size: .82rem; margin-left: .35rem; }
@media (max-width: 760px) { .languages { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.team-card { background: var(--euka-dark); color: #e6f2ee; border-radius: 20px; padding: 2rem; display: grid; gap: 1rem; position: relative; overflow: hidden; min-width: 0; }
.team-card h3 { color: #fff; font-size: 1.5rem; }
.team-card .role { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #a9d2c5; font-family: var(--display); }
.team-card svg.leafbg { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: .14; }
.team-text { display: grid; gap: 1rem; color: var(--ink-2); font-size: 1.05rem; min-width: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
form.kform { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: grid; gap: 1.1rem; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .field .lbl { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid #b9c8c4; border-radius: 10px; padding: .75rem .9rem; min-height: 52px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--euka-soft); border-color: var(--euka); }
.field [aria-invalid="true"] { border-color: var(--closed); }
.err { color: var(--closed); font-size: .88rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--euka); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: .88rem; color: var(--ink-3); background: var(--surface); padding: .7rem .9rem; border-radius: var(--radius-sm); }
.form-msg { border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: center; }
.form-msg.ok { background: var(--open-soft); color: #0f4d2f; }
.form-msg.bad { background: var(--closed-soft); color: #6d1019; }
.form-msg svg { width: 56px; height: 56px; flex: none; }
.form-msg.ok svg { animation: hop .5s cubic-bezier(.22,1,.36,1); }
@keyframes hop { 0% { transform: translateY(10px) scale(.8); } 100% { transform: none; } }
.contact-side { display: grid; gap: 1rem; min-width: 0; }
.cinfo { display: grid; gap: 1rem; }
.cinfo div { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; }
.cinfo svg { width: 24px; height: 24px; color: var(--euka); margin-top: .15rem; }
.cinfo b { display: block; font-family: var(--display); font-weight: 500; font-size: .85rem; color: var(--ink-3); letter-spacing: .02em; }
.cinfo a, .cinfo span { color: var(--ink); text-decoration: none; font-size: 1.05rem; overflow-wrap: anywhere; }
.cinfo a.tel { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--euka-dark); }
.map-link { display: grid; gap: .3rem; background: var(--mint); border-radius: var(--radius); padding: 1.2rem; text-decoration: none; color: var(--euka-dark); }
.map-link strong { font-family: var(--display); font-weight: 600; }

/* Footer */
.footer { background: #0f1f1c; color: #c7d6d2; padding-block: 3rem 2rem; font-size: .95rem; }
.footer .wrap { display: grid; gap: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4.mt { margin-top: 1.2rem; }
.footer p { margin: 0; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer a { color: #e6f2ee; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer .brand { color: #fff; margin: 0 0 .8rem; }
.footer .brand-logo { width: 42px; }
.footer .brand small { color: #a9bdb8; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; color: #8fa5a0; font-size: .85rem; }

/* Nach-oben-Knopf */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--euka); color: #fff; box-shadow: 0 6px 18px rgba(19, 74, 63, .28); cursor: pointer; display: grid; place-items: center; z-index: 30; padding: 0; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--euka-dark); }
.to-top svg { width: 26px; height: 26px; transition: transform .2s; }
.to-top:hover svg { transform: translateY(-2px); }

/* Rechtsseiten */
.legal-page { padding-block: 3rem 4rem; }
.legal-page .wrap { max-width: 820px; display: grid; gap: 1.3rem; }
.legal-page h1 { font-size: 2.2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 1rem; }
.legal-page p, .legal-page li { color: var(--ink-2); }

@media (max-width: 600px) {
  .topbar .meta .tb-addr { display: none; }
  .topbar .wrap { gap: .4rem 1rem; }
  .brand small { display: none; }
  .brand strong { font-size: 1.05rem; white-space: normal; }
  .brand { min-width: 0; }
  .menu-btn { flex: none; }
  .brand-logo { width: 40px; }
  .header .wrap { min-height: 66px; gap: .75rem; }
  .week th, .week td { padding: .55rem .45rem; font-size: .95rem; }
  .panel { padding: 1.1rem; }
}

/* ===== Mehrseitige Struktur ===== */
.page-head { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(1.8rem, 1.2rem + 2.5vw, 3.2rem); display: grid; gap: .7rem; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -.026em; line-height: 1.08; }
.page-head p { color: var(--ink-2); font-size: 1.12rem; max-width: 44rem; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--ink-3); margin-bottom: .4rem; }
.crumbs a { color: var(--ink-3); }
.section.first { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.status-pill { text-decoration: none; }
.topbar a.status-pill:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.status-more { margin-top: .8rem; font-family: var(--display); font-size: .95rem; text-decoration: none; }

/* Schnellzugriff */
.quick { border-bottom: 1px solid var(--line); background: var(--bg); }
.tiles { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles li { min-width: 0; }
.tiles a { display: grid; grid-template-columns: 1fr; gap: .2rem; align-content: start; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .2s, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1); }
.tiles a:hover { border-color: var(--euka); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tiles .ic { margin-bottom: .55rem; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--euka); display: grid; place-items: center; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.tiles a:hover .ic { transform: rotate(-8deg) scale(1.06); }
.tiles .ic svg { width: 26px; height: 26px; }
.tiles b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; }
.tiles small { color: var(--ink-3); font-size: .85rem; line-height: 1.35; }

/* Öffnungszeiten-Seite */
.status-wide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 2rem; align-items: center; margin-bottom: 2rem; background: var(--surface); border-radius: 20px; padding: 1.5rem; }
.status-wide .status-card { margin-top: 0; max-width: none; }
.koala-stage.small { width: 180px; }
.koala-stage.small .speech { font-size: .78rem; right: -20%; }
@media (max-width: 700px) { .status-wide { grid-template-columns: 1fr; justify-items: center; } .koala-stage.small { width: 150px; } .koala-stage.small .speech { right: -30%; } }

/* Partnerapotheke */
.partner-band { background: var(--euka-dark); color: #dcece6; }
.partner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.partner-copy { display: grid; gap: .6rem; max-width: 44rem; min-width: 0; }
.partner-band h2 { color: #fff; }
.partner-band .eyebrow { color: #a9d2c5; }
.partner-band .btn-primary { background: #fff; color: var(--euka-dark); }
.partner-band .btn-primary:hover { background: var(--mint); color: var(--euka-dark); }

/* Impfungen */
.impf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem 3rem; align-items: center; background: var(--bg); border: 2px solid var(--euka-soft); border-radius: 24px; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.impf-copy { display: grid; gap: 1rem; min-width: 0; }
.impf-copy > p { color: var(--ink-2); font-size: 1.08rem; }
.impf-art svg { width: 100%; max-width: 260px; margin: 0 auto; display: block; }
.impf-art svg g:last-of-type { transform-box: fill-box; }
@media (max-width: 800px) { .impf { grid-template-columns: 1fr; } .impf-art { order: -1; } .impf-art svg { max-width: 170px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checks li { padding-left: 2rem; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d6a5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq summary { cursor: pointer; padding: 1.05rem 1.2rem; font-family: var(--display); font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--euka); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--ink-2); max-width: 65ch; }

/* Gesundheitsartikel */
.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .toc { grid-template-columns: 1fr; } }
.toc a { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.3; }
.toc a:hover { border-color: var(--euka); }
.toc svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; flex: none; }
.toc small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.toc a[data-art="saison"] svg, .article[data-art="saison"] .kind svg { background: #e2eff8; color: #1d5f86; }
.toc a[data-art="tipp"] svg, .article[data-art="tipp"] .kind svg { background: var(--mint); color: var(--euka); }
.toc a[data-art="trend"] svg, .article[data-art="trend"] .kind svg { background: #f2e8f6; color: #7a3f8f; }
.articles { display: grid; gap: 1rem; }
.article { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1rem 3rem; padding-block: 2.2rem; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.article-side { display: grid; gap: 1rem; align-content: start; }
.article-side img { border-radius: var(--radius-sm); }
.article .kind { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-2); }
.article .kind svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; }
.article-body { display: grid; gap: 1rem; max-width: 66ch; min-width: 0; }
.article-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.article-body .teaser { font-size: 1.15rem; color: var(--ink); }
.article-body p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 760px) { .article { grid-template-columns: 1fr; } }
.disclaimer { margin-top: 1rem; }
.topic .btn { justify-self: start; }
.legal-page h1 { font-size: 2.2rem; }

/* Onlineshop */
.shop-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; background: var(--mint); border-radius: 24px; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); }
.shop-cta-copy { display: grid; gap: .7rem; max-width: 40rem; min-width: 0; }
.shop-cta-copy .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--bg); color: var(--euka); display: grid; place-items: center; }
.shop-cta-copy .ic svg { width: 32px; height: 32px; }
.shop-cta-copy p { color: var(--ink-2); font-size: 1.08rem; }
.btn-lg { min-height: 62px; padding: .9rem 1.8rem; font-size: 1.15rem; }
.shop-cta .btn-lg:hover svg:first-child { animation: hop .5s; }
.shop-note { margin-top: 1rem; max-width: 60rem; }
.shop-embed { margin-top: 2rem; }
.shop-embed iframe { width: 100%; height: min(1100px, 85vh); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: block; margin-bottom: .6rem; }
.shop-consent { display: flex; gap: 1.5rem; align-items: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; }
.shop-consent > svg { width: 72px; height: 72px; flex: none; }
.shop-consent > div { display: grid; gap: .6rem; justify-items: start; min-width: 0; }
.shop-consent p { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 600px) { .shop-consent { flex-direction: column; align-items: flex-start; } }
.shop-rx { margin-top: 1.5rem; font-size: 1.05rem; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; min-width: 0; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; background: var(--euka); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.steps li > div { display: grid; gap: .4rem; min-width: 0; }
.steps p { color: var(--ink-2); }
.pickup-note { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.25rem; background: var(--nd-soft); color: #5c3200; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: 1.02rem; }
.pickup-note svg { width: 22px; height: 22px; flex: none; margin-top: .15rem; color: var(--nd); }
.shop-app { margin-top: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; }
.shop-app .store-links { margin: 0; }
@media (max-width: 860px) { .shop-app { grid-template-columns: 1fr; } }
.shop-preview-note { margin-top: .4rem; }
.section-head.sub { margin: 2.5rem 0 1.25rem; }
.section-head.sub h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.rx > a { font-family: var(--display); font-weight: 500; text-decoration: none; margin-top: .2rem; }

/* Archiv der Monatsthemen */
.archive { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.archive h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.archive-list { display: grid; gap: .7rem; }
.archive-month { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.archive-month > summary { cursor: pointer; padding: 1rem 1.2rem; display: grid; gap: .2rem; list-style: none; }
.archive-month > summary::-webkit-details-marker { display: none; }
.archive-month > summary span { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.archive-month > summary span::after { content: " +"; color: var(--euka); }
.archive-month[open] > summary span::after { content: " –"; }
.archive-month > summary small { color: var(--ink-3); font-size: .9rem; }
.archive-item { border-top: 1px solid var(--line); margin: 0 1.2rem; }
.archive-item:last-child { margin-bottom: .6rem; }
.archive-item > summary { cursor: pointer; padding: .8rem 0; font-weight: 700; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.archive-item .kind { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.archive-item .kind svg { width: 22px; height: 22px; }
.archive-item .article-body { padding-bottom: 1rem; }
.archive-item img { border-radius: var(--radius-sm); max-width: 480px; width: 100%; }
.topics-empty { grid-column: 1 / -1; padding: 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Rechenaufgabe */
.captcha { background: var(--mint); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.captcha label { font-size: 1.05rem; }
.captcha .js-cap-q { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--euka-dark); white-space: nowrap; }
.cap-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cap-row input { width: 7.5rem; flex: none; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }
.cap-hint { font-size: .88rem; color: var(--ink-2); }

/* Laufband Sonderrabatte */
.js-rabatte:empty { display: none; }
.js-rabatte { margin-bottom: 1.5rem; display: grid; gap: .45rem; }
.ticker { display: flex; align-items: stretch; background: var(--preis); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(179, 18, 42, .18); min-height: 64px; }
.tk-label { flex: none; display: flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; background: #8f0d21; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.15; margin: 0; }
.tk-label svg { width: 24px; height: 24px; flex: none; animation: tk-wiggle 3.5s ease-in-out infinite; }
@keyframes tk-wiggle { 0%, 85%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 95% { transform: rotate(10deg); } }
.tk-label small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }
.tk-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; width: max-content; animation: tk-run var(--tk-dur, 40s) linear infinite; }
.tk-track ul, .tk-static { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track, .ticker.paused .tk-track { animation-play-state: paused; }
@keyframes tk-run { to { transform: translateX(-50%); } }
.tk-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 1.6rem; white-space: nowrap; font-size: 1.05rem; position: relative; }
.tk-item::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: rgba(255,255,255,.55); transform: rotate(45deg); border-radius: 1px; }
.tk-rabatt { font-family: var(--display); font-weight: 700; font-size: 1.3rem; background: #fff; color: var(--preis); border-radius: 999px; padding: .1rem .65rem; font-variant-numeric: tabular-nums; }
.tk-text b { font-weight: 700; }
.tk-pause { flex: none; width: 52px; border: 0; border-left: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.tk-pause:hover { background: rgba(0,0,0,.12); }
.tk-pause:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.tk-pause span { width: 14px; height: 16px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.ticker.paused .tk-pause span { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.tk-ex { font-size: .85rem; color: var(--ink-2); background: var(--koala-light); border-radius: var(--radius-sm); padding: .4rem .7rem; }
.tk-foot { font-size: .8rem; color: var(--ink-3); }
@media (max-width: 600px) {
  .ticker { flex-wrap: wrap; }
  .tk-label { flex: 1 0 100%; padding: .45rem .9rem; }
  .tk-label small { display: inline; margin-left: .35rem; }
  .tk-viewport { flex: 0 0 calc(100% - 48px); min-height: 56px; }
  .tk-item { font-size: .98rem; padding-inline: 1.2rem; }
  .tk-pause { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-track, .tk-pause { display: none; }
  .tk-static { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; flex-wrap: wrap; padding: .3rem .4rem; }
  .tk-viewport { -webkit-mask-image: none; mask-image: none; }
  .tk-item { white-space: normal; }
}

/* ===== Feinschliff nach „Apple Design“ ===== */
/* Typografie: Laufweite abhängig von der Größe – große Überschriften enger, Fließtext neutral */
h1, h2, h3, h4 { font-optical-sizing: auto; }
h2 { letter-spacing: -.018em; line-height: 1.14; }
h3 { letter-spacing: -.006em; line-height: 1.25; }
.offer .preis { letter-spacing: -.02em; }
.section-head p, .page-head p { letter-spacing: 0; }

/* Kopfbereich als durchscheinende Ebene – Inhalt läuft darunter, Kante erst beim Scrollen */
.header { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom-color: transparent; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.header.scrolled { border-bottom-color: rgba(216,227,224,.7); box-shadow: 0 6px 20px -12px rgba(18,33,30,.25); }
.header .nav a { transition: background-color .15s ease, color .15s ease; }

/* Sofortige Rückmeldung beim Antippen von Karten und Links */
.tiles a:active, .toc a:active, .offer:active { transform: scale(.985); transition-duration: 100ms; }
.nav a:active, .menu-btn:active, .textsize button:active, .tk-pause:active, .to-top:active { transform: scale(.95); transition: transform 100ms ease-out; }
.menu-btn { transition: background-color .15s ease, transform .15s ease; }
.menu-btn[aria-expanded="true"] { background: var(--euka); color: #fff; }

/* Sprechblase des Koalas entsteht an der Stelle, an der sie „gesprochen“ wird */
.speech { transform-origin: 0% 100%; animation-name: pop-soft; animation-timing-function: cubic-bezier(.22,1,.36,1); }
@keyframes pop-soft { from { transform: scale(.85) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Ausklappbare Fragen: Inhalt erscheint weich statt abrupt */
.faq details[open] p, .archive-month[open] > .archive-item, .archive-item[open] .article-body { animation: unfold .35s cubic-bezier(.22,1,.36,1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Formular: Prüfung direkt am Feld */
.field .err { margin: .1rem 0 0; display: flex; gap: .35rem; align-items: center; }
.field .err::before { content: "!"; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--closed); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.field [aria-invalid="false"]:not(:placeholder-shown):not(select) { border-color: #9ccbb8; }

/* Weniger Transparenz gewünscht: feste Flächen statt Milchglas */
@media (prefers-reduced-transparency: reduce) {
  .header, .nav { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
/* Mehr Kontrast gewünscht: kräftigere Ränder und Texte */
@media (prefers-contrast: more) {
  :root { --line: #8aa19b; --ink-2: #1f2f2c; --ink-3: #33433f; }
  .header { background: #fff; border-bottom-color: #8aa19b; }
  .btn-ghost { border-color: var(--euka); }
}
