/* Emmi’s Partywunderwelt für Veranstalter
   Farben, Schriften und Formen aus dem Markenpaket 2026 (Brand Guidelines Oktober 2026):
   Creme und Navy als Basis, Pink als Akzent, Orange und Türkis sparsam, Fredoka + Nunito.
   Kontraste: Navy auf Creme 13,4:1 · Text-Pink #C4248A auf Creme 5,1:1 · Grau #4B5A7A auf Creme 6,7:1
   Knöpfe: Navy auf Pink 4,1:1, darum Knopftext 18,7 px fett (große Schrift, Grenze 3:1) */

@font-face { font-family: "Fredoka"; src: url("/schrift/fredoka.woff") format("woff"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/schrift/nunito.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  --pink: #ED52B1;
  --pink-text: #C4248A;
  --pink-tief: #B81F80;
  --rosa: #FDE7F4;
  --orange: #F5A30D;
  --tuerkis: #8CE5E5;
  --navy: #0B2A6F;
  --creme: #FFFBF2;

  --grund: var(--creme);
  --flaeche: #FFFFFF;
  --text: var(--navy);
  --leise: #4B5A7A;
  --linie: #EFE6D6;
  --akzent-text: var(--pink-text);

  --titel: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 2rem;
  --r-klein: 1.25rem;
  --breite: 72rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #071B48;
    --flaeche: #0E2A66;
    --text: #FFFBF2;
    --leise: #C9D2E6;
    --linie: #24417F;
    --akzent-text: #FF8FCF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; height: auto; }
p, li, label { text-wrap: pretty; overflow-wrap: break-word; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--akzent-text); outline-offset: 3px; border-radius: .5rem; }
::selection { background: var(--tuerkis); color: var(--navy); }
.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--titel); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.2; }
.pink { color: var(--pink); }
.zeile { font: 800 .78rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--akzent-text); margin: 0; }
.vorspann { font-size: 1.2rem; color: var(--leise); max-width: 38rem; margin: 1rem 0 0; }
.vorspann strong { color: var(--text); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1.17rem/1 var(--sans); text-decoration: none;
  background: var(--pink); color: var(--navy); box-shadow: 0 4px 0 var(--pink-tief);
  transition: transform .15s ease, box-shadow .15s ease; -webkit-user-select: none; user-select: none;
}
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pink-tief); }
.knopf .g { font-weight: 600; font-size: .85em; opacity: .8; }
.klein-knopf {
  min-height: 2.75rem; padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid currentColor;
  background: transparent; color: var(--text); font: 800 .95rem/1 var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
}
.klein-knopf .g { font-weight: 600; opacity: .7; }

/* ---------- Kopf ---------- */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.kopf .marke img { width: 7.5rem; }
.kopf-zeile { margin: 0; font: 800 .78rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); text-align: right; }
.logo-dunkel { display: none; }
@media (prefers-color-scheme: dark) { .logo-hell { display: none; } .logo-dunkel { display: block; } }

/* ---------- Bühne mit hängender Kugel ---------- */
.buehne { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.buehne-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.sprung { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.sprung a {
  min-height: 2.75rem; display: inline-flex; align-items: center; padding: .5rem 1.15rem; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie); font-weight: 800; text-decoration: none;
}
.sprung a:hover { border-color: var(--pink); }
.kugel-wrap { position: relative; justify-self: center; width: min(100%, 20rem); aspect-ratio: 1 / 1.25; }
.kugel-wrap::before { content: ""; position: absolute; left: 34%; top: -12rem; height: calc(12rem + 27%); width: 2px; background: var(--text); opacity: .7; }
.kugel { position: absolute; inset: 10% 0 auto 0; width: 100%; transform-origin: 34% -60%; animation: schwingen 6s ease-in-out infinite; }
@keyframes schwingen { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.funkel { position: absolute; width: 1.6rem; }
.f1 { right: 4%; bottom: 18%; color: var(--tuerkis); }
.f2 { left: 2%; bottom: 6%; width: 1.1rem; color: var(--pink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .kugel { animation: none; } }
@media (max-width: 760px) {
  .buehne-raster { grid-template-columns: 1fr; }
  .kugel-wrap { order: -1; width: 10rem; margin-bottom: -1rem; }
  .kugel-wrap::before { top: -8rem; height: calc(8rem + 27%); }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.abschnitt.flaeche { background: var(--flaeche); border-block: 1px solid var(--linie); }
.kopfzeile { max-width: 44rem; margin-bottom: 2rem; }

/* Text */
.ankuendigung { background: var(--rosa); color: var(--navy); border-radius: var(--r); padding: clamp(1.3rem, 4vw, 2rem); display: grid; gap: 1rem; margin-bottom: 1rem; }
.ankuendigung .zeile { color: var(--pink-text); }
.eingaben { display: flex; flex-wrap: wrap; gap: .8rem; }
.eingaben label { display: grid; gap: .3rem; font-weight: 800; font-size: .9rem; }
.eingaben input {
  font: 600 1rem/1.3 var(--sans); color: var(--navy); background: #FFFFFF; /* 16 px: kein Zoom auf dem iPhone */
  border: 2px solid #F4C6E3; border-radius: 1rem; padding: .6rem .8rem; min-height: 3rem; color-scheme: light;
}
.eingaben input:focus { outline: none; border-color: var(--pink); }
.ergebnis { margin: 0; font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.3 var(--titel); max-width: 46rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ankuendigung .klein-knopf { color: var(--navy); }
.texte { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .texte { grid-template-columns: 1fr; } }
.text-karte { border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 1.3rem; background: var(--flaeche); display: flex; flex-direction: column; gap: .7rem; }
.text-karte p { margin: 0; }

/* Fotos */
.fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foto { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.foto img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-klein); width: 100%; background: var(--linie); }
.foto figcaption { font-weight: 800; font-size: .98rem; line-height: 1.3; }
.foto figcaption span { display: block; font-weight: 600; color: var(--leise); font-size: .9rem; }

.dl { display: flex; gap: .5rem; flex-wrap: wrap; }
.dl a {
  font-weight: 800; font-size: .92rem; text-decoration: none; padding: .5rem .85rem; border-radius: 999px;
  background: var(--grund); border: 1px solid var(--linie); min-height: 2.75rem; display: inline-flex; align-items: center; gap: .35rem;
}
.dl a:hover { border-color: var(--pink); }
.dl a span { font-weight: 600; color: var(--leise); }

/* Logo */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: 1fr; } }
.logo-karte { border: 1px solid var(--linie); border-radius: var(--r-klein); overflow: hidden; background: var(--flaeche); display: flex; flex-direction: column; }
.logo-karte .flaeche { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 1.3rem; }
.logo-karte .flaeche.hell { background: var(--creme); }
.logo-karte .flaeche.navy { background: var(--navy); }
.logo-karte .flaeche.weissgrund { background: #FFFFFF; }
.logo-karte .unten { padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.logo-karte .unten > span { color: var(--leise); font-size: .93rem; margin-bottom: .6rem; }

/* Regeln */
.regeln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .regeln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .regeln { grid-template-columns: 1fr; } }
.regeln div { border-top: 3px solid var(--pink); padding-top: .9rem; }
.regeln p { margin: .4rem 0 0; color: var(--leise); }
.alles { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--rosa); color: var(--navy); }
.alles p { margin: 0; }
.alles strong { font-family: var(--titel); font-size: 1.3rem; display: block; }

/* Kontakt */
.offen { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; align-items: baseline; }
.direkt { display: grid; gap: .2rem; font-size: 1.1rem; }
.direkt strong { font-family: var(--titel); font-size: 1.3rem; }
.direkt a { font-weight: 700; text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }
.direkt a:hover { color: var(--akzent-text); }

/* ---------- Fuß ---------- */
.fuss { padding: 2rem 0 2.5rem; border-top: 1px solid var(--linie); font-size: .95rem; color: var(--leise); }
.fuss p { margin: 0 0 .8rem; }
.fuss .unten { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.fuss .unten a { text-decoration: none; font-weight: 700; color: var(--text); min-height: 2.75rem; display: inline-flex; align-items: center; }
.fuss .credit { margin-left: auto; }

/* Studio Kante Credit: übernimmt Schriftart und Textfarbe der Seite */
.sk-credit{display:inline-flex;align-items:center;gap:.55em;font:inherit;font-size:12px;line-height:1;color:inherit;text-decoration:none}
.sk-credit>span{opacity:.72;transition:opacity .2s ease}
.sk-credit:hover>span,.sk-credit:focus-visible>span{opacity:1}
.sk-credit:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.sk-credit__logo{height:.92em;width:auto;display:block;flex:none}

/* ---------- Unterseiten ---------- */
.seite { padding: clamp(3rem, 8vw, 5rem) 0; }
.seite .wrap { max-width: 46rem; }
.seite h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.seite h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.seite p, .seite li { color: var(--leise); }
.seite strong { color: var(--text); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Meldung nach dem Kopieren */
.toast {
  position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 3rem)); visibility: hidden;
  background: var(--navy); color: var(--creme); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.23,1,.32,1), visibility 0s .25s; z-index: 20;
}
.toast.da { transform: translate(-50%, 0); visibility: visible; transition: transform .25s cubic-bezier(.23,1,.32,1); }
@media (prefers-color-scheme: dark) { .toast { background: var(--creme); color: var(--navy); } }
