/* ============================================
   RAUSabend.de – VARIANTE 3: Full-Width Hero + Grid
   Hero über volle Breite, 3-Spalten-Grid darunter
   Scrollable page, kein viewport-lock
   ============================================ */

/* --- Local Fonts --- */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/Outfit-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* --- Tokens --- */
:root {
  --primary: #0782C1;
  --primary-light: #0a9de0;
  --primary-dark: #055d8a;
  --accent: #FE9906;
  --accent-hover: #e88800;
  --accent-glow: rgba(254, 153, 6, 0.35);
  --bg: #D4F8FF;
  --bg-deep: #b8efff;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.75);
  --text: #0a1e2e;
  --text-muted: #2a4a5a;
  --text-light: #5a7a8a;
  --font-h: 'Outfit', sans-serif;
  --font-b: 'Inter', sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow: 0 4px 20px rgba(7, 130, 193, 0.12);
  --shadow-lg: 0 8px 32px rgba(7, 130, 193, 0.18);
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* ✅ Scrollable page, Footer immer unten */
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
h1,h2,h3 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TOP BAR (shared)
   ============================================ */
.topbar {
  background: rgba(7, 130, 193, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 15px rgba(7, 130, 193, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; gap: 1rem; }
.topbar__text { color: #fff; font-weight: 600; font-size: 0.85rem; }
.topbar__actions { display: flex; align-items: center; gap: 0.6rem; }
.bell-wrapper { position: relative; }
.bell-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
}
.bell-btn:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); transform: scale(1.1); }
.bell-btn svg { fill: currentColor; }
.bell-tooltip {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  padding: 1rem; width: 340px; z-index: 200;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--tr);
}
.bell-tooltip.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.bell-tooltip::before {
  content: ''; position: absolute; top: -6px; right: 16px;
  width: 12px; height: 12px; background: var(--surface);
  transform: rotate(45deg); box-shadow: -2px -2px 4px rgba(0,0,0,0.05);
}
.bell-tooltip__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.bell-tooltip__header strong { font-family: var(--font-h); font-size: 0.95rem; color: var(--primary); }
.bell-tooltip__close { background: none; border: none; font-size: 1rem; color: var(--text-light); cursor: pointer; padding: 0.2rem; line-height: 1; }
.bell-tooltip__close:hover { color: var(--text); }
.bell-tooltip p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.topbar__zoom {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-h); font-weight: 600; font-size: 0.85rem;
  padding: 0.45rem 1.2rem; border-radius: var(--r-xl);
  transition: all var(--tr);
  box-shadow: 0 2px 10px var(--accent-glow); white-space: nowrap;
}
.topbar__zoom:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 18px var(--accent-glow); }
.topbar__live {
  width: 10px; height: 10px; background: #22c55e;
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); flex-shrink: 0;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================================
   VARIANTE 3: FULL-WIDTH HERO
   ============================================ */
.hero {
  background: linear-gradient(150deg, var(--bg-deep) 0%, var(--bg) 40%, rgba(255,255,255,0.3) 100%);
  padding: 10px 2rem 5px; /* Ultra-Compact */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dekorative Kreise */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(7, 130, 193, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(254, 153, 6, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.raus-brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.2rem; justify-content: center;
}
.raus-brand__suitcase {
  height: clamp(40px, 8vw, 54px); width: auto; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  transform: rotate(5deg);
  animation: suitcase-bob 3s ease-in-out infinite;
}
@keyframes suitcase-bob {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-6px); }
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 0px;
  letter-spacing: 1px;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 600px;
}



.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-h); font-weight: 700; font-size: 1.1rem;
  padding: 0.8rem 2.2rem; border-radius: var(--r-xl);
  transition: all var(--tr);
  box-shadow: 0 4px 15px var(--accent-glow);
  animation: pulse 2.5s infinite;
}
.btn-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }
.btn-cta svg { width: 22px; height: 22px; fill: currentColor; transition: transform 0.2s; }
.btn-cta:hover svg { transform: translateX(4px); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px var(--accent-glow); }
  50% { box-shadow: 0 4px 30px rgba(254, 153, 6, 0.55); }
}

/* ============================================
   SCROLL-INDICATOR (Orange Pfeil)
   Nur sichtbar wenn Seite scrollbar ist.
   Fixed am unteren Bildschirmrand – NULL Layout-Impact.
   ============================================ */
.scroll-indicator {
  display: none;           /* ✅ Standardmäßig versteckt, JS zeigt ihn */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  /* ✅ FIXED: Am unteren Viewport-Rand, kein Layout-Impact */
  position: fixed;
  bottom: 50px;
  left: 80px;
  z-index: 50;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: bounce-arrow 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.scroll-indicator.visible {
  display: flex;           /* ✅ Nur sichtbar wenn JS es aktiviert */
}

.scroll-indicator svg {
  fill: #fff;
  width: 26px;
  height: 26px;
}

.scroll-indicator:hover {
  background: var(--accent-hover);
  color: #fff;
  animation: none;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   3-COLUMN CONTENT GRID
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 5px 1.5rem 1.5rem; /* Reduced top gap */
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  width: 100%;
  /* ✅ Subtiler Hintergrund-Wechsel nach dem Hero */
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255,255,255,0.4) 100%);
}

.grid-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* --- Sidebar Cards --- */
.sidebar-card {
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid rgba(7, 130, 193, 0.08);
  overflow: hidden; transition: all var(--tr);
  text-decoration: none; color: var(--text);
}
.sidebar-card:hover { box-shadow: var(--shadow); border-color: rgba(7, 130, 193, 0.2); transform: translateY(-2px); }
.sidebar-card--efs { display: block; }
.sidebar-card--efs .sidebar-card__img { width: 100%; height: auto; object-fit: contain; display: block; }
.sidebar-card--barrio {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 0 1px rgba(7, 130, 193, 0.08);
}
.sidebar-card--barrio:hover { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(7, 130, 193, 0.18); }
.sidebar-card__body { padding: 0.8rem 1rem; }
.sidebar-card__body h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.3rem; }
.sidebar-card__body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.4rem; }
.sidebar-card__link { font-family: var(--font-h); font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: color 0.2s; }
.sidebar-card--barrio:hover .sidebar-card__link { color: var(--accent-hover); }
.sidebar-card__body--lg { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.sidebar-card__body--lg h3 { font-size: 1.2rem; }
.sidebar-card__body--lg p { font-size: 0.95rem; line-height: 1.6; }

/* --- Accordion --- */
.accordion {
  background: var(--surface); border-radius: var(--r-md);
  border: 1px solid rgba(7, 130, 193, 0.08);
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.accordion.open { border-color: rgba(7, 130, 193, 0.2); box-shadow: var(--shadow); }
.accordion__header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
  font-family: var(--font-h); font-weight: 700; font-size: 0.95rem;
  color: var(--primary); transition: background var(--tr);
  -webkit-tap-highlight-color: transparent;
}
.accordion__header:hover { background: rgba(7, 130, 193, 0.04); }
.accordion__icon { font-size: 1.15rem; flex-shrink: 0; line-height: 1; }
.accordion__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accordion__chevron { width: 18px; height: 18px; flex-shrink: 0; fill: var(--text-light); transition: transform var(--tr); }
.accordion.open .accordion__chevron { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion.open .accordion__body { max-height: 500px; }
.accordion__content { padding: 0 1rem 0.8rem; }
.accordion__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.6rem; }
.accordion__img { width: 100%; height: auto; border-radius: var(--r-sm); margin-bottom: 0.6rem; display: block; }
.accordion__podcast-cover { width: 80px; height: auto; border-radius: var(--r-sm); box-shadow: var(--shadow); float: left; margin-right: 0.8rem; margin-bottom: 0.4rem; }
.accordion__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-h); font-size: 0.85rem; font-weight: 600;
  color: var(--accent); transition: color 0.2s, transform 0.2s; text-decoration: none;
}
.accordion__link:hover { color: var(--accent-hover); transform: translateX(2px); }
.accordion__badge {
  display: inline-block; font-family: var(--font-b);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 0.15rem 0.5rem;
  border-radius: var(--r-xl); margin-bottom: 0.4rem;
}
.accordion__badge--yt { background: #fee2e2; color: #dc2626; }
.accordion__badge--tg { background: #dbeafe; color: #2563eb; }
.accordion__badge--community { background: #fef3c7; color: #d97706; }
.accordion__badge--podcast { background: #f3e8ff; color: #7c3aed; }

/* ============================================
   FOOTER
   ============================================ */
.dash-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; padding: 0.6rem 1.5rem;
  background: #0e2a3d; font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
.dash-footer a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.dash-footer a:hover { color: #fff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }
  .grid-col--promos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero { padding: 16px 1rem 30px; }  /* ✅ Noch kompakter auf Tablet */
  .content-grid { grid-template-columns: 1fr; }
  .grid-col--promos {
    grid-template-columns: 1fr;
    order: -1;
  }
  .raus-brand__suitcase { height: 48px; }
}

@media (max-width: 640px) {
  .topbar__text { font-size: 0.7rem; }
  .topbar__inner { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .hero { padding: 12px 1rem 24px; }  /* ✅ Minimal padding */
  .hero__title { letter-spacing: 1px; font-size: 1.8rem; }
  .hero__desc { font-size: 0.95rem; margin-bottom: 0.6rem; }
  .raus-brand { margin-bottom: 0.2rem; }
  .raus-brand__suitcase { height: 40px; }
  .btn-cta { width: 100%; justify-content: center; font-size: 1rem; padding: 0.8rem 2rem; }
}
