/*
Theme Name: Tawnuli Fußball Hub
Author: Tawnuli Media
Description: Das ultimative Fußball-Portal für Taktik, Analysen и Live-News. Wir liefern Präzision auf и neben dem Platz.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Electric Green & Tactical Navy Palette (DNA V-B: Neobrutalism) */
    --primary: #CCFF00;        /* Electric Grass Green */
    --secondary: #0A0F1D;      /* Deep Stadium Blue */
    --accent: #FF3D00;         /* Signal Red (Card) */
    --black: #000000;
    --white: #FFFFFF;
    --bg-main: #FFFFFF;
    --text-main: #0A0F1D;
    --text-muted: #64748B;
    --border: #0A0F1D;
    
    --container-width: 1300px;
    --content-width: 850px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Adaptive Design Variables */
    --section-pad: clamp(5rem, 12vw, 10rem);
    --hero-pad: clamp(6rem, 15vw, 12rem);
}

/* Global Reset - Axis V-B: Neobrutalism */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Sharp corners for tactical precision */
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* DNA D-D: Background SVG Pattern (Tactical Grid) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Fluid Typography - Rule 14 & Rule 22 */
h1, h2, h3, .logo, .footer-logo {
    overflow-wrap: break-word;
    font-family: 'Bebas Neue', cursive;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-wrap: balance;
    hyphens: auto;
}

/* Rule 14: Safe h1 threshold 1.8rem */
h1 { font-size: clamp(1.8rem, 12vw, 9rem); line-height: 0.9; margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.6rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 4rem; position: relative; }
h3 { font-size: clamp(1.3rem, 4vw, 2.8rem); line-height: 1; margin-bottom: 1.5rem; }

.mono { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; }

img { max-width: 100%; height: auto; display: block; border: 4px solid var(--border); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* DNA N-A: Classic Horizontal Header */
.site-header {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo span { background: var(--primary); padding: 0 0.5rem; border: 2px solid var(--border); }

.main-nav ul { display: flex; gap: 3rem; list-style: none; }
.main-nav a { 
    font-weight: 700; 
    font-size: 0.9rem; 
    color: var(--secondary);
    position: relative;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 3px; background: var(--primary); transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* DNA H-D: Breakout Hero (Image breaks out of container) */
.hero-tawnuli {
    padding: var(--hero-pad) 0;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero-tawnuli h1 span { color: var(--primary); }
.hero-content { max-width: 800px; position: relative; z-index: 5; }
.hero-content p { font-size: 1.25rem; color: rgba(255,255,255,0.6); margin-bottom: 3.5rem; max-width: 600px; }

.hero-breakout {
    position: absolute;
    top: 10%; right: -5%;
    width: 45%; height: 80%;
    z-index: 1;
    transform: rotate(3deg);
    box-shadow: 20px 20px 0 var(--primary);
}
.hero-breakout img { width: 100%; height: 100%; object-fit: cover; border: 4px solid var(--white); }

.btn-tactical {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--primary);
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    border: 4px solid var(--border);
    box-shadow: 8px 8px 0 var(--border);
}
.btn-tactical:hover { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--border); }

/* DNA U-A: Tactical Manifesto (Quote Block) */
.manifesto-section {
    padding: var(--section-pad) 0;
    background: var(--primary);
    border-bottom: 4px solid var(--border);
}
.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.manifesto-content h2 { margin-bottom: 2rem; color: var(--secondary); }
.manifesto-content p { font-size: 1.5rem; font-weight: 700; line-height: 1.4; color: var(--secondary); font-style: italic; }

/* DNA F-C: Accordion Benefits */
.tawnuli-accordion { padding: var(--section-pad) 0; background: var(--white); }
.acc-item { border: 4px solid var(--border); margin-bottom: 1.5rem; transition: var(--transition); }
.acc-header { padding: 2rem; background: var(--white); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.acc-header h3 { margin-bottom: 0; }
.acc-header::after { content: '+'; font-size: 2rem; font-weight: 700; }
.acc-item.is-active .acc-header::after { content: '-'; }
.acc-content { padding: 0 2rem 2rem; display: none; }
.acc-item.is-active { box-shadow: 12px 12px 0 var(--primary); }

/* Posts Grid - Axis C-E: Numbered Cards */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.tawnuli-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 8rem;
}

.post-card-num {
    position: relative;
    padding-top: 4rem;
}
.post-card-num::before {
    content: attr(data-rank);
    position: absolute;
    top: 0; left: 0;
    font-family: 'Bebas Neue';
    font-size: 6rem;
    line-height: 1;
    color: var(--primary);
    -webkit-text-stroke: 2px var(--border);
    z-index: 1;
}
.post-card-num .inner {
    background: var(--white);
    border: 4px solid var(--border);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}
.post-card-num:hover .inner { transform: translate(-8px, -8px); box-shadow: 12px 12px 0 var(--secondary); }
.post-card-num .thumb { height: 250px; overflow: hidden; border-bottom: 4px solid var(--border); }
.post-card-num img { width: 100%; height: 100%; object-fit: cover; border: none; }
.post-card-num .content { padding: 2.5rem; }

/* Pagination - Technical Block */
.pagination { display: flex; justify-content: center; gap: 0; margin-top: 8rem; }
.pagination .page-numbers {
    padding: 1.5rem 2.5rem;
    background: var(--white);
    border: 4px solid var(--border);
    font-family: 'Bebas Neue';
    font-size: 1.8rem;
    margin-left: -4px;
}
.pagination span.current { background: var(--secondary); color: var(--primary); border-color: var(--secondary); z-index: 2; }
.pagination a:hover { background: var(--primary); z-index: 1; }

/* DNA FT-C: Three-column Footer */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 10rem 0 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 8rem;
}
.footer-logo { font-size: 4rem; color: var(--white); margin-bottom: 3rem; overflow-wrap: anywhere; }
.footer-logo span { color: var(--primary); }
.footer-desc { color: rgba(255,255,255,0.4); font-size: 1rem; line-height: 1.6; max-width: 400px; overflow-wrap: break-word; }

.footer-title { color: var(--primary); margin-bottom: 2.5rem; font-size: 1.2rem; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1.2rem; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; font-size: 0.8rem; font-family: 'JetBrains Mono'; color: rgba(255,255,255,0.2);
}

/* Rule 22: Content Protocol */
.post-main { max-width: var(--content-width); margin: 8rem auto; padding: 0 2rem; }
.post-header { margin-bottom: 6rem; }
.post-meta { background: var(--primary); color: var(--secondary); padding: 0.5rem 1rem; font-weight: 700; margin-bottom: 2rem; display: inline-block; }
.post-content h2, .post-content h3 { margin: 5rem 0 2.5rem; border-left: 12px solid var(--primary); padding-left: 2rem; }
.post-content table { width: 100%; border: 4px solid var(--border); margin: 4rem 0; border-collapse: collapse; }
.post-content th { background: var(--secondary); color: var(--primary); padding: 1.5rem; text-align: left; }
.post-content td { padding: 1.5rem; border: 2px solid var(--border); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-breakout { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
    .tawnuli-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: row; justify-content: space-between; }
    .main-nav { display: none; }
    .main-nav.is-active {
        display: block; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 3rem; border-bottom: 4px solid var(--border);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
    .nav-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; }
    .nav-toggle span { width: 30px; height: 3px; background: var(--secondary); }
    
    .tawnuli-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .footer-desc { margin: 0 auto; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
