/* Ergänzungen und Korrekturen zum Template (style.css). */

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #202020;
    margin-bottom: 25px;
}

/* Startseite: statisches Siegerbild statt defektem Slider */
.slider_main { height: auto; min-height: 70vh; }
.cemara h2 { font-size: 26px; color: #202020; margin-bottom: 15px; }
.cemara img { max-width: 100%; height: auto; }

/* Hinweisbox für externe Inhalte (meinSpielplan.de) */
.msp-consent {
    border: 2px dashed #FFBF00;
    background: #fff8dc;
    padding: 20px 25px;
    max-width: 640px;
    margin-bottom: 15px;
}
.msp-consent p { margin-bottom: 10px; color: #333; }
.msp-consent .send_btn {
    background: #FFBF00;
    color: #000;
    border: 0;
    padding: 10px 28px;
    font-weight: 700;
    cursor: pointer;
}
.msp-consent .send_btn:hover { background: #000; color: #fff; }
.msp-powered { font-size: 12px; margin-top: 10px; }

/* Archiv */
.year-form { margin-bottom: 20px; }
.year-form select { padding: 6px 10px; font-size: 16px; }
.table-scroll { overflow-x: auto; }
#werferTable { border-collapse: collapse; width: 100%; }
#werferTable th, #werferTable td { border: 1px solid #333; text-align: center; padding: 6px 8px; }
#werferTable td:first-child { text-align: left; white-space: nowrap; }
#werferTable tbody tr:nth-child(even) { background-color: #474343; color: #FBFBFB; }
#werferTable tbody tr:nth-child(odd) { background-color: #FFFFFF; color: #474343; }

/* Galerie */
.tz-gallery .lightbox img { width: 100%; height: 260px; object-fit: cover; }
.gallery .year-form select { color: #000; }

/* Rechtstexte */
.legal h2 { font-size: 22px; margin-top: 25px; }
.legal p, .legal li { color: #333; }
.placeholder { background: #ffe08a; padding: 0 4px; }

/* Barrierefreiheit: sichtbarer Fokus */
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #FFBF00 !important; outline-offset: 2px; }

/* Startseite: Überschrift passt sich der Breite an */
.creative { padding-left: clamp(20px, 6vw, 80px); padding-right: 20px; }
.creative h1 { font-size: clamp(36px, 5.2vw, 84px); line-height: 1.05; word-break: normal; overflow-wrap: anywhere; }
.cemara img { max-height: 70vh; width: auto; }

/* Mobiles Menü: deckender Hintergrund */
@media (max-width: 767px) {
    .header-area { position: relative; z-index: 50; }
    .site-navbar ul.open { background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.15); }
    .creative { padding-top: 30px; }
}
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 15px; }
.legal li { font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.legal p { font-size: 15px; }

/* ===== Konten, Profile, Trophäen ===== */
.btn-main, .btn-light, .btn-danger {
    display: inline-block; border: 0; padding: 11px 26px; font-weight: 700; cursor: pointer;
    font-family: 'Sen', sans-serif; font-size: 15px; border-radius: 4px; text-decoration: none !important;
}
.btn-main { background: #FFBF00; color: #000 !important; }
.btn-main:hover { background: #000; color: #fff !important; }
.btn-main:disabled { opacity: .6; cursor: wait; }
.btn-light { background: #fff; color: #000 !important; border: 2px solid #000; padding: 9px 22px; }
.btn-light:hover { background: #000; color: #fff !important; }
.btn-danger { background: #b02a2a; color: #fff; }
.linkbutton { background: none; border: 0; padding: 0 6px 0 0; color: #1f1f1f; text-decoration: underline; cursor: pointer; font: inherit; }
.linkbutton.danger { color: #b02a2a; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.menu_footer .inline-form .linkbutton { color: #1f1f1f; font-weight: 700; font-size: 17px; text-decoration: none; }

.flash { margin: 15px 0; padding: 12px 18px; border-radius: 4px; background: #e8f6ea; color: #1e5c2b; border-left: 5px solid #27ae60; }
.flash-error { background: #fdecea; color: #8a1f1f; border-left-color: #b02a2a; }
.pk-msg { margin-top: 10px; font-weight: 700; color: #333; min-height: 1.5em; }
.pk-error { color: #8a1f1f; }
.hint { font-size: 13px; color: #444; }

.auth .auth-box { max-width: 560px; margin: 0 auto; background: #fff; padding: 35px 30px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.auth .auth-box.wide { max-width: 860px; }
.auth .auth-box p { color: #333; font-size: 15px; }
.form-stack { display: flex; flex-direction: column; gap: 6px; }
.form-stack label, .form-grid label { font-weight: 700; color: #222; font-size: 14px; margin-top: 8px; }
.form-stack input, .form-stack select, .form-grid input, .form-grid select, .inline-form input, .inline-form select, .linkbox input {
    padding: 9px 11px; border: 1px solid #999; border-radius: 4px; font-size: 15px; max-width: 100%; background: #fff;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 18px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; }
input.num { width: 90px; }
input.short { width: 120px; }
.linkbox input { width: 100%; font-family: monospace; font-size: 13px; }

.card-box { background: #fff; border-radius: 8px; padding: 20px 22px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.card-box p { color: #333; }
.narrow { max-width: 820px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; color: #202020; margin: 25px 0 12px; }
.card-box .section-title { margin-top: 0; }

.avatar { border-radius: 50%; object-fit: cover; background: #fff; flex: 0 0 auto; box-shadow: 0 0 0 3px #fff; }
.avatar-ini { display: inline-flex; align-items: center; justify-content: center; background: #202020; color: #FFBF00; font-weight: 800; font-family: 'Poppins', sans-serif; }
.avatar-edit { display: flex; gap: 25px; align-items: flex-start; flex-wrap: wrap; }

.nav-user a { display: inline-flex !important; align-items: center; gap: 8px; }
.site-navbar ul li { padding-right: 26px; }
@media (min-width: 768px) { .nav-user-name { display: none; } }

.badge-titel { display: inline-flex; align-items: center; gap: 4px; background: #FFBF00; color: #000; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 20px; margin: 0 6px 4px 0; }

/* Startseite: Titelverteidiger */
.champions { padding: 20px 25px; }
.champions h2 { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 800; color: #202020; margin-bottom: 18px; }
.champ { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.champ-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: #444; margin-bottom: 10px; }
.champ-head span { font-weight: 700; color: #202020; text-transform: uppercase; letter-spacing: .5px; }
.champ-head strong { color: #202020; }
.champ-players { display: flex; gap: 22px; flex-wrap: wrap; }
.champ-players a { display: flex; align-items: center; gap: 10px; color: #202020; font-weight: 700; font-size: 17px; }
.champ-sieger { border: 3px solid #FFBF00; }

/* Werferliste */
.sortbar a { margin-left: 10px; font-weight: 700; }
.sortbar a.active { color: #fff; background: #202020; padding: 2px 8px; border-radius: 3px; }
.werfer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.werfer-card { background: #fff; border-radius: 10px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #202020; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .15s; }
.werfer-card:hover { transform: translateY(-3px); color: #202020; }
.werfer-card.is-titel { border: 3px solid #202020; }
.werfer-name { font-weight: 800; font-size: 16px; }
.werfer-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #555; }
.werfer-stats span { display: inline-flex; align-items: center; gap: 3px; }

/* Profil */
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.profile-head .page-title { margin-bottom: 6px; }
.profile-meta { color: #333; font-size: 15px; margin: 6px 0; }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.trophy { background: #fff; border-radius: 10px; padding: 16px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.trophy-count { font-size: 26px; font-weight: 800; color: #202020; font-family: 'Poppins', sans-serif; line-height: 1; }
.trophy-label { font-size: 13px; color: #444; font-weight: 700; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 22px; }
.tile { background: #202020; color: #fff; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.tile-v { font-size: 24px; font-weight: 800; color: #FFBF00; font-family: 'Poppins', sans-serif; }
.tile-l { font-size: 13px; }
.award-list { list-style: none; padding: 0; }
.award-list li { background: #fff; border-radius: 6px; padding: 9px 14px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #333; font-size: 15px; }
.award-year { background: #202020; color: #FFBF00; font-weight: 700; padding: 0 8px; border-radius: 3px; font-size: 13px; }
.award-detail { color: #666; }
.stat-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.stat-table th { background: #202020; color: #fff; padding: 8px; text-align: left; }
.stat-table td { padding: 7px 8px; border-bottom: 1px solid #ddd; color: #333; vertical-align: middle; }
.stat-table tr.best td { background: #fff3c4; font-weight: 700; }
.cred-list { list-style: none; padding: 0; }
.cred-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; color: #333; }
details.danger { margin-top: 18px; }
details.danger summary { cursor: pointer; color: #b02a2a; font-weight: 700; }

/* Verwaltung */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tabs a { background: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 700; }
.tabs a.active { background: #202020; color: #FFBF00; }
.admin-users td.actions form { display: flex; flex-wrap: wrap; gap: 4px; }

/* Kopfzeile mobil: Menüknopf mittig, Menü über volle Breite */
@media (max-width: 767px) {
    .header-area { position: relative; padding: 23px 15px; }
    .header-area .row > [class*="col-"] { position: static; }
    .navbar-area { margin-top: 0 !important; }
    .site-navbar { min-height: 0 !important; }
    .nav-toggler { position: absolute !important; top: 30px; right: 15px; }
    .site-navbar ul { top: 100% !important; left: 0; right: 0; width: 100% !important; }
    .site-navbar ul li a { padding: 12px 25px !important; }
}

/* Hauptmenü: keine Zeilenumbrüche in Menüpunkten, engere Abstände auf mittleren Bildschirmen */
.site-navbar ul li a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1399px) { .site-navbar ul li { padding-right: 16px; } }
@media (min-width: 768px) and (max-width: 1199px) { .site-navbar ul li a { font-size: 14px; } .site-navbar ul li { padding-right: 8px; } .site-navbar .nav-user .avatar { width: 26px; height: 26px; } }
@media (min-width: 768px) and (max-width: 1099px) { .site-navbar ul { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; } }

/* Verwaltung: Geschlecht der Spieler */
.tn-gliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; margin-bottom: 10px; }
.tn-gliste label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #222; font-size: 14px; border-bottom: 1px solid #eee; padding: 3px 0; }
.tn-gliste select { padding: 3px 6px; }
details.card-box > summary.section-title { cursor: pointer; margin: 0; }
details.card-box[open] > summary.section-title { margin-bottom: 14px; }

/* Verwaltung: Spielerliste */
.sp-liste td { white-space: nowrap; }
.sp-liste .sp-in { width: 140px; padding: 5px 8px; border: 1px solid #bbb; border-radius: 4px; font-size: 14px; }
.sp-liste select { padding: 4px 6px; }
.sp-mehr summary { cursor: pointer; color: #555; font-size: 13px; }
.sp-mehr form { margin-top: 6px; }

/* Startseite: Die Jagd (Zwischenstand King/Queen of Cups) */
.jagd .jagd-stand { color: #444; font-size: 14px; margin: -8px 0 12px; }
.jagd-karte { border-left: 5px solid #FFBF00; }
.jagd-fuehrung { display: flex; align-items: center; gap: 14px; }
.jagd-fuehrung > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.jagd-fuehrung small { color: #666; font-size: 13px; }
.jagd-name { font-weight: 800; font-size: 19px; color: #202020; }
.jagd-zahl { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; color: #202020; line-height: 1; text-align: center; }
.jagd-zahl small { display: block; font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; }
.jagd-verfolger { margin: 10px 0 0; font-size: 14px; color: #444; }
.jagd .btn-light { margin-left: 8px; }
.jagd .btn-main { background: #202020; color: #FFBF00 !important; }
.jagd .btn-main:hover { background: #000; color: #fff !important; }

/* Hinweis auf offene Foto Vorschläge im Menü */
.nav-user a { position: relative; }
.nav-dot { position: absolute; top: -4px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* Hinweis: App installieren und Mitteilungen aktivieren */
.pwa-hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; max-width: 1110px; margin: 12px auto; padding: 14px 16px;
               background: #202020; color: #fff; border-radius: 10px; border-left: 6px solid #FFBF00; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pwa-hinweis .pwa-text { flex: 1 1 320px; font-size: 15px; }
.pwa-hinweis strong { color: #FFBF00; display: block; margin-bottom: 4px; font-size: 16px; }
.pwa-hinweis ol { margin: 6px 0; padding-left: 20px; }
.pwa-hinweis small { color: #ccc; }
.pwa-hinweis .pwa-meldung { display: block; margin-top: 6px; color: #FFBF00; }
.pwa-hinweis .pwa-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-hinweis .btn-light { background: transparent; color: #fff !important; border-color: #fff; }
@media (max-width: 1140px) { .pwa-hinweis { margin: 10px; } }
.push-status { font-weight: 700; padding: 8px 12px; border-radius: 6px; background: #f3f3f3; }
.push-status.push-an { background: #e3f4e6; color: #1e5c2b; }
.push-status.push-blockiert, .push-status.push-nicht_unterstuetzt { background: #fdecea; color: #8a1f1f; }
.push-status.push-aus, .push-status.push-ios_browser { background: #fff3c4; color: #5a4800; }
.push-knoepfe button[hidden] { display: none; }
.push-knoepfe button { margin: 0 6px 6px 0; }
.push-hilfe summary { cursor: pointer; font-weight: 700; }
.pwa-hinweis ol li { list-style: decimal; display: list-item; margin-bottom: 2px; }
.pwa-hinweis ol { list-style: decimal; }

/* Fußzeile: Link zur Spielpause mit kleinem Pausenzeichen */
.menu_footer a.bw-footer-link::before {
    content: ''; display: inline-block; width: 9px; height: 10px; margin-right: 6px; vertical-align: -1px;
    border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box;
}

/* Online Status: Punkt hinter Werfernamen (grün online, rot offline, pulsierend: wirft gerade in der Spielpause) */
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 0 1px 4px; vertical-align: middle;
    background: #c9c9c9; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); flex: none; cursor: help; }
.on-dot[hidden] { display: none; }
.on-dot.on-on { background: #27ae60; }
.on-dot.on-off { background: #d63a3a; }
.on-dot.on-wirft { animation: on-puls 1.2s ease-in-out infinite; }
@keyframes on-puls { 0%, 100% { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 0 0 0 rgba(39,174,96,.6); }
    50% { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 0 0 5px rgba(39,174,96,0); } }
@media (prefers-reduced-motion: reduce) { .on-dot.on-wirft { animation: none; } }
.on-legende { white-space: nowrap; } .on-legende .on-dot { margin-left: 0; cursor: default; }
.page-title .on-dot { width: 12px; height: 12px; margin-left: 10px; }
.tn-wn { white-space: nowrap; }
