/* Praxis am Schelfmarkt – Designentwurf */

@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-v34-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v34-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-v34-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-v30-latin-regular.woff2") format("woff2"); }

:root {
  --paper: #fbf8f5;
  --paper-2: #f5ece6;
  --rose: #ecc9ba;
  --ink: #1d2529;
  --muted: #5a656b;
  --line: #e7ddd5;
  --brand: #9b1b22;
  --brand-dark: #7d141a;
  --slate: #2c3a41;
  --slate-2: #3a4a52;
  --ok: #23845a;
  --warn: #b26a00;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29,37,41,.05), 0 8px 28px rgba(29,37,41,.07);
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-weight: 300; }
h1 strong, h2 strong { font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-lg { width: 30px; height: 30px; stroke-width: 1.5; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,245,.88); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 40px; height: 40px; }
.wordmark { font-weight: 300; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; white-space: nowrap; }
.wordmark b { font-weight: 700; }
.wordmark--sm { font-size: .95rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 400; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--brand); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); margin-bottom: .45em; }
.hero h1 strong { display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.status {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-top: 26px; max-width: 30em; box-shadow: var(--shadow);
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); margin-top: 7px; flex: none; position: relative; }
.status.is-open .status-dot { background: var(--ok); }
.status.is-open .status-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ok); opacity: .35; animation: pulse 2s ease-out infinite; }
.status.is-soon .status-dot { background: var(--warn); }
.status.is-closed .status-dot { background: var(--brand); }
.status-main { font-weight: 700; margin: 0; }
.status-sub { margin: 0; color: var(--muted); font-size: .95rem; }
@keyframes pulse { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }

.hero-media { margin: 0; position: relative; }
.hero-media picture img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 2.2 / 1; object-fit: cover; object-position: center top; width: 100%; }
.hero-church { position: absolute; width: 190px; height: 190px; right: -34px; top: -96px; opacity: .9; pointer-events: none; }

/* Closure banner */
/* hidden gilt immer – sonst würde z. B. display:flex das leere Kästchen zeigen */
[hidden] { display: none !important; }
.closure {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff4f2; border: 1px solid #f0cfca; border-left: 5px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 8px;
}
.closure .i { color: var(--brand); width: 26px; height: 26px; margin-top: 2px; }
.closure strong { display: block; }
.closure p { margin: 0; }

/* Quick actions */
.quick { padding: 24px 0 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card .i { color: var(--brand); margin-bottom: 8px; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.quick-title { font-weight: 700; font-size: 1.05rem; }
.quick-text { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.quick-card--alert { background: var(--slate); border-color: var(--slate); color: #fff; }
.quick-card--alert .i { color: var(--rose); }
.quick-card--alert .quick-text { color: #d5dde1; }
.quick-card--alert strong { color: #fff; white-space: nowrap; }
.quick-card--alert:hover { color: #fff; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--slate); color: #eef2f3; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--rose); }
.section-dark a { color: #fff; }

/* Kontakt: Karte der Schelfstadt im Hintergrund (selbst gezeichnet aus OSM-Daten, liegt auf unserem Server) */
/* Die Karte ist ein SVG in fester Größe (nicht „cover“): Die Praxis liegt im Bild 400 px links der Mitte
   und 640 px unter der Oberkante – genau dort sitzt .karte-pin. Die Ränder des SVG laufen in die
   Hintergrundfarbe aus, auch sehr breite Monitore sehen also keine Kante. Siehe dev/karte/karte_svg.py */
.kontakt-karte {
  position: relative; isolation: isolate;
  background: #26333a url("/assets/img/karte-quer.svg") 50% 0 / 4000px 1200px no-repeat;
}
.karte-pin {
  position: absolute; left: calc(50% - 400px); top: 640px; z-index: 0;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  transform: translate(-13px, -50%);
}
.karte-punkt {
  position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--brand); border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.karte-punkt::before, .karte-punkt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; border: 1.5px solid rgba(200,67,75,.55); background: rgba(155,27,34,.12);
  animation: karte-puls 3.2s ease-out infinite;
}
.karte-punkt::after { animation-delay: 1.6s; }
@keyframes karte-puls { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.karte-schild {
  background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; white-space: nowrap;
  font-size: .82rem; font-weight: 300; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.karte-schild b { font-weight: 700; }
.kontakt-karte::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(36,48,54,.88) 0%, rgba(36,48,54,.7) 40%, rgba(36,48,54,0) 62%);
}
.kontakt-karte .contact-list { text-shadow: 0 1px 8px rgba(20,28,32,.6); }
.karte-quelle {
  position: absolute; right: 16px; bottom: 10px; font-size: .72rem; color: rgba(255,255,255,.65) !important;
  text-decoration: none; background: rgba(36,48,54,.55); padding: 2px 8px; border-radius: 6px;
}
.karte-quelle:hover { color: #fff !important; }
.section-head { margin-bottom: 40px; max-width: 40em; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0; }
.section-head--center { text-align: center; margin-inline: auto; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.news time { font-size: .85rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.news h3 { font-size: 1.3rem; margin: .4em 0 .5em; }
.news p { color: var(--muted); margin: 0; }
.news--wichtig { border-color: transparent; background: var(--brand); color: #fff; }
.news--wichtig time, .news--wichtig p { color: #f7e1e2; }
.news .tag {
  position: absolute; top: 24px; right: 24px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px;
}

/* Hours */
.hours-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 700; width: 34%; }
.hours .muted, .hours .closed td { color: #9aa3a8; }
.hours tr.today { background: #fff4f2; }
.hours tr.today th { color: var(--brand); position: relative; }
.hours tr.today th::after { content: "Heute"; margin-left: 10px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 3px 8px; border-radius: 999px; vertical-align: 2px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); }
.note .i { margin-top: 4px; color: var(--brand); }
.hours-side { display: grid; gap: 20px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { display: flex; gap: 10px; align-items: center; }
.info-card h3 .i { color: var(--brand); }
.info-card .big { font-size: 1.45rem; font-weight: 300; line-height: 1.3; color: var(--ink); }
.info-card .big span { font-size: 1.05rem; color: var(--muted); }
.info-card p { color: var(--muted); }
.info-card p:last-child { margin-bottom: 0; }
.info-card--dark { background: var(--slate); color: #fff; }
.info-card--dark h3 .i { color: var(--rose); }
.info-card--dark p { color: #d5dde1; }
.info-card--dark .big a { color: #fff; font-weight: 700; font-size: 2rem; text-decoration: none; letter-spacing: .02em; }
.info-card--dark a { color: #fff; }
.emergency { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }

/* Praxis */
.praxis-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.praxis-media { margin: 0; }
.praxis-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; width: 100%; box-shadow: var(--shadow); }
.quote { margin: 0 0 28px; padding: 0; }
.quote p { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.3; margin-bottom: .5em; color: var(--ink); }
.quote cite { font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--brand); }
.quote cite::before { content: ""; display: inline-block; width: 32px; height: 2px; background: var(--brand); vertical-align: middle; margin-right: 12px; }
.praxis-text > p { color: var(--muted); font-size: 1.1rem; }
.team-title { margin-top: 36px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.team li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.team strong { display: block; }
.team small { color: var(--muted); font-size: .88rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .9rem; letter-spacing: .05em; flex: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: #fff; border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .i { color: var(--brand); margin-bottom: 18px; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Tips */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.tip { padding: 26px 0 26px 64px; border-top: 1px solid var(--line); position: relative; }
.tip-num { position: absolute; left: 0; top: 26px; font-weight: 300; font-size: 1.6rem; color: var(--brand); line-height: 1; }
.tip p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; font-size: 1.15rem; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .i { color: var(--rose); margin-top: 5px; width: 22px; height: 22px; }
.contact-list small { color: #b9c4c9; font-size: .95rem; }

/* Forms */
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.form h3 { margin: 0; font-size: 1.35rem; }
.form a { color: var(--brand); }
.form-hint { color: var(--muted); font-size: .93rem; margin: 0; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); width: 100%;
  transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 12px; font-weight: 400; color: var(--muted); align-items: flex-start; }
.form .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--brand); }
.form [aria-invalid="true"] { border-color: var(--brand) !important; }
.form .feld-fehler { color: var(--brand); font-size: .85rem; font-weight: 700; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
/* Rückmeldung ohne JavaScript (Weiterleitung auf #gesendet / #fehler) */
.form-result { display: none; margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.form-result:target { display: block; }
.form-result--ok { background: #eaf6ef; color: #17603f; }
.form-result--err { background: #fff3f1; color: var(--brand-dark); }
.form-msg.ok { background: #eaf6ef; color: #17603f; padding: 12px 16px; border-radius: 10px; }
.form-msg.err { padding: 0; }

/* Footer */
.site-footer { background: #232f35; color: #b9c4c9; padding: 28px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer .wordmark { color: #fff; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 20px; }

/* Mobile bar */
.mobile-bar { display: none; }

/* Subpage */
.page-hero { padding: 56px 0 24px; }
.badge {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--paper-2); color: var(--brand); padding: 4px 10px; border-radius: 999px; line-height: 1.3;
}
/* Rezeptseite: Hinweise über dem Formular */
.rx-info { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 30px; align-items: stretch; }
.rx-karte { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: var(--shadow); }
.rx-karte p { margin: 0 0 .35em; color: var(--muted); }
.rx-karte p:last-child { margin-bottom: 0; }
.rx-karte-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.rx-karte-titel .badge { background: var(--brand); color: #fff; }
.rx-karte-titel .i { width: 22px; height: 22px; color: var(--brand); }
.rx-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rx-check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.rx-check .i { width: 22px; height: 22px; margin-top: 2px; color: var(--ok); }
.rx-check strong { color: var(--ink); }
.rx-check .rx-nein .i { color: var(--brand); }
.rx-karte .rx-noch-nicht { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.rx-noch-nicht strong { color: var(--ink); }
.abholung .abholung-titel { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.fristen { list-style: none; padding: 0; margin: .9em 0 0; display: grid; gap: 2px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.fristen li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 10px; border-radius: 8px; color: var(--muted); }
.fristen li.heute { background: var(--paper-2); color: var(--ink); font-weight: 700; }
.abholung .abholung-jetzt { color: var(--ink); margin-top: .8em; padding-top: .8em; border-top: 1px solid var(--line); }
.abholung .abholung-jetzt strong { color: var(--brand); }

/* Rezeptformular: Medikamente und Versichertenkarte */
.form .med--extra { display: grid; gap: 6px; }
.form .med-kopf { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.form .med-kopf label { display: inline; }
.med-weg { margin-left: auto; display: grid; place-items: center; padding: 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.med-weg:hover { color: var(--brand); background: var(--paper-2); }
.med-weg .i { width: 18px; height: 18px; }
.form .med-plus { border-color: var(--line); color: var(--brand); background: #fff; }
.form .med-plus:hover { border-color: var(--brand); background: var(--paper-2); color: var(--brand-dark); }
.med-plus .i { width: 18px; height: 18px; }
.karte-text { margin: 0; }
.form .radio { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .97rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.form .radio input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form .radio:has(input:checked) { border-color: var(--brand); background: #fff; }
.karte-hinweis { display: none; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid #f0d8a8; border-left: 4px solid var(--warn); border-radius: 10px; background: #fff7e8; color: #5c4300; font-size: .95rem; }
.karte-hinweis .i { width: 22px; height: 22px; margin-top: 1px; color: var(--warn); flex: none; }
.karte-frage:has(input[value="nein"]:checked) .karte-hinweis { display: flex; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.rx-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.rx-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.rx-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--muted); }
.rx-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.rx-steps strong { color: var(--ink); display: block; }
.rx-apotheke { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.rx-apotheke .i { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.rx-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; padding: 0; }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding-bottom: 96px; }
.legal > * { max-width: 46em; }
.legal h2 { font-size: 1.45rem; font-weight: 700; margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.08rem; margin: 1.6em 0 .4em; }
.legal p, .legal li { color: #3c474d; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .3em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .stand { color: var(--muted); font-size: .92rem; margin-top: 3em; }
.legal-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 1.5em; }
.legal-box p:last-child { margin-bottom: 0; }
/* Noch zu klären – wird vor dem Livegang entfernt */
.offen { background: #fff3b0; outline: 2px dashed #d9a400; outline-offset: 2px; border-radius: 3px; }

/* Responsive */
@media (max-width: 1060px) {
  .nav { gap: 18px; }
  .header-phone span { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--paper-2); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .header-actions { margin-left: auto; }

  .hero { padding-top: 60px; }   /* Platz für den Kirchturm, der 46px über das Foto ragt (sonst von overflow:hidden abgeschnitten) */
  .hero-grid, .hours-grid, .praxis-grid, .contact-grid, .rx-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .hero-church { width: 110px; height: 110px; right: -10px; top: -46px; }
  .quick-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr; }
  .section.kontakt-karte {
    background-image: url("/assets/img/karte-hoch.svg");
    background-size: 900px 1700px; background-position: 50% 100%;
    padding-bottom: 340px;
  }
  /* Handy: Praxis mittig 230 px über der Unterkante, Schild über dem Punkt */
  .karte-pin { left: 50%; top: auto; bottom: 230px; transform: translate(-50%, 50%); }
  .karte-schild { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); }
  .kontakt-karte::before { background: linear-gradient(180deg, rgba(36,48,54,.82) 0%, rgba(36,48,54,.6) 70%, rgba(36,48,54,0) calc(100% - 380px)); }
  .section { padding: 64px 0; }
  .praxis-media img { aspect-ratio: 16 / 11; }
  .rx-aside { position: static; }
  .rx-info { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 24px rgba(29,37,41,.08);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: .78rem; font-weight: 700; color: var(--ink); text-decoration: none; }
  .mobile-bar a .i { width: 22px; height: 22px; color: var(--brand); }
  body { padding-bottom: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wordmark { font-size: .86rem; letter-spacing: .02em; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 8px; }
  .quick-grid, .services { grid-template-columns: 1fr; }
  .quick-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 18px; }
  .quick-card .i { margin: 0; }
  .quick-text { flex-basis: 100%; }
  .hours th, .hours td { padding: 13px 12px; font-size: .95rem; }
  .hours th { width: auto; }
  .hours tr.today th::after { display: none; }
  .form { padding: 22px; }
  .form .row-2 { grid-template-columns: 1fr; }
  .lead { font-size: 1.08rem; }
  .tip { padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
