/* augenarzt.vip – klinisch-seriös, blau/weiß, mobil zuerst. Keine externen Schriften. */

:root {
    --blau: #0b5cad;
    --blau-dunkel: #083f78;
    --blau-hell: #eaf2fb;
    --blau-linie: #c9dbef;
    --text: #1b2733;
    --text-leise: #52606d;
    --linie: #dde5ee;
    --flaeche: #f6f9fc;
    --weiss: #fff;
    --rot: #a8231b;
    --rot-hell: #fdecea;
    --gelb: #7a4d00;
    --gelb-hell: #fff4d6;
    --gruen: #1e6b3a;
    --gruen-hell: #e7f4ec;
    --radius: 10px;
    --schatten: 0 1px 2px rgba(16, 42, 74, .06), 0 4px 14px rgba(16, 42, 74, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
    margin: 0;
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--weiss);
    overflow-wrap: break-word;
}

a { color: var(--blau); text-underline-offset: 2px; }
a:hover { color: var(--blau-dunkel); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
    outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.25; color: #0f2236; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
h4 { font-size: 1.05rem; margin: 1.3em 0 .3em; }

.nur-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -9999px; top: 0; background: var(--blau-dunkel); color: #fff; padding: 8px 14px; z-index: 10; }
.sprung:focus { left: 8px; top: 8px; }

.wrap, .weit { max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px; }

/* ---------- Kopf ---------- */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-innen {
    max-width: 1120px; margin: 0 auto; padding: 12px 16px;
    display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center;
}
.marke { display: flex; align-items: center; gap: 10px; color: var(--blau-dunkel); text-decoration: none; min-width: 0; }
.marke-auge { width: 40px; height: 24px; color: var(--blau); flex: none; }
.marke span { font-size: 1.25rem; line-height: 1.1; color: var(--blau-dunkel); }
.marke strong { font-weight: 750; }
.marke small { display: block; font-size: .72rem; color: var(--text-leise); letter-spacing: .01em; font-weight: 400; }

.kopf-suche { grid-column: 1 / -1; display: flex; gap: 6px; min-width: 0; }
.kopf-suche input { flex: 1; min-width: 0; }

input, select, textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #b9c6d3;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text);
    width: 100%;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
button, .knopf {
    font: inherit; font-weight: 600;
    background: var(--blau); color: #fff; border: 0; border-radius: 8px;
    padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .knopf:hover { background: var(--blau-dunkel); color: #fff; }

.menue { position: relative; grid-column: 2; grid-row: 1; }
@media (min-width: 860px) { .menue { grid-column: 3; } }
.menue summary {
    list-style: none; cursor: pointer; font-weight: 600; color: var(--blau-dunkel);
    border: 1px solid var(--blau-linie); border-radius: 8px; padding: 8px 14px; background: var(--blau-hell);
}
.menue summary::-webkit-details-marker { display: none; }
.menue summary::after { content: " ▾"; }
.menue[open] summary::after { content: " ▴"; }
.menue nav {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 5;
    width: min(320px, calc(100vw - 32px)); max-height: 75vh; overflow: auto;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten);
}
.menue ul { list-style: none; margin: 0; padding: 6px 0; }
.menue li a { display: block; padding: 9px 16px; text-decoration: none; color: var(--text); }
.menue li a:hover { background: var(--blau-hell); }
.menue .menue-notfall { color: var(--rot); font-weight: 600; }

.leiste { display: none; }

@media (min-width: 860px) {
    .kopf-innen { grid-template-columns: auto 1fr auto; }
    .kopf-suche { grid-column: auto; max-width: 460px; justify-self: end; width: 100%; }
    .leiste {
        display: flex; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 0 16px 10px;
        font-size: .95rem;
    }
    .leiste a { text-decoration: none; color: var(--text-leise); font-weight: 500; }
    .leiste a:hover { color: var(--blau); }
    .leiste .leiste-notfall { color: var(--rot); }
}

/* ---------- Brotkrumen ---------- */
.krumen { max-width: 1120px; margin: 0 auto; padding: 12px 16px 0; font-size: .88rem; color: var(--text-leise); }
.krumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.krumen li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa7b4; }
.krumen a { color: var(--text-leise); }

/* ---------- Startseite ---------- */
.held { background: linear-gradient(180deg, var(--blau-hell), #fff); border-bottom: 1px solid var(--linie); }
.held-innen { max-width: 860px; margin: 0 auto; padding: 36px 16px 32px; text-align: center; }
.held .lead { margin-left: auto; margin-right: auto; }
.gross-suche { display: flex; gap: 8px; max-width: 640px; margin: 18px auto 0; }
.gross-suche input { flex: 1; min-width: 0; font-size: 1.05rem; padding: 13px 14px; }
.gross-suche button { padding: 13px 20px; }
.weit .gross-suche { margin-left: 0; }

.lead { font-size: 1.15rem; color: #34495e; max-width: 46em; }

.kacheln, .karten { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.kacheln a, .karte a {
    display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 16px 18px; border: 1px solid var(--linie); border-radius: var(--radius);
    background: #fff; text-decoration: none; color: var(--text); box-shadow: var(--schatten);
    transition: border-color .15s, transform .15s;
}
.kacheln a:hover, .karte a:hover { border-color: var(--blau); transform: translateY(-1px); }
.kacheln strong, .karte strong { color: var(--blau-dunkel); font-size: 1.08rem; }
.kacheln span, .karte span { color: var(--text-leise); font-size: .94rem; line-height: 1.5; }
.kacheln em { font-style: normal; font-size: .85rem; color: var(--blau); margin-top: auto; }

.zwei-spalten { display: grid; gap: 8px 32px; margin-top: 24px; }
@media (min-width: 760px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { padding: 12px 0; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 2px; }
.liste li > span { color: var(--text-leise); font-size: .95rem; }
.liste .fach { color: var(--text-leise); font-weight: 400; }

.abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.abc a {
    min-width: 40px; text-align: center; padding: 6px 8px; border: 1px solid var(--blau-linie);
    border-radius: 6px; text-decoration: none; font-weight: 600; background: var(--blau-hell);
}
.abc-gruppe h2 { border-bottom: 2px solid var(--blau); padding-bottom: 4px; }
.such-info { color: var(--text-leise); }

/* ---------- Hinweise ---------- */
.warnung {
    border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; line-height: 1.5;
    border-left: 5px solid; font-size: .98rem;
}
.warnung a { font-weight: 600; white-space: nowrap; }
.warnung-notfall { background: var(--rot-hell); border-color: var(--rot); color: #5e130e; }
.warnung-notfall a { color: var(--rot); }
.warnung-dringend { background: var(--gelb-hell); border-color: #c98a00; color: #4d3200; }
.warnung-dringend a { color: var(--gelb); }

.hinweis-box {
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
    padding: 14px 16px; font-size: .92rem; color: var(--text-leise); margin: 32px 0 0;
}

/* ---------- Artikel ---------- */
.artikel { max-width: 800px; margin: 0 auto; padding: 8px 16px 48px; }
.artikel-kopf { margin-bottom: 8px; }
.artikel-kategorie { margin: 12px 0 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.artikel-kategorie a { text-decoration: none; }
.artikel-meta { color: var(--text-leise); font-size: .9rem; margin: 0; }

.infobox {
    background: var(--blau-hell); border: 1px solid var(--blau-linie); border-radius: var(--radius);
    padding: 14px 18px; margin: 20px 0;
}
.infobox-titel { margin: 0 0 8px; font-size: 1.05rem; color: var(--blau-dunkel); }
.infobox dl { margin: 0; display: grid; gap: 0; }
.infobox dl > div { display: grid; grid-template-columns: minmax(0, 1fr); padding: 7px 0; border-top: 1px solid var(--blau-linie); }
.infobox dl > div:first-child { border-top: 0; }
.infobox dt { font-weight: 600; font-size: .85rem; color: var(--blau-dunkel); text-transform: uppercase; letter-spacing: .03em; }
.infobox dd { margin: 0; font-size: .97rem; }
@media (min-width: 640px) {
    .infobox dl > div { grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
}
.dring { display: inline-block; font-weight: 600; font-size: .85rem; border-radius: 4px; padding: 1px 7px; margin-right: 4px; }
.dring-notfall { background: var(--rot); color: #fff; }
.dring-dringend { background: #c98a00; color: #fff; }
.dring-zeitnah { background: var(--blau); color: #fff; }
.dring-routine { background: var(--gruen); color: #fff; }

.toc { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0 8px; background: #fff; }
.toc-titel { margin: 0 0 6px; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { padding: 3px 0; break-inside: avoid; }

.kapitel { border-top: 1px solid var(--linie); margin-top: 32px; }
.kapitel > h2 { display: flex; align-items: baseline; gap: 12px; margin-top: 1.1em; }
.kapitel-nr {
    flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
    background: var(--blau); color: #fff; font-size: .8em;
}
.kapitel-toc { margin: 0 0 12px; font-size: .95rem; }
.kapitel-toc summary { cursor: pointer; color: var(--blau); font-weight: 600; }
.kapitel-toc ul { margin: 8px 0 0; padding-left: 1.2em; }
.kapitel-toc li { padding: 2px 0; }

.prosa > :first-child { margin-top: 0; }
.prosa p, .prosa ul, .prosa ol { margin: 0 0 1em; }
.prosa li { margin: .3em 0; }
.prosa h3 { scroll-margin-top: 12px; }
.prosa table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prosa th, .prosa td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; vertical-align: top; }
.prosa th { background: var(--blau-hell); color: var(--blau-dunkel); }
.prosa tbody tr:nth-child(even) td { background: var(--flaeche); }

.faq h3 { border-left: 4px solid var(--blau); padding-left: 12px; }

.verwandt { margin-top: 40px; }
.quellen { margin-top: 40px; font-size: .95rem; }
.quellen summary { cursor: pointer; font-weight: 600; color: var(--blau); }
.quellen ol { padding-left: 1.4em; }
.quellen li { margin: .4em 0; }
.sprache { color: var(--text-leise); font-size: .85em; }

/* ---------- Fuß ---------- */
.fuss { background: #0f2236; color: #d6e1ec; margin-top: 48px; }
.fuss-innen { max-width: 1120px; margin: 0 auto; padding: 28px 16px; font-size: .92rem; }
.fuss a { color: #fff; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }
.fuss-hinweis { max-width: 60em; }
.fuss-copy { color: #9fb2c6; margin: 0; }

/* Datums- und Uhrzeitfelder in Safari auf dem iPhone (siehe globale CLAUDE.md) */
input[type="date"], input[type="time"], input[type="datetime-local"] {
    -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.5em; }
.form-row input[type="date"], .form-row input[type="time"], .form-row input[type="datetime-local"] {
    display: block; min-height: calc(1.5em + 22px);
}

@media print {
    .kopf, .fuss, .krumen, .toc, .kapitel-toc, .verwandt { display: none; }
    .quellen details > *:not(summary) { display: block; }
    a { color: inherit; }
}
