/* Stern Apotheke Stendal – Entwurf v1 (WR Business Solution)
   Farben aus dem bestehenden Auftritt: Logo-Blau #004b97. Apotheken-Rot nur im Notdienst-„A“. */
:root {
  --blau: #004b97;
  --blau-tief: #0a2f5c;
  --blau-hell: #e8f0fa;
  --flaeche: #f3f6fa;
  --weiss: #ffffff;
  --tinte: #0f1b2d;
  --grau: #4a5668;
  --linie: #d9e2ee;
  --rot: #d6202c;
  --gold: #c9962b;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --rand: clamp(20px, 5vw, 56px);
  --nav: 76px;
  --leiste: 0px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html { scroll-padding-top: var(--nav); }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--tinte); background: var(--weiss); -webkit-font-smoothing: antialiased; padding-bottom: var(--leiste); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
h2 { font-size: clamp(34px, 4.6vw, 64px); max-width: 15ch; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blau); margin-bottom: 18px; }
.eyebrow--hell { color: #b9d3f2; }
.klein { font-size: 14px; color: var(--grau); margin-top: 14px; }

/* Platzhalter: bewusst sichtbar, damit nichts Unbelegtes durchrutscht */
.ph { background: rgba(201, 150, 43, .14); outline: 1px dashed var(--gold); outline-offset: 2px; padding: 0 4px; border-radius: 3px; font-style: normal; color: #6b4e12; }
.ph--hell { color: #ffe3a6; background: rgba(201, 150, 43, .22); }
.ph-foto { display: grid; place-content: center; text-align: center; background: repeating-linear-gradient(135deg, #f7f1e4 0 12px, #fbf8f1 12px 24px); outline: 1.5px dashed var(--gold); outline-offset: -10px; color: #6b4e12; }
.ph-foto span { font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.ph-foto small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--blau); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid var(--blau); transition: background .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease; }
.btn:hover { background: var(--blau-tief); border-color: var(--blau-tief); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 75, 151, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--rand { background: transparent; color: var(--blau); }
.btn--rand:hover { background: var(--blau-hell); color: var(--blau-tief); border-color: var(--blau); }
.btn--weiss { background: #fff; color: var(--blau-tief); border-color: #fff; }
.btn--weiss:hover { background: var(--blau-hell); border-color: var(--blau-hell); color: var(--blau-tief); }
.btn--klein { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link { display: inline-block; margin-top: 22px; color: var(--blau); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .3s ease; }
.link::after { content: " →"; }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); display: flex; align-items: center; transition: background .3s ease, box-shadow .3s ease; }
.nav.is-fest { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linie); }
.nav__in { display: flex; align-items: center; gap: 28px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blau); font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.marke small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin-top: 4px; }
.marke__stern { width: 30px; height: 30px; fill: var(--blau); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--tinte); padding: 10px 0; background: linear-gradient(var(--blau), var(--blau)) 0 85% / 0 1.5px no-repeat; transition: background-size .3s ease, color .2s; }
.nav__links a:hover { color: var(--blau); background-size: 100% 1.5px; }

/* Masken für Bild-Reveals */
.maske { overflow: hidden; border-radius: var(--radius); background: var(--flaeche); }
.maske__in, .maske__in picture { display: block; height: 100%; }
.maske__in { overflow: hidden; }
.maske img { width: 100%; height: 100%; object-fit: cover; }
/* Hover-Zoom erst, wenn GSAP fertig ist (CSS-Transition würde GSAP sonst bremsen) */
html:not(.bewegt) .maske img, .maske.is-bereit img { transition: transform .6s ease; }

/* 1 Einstieg */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 24px) 0 56px; background: linear-gradient(180deg, var(--weiss) 0%, var(--flaeche) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__titel { font-size: clamp(46px, 6.6vw, 98px); line-height: .98; letter-spacing: -.035em; max-width: 11ch; }
.hero__lead { max-width: 30em; font-size: clamp(17px, 1.45vw, 20px); margin-top: 26px; color: var(--grau); }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__bild { aspect-ratio: 4 / 4.4; max-height: 76vh; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 600; font-size: 15px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--linie); }
.status__punkt { width: 10px; height: 10px; border-radius: 50%; background: #9aa6b5; }
.status.is-offen .status__punkt { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31, 157, 85, .16); }
.status.is-zu .status__punkt { background: var(--rot); }

/* 2 Öffnungszeiten */
.zeiten { padding: clamp(96px, 14vh, 150px) 0; background: var(--weiss); }
.zeiten__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.tage { list-style: none; margin: 40px 0 0; padding: 0; max-width: 560px; }
.tage li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; font-size: 18px; }
.tage li span:last-of-type { font-variant-numeric: tabular-nums; color: var(--grau); }
.tage li.is-heute { font-weight: 700; color: var(--blau); }
.tage li.is-heute span:last-of-type { color: var(--blau); }
.tage li.is-heute span:first-child::after { content: "heute"; margin-left: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--blau-hell); padding: 3px 8px; border-radius: 99px; vertical-align: 2px; }
.linie { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linie); transform-origin: 0 50%; }
.notdienst { background: var(--blau-tief); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 4vw, 52px); }
.notdienst__marke { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 22px; }
.notdienst__a { display: grid; place-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--rot); color: #fff; font: 700 24px/1 Georgia, "Times New Roman", serif; letter-spacing: 0; }
.notdienst h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 14px; }
.notdienst p { color: #cfdcee; }
.notdienst .btn { margin-top: 28px; }
.notdienst__hinweis { margin-top: 18px; font-size: 14px; }

/* 3 Drei Wege */
.wege { padding: clamp(96px, 14vh, 150px) 0; background: var(--flaeche); }
.wege__kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(48px, 7vh, 72px); }
.wege__stand { display: none; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; color: var(--grau); font-weight: 600; }
.wege__nr { color: var(--blau); }
.wege__balken { width: 120px; height: 2px; background: var(--linie); display: inline-block; margin-left: 8px; }
.wege__balken span { display: block; height: 100%; background: var(--blau); transform-origin: 0 50%; transform: scaleX(.333); }
.schritte { display: grid; gap: clamp(64px, 9vw, 110px); }
.schritt { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.schritt__nr { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blau); margin-bottom: 16px; }
.schritt h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 18px; max-width: 14ch; }
.schritt__text > p:not(.schritt__nr):not(.klein) { color: var(--grau); max-width: 30em; font-size: 18px; }
.schritt__bild { aspect-ratio: 4 / 3; }
.touren { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; max-width: 30em; }
.touren li { background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--linie); }
.touren strong { display: block; color: var(--blau); }
.touren span { color: var(--grau); }
/* Gepinnt (nur große Bildschirme, per JS): alle drei liegen übereinander */
.wege.is-gepinnt { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav) + 12px) 0 36px; }
.wege.is-gepinnt .wege__in { width: 100%; }
.wege.is-gepinnt .wege__kopf { margin-bottom: 36px; }
.wege.is-gepinnt .wege__stand { display: inline-flex; }
.wege.is-gepinnt .schritte { gap: 0; }
.wege.is-gepinnt .schritt { grid-area: 1 / 1; }
.wege.is-gepinnt .schritt__bild { aspect-ratio: auto; height: min(56vh, 520px); }

/* 4 Beratung */
.beratung { padding: clamp(96px, 14vh, 150px) 0; background: var(--weiss); }
.beratung__kopf { margin-bottom: clamp(40px, 6vh, 64px); }
.beratung__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.beratung__bild { aspect-ratio: 4 / 3.4; position: sticky; top: calc(var(--nav) + 24px); }
.themen { list-style: none; margin: 0; padding: 0; }
.themen li { padding: 24px 0; border-top: 1px solid var(--linie); }
.themen li:last-child { border-bottom: 1px solid var(--linie); }
.themen h3 { margin-bottom: 6px; }
.themen p { color: var(--grau); }

/* 5 LINDA */
.linda { position: relative; overflow: hidden; background: var(--blau); color: #fff; padding: clamp(96px, 16vh, 170px) 0; }
.linda__bild { position: absolute; inset: -12% 0; opacity: .14; }
.linda__bild img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.linda__grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.linda__text { margin-top: 24px; font-size: 19px; color: #dbe7f6; max-width: 32em; }
.ratgeber { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 28px 30px; }
.ratgeber__titel { font-size: 15px; color: #cfdcee; margin-bottom: 14px; }
.ratgeber ul { list-style: none; margin: 0; padding: 0; }
.ratgeber li { font-size: 22px; font-weight: 600; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .16); }

/* 6 Team */
.team { padding: clamp(96px, 14vh, 150px) 0; background: var(--weiss); }
.team__kopf { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(44px, 7vh, 72px); }
.zitat { margin: 0; border-left: 3px solid var(--blau); padding-left: 24px; }
.zitat p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.zitat footer { margin-top: 12px; color: var(--grau); font-size: 15px; font-weight: 600; }
.personen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.person__foto { aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 20px; }
.person h3 { margin-bottom: 4px; }
.person p { color: var(--grau); }

/* 7 Anfahrt */
.anfahrt { padding: clamp(96px, 14vh, 150px) 0; background: var(--flaeche); }
.anfahrt__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.anfahrt__bild { aspect-ratio: 4 / 5; max-height: 80vh; }
.fakten { margin: 36px 0 0; }
.fakten div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linie); }
.fakten dt { font-size: 14px; font-weight: 600; color: var(--grau); padding-top: 2px; }
.fakten dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.fakten a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.anfahrt__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sozial { margin-top: 26px; color: var(--grau); }
.sozial a { color: var(--blau); font-weight: 600; }

/* 8 Schluss */
.schluss { padding: clamp(120px, 22vh, 230px) 0; text-align: center; background: var(--weiss); }
.schluss__satz { font-size: clamp(34px, 5.6vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; max-width: 19ch; margin: 0 auto; color: var(--blau-tief); text-wrap: balance; }
.schluss__linie { display: block; width: 80px; height: 2px; background: var(--rot); margin: 40px auto 0; transform-origin: 50% 50%; }
.schluss__aktionen { margin-top: 36px; }

/* Fuß */
.fuss { background: var(--blau-tief); color: #cfdcee; padding: 72px 0 28px; font-size: 15px; }
.fuss a { color: #fff; }
.fuss__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.fuss__name { color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.fuss__titel { color: #fff; font-weight: 600; margin-bottom: 10px; }
.fuss__grid a { display: inline-block; padding: 4px 0; }
.fuss__unten { margin-top: 52px; font-size: 13px; color: #9fb3cf; }
.fuss__unten p { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Handy-Leiste */
.leiste { display: none; }

@media (hover: hover) {
  html:not(.bewegt) .maske:hover img, .maske.is-bereit:hover img { transform: scale(1.025); }
}

@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 14px; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__grid, .zeiten__grid, .schritt, .beratung__grid, .linda__grid, .team__kopf, .anfahrt__grid { grid-template-columns: 1fr; }
  .schritt__bild { order: -1; }
  .beratung__bild { position: static; }
  .hero__bild { max-height: none; aspect-ratio: 4 / 3.4; }
  .anfahrt__bild { order: 2; aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  :root { --leiste: calc(64px + env(safe-area-inset-bottom)); --nav: 64px; }
  body { font-size: 16px; }
  .nav .btn { display: none; }
  .marke { font-size: 18px; }
  .hero { padding: calc(var(--nav) + 8px) 0 40px; align-items: flex-start; min-height: 0; }
  .hero__grid { gap: 24px; }
  .hero__bild { order: -1; aspect-ratio: 16 / 11; }
  .hero__aktionen .btn, .anfahrt__aktionen .btn, .notdienst .btn { width: 100%; }
  .tage li { font-size: 16px; }
  .personen { grid-template-columns: 1fr; }
  .person__foto { aspect-ratio: 16 / 10; }
  .fakten div { grid-template-columns: 1fr; gap: 2px; }
  .fuss__grid { grid-template-columns: 1fr; }
  .wege__kopf { display: block; }
  .leiste { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
  .leiste a { display: flex; align-items: center; justify-content: center; min-height: 64px; color: var(--blau-tief); text-decoration: none; font-weight: 600; font-size: 15px; }
  .leiste a:first-child { background: var(--blau); color: #fff; }
  .leiste a:last-child { border-left: 1px solid var(--linie); }
}

/* Unterseiten Impressum/Datenschutz */
.recht__in { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.recht h1 { font-size: clamp(36px, 5vw, 56px); margin: 24px 0 28px; }
.recht h2 { font-size: 22px; max-width: none; margin: 40px 0 12px; letter-spacing: -.01em; }
.recht p, .recht li { margin-bottom: 12px; color: var(--grau); }
.recht .ph { display: inline; }
.link--zurueck::after { content: none; }
.link--zurueck::before { content: "← "; }
