/* Webseite admiral.codemich.de – dunkles Marine-Design passend zum Spiel */
:root {
    --bg: #0c141d; --panel: #132130; --line: #24384d; --text: #dfe7ee; --muted: #8fa3b5;
    --gold: #d4ae5e; --accent: #5b9bd5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 56px); margin: 6px 0 12px; }
h2 { font-size: 26px; margin: 40px 0 16px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.kopf { border-bottom: 1px solid var(--gold); padding: 12px 16px; }
.marke { max-width: 1080px; margin: 0 auto; font-family: Georgia, serif; font-size: 22px; color: var(--gold); }
.seite { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }

.held { padding: 48px 0 16px; max-width: 760px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); margin: 0; }
.intro { font-size: 18px; }
.leise { color: var(--muted); font-size: 14px; }
.knopf { display: inline-block; background: var(--gold); color: #1a1408; font-weight: 700; text-decoration: none;
    padding: 12px 26px; border-radius: 8px; font-size: 18px; }
.knopf:hover { filter: brightness(1.08); }

.punkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.punkt { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.punkt p { margin: 0; color: var(--muted); }

.bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.bilder figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bilder img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.bilder figcaption { padding: 8px 12px; color: var(--muted); font-size: 14px; }

.konto-info { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px 16px; margin-top: 40px; }
.konto-info h2 { margin-top: 16px; }

.text { max-width: 760px; }
.text h2 { font-size: 21px; margin-top: 30px; }

.fuss { border-top: 1px solid var(--line); padding: 18px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.fuss a { color: var(--muted); }

/* Admin-Bereich (Sitzung 39) */
.admin h3 { margin-top: 26px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kachel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.kachel b { display: block; font-size: 26px; color: var(--text); font-family: Georgia, serif; }
.zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.breit { overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; white-space: nowrap; }
.admin th { color: var(--muted); font-weight: 600; }
.admin tr.aktiv td { background: #1b2c1f; }
.balken { display: grid; grid-template-columns: 52px 1fr 32px; gap: 8px; align-items: center; font-size: 14px; }
.balken i { display: block; height: 12px; background: var(--gold); border-radius: 3px; min-width: 2px; }
.marke-test { font-size: 11px; background: #3a2f12; color: var(--gold); border-radius: 4px; padding: 1px 5px; }
.admin button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.admin button:hover { border-color: var(--gold); }
.admin button.gefahr { color: #e58a7f; }
.knoepfe { display: flex; gap: 6px; }
.neu { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.neu input { flex: 1 1 260px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; }
.code { background: var(--panel); border: 1px solid var(--gold); border-radius: 10px; padding: 12px 16px; }
.code b { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .05em; }

/* Startseite: So spielst du, Schiffstypen, Nationen, Bilder-Lupe (Sitzung 40) */
.abschnitt-text { max-width: 760px; color: var(--muted); margin-top: -6px; }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; counter-reset: none; }
.schritte li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; position: relative; }
.schritte .nr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1a1408;
    font-weight: 700; font-family: Georgia, serif; margin-bottom: 8px; }
.schritte p { margin: 0; color: var(--muted); }

.typen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.typ { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px 14px; overflow: hidden; }
.typ .riss { margin: 0 -16px 12px; }
.typ canvas { display: block; width: 100%; height: 104px; }
.typ > p { margin: 4px 0 10px; }
.typ dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0 0 8px; font-size: 14px; }
.typ dt { color: var(--muted); }
.typ dd { margin: 0; }
.typ .leise { margin: 0; }

.nationen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.nation { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.nation-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.nation-kopf svg { flex: none; border: 1px solid rgba(255,255,255,.15); border-radius: 2px; }
.nation-kopf h3 { margin: 0; }
.nation p { margin: 4px 0; font-size: 15px; }
.nation .plus { color: #8fd18f; }
.nation .minus { color: #e58a7f; }

.bilder a.lupe-bild { display: block; cursor: zoom-in; }
.bilder a.lupe-bild:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lupe { position: fixed; inset: 0; z-index: 50; background: rgba(5, 9, 14, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lupe[hidden] { display: none; }
.lupe figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lupe img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lupe figcaption { color: var(--muted); padding-top: 10px; text-align: center; }
.lupe button { position: absolute; background: rgba(19, 33, 48, .85); color: var(--text); border: 1px solid var(--line); border-radius: 50%;
    width: 46px; height: 46px; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lupe button:hover { border-color: var(--gold); color: var(--gold); }
.lupe-zu { top: 14px; right: 14px; font-size: 20px !important; }
.lupe-zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.lupe-weiter { right: 14px; top: 50%; transform: translateY(-50%); }
body.lupe-offen { overflow: hidden; }
@media (max-width: 600px) { .lupe-pfeil { top: auto !important; bottom: 14px; transform: none !important; } }

/* Tipps fürs Gefecht (Sitzung 40) */
.vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.vergleich .punkt > p { color: var(--text); margin: 0 0 6px; }
.vergleich ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.vergleich li { margin: 3px 0; }
.vergleich .fazit { color: var(--muted) !important; font-style: italic; margin: 0 !important; }
.rat { margin-top: 14px; background: var(--panel); border: 1px solid var(--gold); border-radius: 10px; padding: 16px 20px; }
.rat ol { margin: 0 0 8px; padding-left: 22px; }
.rat li { margin: 5px 0; }
.rat .leise { margin: 0; }
