/*
Theme Name: SPIELTACH
Theme URI: https://fanolparadise.de/
Author: OpenAI
Description: Modernes Fußball-/Magazin-Theme für SPIELTACH mit Hertha-inspiriertem Blau, Hero-Aufmacher, Artikelkarten, Sidebar und AdSense-Flächen.
Version: 2.7.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: spieltach
*/

:root{
  --st-navy:#06254b;
  --st-navy-2:#0a315f;
  --st-blue:#1496ff;
  --st-blue-2:#44b5ff;
  --st-bg:#f4f7fb;
  --st-card:#ffffff;
  --st-text:#10233f;
  --st-muted:#6d7d90;
  --st-border:#dfe7f0;
  --st-radius:18px;
  --st-shadow:0 10px 28px rgba(9,40,76,.08);
  --st-max:1460px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--st-bg);color:var(--st-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}

.container{width:min(calc(100% - 32px),var(--st-max));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:linear-gradient(90deg,var(--st-navy),#001a3d);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 4px 18px rgba(0,0,0,.12)}
.header-inner{min-height:78px;display:flex;align-items:center;gap:28px}
.brand{display:flex;flex-direction:column;min-width:max-content;line-height:1}
.brand-title{font-size:30px;font-weight:900;font-style:italic;letter-spacing:-1px}
.brand-sub{margin-top:8px;font-size:10px;letter-spacing:4px;color:var(--st-blue-2);font-weight:800}
.main-nav{display:flex;align-items:center;gap:30px;margin-left:auto}
.main-nav a{font-weight:750;opacity:.94;padding:30px 0 24px;position:relative}
.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--st-blue-2)}
.main-nav a:hover:after,.main-nav .current-menu-item>a:after{content:"";position:absolute;left:0;right:0;bottom:16px;height:3px;background:var(--st-blue);border-radius:99px}
.header-actions{display:flex;align-items:center;gap:10px}
.search-toggle,.menu-toggle{border:0;color:#fff;background:transparent;cursor:pointer;border-radius:10px;padding:10px 12px;font-weight:750}
.menu-toggle{background:var(--st-blue)}
.menu-toggle:hover{filter:brightness(1.05)}
.mobile-menu{display:none;background:#031a36;border-top:1px solid rgba(255,255,255,.08)}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:14px 16px;color:#fff;border-bottom:1px solid rgba(255,255,255,.07)}

.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;padding:22px 0 50px}
.content-col{min-width:0}
.sidebar{display:flex;flex-direction:column;gap:18px}

.hero{position:relative;min-height:470px;border-radius:var(--st-radius);overflow:hidden;background:#0a2342;box-shadow:var(--st-shadow);display:flex;align-items:flex-end}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,19,43,.92) 0%,rgba(2,19,43,.7) 42%,rgba(2,19,43,.18) 72%,rgba(2,19,43,.14) 100%)}
.hero-content{position:relative;z-index:2;padding:42px;max-width:72%}
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--st-blue);color:#fff;padding:7px 11px;border-radius:8px;font-size:13px;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.hero h1{font-size:clamp(38px,5vw,67px);line-height:.98;margin:16px 0 14px;letter-spacing:-2px;color:#fff}
.hero-excerpt{font-size:21px;color:#ecf5ff;max-width:760px;margin:0 0 20px}
.meta{display:flex;flex-wrap:wrap;gap:16px;color:#d9e7f5;font-size:14px;font-weight:650}

.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:28px 0 14px}
.section-head h2{margin:0;font-size:30px;line-height:1.1;letter-spacing:-.6px}
.category-pills{display:flex;gap:8px;flex-wrap:wrap}
.category-pills a{background:#fff;border:1px solid var(--st-border);padding:7px 12px;border-radius:999px;font-size:13px;font-weight:750}
.category-pills a:hover{background:var(--st-blue);border-color:var(--st-blue);color:#fff}

.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{background:var(--st-card);border:1px solid var(--st-border);border-radius:16px;overflow:hidden;box-shadow:var(--st-shadow);display:flex;flex-direction:column;min-height:100%}
.card-media{aspect-ratio:16/8.8;background:#d9e4ef;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.card:hover .card-media img{transform:scale(1.035)}
.card-body{padding:16px 16px 14px;display:flex;flex-direction:column;flex:1}
.card h3{font-size:22px;line-height:1.08;margin:9px 0 8px;letter-spacing:-.35px}
.card p{margin:0 0 16px;color:#4f6074;font-size:15px}
.card .meta{margin-top:auto;color:#6b7c90;font-size:13px}
.card-arrow{margin-left:auto;color:var(--st-blue);font-size:22px;font-weight:900}

.widget{background:#fff;border:1px solid var(--st-border);border-radius:16px;box-shadow:var(--st-shadow);padding:18px}
.widget h3{margin:0 0 12px;font-size:20px}
.widget .small{color:var(--st-muted);font-size:13px}
.widget-button{display:flex;justify-content:center;align-items:center;background:var(--st-blue);color:#fff;border-radius:10px;padding:12px 14px;font-weight:800;margin-top:14px}
.widget-button:hover{filter:brightness(1.04)}
.newsletter{background:linear-gradient(145deg,var(--st-navy),#0b4d8f);color:#fff}
.newsletter p{color:#d8e9fb;margin-top:0}
/* Newsletter: Formular selbst bleibt vertikal; nur E-Mail + Button bilden eine Zeile. */
.newsletter-form{display:block;min-width:0}
.newsletter-form input[type="email"]{width:100%;min-width:0;border:0;border-radius:9px;padding:11px 12px;box-sizing:border-box;font:inherit}
.newsletter-form button{border:0;background:var(--st-blue);color:white;min-width:46px;min-height:42px;padding:0 15px;border-radius:9px;cursor:pointer;font-weight:900}
.popular-list{display:flex;flex-direction:column;gap:12px}
.popular-item{display:grid;grid-template-columns:30px 72px minmax(0,1fr);gap:10px;align-items:center}
.popular-num{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf6ff;color:#0a72ca;font-weight:900}
.popular-thumb{width:72px;height:50px;border-radius:8px;overflow:hidden;background:#dce6f0}
.popular-thumb img{width:100%;height:100%;object-fit:cover}
.popular-title{font-size:14px;line-height:1.15;font-weight:800}

.ad-slot{min-height:92px;border:1px dashed #c6d2df;background:#eaf0f6;border-radius:14px;display:grid;place-items:center;text-align:center;color:#8a98a9;padding:18px;margin-top:18px;font-size:13px}

.article-shell{display:grid;grid-template-columns:minmax(0,820px) 340px;gap:38px;justify-content:center;padding:36px 0 60px}
.article{background:#fff;border:1px solid var(--st-border);border-radius:18px;box-shadow:var(--st-shadow);overflow:hidden}
.article-cover{aspect-ratio:16/8.5;background:#dbe4ef}
.article-cover img{width:100%;height:100%;object-fit:cover}
.article-header{padding:34px 38px 8px}
.article-header h1{font-size:clamp(36px,5vw,58px);line-height:1.02;letter-spacing:-1.8px;margin:14px 0}
.article-content{padding:8px 38px 42px;font-size:18px;color:#243650}
.article-content p{margin:0 0 1.2em}
.article-content h2,.article-content h3{color:var(--st-text);line-height:1.15;margin-top:1.6em}
.article-content img{border-radius:14px}
.article-content blockquote{margin:1.5em 0;padding:1em 1.2em;border-left:4px solid var(--st-blue);background:#f3f8fd;border-radius:0 10px 10px 0}

.archive-title{font-size:42px;margin:10px 0 20px;letter-spacing:-1px}
.pagination{display:flex;gap:8px;margin-top:24px;flex-wrap:wrap}
.pagination .page-numbers{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid var(--st-border)}
.pagination .current{background:var(--st-blue);color:#fff;border-color:var(--st-blue)}

.site-footer{background:#031a36;color:#dce8f4;margin-top:40px}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px;padding:40px 0}
.footer-title{font-size:26px;color:#fff;font-weight:900;font-style:italic}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 0;color:#9eb1c5;font-size:13px}

.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:1180px){
  .main-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hero-content{max-width:78%}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .main-nav{display:none}.header-actions{margin-left:auto}.menu-toggle{display:block}.hero{min-height:430px}.hero-content{max-width:100%;padding:30px}.hero::after{background:linear-gradient(0deg,rgba(2,19,43,.92),rgba(2,19,43,.2))}.article-shell{grid-template-columns:1fr}.article-sidebar{order:2}
}
@media (max-width:680px){
  .container{width:min(calc(100% - 20px),var(--st-max))}.header-inner{min-height:68px}.brand-title{font-size:24px}.brand-sub{font-size:8px;letter-spacing:2.5px}.search-toggle{display:none}.main-grid{padding-top:12px}.hero{min-height:480px;border-radius:14px}.hero-content{padding:22px}.hero h1{font-size:42px}.hero-excerpt{font-size:17px}.cards{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.article-header,.article-content{padding-left:20px;padding-right:20px}.article-header h1{font-size:40px}.footer-inner{grid-template-columns:1fr}.category-pills{overflow:auto;flex-wrap:nowrap;width:100%;padding-bottom:4px}.category-pills a{white-space:nowrap}
}


/* ===== SPIELTACH V2 ===== */
:root{--st-navy:#06254b;--st-blue:#078df0;--st-bg:#f3f7fb;--st-card:#fff;--st-text:#0c2340;--st-muted:#677a91;--st-border:#dfe8f1}
body{background:var(--st-bg)}
.site-main{min-height:60vh}
.st-home-ad{margin:26px 0}
.st-next-match-empty{padding:26px;border:1px dashed var(--st-border);border-radius:16px;color:var(--st-muted);background:#fff}
.article-content .st-inline-ad{margin:34px 0}
.st-inline-ad .ad-slot{margin:0}
@media(max-width:760px){.hero-grid{grid-template-columns:1fr!important}.hero-score{position:static!important;margin:18px!important}.cards-grid{grid-template-columns:1fr!important}}


/* SPIELTACH Newsletter 2.2 */
.spieltach-newsletter-form{display:block!important;margin-top:12px;width:100%;min-width:0}
.spieltach-newsletter-row{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;align-items:stretch;width:100%}
.spieltach-newsletter-row input[type="email"]{width:100%;min-width:0;height:42px;margin:0}
.spieltach-newsletter-row button{width:46px;height:42px;padding:0;display:grid;place-items:center}
.spieltach-newsletter-consent{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:start;margin-top:11px;font-size:11px;line-height:1.45;color:rgba(255,255,255,.86);width:100%}
.spieltach-newsletter-consent input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:14px!important;height:14px!important;min-width:14px!important;margin:2px 0 0!important;padding:0!important;flex:none!important;border-radius:2px!important}
.spieltach-newsletter-consent span{min-width:0;overflow-wrap:anywhere}
.spieltach-newsletter-consent a,.spieltach-newsletter-rss a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.spieltach-newsletter-rss{display:block;margin-top:10px;font-size:11px;line-height:1.4;color:rgba(255,255,255,.78);overflow-wrap:anywhere}
.st-newsletter-notice{margin:0 0 10px;padding:9px 11px;border-radius:9px;font-size:12px;line-height:1.45;background:rgba(255,255,255,.14)}
.st-newsletter-notice.is-error{background:rgba(255,80,80,.2)}
.st-newsletter-notice.is-success{background:rgba(50,200,120,.18)}
.spieltach-newsletter-missing{font-size:12px;opacity:.8}
@media(max-width:380px){.spieltach-newsletter-row{grid-template-columns:1fr}.spieltach-newsletter-row button{width:100%}}

/* ===== SPIELTACH Kader 2.3 ===== */
.main-nav li{list-style:none;margin:0;padding:0}
.main-nav ul{list-style:none;margin:0;padding:0}
.st-squad-hero{background:linear-gradient(120deg,#031a36,#0b4e91);color:#fff;padding:56px 0 48px;border-bottom:1px solid rgba(255,255,255,.08)}
.st-squad-hero h1{font-size:clamp(44px,6vw,74px);line-height:1;margin:14px 0 12px;letter-spacing:-2px;color:#fff}
.st-squad-hero p{max-width:760px;margin:0;color:#dcecff;font-size:18px}
.st-squad-wrap{padding:30px 0 64px}
.st-squad-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px}
.st-squad-tabs a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;background:#fff;border:1px solid var(--st-border);border-radius:999px;font-weight:800}
.st-squad-tabs a span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#eaf5ff;color:#0878d3;font-size:12px}
.st-squad-section{scroll-margin-top:105px;margin-top:34px}
.st-squad-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.st-squad-section-head h2{font-size:30px;margin:0;letter-spacing:-.6px}
.st-squad-section-head>span{color:var(--st-muted);font-size:14px}
.st-player-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.st-player-card{background:#fff;border:1px solid var(--st-border);border-radius:18px;overflow:hidden;box-shadow:var(--st-shadow);min-width:0}
.st-player-card-link{display:block;height:100%}
.st-player-photo{position:relative;aspect-ratio:4/4.4;background:linear-gradient(160deg,#eaf3fb,#d8e9f8);overflow:hidden}
.st-player-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .25s ease}
.st-player-card:hover .st-player-photo img{transform:scale(1.025)}
.st-player-number{position:absolute;left:14px;bottom:14px;display:grid;place-items:center;min-width:52px;height:52px;padding:0 10px;border-radius:14px;background:#fff;color:var(--st-navy);font-size:24px;font-weight:950;box-shadow:0 8px 22px rgba(0,25,55,.18)}
.st-player-card-body{padding:17px}
.st-player-position{color:var(--st-blue);font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.st-player-card h3{font-size:22px;line-height:1.1;margin:6px 0 4px}
.st-player-card p{margin:0;color:var(--st-muted);font-size:14px}
.st-player-more{display:inline-block;margin-top:14px;color:#0878d3;font-weight:800;font-size:13px}
.st-squad-empty{padding:30px;background:#fff;border:1px solid var(--st-border);border-radius:16px}

.st-player-profile{padding:30px 0 70px}
.st-back-link{display:inline-flex;margin-bottom:18px;color:#0b72c4;font-weight:800}
.st-profile-hero{display:grid;grid-template-columns:minmax(300px,42%) minmax(0,1fr);background:linear-gradient(125deg,#041d3d,#0a4a88);border-radius:22px;overflow:hidden;color:#fff;box-shadow:var(--st-shadow)}
.st-profile-photo{min-height:480px;background:#e3edf7}
.st-profile-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.st-profile-intro{padding:48px;align-self:center;min-width:0}
.st-profile-kicker{font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#59baff}
.st-profile-name-row{display:flex;align-items:center;gap:18px;margin:12px 0 4px;min-width:0}
.st-profile-number{font-size:clamp(44px,7vw,78px);font-weight:950;line-height:1;color:#55b6ff;letter-spacing:-3px}
.st-profile-name-row h1{margin:0;color:#fff;font-size:clamp(40px,5vw,68px);line-height:.98;letter-spacing:-2px;overflow-wrap:anywhere}
.st-profile-position{font-size:20px;color:#d8ebff;margin:10px 0 24px}
.st-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;border-top:1px solid rgba(255,255,255,.16);padding-top:20px}
.st-profile-fact{display:flex;flex-direction:column;gap:2px;min-width:0}
.st-profile-fact span{color:#a9c9e8;font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:800}
.st-profile-fact strong{font-size:16px;overflow-wrap:anywhere}
.st-profile-external{display:inline-flex;margin-top:24px;background:var(--st-blue);padding:11px 15px;border-radius:10px;font-weight:850}
.st-profile-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;margin-top:24px}
.st-profile-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.st-profile-panel{background:#fff;border:1px solid var(--st-border);border-radius:18px;padding:28px;box-shadow:var(--st-shadow)}
.st-profile-panel h2{font-size:28px;margin:0 0 16px}
.st-profile-copy{font-size:17px;color:#344a64}
.st-title-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.st-title-card{display:flex;align-items:center;gap:13px;border:1px solid var(--st-border);border-radius:14px;padding:13px;background:#f9fbfd;min-width:0}
.st-title-card img{width:54px;height:54px;object-fit:contain;flex:none}
.st-title-card div{display:flex;flex-direction:column;min-width:0}
.st-title-card strong{line-height:1.2}
.st-title-card span,.st-title-card small{color:var(--st-muted)}
.st-profile-summary>div{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-top:1px solid var(--st-border);font-size:13px}
.st-profile-summary>div span{color:var(--st-muted)}
.st-profile-summary>div strong{text-align:right}

@media(max-width:1100px){.st-player-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.st-profile-content-grid{grid-template-columns:1fr}.st-profile-side{display:none}}
@media(max-width:800px){.st-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-profile-hero{grid-template-columns:1fr}.st-profile-photo{min-height:420px;max-height:560px}.st-profile-intro{padding:30px}.st-profile-facts{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.st-squad-hero{padding:38px 0 34px}.st-player-grid{grid-template-columns:1fr 1fr;gap:10px}.st-player-card-body{padding:12px}.st-player-card h3{font-size:17px}.st-player-number{min-width:42px;height:42px;font-size:19px;left:10px;bottom:10px}.st-profile-name-row{align-items:flex-start;flex-direction:column;gap:4px}.st-profile-number{font-size:48px}.st-profile-name-row h1{font-size:40px}.st-profile-facts{grid-template-columns:1fr}.st-title-grid{grid-template-columns:1fr}}


/* SPIELTACH 2.4: leere Sidebar-Widgets nicht als weiße Platzhalter anzeigen. */
.article-sidebar .widget:empty{display:none!important}
.article-sidebar .widget:has(> .widget-content:empty){display:none}


/* ===== SPIELTACH 2.7: Spielerstatistiken ===== */
.st-player-stats-intro{margin:-6px 0 18px;color:var(--st-muted);font-size:14px}
.st-player-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.st-player-stat{display:flex;flex-direction:column;justify-content:space-between;min-height:112px;padding:17px;border:1px solid var(--st-border);border-radius:15px;background:linear-gradient(145deg,#f9fcff,#eef6fd)}
.st-player-stat strong{font-size:32px;line-height:1;color:var(--st-navy);letter-spacing:-1px}
.st-player-stat span{margin-top:10px;color:var(--st-muted);font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.st-player-stat.is-goal{background:linear-gradient(145deg,#f4fbff,#e5f4ff)}
.st-player-stat.is-card-yellow{background:linear-gradient(145deg,#fffdf4,#fff6cf)}
.st-player-stat.is-card-yellowred{background:linear-gradient(145deg,#fff9ef,#ffe8d0)}
.st-player-stat.is-card-red{background:linear-gradient(145deg,#fff7f7,#ffe3e3)}
.st-profile-stat-mini{margin-top:18px;padding-top:8px;border-top:1px solid var(--st-border)}
.st-profile-stat-mini h4{margin:8px 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--st-muted)}
.st-profile-stat-mini>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-top:1px solid var(--st-border);font-size:13px}
.st-profile-stat-mini>div span{color:var(--st-muted)}
.st-profile-stat-mini>div strong{text-align:right}
@media(max-width:800px){.st-player-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.st-player-stats-grid{grid-template-columns:1fr 1fr;gap:9px}.st-player-stat{min-height:98px;padding:14px}.st-player-stat strong{font-size:28px}}
