/* socialmedia-ab16.ch – Style (jugendlich, Gradienten) */

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #16233a;
  --muted: #5b6b84;
  --accent: #ff5148;      /* hellrot */
  --accent-strong: #8b3df0; /* violett */
  --accent-2: #00c2d1;    /* tuerkis */
  --accent-soft: #ffe0dc;
  --warn: #ff8a5c;
  --line: #e6ecf5;
  --radius: 18px;
  --grad: linear-gradient(135deg, #ff5148 0%, #8b3df0 55%, #00c2d1 100%);
  --grad-soft: linear-gradient(135deg, #ffe0dc 0%, #d9f2f8 100%);
  --shadow: 0 2px 4px rgba(23, 32, 60, .06), 0 10px 30px rgba(23, 32, 60, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Sticky-Header darf Section-Titel nicht überdecken */
[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, .brand strong, .btn, .chip, .hero-kicker {
  font-family: "Poppins", "Nunito", system-ui, sans-serif;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(139, 61, 240, .35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .78rem; font-weight: 600; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav a.active { background: var(--accent-soft); color: var(--accent-strong); }

/* Hero */
.hero-slogan {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero {
  background: var(--grad);
  color: #fff;
  padding: 60px 0 54px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; opacity: .9; margin: 0 0 10px; }

.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.18; margin: 0 0 14px; max-width: 24em; font-weight: 800; }

.hero-summary { font-size: 1.12rem; max-width: 44em; opacity: .97; margin: 0 0 18px; }

.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
}

.tag--watch {
  background: #fff2d8;
  color: #8a5a00;
  border-color: transparent;
}

.tag--plain {
  background: var(--grad-soft);
  color: var(--accent-strong);
  border: none;
}

.tag--hot {
  background: #fff0e6;
  color: #d25f1f;
  border: none;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 800;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: .98rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .24); }
.btn-light { background: #fff; color: var(--accent-strong); }
.btn-outline { background: transparent; color: var(--accent-strong); border: 2px solid var(--accent-strong); box-shadow: none; }
.btn-outline:hover { background: var(--accent-soft); }
.loadmore-wrap { text-align: center; margin-top: 24px; }

/* Sections */
section.container { padding-top: 48px; padding-bottom: 24px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

h2 { font-size: 1.6rem; margin: 0 0 20px; font-weight: 800; }
.section-note { color: var(--muted); margin-top: -12px; margin-bottom: 20px; }

/* Fakten: grosse Schrift, kurze Sätze, übersetzbar */
.facts { background: #fff; padding: 48px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-head { align-items: flex-end; }
.facts-head .section-note { max-width: 680px; margin-bottom: 0; }
.language-picker { color: var(--muted); font-weight: 800; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.language-picker select { border: 2px solid var(--accent-strong); border-radius: 999px; padding: 9px 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; }
.nav-lang { flex: 0 0 auto; white-space: nowrap; gap: 6px; }
.nav-lang select { border-width: 2px; padding: 6px 10px; font-size: .84rem; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px; min-height: 240px; display: flex; flex-direction: column; gap: 9px; }
.fact-icon { font-size: 1.8rem; line-height: 1; }
.fact-number { color: var(--accent-strong); font: 800 1.6rem Poppins, sans-serif; }
.fact-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.fact-card p { margin: 0; font-size: .94rem; flex: 1; }
.fact-source { color: var(--accent-strong); font-weight: 700; font-size: .82rem; text-decoration: none; }
.fact-source:hover { text-decoration: underline; }
.facts-note { color: var(--muted); font-size: .8rem; margin: 18px 0 0; }

/* Lade-Fehler */
.load-error { background: #fff2f2; border: 1px solid #ffc9c9; color: #a01818; border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-weight: 700; }

/* Filter chips */
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

/* Grid + Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(23, 32, 60, .12); }

.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; font-weight: 700; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }

.card-summary { flex: 1; margin: 0; font-size: .97rem; }

.card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.card-meta .source { font-weight: 800; color: var(--accent-strong); }
.card-meta .date { white-space: nowrap; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tags .tag--plain { font-size: .74rem; padding: 4px 10px; }

.card-link { color: var(--accent-strong); text-decoration: none; font-weight: 800; font-size: .93rem; }
.card-link:hover { text-decoration: underline; }

/* Rubrik: Aktuell (Agenda + Top News) */
.aktuell {
  background: linear-gradient(135deg, #fff1ef 0%, #eaf7fb 100%);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.aktuell-head { margin-bottom: 22px; }
.aktuell-head h2 { margin: 0 0 4px; }
.aktuell-sub { margin: 0; color: var(--muted); font-weight: 600; }

.aktuell-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 22px;
  align-items: start;
}

/* Agenda (kompakte Liste) */
#agenda-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
#agenda .agenda-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
#agenda .agenda-row:hover { border-color: var(--accent-strong); transform: translateY(-1px); }
.agenda-date { flex: 0 0 150px; font-size: .8rem; font-weight: 800; color: var(--accent-strong); }
.agenda-main { flex: 1 1 auto; min-width: 0; }
.agenda-title { font-weight: 800; font-size: 1rem; margin: 0; }
.agenda-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; margin-top: 2px; }
.agenda-type {
  background: var(--grad-soft);
  color: var(--accent-strong);
  padding: 1px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.agenda-desc { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.agenda-more {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.agenda-empty { color: var(--muted); font-size: .95rem; }
.agenda-empty a { color: var(--accent-strong); font-weight: 700; }
@media (max-width: 640px) {
  .agenda-date { flex-basis: auto; }
  #agenda .agenda-row { flex-wrap: wrap; }
  .agenda-more { margin-left: auto; }
}
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; color: var(--muted); font-weight: 800; }
.page-btn { padding: 9px 16px; font-size: .88rem; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Videothek */
.videothek { background: #fff; padding: 48px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.video-card { background: var(--grad-soft); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 9px; min-height: 255px; }
.video-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.video-label { color: var(--accent-strong); font-size: .78rem; font-weight: 800; }
.video-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.video-card p { margin: 0; font-size: .92rem; flex: 1; }
.video-note { color: var(--muted); font-size: .84rem; margin: 18px 0 0; }
.video-section-title { margin: 24px 0 4px; font-size: 1.25rem; }
.video-section-note { color: var(--muted); margin: 0 0 12px; }

/* Social */
.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--grad-soft);
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.social-handle { font-size: .82rem; font-weight: 800; color: var(--accent-strong); margin-top: -4px; }

@media (max-width: 860px) {
  .aktuell-grid { grid-template-columns: 1fr; }
}

/* Über die Initiative */
.initiative {
  background: var(--grad);
  color: #fff;
  padding: 52px 0;
}
.initiative h2 { margin: 0 0 10px; color: #fff; }
.initiative-text {
  font-size: 1.18rem;
  max-width: 42em;
  margin: 0;
  opacity: .97;
  line-height: 1.6;
}
.initiative-text strong { color: #fff; }

/* Rubrik: Mehr erfahren / Warum Eltern handeln */
.why {
  background: var(--grad-soft);
  padding: 56px 0;
}.why-title { font-size: 1.9rem; margin: 0 0 6px; font-weight: 800; }
.why-intro { margin: 0 0 26px; font-size: 1.08rem; color: var(--muted); font-weight: 600; max-width: 40em; }
.why-sub { font-size: 1.25rem; margin: 0 0 16px; font-weight: 800; color: var(--ink); }
.why .facts-grid { margin-bottom: 28px; }
.why h2 { margin-bottom: 14px; }

.why-card { border: none; box-shadow: var(--shadow); }
.why-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--grad);
  font-size: 1.7rem;
  margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(139, 61, 240, .3);
}
.why-grid { margin-bottom: 20px; }

/* Elternpakt */
.pact {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.pact-inner {
  display: flex;
  gap: 26px;
  align-items: center;
  max-width: 900px;
}
.pact-badge {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 10px 26px rgba(139, 61, 240, .32);
}
.pact-text h2 { margin: 0 0 8px; }
.pact-text p { margin: 0 0 14px; font-size: 1.06rem; max-width: 34em; }
.pact-points {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.pact-points li { font-weight: 700; }
@media (max-width: 680px) {
  .pact-inner { flex-direction: column; text-align: center; }
  .pact-points { text-align: left; }
}

/* Partner */
.partner-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.partner-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.partner-region {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  background: var(--grad-soft);
  color: var(--accent-strong);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.partner-card p { margin: 0 0 10px; font-size: .96rem; }
.partner-card a { color: var(--accent-strong); font-weight: 700; }

/* Instagram cards */
.ig-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.ig-card h3 { margin: 0 0 8px; font-size: 1rem; }
.ig-graphic {
  background: var(--grad);
  color: #fff;
  border-radius: 14px;
  padding: 18px;
  margin: 12px 0;
}
.ig-graphic .g-hl { font-weight: 800; font-size: 1.06rem; letter-spacing: .02em; display: block; margin-bottom: 6px; color: #fff; }
.ig-graphic .g-fact { font-size: .92rem; opacity: .96; }
.ig-caption { font-size: .93rem; white-space: pre-wrap; margin: 0 0 10px; }
.ig-hashtags { font-size: .82rem; color: var(--accent-strong); font-weight: 700; word-break: break-word; }

/* Link melden */
#suggest-form .suggest-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#suggest-form input[type="url"],
#suggest-form input[type="text"] {
  flex: 1 1 220px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .98rem;
  font-family: inherit;
  outline: none;
  background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
#suggest-form input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(139, 61, 240, .15);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}
.btn-primary { background: var(--grad); color: #fff; }
.suggest-status { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.suggest-status.ok { color: #1f7a3d; }
.suggest-status.err { color: #b4482c; }

/* Newsletter */
.newsletter {
  background: var(--grad);
  color: #fff;
  padding: 60px 0;
  margin-top: 48px;
}
.newsletter-inner { max-width: 720px; text-align: center; }
.newsletter h2 { margin: 0 0 10px; font-size: 1.9rem; }
.newsletter p { margin: 0 auto 24px; max-width: 34em; opacity: .97; }

#newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
#newsletter-form input[type="email"] {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 0 0 2px transparent;
}
#newsletter-form input[type="email"]:focus { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .65); }

.newsletter-status { margin-top: 14px; font-weight: 800; min-height: 1.4em; font-size: .98rem; }
.newsletter-status.ok { color: #eaffea; }
.newsletter-status.err { color: #ffe3e3; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 34px 0 44px;
  background: var(--card);
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .92rem; }
.footer-inner p { margin: 0; }
.footer-note { font-size: .8rem; }
.site-footer a { color: var(--accent-strong); font-weight: 700; }

/* Empty state */
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* Modal */
dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 580px;
  width: calc(100% - 40px);
  box-shadow: 0 24px 70px rgba(10, 18, 40, .35);
}
dialog::backdrop { background: rgba(10, 18, 40, .55); }
.modal-content { position: relative; padding: 30px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  border: none;
  background: var(--accent-soft);
  color: var(--accent-strong);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
}
.modal-content h2 { margin-top: 0; }

/* Sprach-Popup */
#lang-modal { max-width: 460px; }
.lang-content { padding: 30px; text-align: center; }
.lang-content h2 { margin: 0 0 6px; }
.lang-content p { margin: 0 0 18px; color: var(--muted); font-weight: 700; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.lang-btn {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 12px 10px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.lang-btn:hover, .lang-btn.active { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--accent-strong); }
.lang-close { width: 100%; }

/* Responsive */
@media (max-width: 680px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; }
  .brand-text strong { font-size: .95rem; }
  .brand-text small { font-size: .7rem; }
  /* Menü: eine wischbare Zeile statt Stapel */
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; font-size: .82rem; white-space: nowrap; flex: 0 0 auto; }
  .why { padding: 40px 0; }
  .hero { padding: 42px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  #newsletter-form { flex-direction: column; align-items: stretch; }
  #newsletter-form input[type="email"] { max-width: none; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-section-title { margin-top: 18px; }
  #agenda-list { grid-template-columns: 1fr; }
  .pagination { gap: 8px; font-size: .9rem; }
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}