/* =====================================================================
   Poolparty – Scrapbook-Designsystem
   Gemeinsame Basis für Startseite, Login-/Passwortseiten und Admin:
   Tokens, Schriften, Reset, Navigation, Buttons, Formulare, Karten,
   Modal, Toasts und die Sichtbarkeitsregeln.
   Seitenspezifisches liegt in party.css, auth.css und backstage.css.
   ===================================================================== */

:root {
  /* Papier & Stift */
  --paper: #fdfbf7;
  --paper-alt: #f7f3ec;
  --pencil: #2d2d2d;
  --ink: #2d2d2d;
  --muted: #e5e0d8;
  --text-soft: #555;
  --white: #fff;

  /* Party-Farben */
  --pink: #ff2d87;
  --pink-deep: #d6005f;
  --cta: #e6007a;
  --cta-hover: #c40068;
  --sun: #ffe14d;
  --blue: #2d5da1;
  --postit: #ffe4f1;
  --postit-yellow: #fff6c9;
  --mint: #dcfbe0;
  --lilac: #ebe3ff;
  --night-text: #f6f0ff;
  --night-muted: #d7cdf0;

  /* Alte Namen bleiben gültig, Login-/Passwortseiten setzen sie per JS */
  --primary-color: var(--pink);
  --accent: var(--pink-deep);

  /* Bedeutungen */
  --success: #2e7d32;
  --success-light: #e3f6e4;
  --error: #c3004f;
  --error-light: #ffe3ee;
  --warning: #b35c00;
  --warning-light: #fff1d6;
  --info: #2d5da1;
  --info-light: #e3eefc;

  /* Schrift */
  --font-heading: 'Kalam', 'Comic Sans MS', cursive;
  --font-body: 'Patrick Hand', 'Comic Sans MS', cursive;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Wackelige Ränder */
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobbly-md: 30px 4px 25px 4px / 4px 25px 4px 30px;
  --wobbly-sm: 15px 3px 12px 3px / 3px 12px 3px 15px;
  --wobbly-btn: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobbly-input: 12px 4px 10px 5px / 5px 10px 4px 12px;

  /* Harte Schatten */
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  /* Abstände */
  --gutter: 16px;
  --nav-h: 72px;

  --bounce: cubic-bezier(0.2, 1.35, 0.4, 1);
  --rainbow-x: linear-gradient(90deg, #ff0000, #f5601d, #e0e722, #6be607, #51fcf8, #d800ff, #ff2d87);
  --dots: radial-gradient(rgba(45, 45, 45, 0.13) 1.2px, transparent 1.5px);
  /* Dieselben Farbstopps wie in beiden Jubiläumslogos */
  --anniversary-gradient: linear-gradient(
    to bottom,
    #ff0000 0%, #ff0000 7%,
    #f5601d 20%, #f5601d 23%,
    #e0e722 34%, #e0e722 38%,
    #6be607 49%, #6be607 53%,
    #51fcf8 64%, #51fcf8 68%,
    #d800ff 79%, #d800ff 83%,
    #ff2d87 96%, #ff2d87 100%
  );
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
}

/* ===== Reset & Grundlage ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--nav-h);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 24px 24px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

p, ul, ol, figure, blockquote {
  margin: 0 0 1rem;
}

ul, ol { padding-left: 1.4rem; }

img, svg, video, canvas { max-width: 100%; }

a { color: var(--blue); }

a:hover,
a:focus-visible { color: var(--pink-deep); }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--postit);
  color: var(--ink);
}

.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;
}

/* =====================================================================
   Sichtbarkeit
   Nur Ausblende-Regeln, alle mit !important. Elemente behalten sonst ihre
   natürliche Darstellung (block, inline, flex …). Eine Kombination wie
   „hideForGuest only-active“ ist damit sichtbar, wenn keine der Regeln greift.
   main.js setzt --display-active/--display-inactive als Inline-Style auf <html>,
   ohne JavaScript gelten die Werte „aktiv aus, inaktiv an“.
   ===================================================================== */
html:not([style*="--display-active: initial"]):not([style*="--display-active:initial"]) .only-active,
html[style*="--display-inactive: none"] .only-inactive,
html[style*="--display-inactive:none"] .only-inactive,
body:not(.signedIn) .hideForGuest,
body.signedIn .hideForUser,
body:not(.admin) .hideForNonAdmin,
.hidden,
[hidden] {
  display: none !important;
}

/* =====================================================================
   Navigation
   ===================================================================== */
nav.split-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  padding-block: 0;
  padding-inline: max(clamp(1rem, 2.5vw, 2rem), calc(50% - 640px + 2rem));
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

/* Regenbogen-Klebestreifen unter der Leiste */
nav.split-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 5px;
  background: var(--rainbow-x);
  border-bottom: 2px solid var(--ink);
  pointer-events: none;
}

.nav-brand { flex-shrink: 0; }

.nav-brand h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  text-align: left;
  rotate: -1deg;
}

.nav-brand a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nav-brand a:hover,
.nav-brand a:focus-visible {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--sun) 62% 94%, transparent 94%);
}

.collapsible { position: relative; }

.collapsible > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.collapsible > label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--wobbly-sm);
  box-shadow: 2px 2px 0 var(--ink);
}

.collapsible > input:focus-visible + label {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.collapsible .bar1,
.collapsible .bar2,
.collapsible .bar3 {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.collapsible-body ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collapsible-body li { margin: 0; }

.collapsible-body a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--wobbly-sm);
}

.collapsible-body a:not(.btn):hover,
.collapsible-body a:not(.btn):focus-visible {
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--sun) 60% 92%, transparent 92%);
}

.collapsible-body a.btn {
  margin-left: 0.4rem;
  padding: 0.4rem 1.15rem;
  font-family: var(--font-heading);
  font-weight: 700;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-btn);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.collapsible-body a.btn:hover,
.collapsible-body a.btn:focus-visible {
  color: #fff;
  background: var(--cta);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

@media (max-width: 768px) {
  nav.split-nav { gap: 1rem; padding-inline: var(--gutter); }

  .nav-brand h3 { font-size: 1.3rem; }

  .collapsible > label {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .collapsible-body {
    position: fixed;
    top: var(--nav-h);
    z-index: 999;
    width: min(300px, 86vw);
    height: calc(100dvh - var(--nav-h));
    padding: 1.6rem 1.25rem 2rem;
    overflow-y: auto;
    background: var(--paper);
    background-image: var(--dots);
    background-size: 20px 20px;
    border-left: 3px solid var(--ink);
    /* Kein transform/translate: sonst wäre das Panel Bezugsrahmen für das
       fixierte Abdunkel-Overlay (::before) und es landete im Panel. */
    right: calc(-1 * min(300px, 86vw) - 12px);
    visibility: hidden;
    transition: right 0.28s ease, visibility 0s linear 0.28s;
  }

  .collapsible > input:checked ~ .collapsible-body {
    right: 0;
    visibility: visible;
    transition: right 0.28s ease;
  }

  /* Abgedunkelte Fläche neben dem Menü */
  .collapsible > input:checked ~ .collapsible-body::before {
    content: '';
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: calc(100vw - min(300px, 86vw));
    height: calc(100dvh - var(--nav-h));
    background: rgba(20, 10, 40, 0.45);
  }

  .collapsible-body ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .collapsible-body a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
  }

  .collapsible-body li:nth-child(odd) a:not(.btn) { rotate: -0.6deg; }
  .collapsible-body li:nth-child(even) a:not(.btn) { rotate: 0.5deg; }

  .collapsible-body a.btn {
    margin: 0.9rem 0 0;
    text-align: center;
    color: #fff;
    background: var(--cta);
  }

  .collapsible > input:checked ~ label .bar1 { transform: translateY(8px) rotate(45deg); }
  .collapsible > input:checked ~ label .bar2 { opacity: 0; }
  .collapsible > input:checked ~ label .bar3 { transform: translateY(-8px) rotate(-45deg); }
}

/* =====================================================================
   Papier-Bausteine
   ===================================================================== */
.tape {
  position: absolute;
  z-index: 3;
  width: 112px;
  height: 30px;
  background: repeating-linear-gradient(45deg, rgba(255, 45, 135, 0.5) 0 7px, rgba(255, 255, 255, 0.55) 7px 14px);
  border: 1px solid rgba(45, 45, 45, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.paper-card {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-md);
  box-shadow: var(--shadow-lg);
}

.stamp {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  padding: 0.2rem 0.8rem 0.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c3004f;
  border: 3px solid currentColor;
  border-radius: 10px 4px 12px 5px;
  rotate: -3deg;
  mix-blend-mode: multiply;
}

/* Klebezettel-Überschrift */
h2.section-title {
  display: flex;
  justify-content: center;
  margin: 0 0 clamp(2rem, 5vw, 3.2rem);
  padding: 0;
}

.section-title > span {
  position: relative;
  display: inline-block;
  padding: 0.3em 0.75em 0.25em;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 8vw, 3.8rem);
  line-height: 1;
  color: var(--ink);
  background: #fff;
  background-image: var(--dots);
  background-size: 18px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-sm);
  box-shadow: 7px 7px 0 var(--ink);
  rotate: -2deg;
}

.section-title > span::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 96px;
  height: 26px;
  translate: -50% 0;
  rotate: 3deg;
  background: repeating-linear-gradient(-45deg, rgba(81, 252, 248, 0.6) 0 7px, rgba(255, 255, 255, 0.6) 7px 14px);
  border: 1px solid rgba(45, 45, 45, 0.15);
}

.section-title--small > span { font-size: clamp(1.8rem, 5vw, 2.4rem); }

/* Regenbogen-Schriftzug */
h1.caption {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 1;
  text-align: center;
  color: var(--pink);
  rotate: -2deg;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  h1.caption {
    color: transparent;
    background-image: var(--anniversary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1.5px var(--ink);
    paint-order: stroke fill;
  }
}

/* =====================================================================
   Buttons
   .btn-party ist der große Party-Knopf. button, .btn-cta, .btn-warning und
   .btn-danger nutzen dieselbe Form, damit auch per JS erzeugte Buttons passen.
   ===================================================================== */
.btn-party,
.btn-cta,
.btn-warning,
.btn-danger,
.btn-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--cta);
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-btn);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-party:hover,
.btn-party:focus-visible,
.btn-cta:hover,
.btn-cta:focus-visible {
  color: #fff;
  background: var(--cta-hover);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-party:active,
.btn-cta:active,
.btn-warning:active,
.btn-danger:active,
.btn-paper:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-party--paper,
.btn-paper {
  color: var(--ink);
  background: #fff;
}

.btn-party--paper:hover,
.btn-party--paper:focus-visible,
.btn-paper:hover,
.btn-paper:focus-visible {
  color: var(--ink);
  background: var(--sun);
}

.btn-party--big { min-height: 58px; font-size: 1.45rem; padding-inline: 2rem; }

.btn-warning {
  color: var(--ink);
  background: var(--sun);
}

.btn-warning:hover,
.btn-warning:focus-visible {
  color: var(--ink);
  background: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-danger {
  color: #fff;
  background: #c3002f;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  color: #fff;
  background: #9a0025;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-large { min-height: 56px; font-size: 1.35rem; }
.btn-block { display: flex; width: 100%; }

button:disabled,
.btn-party[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================================
   Formulare
   ===================================================================== */
.form-group,
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.form-group > label,
.field > label,
.field-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}

.input-block,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.95rem;
  font-family: var(--font-body);
  font-size: max(16px, 1.15rem);
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-input);
  box-shadow: inset 2px 2px 0 rgba(45, 45, 45, 0.08);
  transition: box-shadow 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

textarea { min-height: 120px; resize: vertical; }

select {
  appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.input-block::placeholder,
input::placeholder,
textarea::placeholder { color: #8a837a; }

.input-block:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
  background-color: #fffdf3;
  box-shadow: 4px 4px 0 var(--pink);
}

.input-block.invalid,
input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--error);
  background-color: var(--error-light);
  box-shadow: 4px 4px 0 var(--error);
}

.form-section { margin: 0; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.form-hint {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-soft);
}

/* Meldungen */
.alert {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-sm);
  background: var(--info-light);
  box-shadow: 3px 3px 0 var(--ink);
}

.alert-success { background: var(--success-light); }
.alert-danger,
.alert-error { background: var(--error-light); }
.alert-warning { background: var(--warning-light); }

.text-success { color: var(--success); }
.text-danger,
.danger { color: var(--error); }
.danger { font-family: var(--font-heading); font-weight: 700; }

/* =====================================================================
   Modal (Checkbox-Steuerung aus main.js: .modal-state:checked ~ .modal)
   ===================================================================== */
.modal-state {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.modal-state:checked + .modal,
.modal-state:checked ~ .modal {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 40, 0.6);
  cursor: pointer;
}

.modal-body {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  padding: 2.2rem clamp(1.2rem, 5vw, 2rem) 1.6rem;
  color: var(--ink);
  background: #fff;
  background-image:
    linear-gradient(rgba(45, 93, 161, 0.1) 1px, transparent 1px);
  background-size: 100% 32px;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-md);
  box-shadow: var(--shadow-lg);
  rotate: -0.6deg;
  transition: scale 0.25s var(--bounce);
  scale: 0.94;
}

.modal-state:checked ~ .modal .modal-body { scale: 1; }

.modal-body::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 120px;
  height: 28px;
  translate: -50% 0;
  rotate: 2deg;
  background: repeating-linear-gradient(45deg, rgba(255, 45, 135, 0.5) 0 7px, rgba(255, 255, 255, 0.6) 7px 14px);
  border: 1px solid rgba(45, 45, 45, 0.15);
}

.modal-title {
  margin: 0 2.6rem 0.8rem 0;
  font-size: clamp(1.6rem, 6vw, 2rem);
  line-height: 1.15;
}

.btn-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.btn-close:hover { background: var(--sun); }

.modal .note {
  display: none;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border: 3px solid var(--ink);
  border-radius: var(--wobbly-sm);
}

.modal-text { margin: 0 0 0.8rem; }

.modal-data {
  margin: 0 0 1.2rem;
  padding: 0.8rem 1rem;
  white-space: pre-line;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.45;
  background: var(--postit-yellow);
  border: 2px dashed var(--ink);
  border-radius: var(--wobbly-sm);
}

.modal-data:empty { display: none; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.modal-actions > * { flex: 1 1 160px; }

.background-success { background: var(--success-light); color: var(--success); }
.background-danger { background: var(--error-light); color: var(--error); }

.progress {
  height: 14px;
  margin: 0 0 1.2rem;
  overflow: hidden;
  background: var(--paper-alt);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.progress .bar {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 10px, #ff79b5 10px 20px);
  transition: width 2.5s ease;
}

.progress .bar.danger { background: var(--error); }
.w-0 { width: 0; }

/* =====================================================================
   Toasts (Container und Klassen kommen aus main.js / admin.js)
   ===================================================================== */
/* main.js setzt top/right inline; unter die Navigationsleiste schieben */
#toast-container {
  top: calc(var(--nav-h) + 16px) !important;
  right: var(--gutter) !important;
  max-width: calc(100vw - 2 * var(--gutter));
}

.toast {
  max-width: 360px;
  padding: 0.8rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-left-width: 10px;
  border-radius: var(--wobbly-sm);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  translate: 0 -12px;
  rotate: 1deg;
  transition: opacity 0.25s ease, translate 0.25s var(--bounce);
}

.toast-show {
  opacity: 1;
  translate: 0 0;
}

.toast-success { border-left-color: #2e9e44; background: var(--success-light); }
.toast-error { border-left-color: var(--error); background: var(--error-light); }
.toast-warning { border-left-color: #f59e0b; background: var(--warning-light); }
.toast-info { border-left-color: var(--blue); background: var(--info-light); }

/* ===== Kleine Helfer ===== */
.margin-small { margin: 0.5rem 0; }
.margin-bottom { margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  h1.caption {
    color: CanvasText;
    background: none;
    -webkit-text-stroke: 0;
  }

  .btn-party,
  .btn-cta,
  .btn-warning,
  .btn-danger,
  .btn-paper { border-color: ButtonText; }
}
