/* ===== SPORT11 – Design System ===== */

:root {
  --red:         #C8102E;
  --red-dark:    #a30d24;
  --red-light:   #e8192f;
  --charcoal:    #3A3A3A;
  --charcoal-lt: #555555;
  --white:       #ffffff;
  --bg:          #f4f4f4;
  --bg-card:     #ffffff;
  --border:      #e0e0e0;
  --text:        #222222;
  --text-muted:  #777777;
  --shadow:      0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --radius:      6px;
  --radius-lg:   10px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-cond:   'Barlow Condensed', 'Arial Narrow', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-cond); font-weight: 700; line-height: 1.2; color: var(--charcoal); letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.layout--full { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .main-content { order: 1; }
}

/* ===== HEADER ===== */
.site-header {
  background: var(--charcoal);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.site-logo img { height: 42px; width: auto; }
.site-logo span { color: var(--white); font-family: var(--font-cond); font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.site-logo span em { color: var(--red); font-style: normal; }

/* Navigation */
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius);
  transition: all .2s; text-transform: uppercase; letter-spacing: .04em;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white); background: var(--red);
}

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* Header-Banner-Slot */
.header-ad { background: var(--charcoal); border-top: 1px solid rgba(255,255,255,.08); }
.header-ad .container { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.header-ad img { max-height: 80px; margin: 0 auto; border-radius: 4px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--charcoal); padding: 12px 20px 20px; z-index: 200;
    border-top: 2px solid var(--red);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 10px 12px; }
}

/* ===== BREAKING/CATEGORY BAR ===== */
.category-bar {
  background: var(--red); color: var(--white);
  font-family: var(--font-cond); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.category-bar .container { display: flex; gap: 0; overflow-x: auto; }
.category-bar a { color: rgba(255,255,255,.85); padding: 8px 16px; white-space: nowrap; transition: background .2s; }
.category-bar a:hover, .category-bar a.active { color: var(--white); background: rgba(0,0,0,.2); }

/* ===== HERO / FEATURED ARTICLE ===== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  margin-bottom: 32px; aspect-ratio: 16/7; background: var(--charcoal);
}
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.hero-cat {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 10px;
}
.hero h1 { color: var(--white); font-size: clamp(1.4rem, 3.5vw, 2.2rem); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-meta { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 8px; }

@media (max-width: 600px) { .hero { aspect-ratio: 4/3; } .hero-content { padding: 20px; } }

/* ===== ARTICLE CARDS ===== */
.articles-grid { display: grid; gap: 20px; }
.articles-grid--2col { grid-template-columns: repeat(2, 1fr); }
.articles-grid--3col { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) { .articles-grid--2col, .articles-grid--3col { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 1000px) { .articles-grid--3col { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--charcoal), #555); display: flex; align-items: center; justify-content: center; }
.card-img-placeholder svg { opacity: .3; }

.card-body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--red); margin-bottom: 8px;
}
.card-title { font-size: 1.05rem; color: var(--charcoal); margin-bottom: 8px; flex: 1; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--red); }
.card-excerpt { color: var(--text-muted); font-size: .88rem; line-height: 1.5; margin-bottom: 12px; }
.card-meta { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 12px; margin-top: auto; }
.card-meta svg { flex-shrink: 0; }

/* Horizontale Karte (Liste) */
.card--horizontal { flex-direction: row; }
.card--horizontal .card-img { width: 160px; flex-shrink: 0; aspect-ratio: auto; }
.card--horizontal .card-img img { height: 100%; }
@media (max-width: 500px) { .card--horizontal { flex-direction: column; } .card--horizontal .card-img { width: 100%; aspect-ratio: 16/9; } }

/* ===== AD UNITS ===== */
.ad-unit {
  display: block; background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  position: relative;
}
.ad-unit::before {
  content: 'Anzeige'; position: absolute; top: 4px; right: 8px;
  font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em;
}
.ad-unit img { width: 100%; height: auto; display: block; }
.ad-unit--sidebar { max-height: 300px; }
.ad-unit--sidebar img { max-height: 300px; object-fit: contain; }
.ad-unit--banner { width: 100%; }
.ad-unit--inline { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }
.ad-unit--inline img { max-height: 120px; object-fit: cover; width: 100%; }
.ad-empty { display: none; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.widget-header {
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-cond); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
}
.widget-header::before { content: ''; display: block; width: 3px; height: 16px; background: var(--red); border-radius: 2px; }
.widget-body { padding: 16px; }

.sidebar-article { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-article-img { width: 72px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-article-title { font-size: .85rem; font-weight: 600; color: var(--charcoal); line-height: 1.3; }
.sidebar-article-title a:hover { color: var(--red); }
.sidebar-article-date { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTION HEADERS ===== */
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-header h2 {
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.3rem; color: var(--charcoal); white-space: nowrap;
}
.section-header::after { content: ''; flex: 1; height: 2px; background: var(--border); }
.section-header-line { width: 4px; height: 24px; background: var(--red); border-radius: 2px; flex-shrink: 0; }

/* ===== ARTICLE PAGE ===== */
.article-header { margin-bottom: 28px; }
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; max-height: 480px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-cat { display: inline-block; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 4px 12px; border-radius: 3px; margin-bottom: 12px; }
.article-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 12px; }
.article-meta { color: var(--text-muted); font-size: .88rem; display: flex; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 16px; }
.article-content { font-size: 1.05rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2, .article-content h3 { margin: 1.8em 0 .8em; }
.article-content img { border-radius: var(--radius); margin: 1.5em 0; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-weight: 600; font-size: .9rem; transition: all .2s;
}
.pagination a { background: var(--bg-card); color: var(--charcoal); box-shadow: var(--shadow); }
.pagination a:hover { background: var(--red); color: var(--white); }
.pagination span { background: var(--red); color: var(--white); }

/* ===== FOOTER ===== */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background .2s; }
.footer-social a:hover { background: var(--red); }
.footer-heading { color: var(--white); font-family: var(--font-cond); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; display: flex; justify-content: space-between; align-items: center; font-size: .82rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== PAGE WRAPPER ===== */
.page-main { padding: 32px 0 20px; }

/* ===== UTILS ===== */
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--charcoal); }
