/* Online-Rezeption Mein Arzt MVZ Neuhof – CI: #0A3172 / #0068B0 / #E0E8F0, Logo immer auf Weiß */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #F3F6FA;
  --surface: #FFFFFF;
  --tint: #E0E8F0;
  --ink: #0A3172;
  --ink-2: #4A5F80;
  --line: #D9E2EE;
  --line-strong: #A9B9CF;
  --brand: #0068B0;
  --go: #0068B0;
  --go-hover: #0A3172;
  --go-ink: #FFFFFF;
  --sign: #0A3172;
  --sign-ink: #F3F6FA;
  --focus: #0068B0;
  --alarm: #C8322B;
  --plate: #FFFFFF;
  --plate-ink: #0A3172;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #071631; --surface: #0E2248; --tint: #13295A; --ink: #E6EEF8; --ink-2: #A6B8D2; --line: #1F3663; --line-strong: #3A5687;
    --brand: #5AA8E6; --go: #3E9AE0; --go-hover: #62B0EA; --go-ink: #03142E;
    --sign: #0E2A5C; --sign-ink: #EEF3FA; --focus: #5AA8E6; --alarm: #FF7A70;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 880px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2 { font-family: var(--display); line-height: 1; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 7vw, 3.5rem); line-height: .95; margin: .35rem 0 1rem; }
h2 { font-weight: 600; font-size: 1.65rem; margin-bottom: .9rem; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; color: var(--brand); }
.lead { color: var(--ink-2); font-size: 1.15rem; max-width: 62ch; margin-bottom: 1.5rem; }

/* Kopf – Logo auf Weiß, auch im Dark Mode */
header.top { background: var(--plate); color: var(--plate-ink); border-bottom: 1px solid #D9E2EE; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.mark { display: flex; align-items: flex-end; gap: .7rem; text-decoration: none; color: var(--plate-ink); }
.mark img { height: clamp(40px, 7vw, 52px); width: auto; display: block; }
.mark small { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; color: #0068B0; padding-bottom: .25rem; }
.tel { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: #0A3172; text-decoration: none; white-space: nowrap; }
.top a:focus-visible { outline-color: #0068B0; }
@media (max-width: 380px) { .tel { font-size: 1.05rem; } .mark small { display: none; } }

/* Notfall-Hinweis bewusst hell, damit die Termin-Karte das einzige kräftige Element oben ist */
.notfall { background: var(--tint); color: var(--ink); font-size: .95rem; border-bottom: 1px solid var(--line); }
.notfall .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; padding-block: .45rem; }
.notfall a { color: var(--ink); font-weight: 700; }
.notfall a[href="tel:112"] { color: var(--alarm); }

main { padding-block: clamp(1.6rem, 5vw, 3rem) 4rem; }

/* Karten, Abschnitte */
.karte, .abschnitt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.5rem); }
.abschnitt { margin-bottom: 1rem; }
.abschnitt > h2 { font-size: 1.45rem; }
.bestand { margin: 0 0 2rem; }
.bestand legend { float: left; width: 100%; font-weight: 700; margin-bottom: .7rem; }
.bestand .optionen { clear: both; }

/* Termin-Karte ganz oben: direkter Weg in den T2med-Kalender */
.termin-karte { background: var(--sign); color: var(--sign-ink); border-radius: 14px; padding: clamp(1.1rem, 3vw, 1.6rem); margin: 0 0 1.8rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .termin-karte { grid-template-columns: 1fr auto; align-items: center; } }
.termin-karte h2 { font-size: clamp(1.9rem, 5vw, 2.4rem); font-weight: 700; text-transform: uppercase; margin-bottom: .3rem; }
/* Buchungsknopf, darunter direkt die Alternative "Wunschtermin anfragen" */
.termin-aktionen { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; }
@media (min-width: 760px) { .termin-aktionen { align-items: center; min-width: 17rem; } }
.termin-karte .btn-go { background: #FFFFFF; color: #0A3172; }
.termin-karte .btn-go:hover { background: #E0E8F0; }
.termin-karte :focus-visible { outline-color: #FFFFFF; }
.termin-alternativ { font-size: .95rem; text-align: center; line-height: 1.35; }
.link-knopf { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: .4rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-knopf:hover { text-decoration-thickness: 2px; }
.termin-hinweis { grid-column: 1 / -1; font-size: .92rem; }
.termin-karte .platzhalter { outline-color: #FFFFFF; }

/* Kacheln */
.kacheln-titel { margin-top: .5rem; margin-bottom: .4rem; }
.kacheln-lead { font-size: 1.02rem; margin-bottom: 1rem; }
.kacheln { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .kacheln { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kachel { font: inherit; color: inherit; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; min-height: 100px; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; transition: border-color .15s ease, background-color .15s ease; }
.kachel:hover { border-color: var(--brand); background: color-mix(in srgb, var(--tint) 45%, var(--surface)); }
.kachel-symbol { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--tint); color: var(--brand); margin-bottom: .5rem; flex: none; }
.kachel-symbol svg { width: 1.55rem; height: 1.55rem; }
.kachel[aria-disabled="true"] .kachel-symbol { opacity: .55; }

/* Symbol neben der Termin-Überschrift */
.termin-inhalt { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.termin-inhalt > :not(.termin-symbol) { grid-column: 2; }
.termin-symbol { grid-row: 1 / span 2; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.termin-symbol svg { width: 2rem; height: 2rem; }
@media (max-width: 420px) { .termin-symbol { width: 2.8rem; height: 2.8rem; } .termin-symbol svg { width: 1.6rem; height: 1.6rem; } }

a.kachel { text-decoration: none; }
.kachel-termin { border-color: var(--brand); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.kachel-termin .kachel-symbol { background: var(--brand); color: var(--go-ink); }

.kachel .titel { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.05; }
.kachel .kurz { color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.kachel .nur { margin-top: auto; padding-top: .35rem; font-size: .85rem; color: var(--ink-2); }
.kachel[aria-disabled="true"] { border-style: dashed; background: transparent; }
.kachel[aria-disabled="true"] .titel, .kachel[aria-disabled="true"] .kurz { opacity: .6; }
#neu-hinweis { margin-top: 1rem; }

/* Hinweise */
.hinweis { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; padding: .85rem 1.1rem; margin-bottom: 1rem; max-width: none; }
.hinweis.alarm { border-left-color: var(--alarm); }
.hinweis.alarm a { color: var(--alarm); font-weight: 700; white-space: nowrap; }
.platzhalter { outline: 2px dashed var(--brand); outline-offset: 3px; }
.buchung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; background: var(--sign); color: var(--sign-ink); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.buchung .btn-go { background: #FFFFFF; color: #0A3172; }
.fehlerbox { background: var(--surface); border: 2px solid var(--alarm); color: var(--alarm); font-weight: 700; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }

/* Felder */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.feld { margin: 0 0 1.2rem; }
.feld:last-child { margin-bottom: 0; }
.feld > label, .feld > legend { display: block; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.hilfe { color: var(--ink-2); font-size: .92rem; margin: -.15rem 0 .45rem; }
.marke { color: var(--brand); font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 8px; padding: .6rem .8rem; min-height: 48px;
}
textarea { min-height: 6.5rem; resize: vertical; }
input.kurz { max-width: 11rem; }
.feld.hat-fehler input, .feld.hat-fehler select, .feld.hat-fehler textarea, .feld.hat-fehler .option { border-color: var(--alarm); }
.fehler { color: var(--alarm); font-weight: 700; font-size: .95rem; margin-top: .35rem; }
.fehler:empty { display: none; }

.optionen { display: flex; flex-direction: column; gap: .5rem; }
.optionen.inline { flex-direction: row; flex-wrap: wrap; }
.option { display: flex; align-items: flex-start; gap: .65rem; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; line-height: 1.35; font-weight: 400; min-height: 48px; }
.option:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.option input { width: 1.25rem; height: 1.25rem; margin: .05rem 0 0; accent-color: var(--brand); flex: none; }
.feld.bestaetigung .option { width: 100%; }

.liste-zeile { display: grid; gap: .6rem; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin-bottom: .6rem; background: var(--ground); }
.liste-zeile label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.liste-nr { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
@media (min-width: 640px) {
  .liste-zeile { grid-template-columns: 2fr 1.1fr 1.1fr auto; align-items: end; }
  .liste-nr { grid-column: 1 / -1; }
}

/* Dokumente */
.datei-input { font: inherit; max-width: 100%; padding: .5rem 0; }
.datei-liste { list-style: none; margin: .4rem 0 0; padding: 0; }
.datei-liste li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ground); padding: .2rem .4rem .2rem .8rem; margin-bottom: .35rem; overflow-wrap: anywhere; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; text-decoration: none; border-radius: 10px; padding: .7rem 1.4rem; min-height: 54px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease; }
.btn-go { background: var(--go); color: var(--go-ink); }
.btn-go:hover { background: var(--go-hover); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink-2); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-klein { font: inherit; font-weight: 700; color: var(--brand); background: none; border: 1.5px dashed var(--brand); border-radius: 8px; padding: .55rem .9rem; min-height: 44px; cursor: pointer; }
.btn-entfernen { font: inherit; font-size: .92rem; color: var(--ink-2); background: none; border: 0; text-decoration: underline; padding: .5rem .25rem; min-height: 44px; cursor: pointer; }
.aktionen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.pflicht-legende { color: var(--ink-2); font-size: .92rem; margin-top: .5rem; }

/* Prüfen */
.zusammenfassung .abschnitt dl { margin: 0; }
.zeile { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: .15rem 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.zeile dt { color: var(--ink-2); }
.zeile dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 540px) { .zeile { grid-template-columns: 1fr; } .zeile dt { font-size: .9rem; } }
.einwilligung { margin-top: 1rem; }
.einwilligung .hilfe { margin: .8rem 0 0; }
.schloss { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: .95rem; margin-top: .9rem; }
.schloss svg { flex: none; margin-top: .15rem; color: var(--brand); }

/* Fertig */
.fertig .karte { margin-bottom: 1.3rem; }
.fertig .ref { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: .08em; color: var(--brand); line-height: 1.1; margin: .2rem 0 .4rem; }

/* Bot-Falle (für Menschen unsichtbar) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

footer { border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
footer .wrap { padding-block: 1.4rem; }
