@import url('fonts.css');

:root {
  --blue: #1B2DF5; --deep: #0E1AB0; --ink: #0A0A0B; --volt: #D7FF3A;
  --up: #0F7A38; --down: #C21F1F; --stone: #F2F2EE; --line: #DCDCD4; --white: #fff; --mute: #5b5b55;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Archivo', system-ui, sans-serif; color: var(--ink); background: var(--stone); line-height: 1.5; font-size: 16px; }
a { color: var(--blue); }
h1, h2, h3 { font-style: italic; font-stretch: 80%; font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
code { background: #e8e8e0; padding: 1px 5px; border-radius: 3px; font-size: .9em; }

/* Kopf */
header.top { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 20; }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.logo { font-style: italic; font-weight: 900; font-stretch: 75%; font-size: 1.6rem; color: #fff; text-decoration: none; text-transform: uppercase; }
.logo span { color: var(--volt); }
header.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header.top nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; }
header.top nav a.on, header.top nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 6px; }
header.top nav a.hot { background: #E0192B; color: #fff; opacity: 1; padding: 5px 12px; border-radius: 4px; font-weight: 800; text-decoration: none; }
header.top nav a.hot:hover, header.top nav a.hot.on { background: #B50F1F; text-decoration: none; }
header.top .btn.small { background: var(--volt); color: var(--ink); opacity: 1; }
.linklike { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; cursor: pointer; opacity: .85; padding: 0; }
.linklike:hover { opacity: 1; }
.setup-note { background: var(--volt); padding: 10px 16px; text-align: center; font-size: .95rem; }

/* Knöpfe & Formulare */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 4px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn.volt { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.btn.danger { background: transparent; color: var(--down); border-color: var(--down); }
.btn.danger:hover { background: var(--down); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid #bdbdb3; border-radius: 4px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--volt); border-color: var(--ink); }
input[type=checkbox], input[type=radio] { width: auto; margin-right: 8px; }
.check { display: flex; align-items: flex-start; font-weight: 400; gap: 0; margin: 12px 0; }
.check input { margin-top: 5px; }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hint { color: var(--mute); font-size: .88rem; margin-top: 4px; }

/* Karten */
.card { background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 22px; margin: 18px 0; }
.card.flat { border-color: var(--line); }
.pill { display: inline-block; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.pill.volt { background: var(--volt); color: var(--ink); }
.pill.warn { background: #ffe9a8; color: #5a4300; }
.up { color: var(--up); font-weight: 700; } .down { color: var(--down); font-weight: 700; }
.msg { padding: 10px 14px; border-radius: 4px; margin: 12px 0; background: #e6ecff; }
.msg.err { background: #ffe1e1; color: #7a1010; }
.msg.ok { background: #e3f6e8; color: #0b4d24; }
.muted { color: var(--mute); }
.center { text-align: center; }

/* Hero */
.hero { background: var(--blue); color: #fff; padding: 56px 0 64px; border-bottom: 6px solid var(--volt); }
.hero p.lead { font-size: 1.2rem; max-width: 560px; }
.hero h1 em { color: var(--volt); font-style: italic; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn.alt { color: #fff; border-color: #fff; }
.hero .btn.alt:hover { background: #fff; color: var(--blue); }
section.block { padding: 44px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card { margin: 0; }
.steps .n { font-weight: 900; font-style: italic; font-size: 2.2rem; color: var(--blue); }

/* Kurstafel */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.tabs button { font: inherit; font-weight: 700; padding: 6px 14px; border: 1.5px solid var(--ink); background: #fff; border-radius: 99px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
table.kurs { width: 100%; border-collapse: collapse; background: #fff; border: 1.5px solid var(--ink); }
table.kurs th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; background: var(--ink); color: #fff; }
table.kurs td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.kurs td.num { font-weight: 800; font-size: 1.25rem; font-stretch: 80%; }
table.kurs a { color: var(--ink); font-weight: 700; text-decoration: none; }
table.kurs a:hover { text-decoration: underline; }

/* Spielerlisten */
.plist { display: grid; gap: 12px; }
.prow { background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.prow .who a { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.prow .kursbox { text-align: right; min-width: 70px; }
.prow .kursbox b { font-size: 1.6rem; font-style: italic; font-stretch: 80%; display: block; line-height: 1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }

/* Profil */
.profile-head { background: var(--blue); color: #fff; padding: 32px 0; border-bottom: 6px solid var(--volt); }
.profile-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: .2em; }
.big-kurs { display: inline-flex; gap: 18px; align-items: center; background: #fff; color: var(--ink); border-radius: 6px; padding: 12px 18px; margin-top: 14px; }
.big-kurs b { font-size: 2.6rem; font-style: italic; font-stretch: 75%; line-height: 1; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-grid .m { background: #000; border-radius: 6px; overflow: hidden; position: relative; }
.media-grid img, .media-grid video { width: 100%; display: block; max-height: 320px; object-fit: cover; }
.media-grid .m button { position: absolute; top: 6px; right: 6px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--mute); } dl.facts dd { margin: 0; font-weight: 600; }
.locked { background: repeating-linear-gradient(45deg, #fafaf5, #fafaf5 10px, #f0f0e8 10px, #f0f0e8 20px); border: 1.5px dashed var(--ink); border-radius: 6px; padding: 16px; }

/* Anmeldung */
.auth { max-width: 520px; margin: 32px auto; }
.auth .tabs { margin-bottom: 0; }

/* Fuß */
footer.foot { background: var(--ink); color: #ddd; padding: 28px 0; margin-top: 40px; font-size: .92rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.foot a { color: var(--volt); margin-right: 16px; }

#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; border-left: 6px solid var(--volt); }
.toast.err { border-left-color: var(--down); }

.legal h2 { font-size: 1.3rem; margin-top: 1.6em; text-transform: none; }
.legal .draft { background: #ffe9a8; padding: 12px 16px; border-radius: 4px; font-weight: 600; }

@media (max-width: 720px) {
  .steps, .grid2 { grid-template-columns: 1fr; }
  table.kurs th.hide-s, table.kurs td.hide-s { display: none; }
}

/* v9: Slogan unter dem Logo, Pflichtfelder, Profilbilder, Siegel */
header.top .brand { display: flex; flex-direction: column; line-height: 1; padding: 6px 0; }
.tagline { color: var(--volt); font-style: italic; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
label:has(+ input[required])::after, label:has(+ select[required])::after, label:has(+ textarea[required])::after { content: " *"; color: var(--down); font-weight: 800; }
.check:has(input[required]) > span::after { content: " *"; color: var(--down); font-weight: 800; }
label.req::after { content: " *"; color: var(--down); font-weight: 800; }
.reqnote { color: var(--mute); font-size: .88rem; margin: 6px 0 0; }
.reqnote b { color: var(--down); }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #e8e8e0; border: 2px solid var(--ink); display: block; }
.avatar.ph { display: flex; align-items: center; justify-content: center; font-weight: 900; font-style: italic; font-size: 1.6rem; color: var(--mute); }
.seal { display: inline-block; background: var(--volt); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 99px; font-size: .78rem; font-weight: 800; padding: 1px 10px; }
.seal.no { background: #ffe9a8; border-color: #c9a23a; }
.price-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.price-table .card { margin: 0; }
.price-table .amt { font-size: 2.2rem; font-weight: 900; font-style: italic; font-stretch: 75%; line-height: 1; }
.price-table .amt small { font-size: .9rem; font-weight: 600; font-style: normal; color: var(--mute); }
.price-table ul { padding-left: 18px; margin: 10px 0; }
.gift { background: var(--volt); border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 18px; font-weight: 700; }

/* Suche-Knopf mit Lupe und Rahmen */
header.top nav a.searchbtn, .nav nav a.searchbtn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #fff; border-radius: 999px; padding: 4px 14px; color: #fff; opacity: 1; text-decoration: none; font-weight: 700; }
header.top nav a.searchbtn:hover, header.top nav a.searchbtn.on, .nav nav a.searchbtn:hover { background: var(--volt); color: var(--ink); border-color: var(--volt); text-decoration: none; }
.nav nav a.searchbtn { text-transform: uppercase; font-size: .9rem; letter-spacing: .06em; font-stretch: 85%; }

/* Blase mit Zahl und grünes Blinken bei neuen Anfragen */
.bubble { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #17B34A; color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; }
@keyframes kbpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,179,74,.7); } 50% { box-shadow: 0 0 0 8px rgba(23,179,74,0); } }
.btn.hasnew { background: #17B34A; border-color: #17B34A; color: #fff; animation: kbpulse 1.4s infinite; }
.card.unread { border-left: 6px solid #17B34A; cursor: pointer; }
.tag-new { background: #17B34A; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 800; margin-left: 8px; }

/* Kleine Leiste oben rechts: Anfragen, Admin, Abmelden */
header.top .util { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding-top: 6px; padding-bottom: 0; font-size: .86rem; }
header.top .util a { color: #fff; text-decoration: none; font-weight: 600; opacity: .85; }
header.top .util a:hover, header.top .util a.on { opacity: 1; text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 5px; }
header.top .util .linklike { font-size: .86rem; }
header.top nav a.searchbtn { margin-left: 4px; }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 6px 0; }
header.top .wrap { max-width: 1240px; }
header.top nav { margin-left: auto; justify-content: flex-end; gap: 14px; font-size: .95rem; }
@media (max-width: 760px) { header.top nav { justify-content: flex-start; margin-left: 0; } header.top .util { justify-content: flex-end; } }
.media-grid .m.vlink { background: #0B0E2A; display: grid; place-items: center; min-height: 124px; }
.media-grid .m.vlink a { color: #C6F432; font-weight: 800; text-decoration: none; text-align: center; padding: 16px; }
.media-grid .m.vlink small { color: #fff; font-weight: 500; }
.media-grid iframe { display: block; }
table.log { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.log th, table.log td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e3e3e3; }

/* Knöpfe in grauen Texten und Hinweisboxen bleiben lesbar */
.muted a.btn, .gift a.btn { color: #fff; }
