/* ===========================================================================
   Party-Snaps – themebares Layout-System
   Struktur nutzt CSS-Variablen; 12 Layouts überschreiben sie via
   html[data-layout="…"].  Default (:root) = "Perücken-Party".
   =========================================================================== */

:root {
  /* Schrift */
  --fs: 1;   /* Skalierung aller Schriftgrößen: normal=1, groß, extra-groß (siehe html[data-fontsize]) */
  --font:         'Fredoka', system-ui, sans-serif;
  --heading-font: 'Fredoka', system-ui, sans-serif;
  --heading-weight: 700;

  /* Flächen & Farben */
  --bg:
    radial-gradient(1200px 800px at 80% -10%, rgba(230,75,176,.35), transparent 60%),
    radial-gradient(900px 700px at -10% 20%, rgba(59,107,214,.35), transparent 55%),
    linear-gradient(160deg, #3b6bd6 0%, #8b3bd6 48%, #e64bb0 100%);
  --text:   #fbf4ff;
  --muted:  #c6b4e4;
  --accent: #e64bb0;
  --accent-2:#3b6bd6;

  /* Headline (Bubble) */
  --headline-color:  #ffd23d;
  --headline-stroke: 3px #e23b4e;
  --headline-shadow: 0 3px 0 #a81f30, 0 6px 10px rgba(0,0,0,.4);
  --section-color:   #ffd23d;

  /* Panels / Flächen */
  --panel:        rgba(28,16,54,.55);
  --panel-solid:  #241440;
  --panel-border: rgba(255,255,255,.14);
  --surface:        rgba(0,0,0,.2);
  --surface-border: rgba(255,255,255,.12);

  /* Felder */
  --field-bg:    rgba(0,0,0,.25);
  --field-border:rgba(255,255,255,.2);
  --field-focus: #ffd23d;

  /* Buttons */
  --btn-grad:   linear-gradient(135deg, #e64bb0, #e23b4e);
  --btn-shadow: 0 6px 16px rgba(226,59,78,.4);
  --btn2-grad:  linear-gradient(135deg, #3b6bd6, #8b3bd6);
  --btn2-shadow:0 6px 16px rgba(59,107,214,.4);

  /* Tabs / Chips */
  --tab-grad: linear-gradient(135deg, #ffd23d, #ffb03d);
  --tab-ink:  #5a2a00;
  --chip-bg:        rgba(255,255,255,.1);
  --chip-border:    rgba(255,255,255,.22);
  --chip-active-bg: linear-gradient(135deg, #ffd23d, #ffb03d);
  --chip-active-ink:#5a2a00;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --sparkle-opacity: 1;
}

/* ---- Layout 2: Elegant (dunkel, Gold, Serif) ----------------------------- */
html[data-layout="elegant"] {
  --font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --heading-font: 'Playfair Display', Georgia, serif;
  --heading-weight: 800;
  --bg:
    radial-gradient(1000px 700px at 85% -10%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(160deg, #15131a 0%, #231e29 55%, #15131a 100%);
  --text: #f3ecdd; --muted: #b6a885;
  --accent: #c9a24b; --accent-2: #7a5e24;
  --headline-color: #e8cd86; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 10px rgba(0,0,0,.6);
  --section-color: #d9b863;
  --panel: rgba(28,24,34,.6); --panel-solid: #221d29; --panel-border: rgba(201,162,75,.25);
  --surface: rgba(255,255,255,.04); --surface-border: rgba(201,162,75,.2);
  --field-bg: rgba(0,0,0,.3); --field-border: rgba(201,162,75,.3); --field-focus: #c9a24b;
  --btn-grad: linear-gradient(135deg, #c9a24b, #9a7a2e); --btn-shadow: 0 6px 16px rgba(201,162,75,.35);
  --btn2-grad: linear-gradient(135deg, #3a333f, #262029); --btn2-shadow: 0 6px 16px rgba(0,0,0,.4);
  --tab-grad: linear-gradient(135deg, #c9a24b, #9a7a2e); --tab-ink: #1a140a;
  --chip-active-bg: linear-gradient(135deg, #c9a24b, #9a7a2e); --chip-active-ink: #1a140a;
  --sparkle-opacity: 0;
}

/* ---- Layout 3: Neon (dunkel, grell, modern) ------------------------------ */
html[data-layout="neon"] {
  --font: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --heading-font: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --heading-weight: 800;
  --bg:
    radial-gradient(900px 600px at 80% -5%, rgba(255,43,214,.28), transparent 55%),
    radial-gradient(800px 600px at 0% 30%, rgba(39,224,255,.22), transparent 55%),
    linear-gradient(160deg, #080812 0%, #0e1030 55%, #080812 100%);
  --text: #eafcff; --muted: #86b9cc;
  --accent: #ff2bd6; --accent-2: #27e0ff;
  --headline-color: #27e0ff; --headline-stroke: 2px #ff2bd6;
  --headline-shadow: 0 0 14px rgba(39,224,255,.7), 0 0 26px rgba(255,43,214,.5);
  --section-color: #ff2bd6;
  --panel: rgba(10,12,30,.55); --panel-solid: #0c1130; --panel-border: rgba(39,224,255,.25);
  --surface: rgba(255,255,255,.05); --surface-border: rgba(39,224,255,.2);
  --field-bg: rgba(0,0,0,.4); --field-border: rgba(39,224,255,.3); --field-focus: #ff2bd6;
  --btn-grad: linear-gradient(135deg, #ff2bd6, #27e0ff); --btn-shadow: 0 0 18px rgba(255,43,214,.5);
  --btn2-grad: linear-gradient(135deg, #27e0ff, #2b6bff); --btn2-shadow: 0 0 18px rgba(39,224,255,.45);
  --tab-grad: linear-gradient(135deg, #ff2bd6, #27e0ff); --tab-ink: #06121a;
  --chip-active-bg: linear-gradient(135deg, #ff2bd6, #27e0ff); --chip-active-ink: #06121a;
  --sparkle-opacity: 0;
}

/* ---- Layout 4: Pastell (zart, hell, freundlich) -------------------------- */
html[data-layout="pastell"] {
  --font: 'Quicksand', 'Fredoka', system-ui, sans-serif;
  --heading-font: 'Quicksand', 'Fredoka', system-ui, sans-serif;
  --heading-weight: 700;
  --bg:
    radial-gradient(900px 700px at 85% -10%, rgba(255,143,200,.35), transparent 60%),
    radial-gradient(800px 600px at -5% 15%, rgba(143,200,255,.35), transparent 55%),
    linear-gradient(160deg, #ffe8f3 0%, #eef0ff 50%, #e9fff4 100%);
  --text: #4a3b52; --muted: #8d7c99;
  --accent: #ff8fc8; --accent-2: #8fc8ff;
  --headline-color: #d85aa0; --headline-stroke: 2px #ffffff;
  --headline-shadow: 0 2px 4px rgba(216,90,160,.25);
  --section-color: #c7568f;
  --panel: rgba(255,255,255,.65); --panel-solid: #ffffff; --panel-border: rgba(216,90,160,.18);
  --surface: rgba(216,90,160,.08); --surface-border: rgba(216,90,160,.15);
  --field-bg: rgba(255,255,255,.8); --field-border: rgba(216,90,160,.25); --field-focus: #ff8fc8;
  --btn-grad: linear-gradient(135deg, #ff8fc8, #ff6fae); --btn-shadow: 0 6px 16px rgba(255,143,200,.4);
  --btn2-grad: linear-gradient(135deg, #8fc8ff, #6fb0ff); --btn2-shadow: 0 6px 16px rgba(143,200,255,.4);
  --tab-grad: linear-gradient(135deg, #ff8fc8, #ff6fae); --tab-ink: #fff;
  --chip-bg: rgba(216,90,160,.1); --chip-border: rgba(216,90,160,.25);
  --chip-active-bg: linear-gradient(135deg, #ff8fc8, #ff6fae); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* ---- Layout 5: Klassisch (klar, blau, schlicht) -------------------------- */
html[data-layout="klassisch"] {
  --font: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --heading-font: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --heading-weight: 700;
  --bg: linear-gradient(160deg, #1f3a63 0%, #27508a 55%, #1f3a63 100%);
  --text: #eef4fb; --muted: #a9bdd6;
  --accent: #4a90e2; --accent-2: #2c6cbf;
  --headline-color: #ffffff; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 8px rgba(0,0,0,.4);
  --section-color: #bcd6f5;
  --panel: rgba(16,30,54,.5); --panel-solid: #16233c; --panel-border: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.06); --surface-border: rgba(255,255,255,.14);
  --field-bg: rgba(0,0,0,.25); --field-border: rgba(255,255,255,.22); --field-focus: #4a90e2;
  --btn-grad: linear-gradient(135deg, #4a90e2, #2c6cbf); --btn-shadow: 0 6px 16px rgba(74,144,226,.4);
  --btn2-grad: linear-gradient(135deg, #5a6b82, #3c4b62); --btn2-shadow: 0 6px 16px rgba(0,0,0,.3);
  --tab-grad: linear-gradient(135deg, #4a90e2, #2c6cbf); --tab-ink: #fff;
  --chip-active-bg: linear-gradient(135deg, #4a90e2, #2c6cbf); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* ---- Layout 6: Natur (grün/erdig, Serif + Handschrift-Headline) ---------- */
html[data-layout="natur"] {
  --font: 'Georgia', 'Palatino Linotype', 'Book Antiqua', serif;
  --heading-font: 'Caveat', 'Segoe Print', 'Georgia', cursive;
  --heading-weight: 700;
  --bg:
    radial-gradient(900px 700px at 85% -10%, rgba(166,196,120,.28), transparent 60%),
    linear-gradient(160deg, #2f3d24 0%, #45552f 55%, #2f3d24 100%);
  --text: #f1efe0; --muted: #c2c0a0;
  --accent: #8aad53; --accent-2: #b5894f;
  --headline-color: #e7e2b8; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 8px rgba(0,0,0,.45);
  --section-color: #d4cf94;
  --panel: rgba(34,42,26,.55); --panel-solid: #26301c; --panel-border: rgba(214,207,148,.22);
  --surface: rgba(255,255,255,.05); --surface-border: rgba(214,207,148,.2);
  --field-bg: rgba(0,0,0,.28); --field-border: rgba(214,207,148,.28); --field-focus: #8aad53;
  --btn-grad: linear-gradient(135deg, #8aad53, #5f7d33); --btn-shadow: 0 6px 16px rgba(138,173,83,.4);
  --btn2-grad: linear-gradient(135deg, #b5894f, #8a6334); --btn2-shadow: 0 6px 16px rgba(181,137,79,.35);
  --tab-grad: linear-gradient(135deg, #8aad53, #5f7d33); --tab-ink: #1c2410;
  --chip-active-bg: linear-gradient(135deg, #8aad53, #5f7d33); --chip-active-ink: #1c2410;
  --sparkle-opacity: 0;
}
html[data-layout="natur"] .bubble { letter-spacing: 1px; }

/* ---- Layout 7: Sunset (warm, orange/rosa) -------------------------------- */
html[data-layout="sunset"] {
  --font: 'Nunito', system-ui, sans-serif;
  --heading-font: 'Nunito', system-ui, sans-serif;
  --heading-weight: 800;
  --bg:
    radial-gradient(1000px 700px at 85% -10%, rgba(255,140,50,.3), transparent 60%),
    radial-gradient(800px 600px at 0% 40%, rgba(220,60,100,.2), transparent 55%),
    linear-gradient(160deg, #1a0c1e 0%, #3a1428 55%, #1e0e14 100%);
  --text: #fef0e8; --muted: #d4a899;
  --accent: #ff8c32; --accent-2: #dc3c64;
  --headline-color: #ffe0b0; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 12px rgba(255,140,50,.5);
  --section-color: #ffcb8a;
  --panel: rgba(30,14,20,.6); --panel-solid: #261420; --panel-border: rgba(255,140,50,.2);
  --surface: rgba(255,255,255,.05); --surface-border: rgba(255,140,50,.18);
  --field-bg: rgba(0,0,0,.3); --field-border: rgba(255,140,50,.25); --field-focus: #ff8c32;
  --btn-grad: linear-gradient(135deg, #ff8c32, #dc3c64); --btn-shadow: 0 6px 16px rgba(255,140,50,.4);
  --btn2-grad: linear-gradient(135deg, #dc3c64, #a82848); --btn2-shadow: 0 6px 16px rgba(220,60,100,.35);
  --tab-grad: linear-gradient(135deg, #ff8c32, #dc3c64); --tab-ink: #1a0c1e;
  --chip-active-bg: linear-gradient(135deg, #ff8c32, #dc3c64); --chip-active-ink: #1a0c1e;
  --sparkle-opacity: 0;
}

/* ---- Layout 8: Ozean (tief, blau/türkis) --------------------------------- */
html[data-layout="ozean"] {
  --font: 'Inter', system-ui, sans-serif;
  --heading-font: 'Inter', system-ui, sans-serif;
  --heading-weight: 700;
  --bg:
    radial-gradient(1000px 700px at 80% -10%, rgba(0,180,200,.25), transparent 60%),
    radial-gradient(800px 600px at -5% 30%, rgba(20,60,140,.3), transparent 55%),
    linear-gradient(160deg, #061828 0%, #0a2840 55%, #061828 100%);
  --text: #e8f4f8; --muted: #8ab8cc;
  --accent: #00b4c8; --accent-2: #1e5aa0;
  --headline-color: #b0e8f0; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 12px rgba(0,180,200,.4);
  --section-color: #80d4e0;
  --panel: rgba(6,24,40,.6); --panel-solid: #0c2238; --panel-border: rgba(0,180,200,.22);
  --surface: rgba(255,255,255,.05); --surface-border: rgba(0,180,200,.18);
  --field-bg: rgba(0,0,0,.28); --field-border: rgba(0,180,200,.28); --field-focus: #00b4c8;
  --btn-grad: linear-gradient(135deg, #00b4c8, #1e5aa0); --btn-shadow: 0 6px 16px rgba(0,180,200,.4);
  --btn2-grad: linear-gradient(135deg, #1e5aa0, #143c8c); --btn2-shadow: 0 6px 16px rgba(30,90,160,.35);
  --tab-grad: linear-gradient(135deg, #00b4c8, #1e5aa0); --tab-ink: #fff;
  --chip-active-bg: linear-gradient(135deg, #00b4c8, #1e5aa0); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* ---- Layout 9: Monochrom (schwarz/weiß, minimalistisch) ------------------ */
html[data-layout="monochrom"] {
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --heading-weight: 800;
  --bg: linear-gradient(160deg, #1a1a1a 0%, #2a2a2a 55%, #1a1a1a 100%);
  --text: #f0f0f0; --muted: #999;
  --accent: #fff; --accent-2: #bbb;
  --headline-color: #ffffff; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 8px rgba(0,0,0,.6);
  --section-color: #ddd;
  --panel: rgba(255,255,255,.06); --panel-solid: #222; --panel-border: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.04); --surface-border: rgba(255,255,255,.1);
  --field-bg: rgba(0,0,0,.3); --field-border: rgba(255,255,255,.2); --field-focus: #fff;
  --btn-grad: linear-gradient(135deg, #fff, #ddd); --btn-shadow: 0 6px 16px rgba(255,255,255,.15);
  --btn2-grad: linear-gradient(135deg, #444, #333); --btn2-shadow: 0 6px 16px rgba(0,0,0,.4);
  --tab-grad: linear-gradient(135deg, #fff, #ddd); --tab-ink: #1a1a1a;
  --chip-active-bg: linear-gradient(135deg, #fff, #ddd); --chip-active-ink: #1a1a1a;
  --sparkle-opacity: 0;
}

/* ---- Layout 10: Weinrot (dunkel, bordeaux) ------------------------------- */
html[data-layout="weinrot"] {
  --font: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --heading-font: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --heading-weight: 700;
  --bg:
    radial-gradient(900px 700px at 80% -10%, rgba(160,30,50,.3), transparent 60%),
    linear-gradient(160deg, #1e0c10 0%, #3a1520 55%, #1e0c10 100%);
  --text: #f5e8ea; --muted: #c09da6;
  --accent: #c83050; --accent-2: #8a1e34;
  --headline-color: #f0c8d0; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 10px rgba(200,48,80,.4);
  --section-color: #e0a0b0;
  --panel: rgba(30,12,16,.6); --panel-solid: #28101a; --panel-border: rgba(200,48,80,.22);
  --surface: rgba(255,255,255,.04); --surface-border: rgba(200,48,80,.18);
  --field-bg: rgba(0,0,0,.28); --field-border: rgba(200,48,80,.3); --field-focus: #c83050;
  --btn-grad: linear-gradient(135deg, #c83050, #8a1e34); --btn-shadow: 0 6px 16px rgba(200,48,80,.4);
  --btn2-grad: linear-gradient(135deg, #5a2030, #3a1018); --btn2-shadow: 0 6px 16px rgba(0,0,0,.4);
  --tab-grad: linear-gradient(135deg, #c83050, #8a1e34); --tab-ink: #fff;
  --chip-active-bg: linear-gradient(135deg, #c83050, #8a1e34); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* ---- Layout 11: Sand (hell, warm, dezent) -------------------------------- */
html[data-layout="sand"] {
  --font: 'DM Sans', system-ui, sans-serif;
  --heading-font: 'DM Sans', system-ui, sans-serif;
  --heading-weight: 700;
  --bg:
    radial-gradient(900px 700px at 85% -10%, rgba(210,180,140,.3), transparent 60%),
    linear-gradient(160deg, #f5efe6 0%, #ebe3d6 50%, #f5efe6 100%);
  --text: #3d3428; --muted: #8a7d6e;
  --accent: #b8863a; --accent-2: #8a6428;
  --headline-color: #5a4830; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 6px rgba(90,72,48,.2);
  --section-color: #6a5838;
  --panel: rgba(255,255,255,.6); --panel-solid: #faf6f0; --panel-border: rgba(184,134,58,.2);
  --surface: rgba(184,134,58,.06); --surface-border: rgba(184,134,58,.15);
  --field-bg: rgba(255,255,255,.7); --field-border: rgba(184,134,58,.25); --field-focus: #b8863a;
  --btn-grad: linear-gradient(135deg, #b8863a, #8a6428); --btn-shadow: 0 6px 16px rgba(184,134,58,.3);
  --btn2-grad: linear-gradient(135deg, #d4c8b4, #bfb49e); --btn2-shadow: 0 6px 16px rgba(0,0,0,.1);
  --tab-grad: linear-gradient(135deg, #b8863a, #8a6428); --tab-ink: #fff;
  --chip-bg: rgba(184,134,58,.1); --chip-border: rgba(184,134,58,.25);
  --chip-active-bg: linear-gradient(135deg, #b8863a, #8a6428); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* ---- Layout 12: Lavendel (sanft, lila/violett) --------------------------- */
html[data-layout="lavendel"] {
  --font: 'Outfit', system-ui, sans-serif;
  --heading-font: 'Outfit', system-ui, sans-serif;
  --heading-weight: 700;
  --bg:
    radial-gradient(900px 700px at 85% -10%, rgba(140,100,200,.25), transparent 60%),
    radial-gradient(800px 600px at -5% 25%, rgba(180,140,220,.2), transparent 55%),
    linear-gradient(160deg, #1a1228 0%, #261840 55%, #1a1228 100%);
  --text: #f0eaf8; --muted: #b0a0c8;
  --accent: #9c6ad8; --accent-2: #7040b0;
  --headline-color: #d8c4f0; --headline-stroke: 0px transparent;
  --headline-shadow: 0 2px 12px rgba(156,106,216,.4);
  --section-color: #c8a8e0;
  --panel: rgba(26,18,40,.6); --panel-solid: #201438; --panel-border: rgba(156,106,216,.22);
  --surface: rgba(255,255,255,.05); --surface-border: rgba(156,106,216,.18);
  --field-bg: rgba(0,0,0,.28); --field-border: rgba(156,106,216,.28); --field-focus: #9c6ad8;
  --btn-grad: linear-gradient(135deg, #9c6ad8, #7040b0); --btn-shadow: 0 6px 16px rgba(156,106,216,.4);
  --btn2-grad: linear-gradient(135deg, #7040b0, #502890); --btn2-shadow: 0 6px 16px rgba(112,64,176,.35);
  --tab-grad: linear-gradient(135deg, #9c6ad8, #7040b0); --tab-ink: #fff;
  --chip-active-bg: linear-gradient(135deg, #9c6ad8, #7040b0); --chip-active-ink: #fff;
  --sparkle-opacity: 0;
}

/* =========================================================================== */
* { box-sizing: border-box; }
html[data-fontsize="large"]  { --fs: 1.15; }
html[data-fontsize="xlarge"] { --fs: 1.3; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 25%, rgba(255,255,255,.45), transparent);
  pointer-events: none; z-index: 0;
  opacity: var(--sparkle-opacity);
}

.app {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 0 16px 120px; /* extra bottom padding for bottom tab bar */
}

/* ---- Eck-Detail (Willkommensbild klein) ---------------------------------- */
.corner-detail {
  position: fixed; top: 10px; right: 12px;
  z-index: 2; pointer-events: none;
  border-radius: 14px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.4));
  object-fit: cover;
}

/* ---- Bubble-Headline ------------------------------------------------------ */
.bubble {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  color: var(--headline-color);
  text-align: center; line-height: 1.04; letter-spacing: .5px;
  -webkit-text-stroke: var(--headline-stroke);
  paint-order: stroke fill;
  text-shadow: var(--headline-shadow);
  margin: 0;
}
.bubble.xl { font-size: calc(clamp(34px, 9vw, 62px) * var(--fs)); }
.bubble.lg { font-size: calc(clamp(26px, 6vw, 40px) * var(--fs)); }

.subtitle {
  text-align: center; color: var(--text); font-weight: 500;
  font-size: calc(clamp(15px, 3.6vw, 19px) * var(--fs));
  margin: 10px auto 0; max-width: 42ch;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
  white-space: pre-line;
}

/* ---- Karten / Panels ------------------------------------------------------ */
.panel {
  background: var(--panel);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin: 18px 0;
}
.section-title {
  font-family: var(--heading-font);
  font-size: calc(20px * var(--fs)); font-weight: var(--heading-weight);
  color: var(--section-color); margin: 0 0 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,.25);
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  font-family: var(--font); font-weight: 600; font-size: calc(17px * var(--fs));
  color: #fff; border: none; border-radius: 999px;
  padding: 14px 26px; cursor: pointer;
  background: var(--btn-grad); box-shadow: var(--btn-shadow);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.secondary { background: var(--btn2-grad); box-shadow: var(--btn2-shadow); }
.btn.ghost {
  background: rgba(127,127,127,.12); box-shadow: none; color: var(--text);
  border: 1px solid var(--surface-border);
}
.btn.block { display: block; width: 100%; }
.btn.sm { padding: 8px 16px; font-size: calc(14px * var(--fs)); }
.btn.danger { background: linear-gradient(135deg, #e8485e, #c92a3f); box-shadow: 0 6px 16px rgba(226,59,78,.35); }

/* ---- Formular ------------------------------------------------------------- */
.field {
  width: 100%; font-family: var(--font); font-size: calc(18px * var(--fs)); color: var(--text);
  background: var(--field-bg); border: 2px solid var(--field-border);
  border-radius: 16px; padding: 14px 16px; outline: none;
  transition: border-color .15s;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--field-focus); }
textarea.field { resize: vertical; min-height: 72px; line-height: 1.4; }
select.field { appearance: none; }

.hint  { color: var(--muted); font-size: calc(14px * var(--fs)); margin-top: 8px; }
.expiry { display: block; font-size: calc(13px * var(--fs)); font-weight: 600; border-left: 3px solid var(--accent); padding-left: .4rem; margin-top: .2rem; }
.error { color: #ffb3bd; font-size: calc(15px * var(--fs)); margin-top: 10px; min-height: 1.2em; }

/* ---- Willkommens-Hero ----------------------------------------------------- */
.hero-img {
  display: block; margin: 10px auto 0;
  max-width: 92%;
  border-radius: 18px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.4));
}
.welcome-row { max-width: 640px; margin: 10px auto 0; }
.welcome-row .hero-img { margin: 0; }
.welcome-row .subtitle { text-align: left; margin: 0; max-width: none; }

/* ---- Themen-Karten (Meine Foto-Themen) ----------------------------------- */
.theme-card { margin-top: 26px; position: relative; }   /* Platz für das über den Kartenrand ragende Symbol */
.theme-card .desc  { font-size: calc(13px * var(--fs)); color: var(--muted); margin-top: 2px; }
.theme-card .state { font-size: calc(13px * var(--fs)); color: var(--muted); margin-top: 4px; }

/* ---- Grüner Haken (Thema geschafft) -------------------------------------- */
/* Ziel-Anzeige oben rechts in der Themen-Karte: Punkte (+ Häkchen bei erreichtem Ziel) */
.goal-badge {
  position: absolute; top: -20px; right: -8px; z-index: 2;   /* schwebt: Symbol ragt über den Kartenrand, Pille in der Titelzeile */
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;   /* Symbol rechts über der Pille */
  pointer-events: none;
}
.goal-dots {
  display: flex; align-items: center; gap: 4px;
  height: calc(28px * var(--fs)); padding: 0 10px; border-radius: 999px;
  background: #475569; color: #fff;   /* neutral, unabhängig vom Status und Layout */
  font-size: calc(14px * var(--fs)); font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.goal-dots .dot {
  width: calc(10px * var(--fs)); height: calc(10px * var(--fs)); border-radius: 50%;
  border: 2px solid #fff; box-sizing: border-box;
}
.goal-dots .dot.on { background: #fff; }
/* Ziel übererfüllt: ein „+" hinter den Punkten, in der Farbe der Pille (weiß wie die Punkte) */
.goal-dots .plus {
  margin-left: 2px; color: #fff; font-size: calc(17px * var(--fs)); font-weight: 800; line-height: 1;
}
.done-badge {
  width: 40px; height: 40px; flex: none; position: relative;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.done-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.done-badge.rb-stamp { width: 92px; }
.done-badge.rb-medal { height: 48px; }
.rb-slot { height: 40px; display: flex; justify-content: flex-end; }   /* fester Platz fürs Symbol, auch wenn noch leer */
.rb-slot.tall { height: 48px; margin-top: -8px; }   /* Medaille ist höher: nach oben wachsen, Pille bleibt an ihrem Platz */
.goal-badge.no-slot { top: -8px; }                 /* „Nur Kartenrand“: kein Symbol, Pille oben rechts */
.goal-badge.sym-only { top: -8px; }                /* Pille ausgeblendet: nur das Symbol in der Ecke */
/* Symbol rechts neben der Pille (Admin: Position „rechts") – Platz reserviert, Pille springt nicht */
.goal-badge.pos-right { flex-direction: row; align-items: center; gap: 6px; top: -8px; }
.goal-badge.pos-right .rb-slot { height: auto; min-height: 40px; min-width: 40px; align-items: center; }
.goal-badge.pos-right .rb-slot.tall { margin-top: 0; }
.goal-badge.pos-right .rb-slot.wide { min-width: 92px; }

/* Thema gerade geschafft: Punkte-Pille poppt, dann erscheint das Symbol (je Variante eigene Animation) */
.goal-badge.just-done .goal-dots { animation: dots-pop .5s ease-out both; }
.goal-badge.just-done .rb-check   { animation: badge-fly .7s cubic-bezier(.34,1.56,.64,1) .25s both; }
.goal-badge.just-done .rb-stamp   { animation: rb-stamp .45s cubic-bezier(.2,.9,.3,1.2) .25s both; }
.goal-badge.just-done .rb-medal   { animation: rb-swing 1.2s ease-out .25s both; transform-origin: 50% 0; }
.goal-badge.just-done .rb-star    { animation: rb-spin .8s cubic-bezier(.34,1.56,.64,1) .25s both, rb-twinkle .5s ease-in-out 1.05s 2; }
.goal-badge.just-done .rb-trophy  { animation: rb-hop .8s ease-out .25s both; }
.goal-badge.just-done .rb-rosette { animation: rb-spin .9s cubic-bezier(.34,1.56,.64,1) .25s both, rb-twinkle .5s ease-in-out 1.15s 1; }
.goal-badge.just-done .rb-thumb   { animation: rb-pop-wiggle .9s ease-out .25s both; }
.goal-badge.just-done .rb-heart   { animation: rb-beat 1.1s ease-in-out .25s both; }
.theme-card.just-glow { animation: rb-glow 1.6s ease-out both; }
.rw-preview { margin: 26px 0 14px; }   /* Admin-Vorschau „Thema geschafft" */
.goal-badge.just-done .rb-check::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 3px solid #22c55e;
  animation: badge-ring .8s ease-out .8s both;
}
@keyframes badge-fly {
  0%   { transform: translate(14px, -80px) scale(.3) rotate(-120deg); opacity: 0; }   /* von oben rechts, ohne seitlich über den Rand zu ragen */
  60%  { transform: translate(-6px, 4px) scale(1.25) rotate(10deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes rb-stamp { 0% { transform: scale(2.6) rotate(-14deg); opacity: 0; } 70% { transform: scale(.92); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes rb-swing { 0% { transform: translateY(-70px) rotate(-25deg); opacity: 0; } 30% { transform: translateY(0) rotate(18deg); opacity: 1; }
                      55% { transform: rotate(-10deg); } 75% { transform: rotate(5deg); } 100% { transform: none; opacity: 1; } }
@keyframes rb-spin { 0% { transform: scale(0) rotate(-300deg); opacity: 0; } 70% { transform: scale(1.25) rotate(10deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes rb-twinkle { 50% { filter: drop-shadow(0 0 10px #fde047) brightness(1.25); } }
@keyframes rb-hop { 0% { transform: translateY(-50px) scale(.4); opacity: 0; } 45% { transform: translateY(0) scale(1.1, .9); opacity: 1; }
                    65% { transform: translateY(-12px) scale(.95, 1.05); } 85% { transform: translateY(0) scale(1.04, .96); } 100% { transform: none; opacity: 1; } }
@keyframes rb-pop-wiggle { 0% { transform: scale(0); opacity: 0; } 35% { transform: scale(1.25); opacity: 1; } 50% { transform: rotate(-14deg); }
                           65% { transform: rotate(12deg); } 80% { transform: rotate(-6deg); } 100% { transform: none; opacity: 1; } }
@keyframes rb-beat { 0% { transform: scale(0); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 38% { transform: scale(1.3); } 50% { transform: scale(1); }
                     62% { transform: scale(1.3); } 76% { transform: scale(1); } 100% { transform: none; opacity: 1; } }
@keyframes rb-glow { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0), var(--shadow); } 30% { box-shadow: 0 0 0 4px #22c55e, 0 0 28px 6px rgba(34,197,94,.7); }
                     100% { box-shadow: 0 0 0 0 rgba(34,197,94,0), var(--shadow); } }
@keyframes dots-pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes badge-ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---- Confetti (alle Themen geschafft) ------------------------------------ */
/* ---- Belohnungs-Effekte „Alle Ziele erreicht" (fx.js) ---------------------- */
.fx-layer { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.fx-layer > * { position: absolute; }

/* Konfetti */
.fx-confetti { top: -20px; animation: fx-fall linear forwards; }
@keyframes fx-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--drift), 112vh) rotate(var(--rot)); opacity: 0; }
}

/* Feuerwerk: Rakete steigt, Funken fliegen radial auseinander */
.fx-rocket { bottom: 0; width: 4px; height: 14px; border-radius: 2px; opacity: 0;
  animation: fx-rise .6s ease-out both; }
@keyframes fx-rise { 0% { transform: translateY(0); opacity: 1; } 95% { opacity: 1; } 100% { transform: translateY(calc(-1 * var(--rise))); opacity: 0; } }
.fx-spark { width: 5px; height: 5px; border-radius: 50%; opacity: 0;
  animation: fx-burst 1.3s cubic-bezier(.15,.7,.3,1) both; }
@keyframes fx-burst { 0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(.3); opacity: 0; } }

/* Luftballons: steigen auf und schwanken */
.fx-balloon { bottom: -90px; border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75) 0 10%, transparent 26%), var(--c);
  animation-name: fx-up, fx-sway; animation-timing-function: ease-in, ease-in-out;
  animation-iteration-count: 1, infinite; animation-fill-mode: both, none; animation-direction: normal, alternate; }
.fx-balloon::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 46px; background: rgba(0,0,0,.35); }
@keyframes fx-up { 0% { bottom: -90px; } 100% { bottom: 112vh; } }
@keyframes fx-sway { 0% { margin-left: -14px; rotate: -5deg; } 100% { margin-left: 14px; rotate: 5deg; } }

/* Goldregen: feine funkelnde Partikel */
.fx-gold { top: -10px; border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0 30%, #f5b301 70%); box-shadow: 0 0 6px #fde047;
  animation-name: fx-fall, fx-twinkle; animation-timing-function: linear, ease-in-out;
  animation-iteration-count: 1, infinite; animation-fill-mode: both, none; --rot: 0deg; }
@keyframes fx-twinkle { 50% { filter: brightness(1.8); scale: 1.5; } }

/* Sternschnuppen: heller Kopf mit Schweif, diagonal */
.fx-shoot { height: 2px; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4) 40%, #fff);
  box-shadow: 0 0 8px rgba(255,255,255,.8); transform: rotate(28deg);
  animation-name: fx-streak; animation-timing-function: ease-in; animation-fill-mode: both; }
.fx-shoot::after { content: ''; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 4px #fde68a; }
@keyframes fx-streak { 0% { transform: rotate(28deg) translateX(0); opacity: 0; } 15% { opacity: 1; }
  100% { transform: rotate(28deg) translateX(70vw); opacity: 0; } }

/* Herzen: steigen auf und verblassen */
.fx-heart { bottom: -50px; animation: fx-float ease-out both; }
@keyframes fx-float { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: 1; }
  100% { transform: translate(var(--drift), -105vh) scale(1.1); opacity: 0; } }

/* Seifenblasen: schillernd, steigen auf und platzen */
.fx-bubble { bottom: -70px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.9) 0 8%, transparent 20%),
              radial-gradient(circle at 50% 50%, transparent 58%, rgba(160,220,255,.45) 72%, rgba(255,170,230,.55) 88%, rgba(255,255,255,.7) 100%);
  border: 1px solid rgba(255,255,255,.55);
  animation: fx-bubble ease-out both; }
@keyframes fx-bubble { 0% { transform: translate(0,0) scale(.7); opacity: 0; } 10% { opacity: 1; }
  88% { transform: translate(var(--drift), calc(-1 * var(--pop) - 40vh)) scale(1); opacity: 1; }
  100% { transform: translate(var(--drift), calc(-1 * var(--pop) - 40vh)) scale(1.5); opacity: 0; } }


/* ---- Themen-Status-Bubbles (Meine Fotos) --------------------------------- */
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: calc(14px * var(--fs)); font-weight: 600;
  color: #fff; border: 1px solid transparent; -webkit-tap-highlight-color: transparent;
}
.status-chip.done { background: #22c55e; box-shadow: 0 4px 12px rgba(34,197,94,.35); }
.status-chip.wip  { background: #fbbf24; color: #1a1a1a; box-shadow: 0 4px 12px rgba(251,191,36,.35); }
.status-chip.todo { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.1); }   /* Text statt muted: in Pastell und Sand war der Kontrast zu gering */
@keyframes flash-bg { 0%,100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }
.flash { animation: flash-bg 1s ease; }

/* ---- PWA Install-Banner --------------------------------------------------- */
.pwa-install-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 14px; margin: 8px 0; font-size: calc(13px * var(--fs)); color: var(--text);
}
.pwa-install-bar span { flex: 1; }

/* ---- Foto-Grid ------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--surface-border);
  cursor: pointer; padding: 0;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; line-height: 1.15;
  font-size: calc(11px * var(--fs)); padding: 5px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff;
  text-align: left;
}
/* Name oben links (Verlauf von oben), Thema unten rechts */
.tile .cap.cap-top { top: 0; bottom: auto; padding: 4px 6px 5px; background: linear-gradient(rgba(0,0,0,.78), transparent); }
.tile .cap:not(.cap-top) { text-align: right; align-items: flex-end; }
.tile .cap .cn { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cap .ct { font-weight: 500; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Galerie-Filter (Dropdown / Bottom-Sheet) ----------------------------- */
.filter-row {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.filter-drop {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  color: var(--text); font-family: var(--font); font-size: calc(14px * var(--fs)); font-weight: 600;
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.filter-drop .fd-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: calc(11px * var(--fs)); font-weight: 700;
  padding: 0 5px;
}
.filter-drop .fd-arrow { font-size: calc(10px * var(--fs)); opacity: .7; }
.filter-drop.has-filter { background: var(--chip-active-bg); color: var(--chip-active-ink); border-color: transparent; }
.filter-drop.has-filter .fd-count { background: rgba(0,0,0,.2); color: inherit; }

/* Login: Andere Party / Party verwalten */
.login-extras { margin-top: 16px; text-align: center; }
.link-btn {
  display: block; width: 100%; padding: 8px 0; border: 0; background: none; cursor: pointer;
  color: var(--accent); font-family: var(--font); font-size: calc(14px * var(--fs)); font-weight: 600; text-decoration: underline;
}
/* Hinweis „Fotos und Datenschutz“ und Links zu Impressum/Datenschutzerklärung */
.consent-list { margin: 4px 0 12px; padding-left: 20px; text-align: left; line-height: 1.5; }
.consent-list li { margin: 6px 0; }
.legal-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: calc(13px * var(--fs)); }
.legal-links a { color: var(--accent); }
.modal .consent-list { font-size: calc(14px * var(--fs)); }
.party-id-row { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.party-id-row .field { flex: 1; min-width: 0; max-width: 240px; }
/* Bekannte Partys: untereinander, alle so breit wie der breiteste Schalter (max. Containerbreite) */
.chips.known-parties {
  display: grid; grid-template-columns: minmax(0, max-content);
  justify-content: center; gap: 8px; margin-top: 10px;
}
.chips.known-parties:not(:empty) { margin-bottom: 18px; }   /* Abstand zur freien Party-ID-Eingabe */
.known-parties .chip { justify-content: center; text-align: center; }

/* Galerie: Sortierung der Fotos + Hinweis bei erreichtem Limit */
.gal-sort { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.gal-sort-opts { display: inline-flex; border: 1px solid var(--chip-border); border-radius: 999px; overflow: hidden; }
.gal-sort-btn {
  padding: 7px 12px; border: 0; cursor: pointer;
  background: var(--chip-bg); color: var(--text);
  font-family: var(--font); font-size: calc(14px * var(--fs)); font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.gal-sort-btn.on { background: var(--chip-active-bg); color: var(--chip-active-ink); }
/* Galerie gruppiert (nach Person/Thema): Zwischenüberschrift je Gruppe */
.gal-group { margin: 18px 0 8px; font-family: var(--heading-font); font-size: calc(17px * var(--fs)); font-weight: 700; color: var(--text); }
.gal-group:first-of-type { margin-top: 4px; }
.gal-group-n { font-family: var(--font); font-weight: 500; font-size: calc(14px * var(--fs)); color: var(--muted); }
.gal-note {
  margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--accent); border-radius: 8px;
  background: var(--chip-bg); color: var(--text); font-size: calc(14px * var(--fs)); font-weight: 600;
}

/* Filter-Panel direkt unter dem Filter-Button (Position setzt app.js) */
.filter-sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.filter-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.filter-sheet {
  position: fixed; z-index: 81; box-sizing: border-box;
  width: min(440px, calc(100vw - 32px));
  background: var(--panel-solid); border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
  transform: translateY(-8px); transition: transform .2s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.filter-sheet-backdrop.open .filter-sheet { transform: translateY(0); }
.filter-sheet .fs-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.filter-sheet .fs-title { font-weight: 700; font-size: calc(17px * var(--fs)); color: var(--text); }
.filter-sheet .fs-actions { display: flex; gap: 6px; }

.filterbar { display: grid; gap: 14px; }
.filter-group .fg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.filter-group .fg-title { font-weight: 600; color: var(--text); }
.filter-group .fg-actions { display: flex; gap: 6px; }
.chip-sort {
  font-weight: 700; letter-spacing: .5px; min-width: 48px; text-align: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  color: var(--text); font-family: var(--font); font-size: calc(14px * var(--fs)); font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.chip .n { font-weight: 500; color: var(--muted); font-size: calc(12px * var(--fs)); }
.chip.on { background: var(--chip-active-bg); color: var(--chip-active-ink); border-color: transparent; }
.chip.on .n { color: inherit; opacity: .8; }
/* Status-Chips (Galerie + Moderation) */
.chip[data-status] { border: 4px solid var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 50%, transparent); }
.chip[data-status].on { background: var(--chip-active-bg); color: var(--chip-active-ink); border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 50%, transparent); }

/* ---- Galerie-Übersicht (Admin) -------------------------------------------- */
.gallery-card {
  display: flex; align-items: center; gap: 14px; padding: 12px; margin: 10px 0;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: 16px; cursor: pointer; width: 100%; text-align: left;
  color: inherit; font-family: var(--font);
}
.gallery-card:hover { filter: brightness(1.06); }
.gallery-card .cover { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 56px; background: var(--surface); }
.gallery-card .name { font-weight: 600; font-size: calc(17px * var(--fs)); }
.gallery-card .cnt  { font-size: calc(13px * var(--fs)); color: var(--muted); }

/* Admin: Party-Zeile mit Sortier-Buttons */
.party-row, .theme-row { display: flex; align-items: center; gap: 6px; }
.trow-order { display: flex; flex-direction: column; gap: 2px; }
.trow-order button { padding: 2px 6px; min-width: 28px; font-size: calc(11px * var(--fs)); line-height: 1; }
.trow-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Admin: Benutzer-Grid */
.user-list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.user-list-head .fg-actions { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 4px; }
.user-row:hover { background: var(--chip-bg); }
.user-row.self { opacity: .65; }
.user-row { flex-wrap: wrap; }
.umail { flex: 1 1 140px; min-width: 0; font-size: calc(12px * var(--fs)); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uname { flex: 1; font-weight: 600; color: var(--text); }
.urole { font-size: calc(13px * var(--fs)); padding: 2px 10px; border-radius: 999px; }
.urole.role-admin { background: var(--accent); color: #fff; }
.urole.role-manager { background: var(--chip-bg); color: var(--text); border: 1px solid var(--chip-border); }
.urole.role-none { background: var(--border); color: var(--muted); }
.ucreated { font-size: calc(12px * var(--fs)); color: var(--muted); }

/* ---- Navigation ----------------------------------------------------------- */
/* ---- Top Bar (gradient, party title + user pill) -------------------------- */
.sticky-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  margin: 0 -16px;
  /* Panel-Farbe mit Akzent getönt und leicht durchscheinend: setzt sich ab, ohne zu dominieren.
     Text in --text; der Akzentanteil ist so gewählt, dass er auf allen Layouts lesbar bleibt. */
  background: var(--panel-solid);
  background: color-mix(in srgb, color-mix(in srgb, var(--accent) 22%, var(--panel-solid)) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.sticky-bar + * { margin-top: 16px; }
.topbar-img { flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.party-title {
  flex: 1; font-weight: 700; font-size: calc(16px * var(--fs));
  color: var(--text); font-family: var(--heading-font);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.menu-wrap { margin-left: auto; position: relative; flex-shrink: 0; }
.menu-dots {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: rgba(128,128,128,.2); border: none; border-radius: 999px; cursor: pointer; color: var(--text);
}
.menu-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; font-weight: 700; color: var(--text); }
.menu-head .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(128,128,128,.3);
  display: flex; align-items: center; justify-content: center; font-size: calc(12px * var(--fs)); font-weight: 700;
}
.menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px;
  background: var(--panel-solid); border: 1px solid var(--panel-border);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; z-index: 60;
}
.user-menu.hidden { display: none; }
.menu-current { font-weight: 700; color: var(--accent); }
.menu-sub { padding-left: 28px; max-width: calc(100vw - 48px); box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.menu-item {
  padding: 12px 16px; cursor: pointer; font-size: calc(14px * var(--fs)); color: var(--text);
  white-space: nowrap;
}
.menu-item:hover { background: var(--chip-bg); }
a.menu-item { display: block; text-decoration: none; }
.menu-sep { height: 1px; margin: 4px 12px; background: var(--panel-border); opacity: .9; }   /* trennt „Abmelden“ ab */

/* ---- Bottom Tab Bar ------------------------------------------------------- */
.bottom-tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex;
  background: var(--panel-solid);
  border-top: 1px solid var(--panel-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-tabs .btab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px 12px;
  background: none; border: none;
  color: var(--muted); font-size: calc(12px * var(--fs)); font-weight: 600;
  font-family: var(--font); cursor: pointer;
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0; position: relative;
}
.bottom-tabs .btab.active {
  color: var(--tab-ink);
  background: var(--tab-grad);
}
.bottom-tabs .btab svg { width: 26px; height: 26px; }
.bottom-tabs .btab.active svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.2)); }
/* Legacy topbar (admin etc.) */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.topbar .who { flex: 1; font-weight: 600; color: var(--text); }

/* ---- Modal ---------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10,4,24,.7); display: grid; place-items: center; padding: 20px; }
.modal {
  background: var(--panel-solid); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 24px; max-width: 420px; width: 100%; box-shadow: var(--shadow);
}
.modal h3 { font-family: var(--heading-font); margin: 0 0 10px; color: var(--section-color); font-size: calc(22px * var(--fs)); }
.modal p  { margin: 0 0 18px; color: var(--text); line-height: 1.45; }
.modal .row { display: flex; gap: 10px; }
.modal .row .btn { flex: 1; }

/* ---- Fotovollansicht ------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(6,3,16,var(--lb-bg, .92)); display: grid; grid-template-rows: 1fr auto; }
.lightbox.closing { opacity: 0; transition: opacity .22s ease-out; }
/* Bühne mit Filmstreifen: vorheriges | aktuelles | nächstes Foto; der Track folgt dem Finger */
.lightbox .lb-stage { position: relative; min-height: 0; overflow: hidden; cursor: pointer; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; }
.lightbox .lb-track { display: flex; height: 100%; transform: translate3d(-100%, 0, 0); will-change: transform; }
.lightbox .lb-track.anim { transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.lightbox .lb-slide { flex: 0 0 100%; height: 100%; box-sizing: border-box; padding: 16px; overflow: hidden; transform-origin: 50% 40%;
  /* Flex statt Grid: so bezieht sich max-height:100% des Fotos sicher auf die Bühnenhöhe
     (im Grid wurde die Zeile vom Bild selbst bestimmt -> im Querformat zu hoch) */
  display: flex; align-items: center; justify-content: center; }
.lightbox .lb-track.anim .lb-slide { transition: transform .28s cubic-bezier(.2,.7,.3,1); }
.lightbox img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; flex: 0 1 auto; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); transition: max-width .2s, max-height .2s; -webkit-user-drag: none; }
/* Zoom: nur das aktuelle Foto wird scrollbar, Pfeile weg */
.lightbox .lb-stage.zoomed { cursor: grab; touch-action: none; }
.lightbox .lb-stage.zoomed .lb-slide.cur { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lightbox .lb-stage.zoomed.dragging { cursor: grabbing; }
.lightbox .lb-stage.zoomed .lb-slide.cur img { max-width: none; max-height: none; flex: none; cursor: grab; }   /* im Zoom nicht schrumpfen */
.lightbox .lb-stage.zoomed .lb-arrow { display: none; }
/* Pfeile am Rand */
.lightbox .lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; padding: 0 0 4px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  opacity: .75; transition: opacity .15s, background .15s;
}
.lightbox .lb-arrow.prev { left: 10px; }
.lightbox .lb-arrow.next { right: 10px; }
.lightbox .lb-arrow:hover { opacity: 1; background: rgba(0,0,0,.6); }
@media (hover: none) {   /* Handy: kleiner und dezenter, Wischen ist dort der Hauptweg */
  .lightbox .lb-arrow { width: 34px; height: 34px; font-size: 24px; opacity: .45; }
}
/* Einmaliger Wisch-Hinweis: kurz zum Nachbarn anruckeln */
.lightbox .lb-track.hint      { animation: lb-hint .9s ease-in-out; }
.lightbox .lb-track.hint-prev { animation: lb-hint-prev .9s ease-in-out; }
@keyframes lb-hint      { 0%,100% { transform: translate3d(-100%,0,0); } 40% { transform: translate3d(-118%,0,0); } }
@keyframes lb-hint-prev { 0%,100% { transform: translate3d(-100%,0,0); } 40% { transform: translate3d(-82%,0,0); } }
@media (prefers-reduced-motion: reduce) { .lightbox .lb-track.anim, .lightbox .lb-track.anim .lb-slide { transition: none; } }
/* Querformat (Handy gedreht): Foto nutzt die volle Höhe, Leiste liegt halbtransparent darüber */
@media (orientation: landscape) and (max-height: 560px) {
  .lightbox { grid-template-rows: 1fr; }
  .lightbox .lb-slide {
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) 6px max(6px, env(safe-area-inset-left, 0px));
  }
  .lightbox img { border-radius: 6px; }
  .lightbox .lb-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    flex-direction: row; align-items: center; gap: 12px;
    padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    pointer-events: none;                       /* Wischen/Tippen auf das Foto geht durch die Leiste */
  }
  .lightbox .lb-bar > * { pointer-events: auto; }
  .lightbox .lb-meta { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lightbox .lb-meta .t, .lightbox .lb-meta .u { overflow: hidden; text-overflow: ellipsis; }
  .lightbox .lb-actions { flex-wrap: nowrap; flex: 0 0 auto; }
  .lightbox .lb-close { margin-left: 4px; }
  .lightbox .lb-arrow.prev { left: max(10px, env(safe-area-inset-left, 0px)); }
  .lightbox .lb-arrow.next { right: max(10px, env(safe-area-inset-right, 0px)); }
}
.lightbox .lb-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.4); }
.lightbox .lb-meta { color: #fff; font-size: calc(14px * var(--fs)); min-width: 0; }
.lightbox .lb-meta .t { font-weight: 700; }
.lightbox .lb-meta .u { color: #cbb; }
.lightbox .lb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* „Teilen" wartet noch auf das Original: dezent pulsieren */
.lightbox .btn.loading { animation: lb-wait 1.1s ease-in-out infinite; }
@keyframes lb-wait { 50% { opacity: .35; } }
.lightbox .lb-close { margin-left: auto; width: 36px; height: 36px; padding: 0; border-radius: 50%; font-size: calc(16px * var(--fs)); line-height: 1; }
.lightbox .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.lightbox .btn.ghost:hover { background: rgba(255,255,255,.22); }

/* ---- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120;
  background: var(--panel-solid); border: 1px solid var(--panel-border); color: var(--text);
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 500;
  animation: toast-in .2s ease; max-width: 90vw; text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px);} to {opacity:1;} }

.loader { text-align: center; color: var(--muted); padding: 40px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }

/* ---- Scroll-Schalter (oben/unten) -------------------------------------------------------- */
.scroll-btns {
  position: fixed; bottom: 72px; right: 20px; z-index: 80;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;   /* Lücke/ausgeblendete Schalter blockieren keine Taps darunter */
}
.scroll-btn {
  pointer-events: auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: calc(18px * var(--fs)); line-height: 44px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); cursor: pointer;
  opacity: .85; transition: opacity .2s;
}
.scroll-btn:hover { opacity: 1; }
.scroll-btn.off { visibility: hidden; pointer-events: none; }   /* unsichtbar, Position bleibt */
/* In der Foto-Vollansicht (Lightbox) und über Dialogen ausblenden */
body:has(.lightbox) .scroll-btns, body:has(.modal-backdrop) .scroll-btns { display: none; }
.row-inline { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.row-btns { display: flex; gap: 10px; }
.row-btns .btn { flex: 1; }

/* ---- Upload-Fortschritt ----------------------------------------------------- */
/* Leiste unten mittig (über den Tabs), bleibt bis zum Ende des Uploads */
.upload-status {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 110;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 10px 14px 12px; border-radius: 14px;
  background: var(--panel-solid); color: var(--text); border: 1px solid var(--panel-border);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  font-size: calc(14px * var(--fs)); font-weight: 600;
}
.upload-status .us-bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--chip-bg); overflow: hidden; }
.upload-status .us-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .2s; }
.upload-status.indeterminate .us-fill { width: 35%; animation: us-slide 1.1s ease-in-out infinite; }
@keyframes us-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }

/* Platzhalter-Kachel im Thema während des Uploads */
.tile.uploading { cursor: default; }
.tile.uploading img { filter: brightness(.55) saturate(.7); }
.tile.uploading .up-ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-size: calc(13px * var(--fs)); font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.tile.uploading .up-spin {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: up-spin .8s linear infinite;
}
.tile.uploading.failed .up-spin { display: none; }
/* Fehlgeschlagen / wartend: nur das Foto und ein Neu-laden-Symbol */
.tile.uploading.failed img, .tile.uploading.waiting img { filter: grayscale(1) contrast(1.05); }
/* monochrom in der Akzentfarbe des Layouts */
.tile.uploading.failed::before, .tile.uploading.waiting::before {
  content: ''; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; pointer-events: none;
}
.tile.uploading.failed .up-ov, .tile.uploading.waiting .up-ov { background: none; }
.tile.uploading.failed .up-txt, .tile.uploading.waiting .up-txt { display: none; }
.tile.uploading.failed, .tile.uploading.waiting { cursor: pointer; }
.tile.uploading .up-reload {
  width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.tile.uploading.failed .up-reload { background: rgba(205,30,55,.9); }
.tile.uploading .up-act { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 0 4px; }
.tile.uploading .up-act:empty { display: none; }
.tile.uploading .up-btn {
  font: inherit; font-size: calc(11px * var(--fs)); font-weight: 700; color: #222;
  background: rgba(255,255,255,.92); border: 0; border-radius: 999px; padding: 4px 8px; cursor: pointer;
  text-shadow: none;
}
.tile.uploading .up-btn.up-x { padding: 5px 8px; background: rgba(255,255,255,.55); }
@keyframes up-spin { to { transform: rotate(360deg); } }

/* Postausgang: Fotos warten auf Verbindung */
.tile.uploading.waiting .up-spin { display: none; }

.upload-status.ob-bar .ob-hint { margin-top: 4px; font-weight: 400; font-size: calc(12px * var(--fs)); }
.upload-status.ob-bar .ob-hint:empty { display: none; }
.upload-status.ob-bar .ob-now { margin-top: 8px; width: 100%; }
.upload-status.ob-bar [hidden] { display: none !important; }

/* Verwaltung: Belegung des Speicherplatzes einer Party */
.storage-usage { margin: 0 0 12px; }
.storage-bar { height: 8px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; }
.storage-bar span { display: block; height: 100%; background: var(--accent); }
.storage-bar.full span { background: #dc2626; }

/* Verwaltung: Anmeldeseite */
.welcome-intro p { margin: 0 0 10px; line-height: 1.5; }
.welcome-intro .steps { margin: 6px 0 12px; padding-left: 22px; line-height: 1.5; }
.welcome-intro .steps li { margin: 4px 0; }
.welcome-intro .invited { font-size: calc(14px * var(--fs)); opacity: .9; }
.link-accent { color: var(--accent); }
.signup-box { border: 2px solid var(--accent); }
.error.ok { color: inherit; font-weight: 600; }

/* Verwaltung: Liste der Partys */
.list-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.list-tools input { flex: 1; min-width: 0; }
.list-tools .sortbox { flex: 1 1 100%; }
.list-tools .sortbox .seg { display: flex; width: 100%; }
.list-tools .sortbox .seg button { flex: 1; }
.party-storage { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.party-storage .storage-bar { flex: 0 0 90px; height: 6px; }
.badge-new { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.party-row[hidden] { display: none; }

/* Verwaltung: Bereiche einer Party, Unterreiter, Übersicht */
.ampel { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.ampel i { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; }
.ampel.ok i { background: #16a34a; } .ampel.warn i { background: #d97706; } .ampel.bad i { background: #dc2626; }
.ampel span { display: block; font-size: calc(14px * var(--fs)); opacity: .85; }
.nextpanel { border: 2px solid var(--accent); }

/* Gäste: Fußzeile mit Rechtlichem, eigener Code im Menü */
.legal-foot { position: relative; z-index: 1; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: -90px; padding: 0 16px 24px; font-size: calc(13px * var(--fs)); }
.legal-foot[hidden] { display: none; }
.legal-foot a { color: inherit; opacity: .8; }
body:has(#bottomTabs) .legal-foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
/* Rechtliches: Rechner = Fußzeile, Handy = Menü (ohne Menü, z. B. auf der Startseite, bleibt die Fußzeile) */
@media (min-width: 700px) { .menu-legal { display: none; } }
@media (max-width: 699px) { body:has(#userPillBtn) .legal-foot { display: none; } }
/* Tabs: Handy unten (wie bisher), Rechner oben direkt unter der Titelzeile */
@media (min-width: 700px) {
  .bottom-tabs { top: var(--bar-h, 56px); bottom: auto; left: 50%; right: auto; width: min(100%, 760px); transform: translateX(-50%);
    border-top: none; border-bottom: 1px solid var(--panel-border); box-shadow: 0 2px 10px rgba(0,0,0,.25); padding-bottom: 0; z-index: 49; }
  .bottom-tabs .btab { flex-direction: row; justify-content: center; gap: 8px; padding: 10px 4px; }
  .bottom-tabs .btab svg { width: 20px; height: 20px; }
  body:has(#bottomTabs) .sticky-bar + * { margin-top: 62px; }
  body:has(#bottomTabs) .app { padding-bottom: 40px; }
  body:has(#bottomTabs) .legal-foot { padding-bottom: 24px; margin-top: 0; }
}
.menu-code b { letter-spacing: .04em; }
.menu-hint { font-size: 14px; opacity: .8; margin-left: 6px; vertical-align: middle; display: inline-flex; }

/* Gäste: Startseite ohne Party */
.start-intro p { margin: 0; line-height: 1.5; }
.rolepick { display: flex; gap: 10px; margin: 0 0 14px; }
.rolepick .btn { flex: 1; }
.rolepick .btn[aria-expanded="true"] { outline: 2px solid var(--accent); }
.roledetail[hidden] { display: none; }
.roledetail .steps { margin: 12px 0; padding-left: 22px; line-height: 1.5; text-align: left; }
.saved-party { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.saved-party .gallery-card { flex: 1; text-align: left; }
#myParties[hidden] { display: none; }

.next-open { display: block; margin: 0 auto 10px; max-width: 100%; white-space: normal; }

.pwa-steps { flex: 1; text-align: left; }
.pwa-steps ol { margin: 4px 0 0; padding-left: 20px; line-height: 1.5; }
.warn-text { color: #fca5a5; }

/* Sprachumschalter DE | EN */
.langsw { display: inline-flex; gap: 2px; vertical-align: middle; }
.langbtn { display: inline-block; font: inherit; line-height: 1.3; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--surface-border, rgba(128,128,128,.4)); background: transparent; color: inherit; opacity: .7; cursor: pointer; }
.langbtn[aria-current="true"] { opacity: 1; background: var(--accent, #7c3aed); color: #fff; border-color: transparent; }
.menu-lang { cursor: default; }
#legalFoot .langsw { margin-left: 10px; }
