/* =========================
   EBR Fan-Liveticker – site.css
   Ziel: Einheitliche Container-Breite für Cards, Countdown & Blog
   ========================= */

:root{
  /* Farben */
  --bg-dim: rgba(0,0,0,.55);
  --muted:#cfcfcf;
  --card-border: rgba(255,255,255,.12);
  --card-bg1: rgba(255,255,255,.06);
  --card-bg2: rgba(255,255,255,.03);
  --brand1:#7c1b20;
  --brand2:#501216;
  --link:#e5e7eb;
  --link-hover:#d1d5db;
  --text:#fff;
  --heim:#ef4444;
  --aus:#9ca3af;
  --heim-bg:rgba(239,68,68,.12);
  --aus-bg:rgba(156,163,175,.15);

  /* Layout */
  --container-w: 1100px;
  --container-px: 20px;

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: 'Bebas Neue', system-ui, sans-serif;
  --font-hero: 'Anton', system-ui, sans-serif;
}

/* ========== RESET ========== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}
html,body{
  height:100%;
}
body{
  color:var(--text);
  font-family:var(--font-sans);
  background:
    linear-gradient(var(--bg-dim), var(--bg-dim)),
    url('/assets/hero-matchday.jpg') center/cover no-repeat fixed;
  overflow-x:hidden;
  transition:background 1s ease-in-out;
}

/* Globale Links */
a{
  color:var(--link);
  text-decoration:none;
  transition:color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a:hover{ color:var(--link-hover); }
a:focus{ outline:none; }

/* ========== HEADER ========== */
header.hero{
  text-align:center;
  padding:56px var(--container-px) 24px;
}
.hero-logo{
  width:120px;
  border-radius:50%;
  box-shadow:0 0 22px rgba(255,255,255,.25);
  margin-bottom:16px;
}
h1{
  font-family:var(--font-hero);
  font-size:clamp(42px,7vw,80px);
  letter-spacing:2px;
  text-shadow:0 0 12px rgba(255,255,255,.18);
}
.tagline{
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.4;
}

/* ========== NAVIGATION ========== */
.topnav-wrap{
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.25));
  backdrop-filter: blur(6px);
}
.topnav{
  max-width:var(--container-w);
  margin:0 auto;
  padding:8px var(--container-px);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.topnav a{
  color:#e5e7eb;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,var(--card-bg1),var(--card-bg2));
  font-family:var(--font-display);
  letter-spacing:.5px;
}
.topnav a:hover{
  color:#fff;
  box-shadow:0 0 8px rgba(255,255,255,.25);
}
.topnav a.active{
  background:linear-gradient(135deg,var(--brand1),var(--brand2));
  border-color:transparent;
}

/* ========== EINHEITLICHER CONTAINER ========== */
/* alles, was inhaltlich „mittig“ sein soll */
main,
.countdown-wrap,
.blog-wrap,
#visitor-counter{
  max-width:var(--container-w);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--container-px);
  padding-right:var(--container-px);
}

/* vertikale Abstände */
main{
  margin:26px auto 60px;
}
.countdown-wrap{
  margin:20px auto;
}
.blog-wrap{
  margin:26px auto 60px;
}

/* Trennlinie zwischen Cards und Blog */
.section-divider{
  max-width:var(--container-w);
  margin:40px auto 10px;
  border:0;
  border-top:1px solid rgba(255,255,255,.25);
  opacity:.7;
}

/* ========== CARDS-GRID ========== */
.grid{
  display:grid;
  gap:20px;
  width:100%;          /* wichtig: kein eigener Seitensprung */
}
@media (min-width:760px){
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Grundkarte – Basis für Cards UND Blog-Karten */
.card,
.blog-card{
  background:linear-gradient(180deg,var(--card-bg1),var(--card-bg2));
  border:1px solid var(--card-border);
  border-radius:14px;
  padding:22px 24px;
  backdrop-filter:blur(6px);
}

/* normale Cards */
.card h2{
  font-family:var(--font-display);
  font-size:1.6rem;
  margin-bottom:8px;
}
.card p{
  color:var(--muted);
  margin-bottom:14px;
}

/* ========== CTA BUTTONS ========== */
.cta{
  display:inline-block;
  width:100%;
  text-align:center;
  font-family:var(--font-display);
  font-size:1.2rem;
  padding:12px 0;
  border-radius:10px;
  background:linear-gradient(135deg,var(--brand1),var(--brand2));
  transition:transform .2s, box-shadow .2s, color .2s;
  color:#fff;
}
.cta:hover{
  transform:translateY(-1px);
  box-shadow:0 0 10px rgba(255,255,255,.25);
}
.card .cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 auto;
  padding:10px 20px;
  width:auto;
}
.cta img{
  vertical-align:middle;
}

/* ========== BADGES ========== */
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:.9rem;
}
.badge-heim{
  color:var(--heim);
  background:var(--heim-bg);
}
.badge-auswaerts{
  color:var(--aus);
  background:var(--aus-bg);
}

/* ========== SOCIAL BUTTONS ========== */
.social-buttons{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}
.social-btn{
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  transition:all .2s;
}
.social-btn svg{
  width:22px;
  height:22px;
  color:#e5e7eb;
}
.social-btn:hover{
  transform:scale(1.08);
  background:rgba(255,255,255,0.15);
  box-shadow:0 0 8px rgba(255,255,255,0.3);
}

/* ========== BLOG ========== */
.blog-title{
  font-family:var(--font-hero);
  font-size:2.2rem;
  text-align:center;
  margin-bottom:24px;
}
.blog-grid{
  display:grid;
  gap:24px;
  grid-template-columns:1fr; /* mobil: eine Spalte – wie Cards */
  width:100%;
}
@media (min-width:900px){
  .blog-grid{
    grid-template-columns:1fr 1fr;
  }
}

/* Blog-Karte – erbt Grundstil aus .blog-card / .card */
.blog-card .meta{
  font-size:.85rem;
  color:#bdbdbd;
  margin-bottom:6px;
}
.blog-card img{
  width:100%;
  height:300px;
  object-fit:contain;
  background:#000;
  border-radius:10px;
  margin-bottom:10px;
}
.blog-card h3{
  font-family:var(--font-display);
  font-size:1.5rem;
  margin-bottom:6px;
}
.blog-card .teaser{
  color:#e5e7eb;
  font-style:italic;
  margin-bottom:8px;
}
.blog-card .text{
  color:var(--muted);
  line-height:1.4;
}

/* ========== FOOTER & LINKS IN CARDS ========== */
.card p a{
  border-bottom:1px dotted transparent;
}
.card p a:hover,
.card p a:focus{
  border-bottom-color:var(--link-hover);
}
footer{
  text-align:center;
  color:#ccc;
  font-size:.9rem;
  margin:40px 0;
}
footer a{
  color:var(--link);
  border-bottom:1px dotted transparent;
}
footer a:hover,
footer a:focus{
  color:var(--link-hover);
  border-bottom-color:var(--link-hover);
}

/* ========== LOGOS ========== */
.eisradio-logo{
  width:170px;
  margin-top:5px;
  filter:drop-shadow(0 0 6px rgba(255,255,255,.5));
  transition:all .3s;
}
.eisradio-logo:hover{
  transform:scale(1.05);
  filter:drop-shadow(0 0 12px rgba(255,255,255,.9));
}

/* ========== LISTEN ========== */
.card ul,
.blog-card ul{
  margin:10px 0 10px 18px;
  color:var(--muted);
  line-height:1.5;
}
.card li,
.blog-card li{
  margin:4px 0;
  padding-left:6px;
}

/* ========== TABELLEN-RESET ========== */
table{
  border-collapse:separate;
  border-spacing:0;
  width:100%;
}
th, td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
th{
  font-family:var(--font-display);
  text-align:left;
}

/* ========== COUNTER (LED-Style) ========== */
.counter-wrapper{
  padding:10px 0;
}
.counter-table{
  width:100%;
  max-width:200px;
  margin:0 auto;
  border-collapse:collapse;
}
.counter-table td{
  width:33.33%;
  height:30px;
  text-align:center;
  vertical-align:middle;
}
.counter-center{
  text-align:center;
}
.led-counter{
  display:inline-flex;
  gap:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:#000;
  box-shadow:0 0 20px rgba(255,0,0,.25),
             inset 0 0 12px rgba(255,0,0,.4);
}
.led-counter .digit{
  position:relative;
  width:46px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border:1px solid #5a0000;
  background:radial-gradient(120px 90px at 50% 35%,
              #520000 12%, #260000 65%, #120000 100%);
  color:#ff2a2a;
  font-family:'Bebas Neue','Inter',sans-serif;
  font-weight:700;
  font-size:44px;
  line-height:1;
  letter-spacing:.02em;
  text-shadow:0 0 6px rgba(255,0,0,.9),
               0 0 14px rgba(255,32,32,.7),
               0 0 26px rgba(255,48,48,.35);
  box-shadow:inset 0 0 14px rgba(0,0,0,.8),
             0 0 8px rgba(255,0,0,.25);
}
.led-counter .digit::before{
  content:"";
  position:absolute;
  width:70%;
  height:38%;
  top:6%;
  left:12%;
  border-radius:12px;
  background:linear-gradient(180deg,
              rgba(255,255,255,.25),
              rgba(255,255,255,0));
  filter:blur(1px);
  pointer-events:none;
}
.counter-label{
  margin-top:8px;
  font-size:.9rem;
  color:#cfcfcf;
  font-family:'Inter',sans-serif;
}

@media (max-width:600px){
  .counter-table td{
    height:90px;
  }
  .led-counter{
    gap:5px;
    padding:8px 10px;
  }
  .led-counter .digit{
    width:38px;
    height:52px;
    font-size:38px;
  }
}
