/*
Theme Name: SmtoursTravels Radsport Hub
Author: SmtoursTravels Media Group
Description: Das Premium-Portal für den weltweiten Radsport. Taktische Analysen, UCI-Rankings und tiefgehende Einblicke in die Tour.
Version: 1.0.0
*/

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

:root {
    /* German Asphalt & Precision Palette (High Contrast) */
    --primary: #FDE047;        /* Racing Yellow */
    --secondary: #1F2937;      /* Deep Asphalt */
    --accent: #EA580C;         /* Orange Alert */
    --black: #000000;
    --white: #FFFFFF;
    --bg-main: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border: #111827;
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

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

/* Global Reset - Axis V-B: Neobrutalism (Sharp & Bold) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important; /* Sharp edges for precision */
}

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

/* Fluid Typography - Rule 14 & Rule 22 */
h1, h2, h3, .logo, .footer-logo {
    overflow-wrap: break-word;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Rule 14: Safe h1 threshold 1.8rem */
h1 { font-size: clamp(1.8rem, 10vw, 8rem); line-height: 0.9; color: var(--secondary); margin-bottom: 2rem; }
h2 { font-size: clamp(1.6rem, 6vw, 4rem); line-height: 1; color: var(--secondary); margin-bottom: 3.5rem; position: relative; }
h3 { font-size: clamp(1.3rem, 4vw, 2.2rem); line-height: 1.1; color: var(--secondary); }

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

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-D: Centered Header Architecture */
.site-header {
    background: var(--white);
    padding: 3rem 0;
    position: relative;
    border-bottom: 8px solid var(--primary);
    z-index: 1000;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo span { background: var(--secondary); color: var(--primary); padding: 0 1rem; }

.main-nav ul { 
    display: flex; 
    gap: 4rem; 
    list-style: none; 
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}
.main-nav a { 
    font-weight: 700; 
    font-size: 0.9rem; 
    color: var(--secondary); 
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--accent); transform: translateY(-3px); }

.nav-toggle { display: none; }

/* DNA H-B: Split-screen Hero 50/50 */
.hero-radsport {
    min-height: 90vh;
    display: flex;
    align-items: stretch;
    background: var(--bg-main);
}
.hero-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero-text { 
    padding: 5rem; display: flex; flex-direction: column; justify-content: center;
    background: var(--bg-main); border-right: 4px solid var(--border);
}
.hero-image { position: relative; overflow: hidden; background: var(--secondary); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) grayscale(20%); border: none; }

.btn-race {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 4px solid var(--secondary);
}
.btn-race:hover { background: var(--primary); color: var(--secondary); }

/* DNA D-E: Accent Strips of Color */
.strip-yellow { border-top: 12px solid var(--primary); }
.strip-asphalt { border-left: 15px solid var(--secondary); padding-left: 3rem; }

/* DNA U-E: Numerical Infographic (Tour Monitor) */
.info-section {
    padding: var(--section-pad) 0;
    background: var(--primary);
    color: var(--secondary);
    border-bottom: 4px solid var(--border);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}
.info-item strong { display: block; font-size: 5rem; line-height: 1; }
.info-item span { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; }

/* DNA F-A: Horizontal Stripes (Vorteile) */
.radsport-benefits { background: var(--white); }
.benefit-row {
    display: flex; align-items: center; gap: 6rem; padding: 6rem 0; border-bottom: 4px solid var(--border);
}
.benefit-row:last-child { border-bottom: none; }
.benefit-num { font-size: 8rem; line-height: 1; color: var(--primary); -webkit-text-stroke: 2px var(--border); font-weight: 900; flex-shrink: 0; }
.benefit-content h3 { color: var(--secondary); margin-bottom: 1.5rem; }

/* Posts Grid - Axis C-A: Vertical Cards (Standard 3x3) */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.section-header { margin-bottom: 6rem; }

.radsport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 8rem;
}

.post-card-vert {
    background: var(--white);
    border: 4px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card-vert:hover { transform: translate(-10px, -10px); box-shadow: 15px 15px 0 var(--primary); }

.post-card-vert .thumb { height: 280px; overflow: hidden; border-bottom: 4px solid var(--border); }
.post-card-vert .thumb img { width: 100%; height: 100%; object-fit: cover; border: none; }

.post-card-vert .content { padding: 3rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-vert h3 { margin-bottom: 2rem; flex-grow: 1; font-size: 1.8rem; }

.btn-read {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 4px solid var(--primary);
}

/* Pagination - Industrial Style */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 8rem; }
.pagination .page-numbers {
    padding: 1.2rem 2rem;
    background: var(--white);
    border: 4px solid var(--border);
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.4rem;
}
.pagination span.current, .pagination a:hover { background: var(--primary); border-color: var(--border); }

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

.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-nav a { font-weight: 700; color: var(--white); text-transform: uppercase; font-size: 1.1rem; }
.footer-nav a:hover { color: var(--primary); padding-left: 1rem; }

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-image { height: 400px; order: -1; }
    .radsport-grid { grid-template-columns: repeat(2, 1fr); }
    .info-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: 4rem 2rem; border-bottom: 8px solid var(--primary);
    }
    .main-nav ul { flex-direction: column; gap: 2rem; align-items: center; border: none; padding: 0; }
    .nav-toggle { display: flex; flex-direction: column; gap: 6px; width: 35px; background: none; border: none; cursor: pointer; }
    .nav-toggle span { width: 100%; height: 4px; background: var(--secondary); }
    
    .hero-text { padding: 4rem 2rem; }
    .radsport-grid { grid-template-columns: 1fr; }
    .benefit-row { flex-direction: column; gap: 2rem; text-align: center; }
    .benefit-num { font-size: 5rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 3rem; text-align: center; }
}
