/* The Troublebeans – Farben aus Kanal-Banner und Gruppenbild */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-latin-700-normal.woff2") format("woff2"); }

:root {
  --orange: #ff8a00;
  --orange-deep: #f26400;
  --orange-light: #ffb340;
  --cream: #fff7ea;
  --navy: #0c3549;
  --navy-soft: #1d4c63;
  --red: #e8262d;
  --yellow: #ffc21a;
  --blue: #6cc4ee;
  --green: #b4d235;
  --radius: 22px;
  --shadow: 0 6px 0 var(--navy);
  --shadow-hover: 0 10px 0 var(--navy);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--orange);
  overflow-x: hidden;
}

/* Bunte Streusel im Hintergrund */
.sprinkles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle, var(--yellow) 0 4px, transparent 5px),
    radial-gradient(circle, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle, var(--green) 0 4px, transparent 5px),
    radial-gradient(circle, #fff 0 2px, transparent 3px);
  background-size: 310px 290px, 230px 260px, 370px 330px, 270px 350px, 140px 150px;
  background-position: 20px 40px, 140px 180px, 260px 90px, 60px 230px, 90px 20px;
}
/* Verlauf als eigene fixierte Ebene (background-attachment: fixed klappt auf iOS nicht) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--orange-light) 0%, var(--orange) 45%, var(--orange-deep) 100%);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

main { width: min(100% - 32px, 960px); margin-inline: auto; padding-top: 64px; }

/* Sprachumschalter */
.lang-switch {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  display: flex; gap: 4px; padding: 4px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 3px 0 var(--navy);
}
.lang-switch a {
  padding: 4px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; letter-spacing: .04em;
}
.lang-switch a[aria-current] { background: var(--navy); color: var(--cream); }
.lang-switch a:not([aria-current]):hover { background: var(--yellow); }

/* Hero */
.hero { text-align: center; }
.hero-banner {
  width: 100%; height: auto; border-radius: calc(var(--radius) + 6px);
  border: 4px solid var(--navy); box-shadow: 0 8px 0 var(--navy);
  aspect-ratio: 1600 / 893; object-fit: cover; background: var(--orange);
}
.tagline {
  display: inline-block; margin: 26px auto 0; padding: 10px 22px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 4px 0 var(--navy);
  font-weight: 600; font-size: clamp(1rem, 2.6vw, 1.3rem); transform: rotate(-1.2deg);
}

/* Abschnitte */
section, .shop { margin-top: 64px; }
h1, h2 { font-weight: 700; line-height: 1.15; margin: 0; }
section > h2 {
  text-align: center; font-size: clamp(1.8rem, 5vw, 2.6rem); color: #fff;
  -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--navy);
}
.section-sub { text-align: center; margin: 10px 0 26px; color: var(--navy); font-weight: 500; }

/* Kanal-Buttons */
.channel-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.channel {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; font-weight: 700; font-size: 1.2rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.channel:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-hover); }
.channel:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--navy); }
.channel-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--navy); background: var(--c, var(--yellow));
}
.channel-icon svg { width: 26px; height: 26px; fill: var(--navy); }
.channel-name { flex: 1; }
.channel-arrow { font-size: 1.4rem; transition: transform .15s ease; }
.channel:hover .channel-arrow { transform: translateX(4px); }
/* Jeder Kanal bekommt eine Bohnenfarbe */
.channel--youtube   { --c: var(--red); }
.channel--youtube .channel-icon svg { fill: #fff; }
.channel--tiktok    { --c: var(--blue); }
.channel--instagram { --c: var(--yellow); }
.channel--telegram  { --c: var(--blue); }
.channel--whatsapp  { --c: var(--green); }

/* Video-Raster */
.video-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px 14px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(5, 1fr); } }

.video { display: block; text-decoration: none; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border: 3px solid var(--navy); border-radius: 18px; box-shadow: 0 5px 0 var(--navy);
  background: linear-gradient(160deg, var(--yellow), var(--orange-deep));
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video:hover .video-thumb { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 9px 0 var(--navy); }
.video-grid li:nth-child(even) .video:hover .video-thumb { transform: translateY(-4px) rotate(1.5deg); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy);
  opacity: .92; transition: scale .18s ease;
}
.video-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video:hover .video-play { scale: 1.12; }
.video-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 10px; font-weight: 600; line-height: 1.25; font-size: .98rem;
}
.video-meta { display: block; font-size: .85rem; color: var(--navy-soft); margin-top: 2px; }

.more { text-align: center; margin-top: 30px; }
.empty {
  text-align: center; margin: 26px auto 0; max-width: 520px; padding: 22px;
  background: var(--cream); border: 3px dashed var(--navy); border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: var(--cream); color: var(--navy); border: 3px solid var(--navy); border-radius: 999px;
  box-shadow: 0 4px 0 var(--navy); text-decoration: none; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: var(--red); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--navy); }
.btn--dark { background: var(--navy); color: var(--cream); box-shadow: 0 4px 0 #04161f; }

/* Affiliate-Box */
.shop {
  position: relative; display: flex; align-items: center; gap: 24px; padding: 26px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: calc(var(--radius) + 6px); box-shadow: 0 7px 0 var(--navy);
}
.shop img { flex: none; width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--navy); }
.shop h2 { font-size: 1.6rem; }
.shop p { margin: 6px 0 14px; }
.shop .shop-note { font-size: .8rem; color: var(--navy-soft); margin: 12px 0 0; }
.shop-label {
  position: absolute; top: -13px; left: 22px; padding: 2px 12px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px;
}
@media (max-width: 560px) { .shop { flex-direction: column; text-align: center; } }

/* Rechtstexte */
.legal {
  max-width: 760px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: 0 7px 0 var(--navy);
  padding: clamp(22px, 5vw, 44px);
}
main.legal { width: min(100% - 32px, 760px); margin-top: 72px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.2rem; margin: 26px 0 6px; }
.legal p { margin: 0 0 10px; overflow-wrap: anywhere; }
.legal .btn { margin-top: 20px; }
.legal-note { padding: 10px 14px; background: #ffe7b8; border-radius: 12px; }
.legal code { background: #ffe7b8; padding: 0 6px; border-radius: 6px; }

/* Footer */
.site-footer {
  text-align: center; padding: 56px 16px 40px; font-weight: 600;
}
.site-footer a { text-decoration: none; padding: 4px 6px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer p { margin: 8px 0 0; font-size: .9rem; color: var(--navy-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
