/* ==================================================
   FRG – style.css (iOS / Apple Style)
================================================== */

:root{
  --bg1:#2563EB;
  --bg2:#1D4ED8;
  --dark:#0B1B4A;
  --surface:#102A6B;
  --text:#F9FAFB;
  --muted:rgba(249,250,251,.78);
  --gold:#FACC15;
  --red:#EF4444;

  --radius:18px;
  --shadow: 0 14px 35px rgba(0,0,0,.28);
  --shadow2: 0 10px 24px rgba(0,0,0,.22);
}

/* RESET */
*{ box-sizing:border-box; margin:0; padding:0; }
img{ max-width:100%; display:block; }
a{ color: var(--gold); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* GLOBAL */
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  text-align: center;
  font-size: 18px;

  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(250,204,21,.12), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(239,68,68,.10), transparent 62%),
    linear-gradient(160deg, var(--bg1), var(--bg2));

  min-height: 100vh;
  padding-bottom: 100px;
}

/* TYPO */
h1,h2,h3{ letter-spacing:-0.02em; }
h1{ font-size: clamp(30px, 4vw, 50px); }
h2{ font-size: clamp(22px, 2.5vw, 30px); }
h3{ font-size: 22px; }
p{ color: var(--muted); }

/* HEADER */
header,.site-header{
  background: rgba(11,27,74,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250,204,21,.45);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  z-index: 1200;
}

.logo-link{
  color: var(--text);
  text-decoration:none;
}

/* HAMBURGER */
.hamburger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:44px;
  margin-top:12px;

  border-radius:12px;
  cursor:pointer;

  background: rgba(250,204,21,.12);
  border:1px solid rgba(250,204,21,.55);
  color:var(--gold);
  font-size:22px;

  transition:
    background .25s ease,
    transform .25s ease;
}

.hamburger:hover{
  background: rgba(250,204,21,.18);
  transform: translateY(-1px);
}

.hamburger.active{
  background: rgba(239,68,68,.22);
  border-color: rgba(239,68,68,.6);
}

/* ===============================
   NAV – iOS STYLE (NO KEYFRAMES)
=============================== */

/* ===============================
   NAV – iOS STYLE (ASYMMETRISCH)
=============================== */

.nav-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;

  width:100%;
  max-width:640px;
  margin:16px auto 0;

  max-height:0;
  overflow:hidden;

  opacity:0;
  transform: translateY(-20px);

  /* ⬇️ CLOSE = langsamer */
  transition:
    max-height 0.75s ease,
    opacity 0.45s ease,
    transform 0.75s ease;

  z-index:1201;
}

/* ⬆️ OPEN = langsamer + Overshoot */
.nav-links.open{
  max-height:560px;
  opacity:1;
  transform: translateY(0);

  /* 🍎 iOS Overshoot */
  transition:
    max-height 1.05s cubic-bezier(.22,1.15,.36,1),
    opacity 0.55s ease,
    transform 1.05s cubic-bezier(.22,1.15,.36,1);
}


/* OPEN – sanfter Overshoot, kein Nach-Bounce */
.nav-links.open{
  max-height:560px;
  opacity:1;
  transform: translateY(0);

  /* 🍎 iOS: sehr langsames Öffnen */
  transition:
    max-height 1.8s cubic-bezier(.22,1.15,.36,1),
    opacity 0.7s ease,
    transform 1.8s cubic-bezier(.22,1.15,.36,1);
}


.nav-links a{
  width:100%;
  text-align:center;
  padding:14px 16px;

  border-radius:14px;
  background: rgba(16,42,107,.88);
  border:1px solid rgba(250,204,21,.35);
  color:rgba(249,250,251,.95);
  font-weight:700;

  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* OVERLAY */
#menu-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;

  transition: opacity .45s cubic-bezier(.4,0,.2,1);
  z-index:1000;
}

#menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* CONTENT */
.content{
  max-width:1100px;
  margin:0 auto;
  padding:26px 16px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px;
}

.cards{
  max-width:1200px;
  margin:0 auto;
  padding:26px 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(280px,1fr));
  gap:18px;
}

/* CARDS */
.card{
  max-width:520px;
  width:100%;
  padding:22px;
  border-radius:18px;
  background: rgba(16,42,107,.78);
  border:1px solid rgba(250,204,21,.35);
  box-shadow: var(--shadow2);
  text-align:left;
}

.card h2::after{
  content:"";
  display:block;
  width:52px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg,var(--gold),rgba(250,204,21,.2));
}

/* BUTTON */
.card a{
  display:inline-flex;
  justify-content:center;
  margin-top:10px;
  padding:12px 18px;
  border-radius:14px;
  background: linear-gradient(180deg,var(--gold),rgba(250,204,21,.85));
  color:#0B1B4A;
  font-weight:900;
  box-shadow: var(--shadow2);
}

/* RADIO PLAYER */
.player-wrap iframe{
  width:100%;
  height:320px;
  border-radius:18px;
  box-shadow: var(--shadow);
}

/* FOOTER */
.site-footer{
  background: rgba(11,27,74,.55);
  backdrop-filter: blur(14px);
  border-top:1px solid rgba(250,204,21,.35);
  padding:22px 16px;
}

/* COOKIE */
#cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background: rgba(11,27,74,.75);
  backdrop-filter: blur(12px);
  border-top:1px solid rgba(250,204,21,.45);
  padding:14px;
  display:none;
  justify-content:center;
  gap:12px;
  z-index:2000;
}

/* RESPONSIVE */
@media (max-width:1100px){
  .cards{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:768px){
  body{ font-size:19px; }
  .cards{ grid-template-columns:1fr; }
  .player-wrap iframe{ height:380px; }
}
@media (max-width:480px){
  body{ font-size:20px; }
  .player-wrap iframe{ height:420px; }
}

.card.highlight h3 {
  margin-top: 30px;
}

.player-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
}

.player-wrap iframe {
  width: 100%;
  height: 480px;   /* höher, damit oben genug Platz ist */
  border: none;
  border-radius: 28px;
}

/* Neues sauberes Overlay-Logo */
.player-logo {
  position: absolute;
  top: 0px;                 /* ganz oben */
  left: 50%;
  transform: translateX(-50%);
  width: 420px;             /* deutlich größer */
  max-width: 95%;           /* responsive Sicherheit */
  z-index: 10;
  pointer-events: none;

  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.55);
}


/* Mobile */
@media (max-width: 600px) {
  .player-logo {
    width: 260px;
  }

  .player-wrap iframe {
    height: 400px;
  }
}

/* ================================
   FRG Countdown Styling
================================ */

.countdown {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,42,106,0.95), rgba(11,42,106,0.85));
  border: 1px solid rgba(212,175,55,0.35);
  color: #ffffff;
  text-align: center;
}

.countdown-title {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 14px;
}

/* GRID LAYOUT – 4 nebeneinander */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Einzelne Zeit-Box */
.cd-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 16px;
  padding: 16px 10px;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effekt (Desktop) */
.cd-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Große Zahlen */
.cd-box span {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #D4AF37;
  line-height: 1;
}

/* Einheit (Tage, Stunden...) */
.cd-box small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Status-Text unter Countdown */
.countdown-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* =====================================
   FRG EVENT HERO – ZENTRIERT
===================================== */

.hero {
  padding: 90px 0 80px;
  background: linear-gradient(
      135deg,
      rgba(11, 42, 106, 0.95),
      rgba(11, 42, 106, 0.85)
    ),
    radial-gradient(circle at top center, rgba(212,175,55,0.18), transparent 60%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 900;
  margin: 12px 0 18px;
  letter-spacing: -0.5px;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0.95;
}

/* =====================================
   PILL
===================================== */

.pill {
  display: inline-block;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #D4AF37;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =====================================
   MINI SCHEDULE
===================================== */

.schedule-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 750px;
}

.slot {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 18px;
  padding: 18px 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.slot .time {
  display: block;
  font-weight: 900;
  font-size: 20px;
  color: #D4AF37;
  margin-bottom: 6px;
}

.slot .label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* =====================================
   BUTTONS
===================================== */

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #D4AF37;
  color: #0B2A6A;
}

.btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn.ghost {
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 900px) {
  .schedule-mini {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .schedule-mini {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero .lead {
    font-size: 16px;
  }
}

/* ================================
   FRG Flip Countdown
================================ */

.countdown{
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,42,106,0.95), rgba(11,42,106,0.85));
  border: 1px solid rgba(212,175,55,0.35);
  color: #fff;
  text-align: center;
}

.countdown-title{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 14px;
}

.flip-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flip-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flip-label{
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Card */
.flip-card{
  width: 100%;
  max-width: 140px;
  height: 84px;
  position: relative;
  perspective: 900px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.35);
  overflow: hidden;
}

/* Faces */
.flip-face{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.flip-front{
  transform: rotateX(0deg);
}

.flip-back{
  transform: rotateX(180deg);
}

/* Number */
.flip-number{
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: #D4AF37;
}

/* subtle split line like classic flip clocks */
.flip-card::before{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.10);
  z-index: 3;
}

/* Flip animation trigger */
.flip-card.is-flipping{
  animation: none;
}

.flip-card.is-flipping .flip-front{
  animation: flipFront 600ms ease-in-out forwards;
}

.flip-card.is-flipping .flip-back{
  animation: flipBack 600ms ease-in-out forwards;
}

@keyframes flipFront{
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}

@keyframes flipBack{
  0%   { transform: rotateX(180deg); }
  100% { transform: rotateX(0deg); }
}

.countdown-status{
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px){
  .flip-grid{ grid-template-columns: repeat(2, 1fr); }
  .flip-number{ font-size: 30px; }
  .flip-card{ height: 78px; }
}

@media (max-width: 420px){
  .flip-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flip-number{ font-size: 26px; }
  .flip-card{ height: 72px; }
}


/* === CARD SECTIONS sauber zentrieren === */
.card{
  width: min(1100px, calc(100% - 32px));
  margin: 24px auto;
  padding: 28px;
  border-radius: 22px;

  /* Dunkler statt milchig */
  background: linear-gradient(
    145deg,
    rgba(7, 25, 70, 0.95),
    rgba(11, 42, 106, 0.92)
  );

  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
/* Wenn du in der card nochmal .container hast: NICHT nochmal begrenzen */
.card .container{
  width: 100%;
  margin: 0;
  padding: 0;
}
