/* Festli – Design „Frisch“: Weiß, ein kräftiges Orange-Rot, fette moderne Schrift, dezente Bewegung. */
@font-face { font-family: "Jakarta"; src: url(/fonts/PlusJakartaSans.ttf) format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --panel: #F5F5F3;
  --ink: #111111;
  --muted: #6B6B6B;
  --line: #EAEAE6;
  --brand: #FF4F2E;
  --brand2: #E83E2A;
  --brand-soft: #FFE8E2;
  --wa: #1FA855;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Motive: Akzent (Verlauf a→a2), Schrift auf Akzent, heller Seitengrund, zarte Tönung, Schrift */
[data-theme="geburtstag"] { --t-a: #FF5A36; --t-a2: #E8402A; --t-on: #FFFFFF; --t-page: #FFF6F2; --t-soft: #FFE3DA; --t-ink: #1A1210; }
[data-theme="grillen"]    { --t-a: #F07C2A; --t-a2: #CF5E17; --t-on: #FFFFFF; --t-page: #FFF8F0; --t-soft: #FDE6D2; --t-ink: #1E1A12; }
[data-theme="kinder"]     { --t-a: #3A97F0; --t-a2: #1F6FD0; --t-on: #FFFFFF; --t-page: #F3F8FF; --t-soft: #DCEBFD; --t-ink: #0F1B2D; }
[data-theme="hochzeit"]   { --t-a: #C2A06C; --t-a2: #9F7D48; --t-on: #FFFFFF; --t-page: #FBF8F3; --t-soft: #F1E7D6; --t-ink: #2A241C; }
[data-theme="nacht"]      { --t-a: #2E2647; --t-a2: #14111F; --t-on: #F1DDB0; --t-page: #F5F3F9; --t-soft: #E6E1F1; --t-ink: #15121F; }
[data-theme="winter"]     { --t-a: #1F6B50; --t-a2: #0F3D2E; --t-on: #F7EBD0; --t-page: #F3F8F5; --t-soft: #DCEDE4; --t-ink: #0F241B; }
[data-theme="schlicht"]   { --t-a: #2A2A2A; --t-a2: #0E0E0E; --t-on: #FFFFFF; --t-page: #F6F6F4; --t-soft: #E9E9E6; --t-ink: #111111; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
body.guest { background: var(--t-page); color: var(--t-ink); }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 24px; }
h3 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }

.loading { min-height: 60vh; display: grid; place-items: center; }
.loading .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); animation: pulse 1s infinite ease-in-out; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, opacity .18s;
}
.btn:active { transform: scale(.96); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .ic { width: 19px; height: 19px; }
.btn.brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 79, 46, .6); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: var(--panel); color: var(--ink); }
.btn.soft { background: var(--brand-soft); color: var(--brand2); }
.btn.block { width: 100%; }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 6px 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--muted); transition: background .15s; }
.iconbtn:active { background: rgba(0,0,0,.06); }
.iconbtn .ic { width: 18px; height: 18px; }
.danger { color: #C62828 !important; }

/* ---------- Kopf ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.logo { font: 800 26px/1 var(--sans); letter-spacing: -.045em; color: var(--brand); text-decoration: none; }

/* ---------- Karten ---------- */
.card { background: var(--panel); border-radius: var(--radius); padding: 20px; }
body.guest .card { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h3 { margin-bottom: 4px; }
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

/* ---------- Startseite ---------- */
.hero { padding: 22px 0 6px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; background: var(--panel); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.kicker i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.kicker i .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.hero h1 { font-size: clamp(40px, 11.5vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 30em; }
.hero .btn { margin-top: 24px; }
.showcase { position: relative; margin: 40px auto; max-width: 320px; }
.phone { margin: 0 auto; max-width: 320px; border-radius: 36px; padding: 9px; background: #111; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.phone .screen { border-radius: 28px; overflow: hidden; background: var(--t-page); }
.showcase .phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.sticker { position: absolute; z-index: 2; background: #fff; border-radius: 16px; padding: 9px 13px 9px 9px; font-size: 13px; font-weight: 700; box-shadow: 0 12px 28px -8px rgba(0,0,0,.22); display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; animation: stick .6s var(--ease) forwards; }
.sticker i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.sticker i .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.sticker.s1 { left: -10px; top: -18px; animation-delay: .7s; }
.sticker.s2 { right: -10px; bottom: -20px; animation-delay: 1.1s; }
.sticker.s2 i { background: var(--ink); }
@keyframes stick { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
.h-sec { font-size: 26px; margin: 34px 0 12px; }
.themestrip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.themestrip::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 132px; height: 152px; border-radius: 22px; padding: 14px; position: relative; overflow: hidden; scroll-snap-align: start; text-decoration: none;
  background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); transition: transform .2s var(--ease); }
.mini:active { transform: scale(.96); }
.mini .em { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.mini b { position: absolute; left: 14px; bottom: 14px; right: 10px; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.steps { display: grid; gap: 16px; margin: 0 0 30px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; }
.step:nth-child(2) b { background: var(--ink); }
.step:nth-child(3) b { background: var(--panel); color: var(--ink); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.feature { background: var(--panel); border-radius: 20px; padding: 16px; }
.feature .em { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.feature:nth-child(even) .em { background: var(--ink); }
.feature .em .ic { width: 21px; height: 21px; }
.feature h3 { margin-top: 12px; font-size: 15px; }
.feature p { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.cta { border-radius: 28px; padding: 30px 22px; text-align: center; color: #fff; background: linear-gradient(150deg, #FF6A3D, var(--brand) 55%, var(--brand2)); position: relative; overflow: hidden; }
.cta h2 { font-size: 28px; letter-spacing: -.035em; }
.cta p { opacity: .9; margin: 6px 0 20px; }
.cta .btn { background: #fff; color: var(--brand2); }
.mine a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; border-top: 1px solid var(--line); }
.mine a:first-of-type { border-top: 0; }
.swatch { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.swatch .ic { width: 22px; height: 22px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 40px; }
.foot a { color: inherit; }

/* ---------- Formular ---------- */
main.formmain { padding-bottom: 110px; }
.stepname { font-size: 13px; font-weight: 700; color: var(--muted); }
.stepname b { color: var(--brand); }
.progress { display: flex; gap: 6px; margin: 8px 0 20px; }
.progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); position: relative; overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.progress span.on::after { transform: scaleX(1); }
label.f { display: block; }
label.f > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
label.f > small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.input {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 14px; border: 2px solid transparent;
  background: var(--panel); font-size: 16px; outline: none; transition: border-color .15s, background .15s;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--brand); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.themepick {
  position: relative; border: 0; border-radius: 20px; padding: 16px 14px; text-align: left; min-height: 116px; overflow: hidden;
  background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); transition: transform .2s var(--ease), box-shadow .2s;
}
.themepick:active { transform: scale(.96); }
.themepick .em { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.themepick .em .ic { width: 23px; height: 23px; }
.themepick b { display: block; margin-top: 12px; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.themepick.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--t-a); }
.themepick.on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; animation: pop .35s var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 9px 15px; font-size: 15px; font-weight: 600; transition: background .15s, color .15s, transform .15s var(--ease); }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle:first-child { border-top: 0; }
.toggle input { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 30px; background: #D9D9D4; position: relative; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(20px); }
.card .input { background: #fff; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); display: flex; gap: 10px; max-width: 560px; margin: 0 auto; z-index: 5; }
.bar .btn { flex: 1; }
.err { color: #C62828; font-weight: 700; font-size: 14px; }

/* ---------- Einladung ---------- */
.invite { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); padding: 56px 24px 30px; }
.invite::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); pointer-events: none; }
.invite .deco { position: absolute; inset: 0; pointer-events: none; color: var(--t-on); }
.invite .deco i { position: absolute; display: block; border-radius: 50%; background: currentColor; opacity: .35; animation: drift 9s ease-in-out infinite alternate; }
.invite .deco i.r { border-radius: 3px; }
.invite .deco i.c2 { opacity: .18; }
.invite .deco i.a { background: transparent; border: 3px solid; border-color: currentColor transparent transparent transparent; border-radius: 50%; }
@keyframes drift { to { translate: 0 8px; rotate: 12deg; } }
.invite .in { position: relative; z-index: 1; }
.invite .host { font-weight: 700; font-size: 15px; opacity: .85; }
.invite h1 { font-size: clamp(38px, 11vw, 56px); line-height: 1.02; letter-spacing: -.04em; margin: 8px 0 22px; overflow-wrap: anywhere; }
.when { display: flex; gap: 16px; align-items: center; }
.cal { flex: none; width: 70px; border-radius: 16px; background: var(--t-on); color: var(--t-a2); text-align: center; padding: 8px 0 7px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); }
.cal small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cal b { display: block; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.when .what { font-size: 17px; font-weight: 700; line-height: 1.35; }
.when .what span { display: block; font-weight: 500; opacity: .82; }
.count { display: inline-block; margin-top: 18px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 14px; font-weight: 700; }
.invite .msg { margin-top: 18px; font-size: 17px; line-height: 1.55; white-space: pre-line; opacity: .95; }
.invite .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.invite .actions .btn { min-height: 44px; font-size: 15px; padding: 0 16px; background: rgba(255,255,255,.18); color: var(--t-on); }
.invite .actions .btn .ic { width: 17px; height: 17px; }
.phone .invite { padding: 40px 20px 26px; }
.phone .invite h1 { font-size: 36px; }

body.guest .wrap.after { padding-top: 14px; padding-bottom: 20px; }
.rsvp-choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.rsvp-choices button {
  border: 0; border-radius: 16px; padding: 14px 6px; min-height: 90px; background: var(--t-soft); color: var(--t-ink);
  font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.rsvp-choices button:active { transform: scale(.95); }
.rsvp-choices button .em { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--t-a2); transition: background .2s, color .2s; }
.rsvp-choices button .em .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.rsvp-choices button.on { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); animation: pop .35s var(--ease); }
.rsvp-choices button.on .em { background: rgba(255,255,255,.22); color: inherit; }
body.guest .input { background: var(--t-page); }
body.guest .input:focus { border-color: var(--t-a); background: #fff; }
body.guest .btn.main { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.stepper { display: flex; align-items: center; background: var(--t-page); border-radius: 14px; width: max-content; }
.stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 22px; font-weight: 700; color: inherit; }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; display: inline-block; }
.stepper output.bump { animation: pop .3s var(--ease); }
.peoplerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.answer { display: flex; align-items: center; gap: 14px; }
.answer .em { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.answer .em.st-maybe { background: var(--t-soft); color: var(--t-a2); }
.answer .em.st-no { background: var(--t-soft); color: var(--t-ink); }
.answer .em .ic { width: 25px; height: 25px; stroke-width: 2.5; }
.answer.just .em { animation: pop .45s var(--ease); }
.answer.just .em path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .55s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; }
.items .lab { font-weight: 700; }
.items .who { font-size: 13px; color: var(--muted); }
.items .done .lab { text-decoration: line-through; opacity: .5; }
.pill { flex: none; border: 0; border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 14px; background: var(--t-soft); color: var(--t-ink); transition: transform .2s var(--ease), background .2s; }
.pill:active { transform: scale(.94); }
.pill.on { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.pill.off { opacity: .5; }
.pill.pop { animation: pop .4s var(--ease); }
.faces { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.face { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; animation: rise .4s var(--ease) both; }
.face:nth-child(2) { animation-delay: .04s; } .face:nth-child(3) { animation-delay: .08s; } .face:nth-child(4) { animation-delay: .12s; } .face:nth-child(n+5) { animation-delay: .16s; }
.face i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.face.maybe i { background: transparent; color: var(--t-ink); box-shadow: inset 0 0 0 2px var(--t-a); }
.face small { font-weight: 500; color: var(--muted); }
.made { text-align: center; font-size: 13px; padding: 20px 16px 40px; color: var(--muted); }
.made a { font-weight: 700; color: var(--ink); }

/* ---------- Gastgeber ---------- */
.hostcard { display: flex; gap: 14px; align-items: center; }
.hostcard .swatch { width: 56px; height: 56px; border-radius: 16px; }
.hostcard .swatch .ic { width: 28px; height: 28px; }
.hostcard h2 { font-size: 22px; }
.notice { background: linear-gradient(150deg, #FF6A3D, var(--brand) 55%, var(--brand2)); color: #fff; border-radius: var(--radius); padding: 20px; }
.notice h3 { font-size: 18px; }
.notice .small { opacity: .92; }
.linkbox { display: flex; gap: 8px; margin-top: 14px; }
.linkbox input { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 0; padding: 0 12px; background: rgba(255,255,255,.95); font-size: 14px; color: var(--muted); }
.notice .btn { background: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border-radius: 18px; padding: 16px 10px 14px; text-align: center; background: var(--panel); }
.stat b { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stat.yes { background: linear-gradient(150deg, #FF6A3D, var(--brand) 55%, var(--brand2)); color: #fff; }
.stat.yes span { color: rgba(255,255,255,.9); }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; background: #fff; padding: 4px; border-radius: 999px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 4px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button.on { background: var(--ink); color: #fff; }
.glist { list-style: none; padding: 0; margin: 0; }
.glist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); animation: rise .35s var(--ease) both; }
.glist li:first-child { border-top: 0; }
.glist .av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.glist .av.yes { background: var(--brand); color: #fff; }
.glist .av.maybe { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--brand); }
.glist .av.no { background: #E4E4E0; color: var(--muted); }
.glist .note { margin-top: 6px; background: #fff; border-radius: 4px 14px 14px 14px; padding: 8px 12px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 18px 0 8px; font-size: 15px; }
.prog { height: 6px; border-radius: 6px; background: #E4E4E0; overflow: hidden; margin-top: 7px; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .5s var(--ease); }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes slideF { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideB { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(6) { animation-delay: .3s; }
.stagger > *:nth-child(n+7) { animation-delay: .36s; }
.slide-f { animation: slideF .4s var(--ease) both; }
.slide-b { animation: slideB .4s var(--ease) both; }
.fade { animation: rise .45s var(--ease) both; }
.invite .in > * { animation: rise .6s var(--ease) both; }
.invite .in > *:nth-child(2) { animation-delay: .07s; }
.invite .in > *:nth-child(3) { animation-delay: .14s; }
.invite .in > *:nth-child(n+4) { animation-delay: .21s; }
.quiet .invite .in > *, .quiet .stagger > *, .quiet .glist li, .quiet .face { animation: none; }

/* ---------- Toast & Konfetti ---------- */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 50; max-width: calc(100% - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sticker { opacity: 1; }
  .confetti { display: none; }
}
@media (min-width: 700px) {
  body.guest .invite { max-width: 560px; margin: 24px auto 0; border-radius: 30px; }
}
.bar .btn.ghost { flex: 0 0 auto; padding: 0 22px; }

/* Anlass-Kacheln (Variante A): neutrale Kachel, Farbe nur in der kleinen Einladungs-Vorschau */
.themepick, .mini { background: var(--panel); color: var(--ink); padding: 10px 10px 12px; min-height: 0; height: auto; box-shadow: none; }
.themepick .em, .mini .em { display: none; }
.prev { display: block; position: relative; height: 92px; border-radius: 14px; padding: 11px; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); transition: transform .3s var(--ease); }
.prev::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); }
.prev small { display: block; font-size: 9.5px; font-weight: 700; opacity: .85; }
.prev strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; line-height: 1.1; }
.prev i { position: absolute; right: 9px; bottom: 9px; width: 26px; height: 30px; border-radius: 7px; background: var(--t-on); }
.prev .pi { position: absolute; left: 10px; bottom: 9px; opacity: .55; }
.prev .pi .ic { width: 18px; height: 18px; }
.themepick b, .mini b { position: static; display: block; margin: 10px 3px 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.themepick:active .prev, .mini:active .prev { transform: scale(.97); }
.themepick.on { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.themepick.on::after { top: 16px; right: 16px; z-index: 2; animation: pop .35s var(--ease); }
.mini { width: 150px; flex: none; }

/* ---------- Startseite: Funktions-Abschnitte ---------- */
.feat { margin: 64px 0 0; }
.feat h2 { font-size: 30px; letter-spacing: -.04em; margin: 10px 0 8px; }
.feat > p { font-size: 17px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
.mock { margin-top: 20px; background: var(--t-page, var(--panel)); border-radius: 26px; padding: 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); pointer-events: none; }
.mock .mh { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--t-ink); }
.mock .rsvp-choices button { background: #fff; }
.mock .rsvp-choices button.on { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); }
.mock .mrow { margin-top: 14px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 14px; color: var(--t-ink); }
.mock .stepper { background: var(--t-page); }
.mock .items { background: #fff; border-radius: 18px; padding: 4px 14px; }
.mock.plain { background: var(--panel); }
.notif { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.2); margin-bottom: 14px; }
.notif .nic img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.notif b { display: block; font-size: 14px; }
.notif span { font-size: 14px; color: var(--muted); }
.notif small { align-self: flex-start; color: var(--muted); font-size: 12px; }
.reveal.in .notif { animation: notif .7s .25s var(--ease) both; }
@keyframes notif { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.mock.chat { background: #E7DDD3; background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { margin-left: auto; max-width: 300px; background: #D9FDD3; border-radius: 14px 4px 14px 14px; padding: 5px 5px 6px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.lp { display: flex; gap: 12px; align-items: center; border-radius: 10px; padding: 14px; background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); }
.lpc { width: 48px; border-radius: 10px; background: #fff; color: var(--t-a2); text-align: center; padding: 4px 0; flex: none; }
.lpc small { display: block; font-size: 9px; font-weight: 800; }
.lpc b { display: block; font-size: 20px; line-height: 1; font-weight: 800; }
.lp small { font-size: 11px; opacity: .85; display: block; }
.lp strong { font-size: 17px; letter-spacing: -.02em; }
.bubble p { font-size: 14px; padding: 7px 7px 0; line-height: 1.4; }
.bubble .lnk { color: #027EB5; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #667781; padding: 0 6px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal .mock { transform: translateY(14px) scale(.98); opacity: 0; transition: transform .8s .15s var(--ease), opacity .8s .15s var(--ease); }
.reveal.in .mock { transform: none; opacity: 1; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 8px; }
.cta { margin-top: 56px; }
main.wrap > .stagger + .feat { margin-top: 20px; }

/* ---------- Konto & Meine Feste ---------- */
.evlist { display: grid; gap: 10px; }
.evrow { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 20px; padding: 14px; text-decoration: none; transition: transform .2s var(--ease); }
.evrow:active { transform: scale(.98); }
.evrow b { display: block; font-size: 16px; letter-spacing: -.02em; }
.evrow .muted { display: block; }
.evrow.past { opacity: .6; }
.evstats { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.evstats span { font-size: 12px; font-weight: 700; background: #fff; border-radius: 999px; padding: 3px 9px; color: var(--muted); }
.evstats span.yes { background: var(--brand); color: #fff; }
.chev { color: var(--muted); font-size: 22px; }
.evrow .swatch { width: 48px; height: 48px; }
.pushcard .pushic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.emptycard .prev { margin: 0; }
.backlink { display: inline-block; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.legal h3 { margin: 18px 0 4px; }
.legal h3:first-child { margin-top: 0; }
.legal p { color: #333; font-size: 15px; }
.legal p + p { margin-top: 8px; }
.legal-links { font-size: 12px; }
.legal-links a { font-weight: 500 !important; color: var(--muted) !important; }
.foot a { text-decoration: none; }
#authbox .tabs { background: #fff; }
/* Vorschau-Kacheln: blasses Motiv-Symbol als Wasserzeichen */
.prev .pi { left: auto; right: -10px; bottom: -14px; opacity: .2; }
.prev .pi .ic { width: 78px; height: 78px; stroke-width: 1.4; }
.prev i { display: none; }

/* ---------- Eigene Farben (überschreiben die Motivfarbe) ---------- */
[data-color="koralle"] { --t-a: #FF5A36; --t-a2: #E8402A; --t-on: #FFFFFF; --t-page: #FFF6F2; --t-soft: #FFE3DA; --t-ink: #1A1210; }
[data-color="orange"]  { --t-a: #F07C2A; --t-a2: #CF5E17; --t-on: #FFFFFF; --t-page: #FFF8F0; --t-soft: #FDE6D2; --t-ink: #1E1A12; }
[data-color="sonne"]   { --t-a: #F5B82E; --t-a2: #E09A12; --t-on: #2A1E05; --t-page: #FFFAEB; --t-soft: #FCEBC0; --t-ink: #2A1E05; }
[data-color="gruen"]   { --t-a: #2FA36B; --t-a2: #1C7E50; --t-on: #FFFFFF; --t-page: #F1FAF5; --t-soft: #D6F0E2; --t-ink: #0E2419; }
[data-color="petrol"]  { --t-a: #138A8A; --t-a2: #0B6466; --t-on: #FFFFFF; --t-page: #EFF8F8; --t-soft: #D2ECEC; --t-ink: #0B2626; }
[data-color="blau"]    { --t-a: #3A97F0; --t-a2: #1F6FD0; --t-on: #FFFFFF; --t-page: #F3F8FF; --t-soft: #DCEBFD; --t-ink: #0F1B2D; }
[data-color="lila"]    { --t-a: #8A5CF0; --t-a2: #6A3FD0; --t-on: #FFFFFF; --t-page: #F6F2FF; --t-soft: #E6DCFD; --t-ink: #1C1236; }
[data-color="rosa"]    { --t-a: #F0609A; --t-a2: #D63D7B; --t-on: #FFFFFF; --t-page: #FFF3F7; --t-soft: #FCDCE8; --t-ink: #2A0F1A; }
[data-color="gold"]    { --t-a: #C2A06C; --t-a2: #9F7D48; --t-on: #FFFFFF; --t-page: #FBF8F3; --t-soft: #F1E7D6; --t-ink: #2A241C; }
[data-color="tanne"]   { --t-a: #1F6B50; --t-a2: #0F3D2E; --t-on: #F7EBD0; --t-page: #F3F8F5; --t-soft: #DCEDE4; --t-ink: #0F241B; }
[data-color="nacht"]   { --t-a: #2E2647; --t-a2: #14111F; --t-on: #F1DDB0; --t-page: #F5F3F9; --t-soft: #E6E1F1; --t-ink: #15121F; }
[data-color="graphit"] { --t-a: #2A2A2A; --t-a2: #0E0E0E; --t-on: #FFFFFF; --t-page: #F6F6F4; --t-soft: #E9E9E6; --t-ink: #111111; }

/* Foto oben in der Einladung, läuft weich in die Farbe über */
.invite.has-photo { padding-top: 0; }
.iphoto { position: relative; margin: 0 -24px 22px; height: 300px; overflow: hidden; }
.iphoto img { width: 100%; height: 100%; object-fit: cover; display: block; animation: zoomIn 1.4s var(--ease) both; }
.iphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--t-a) 100%); }
@keyframes zoomIn { from { transform: scale(1.08); } to { transform: none; } }
.phone .iphoto { margin: 0 -20px 18px; height: 200px; }
.invite.has-photo .deco { top: 300px; }
.phone .invite.has-photo .deco { top: 200px; }
@media (min-width: 700px) { .iphoto { height: 360px; } .invite.has-photo .deco { top: 360px; } }

/* Gestalten-Schritt */
.design { display: grid; gap: 14px; }
.design label.btn { cursor: pointer; }
.colorhead { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.sw { aspect-ratio: 1; border: 0; border-radius: 50%; background: linear-gradient(150deg, var(--t-a), var(--t-a2)); position: relative; transition: transform .2s var(--ease), box-shadow .2s; }
.sw:active { transform: scale(.9); }
.sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.sw.auto::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--t-on); }
.swatch.ph { overflow: hidden; padding: 0; }
.swatch.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Mitmach-Beispiele auf der Startseite */
.mock { pointer-events: auto; }
.mock .stats, .mock .notif, .mock.chat { pointer-events: none; }
.demo-answer { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--t-ink); text-align: center; min-height: 20px; }
.demo-answer.bump { animation: rise .4s var(--ease); }
.mock .items .pill { cursor: pointer; }
.mock::before { content: "Zum Ausprobieren"; display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t-a2); margin-bottom: 10px; opacity: .8; }
.mock.plain::before, .mock.chat::before { content: none; }

/* Fenster von unten (Gäste-Einladung zu Festli) */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(17,17,17,.38); display: flex; align-items: flex-end; justify-content: center; animation: fadeBg .3s ease both; }
.sheet-wrap.out { animation: fadeBg .3s ease reverse both; }
.sheet { width: 100%; max-width: 520px; background: #fff; color: var(--ink); border-radius: 28px 28px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; animation: sheetUp .45s var(--ease) both; }
.sheet-wrap.out .sheet { animation: sheetUp .3s var(--ease) reverse both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); justify-self: center; margin-bottom: 6px; }
.sheet h2 { font-size: 24px; letter-spacing: -.035em; }
.sheet-prev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.sheet-prev .prev { height: 84px; }
.sheet-prev .prev:nth-child(1) { transform: rotate(-3deg); } .sheet-prev .prev:nth-child(3) { transform: rotate(3deg); }
.sheet-prev [data-theme] { }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeBg { from { background: rgba(17,17,17,0); } }
@media (min-width: 560px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 28px; } }

/* Plätze, Begleitung, Mitgastgeber */
.seats { display: inline-block; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font-size: 13px; font-weight: 700; }
.seats.full { background: var(--t-ink); color: var(--t-page); }
.rsvp-choices button[disabled] { opacity: .45; }
.comp { display: grid; gap: 8px; }
#comp label.f > span { margin-bottom: 0; }
.stat b small { font-size: 16px; opacity: .8; letter-spacing: 0; margin-left: 1px; }
.evstats span.co { background: var(--ink); color: #fff; }

/* =================== Dunkelmodus (folgt der Einstellung des Geräts) =================== */
/* Dunkelmodus: html.dark wird per Schalter oder nach Handy-Einstellung gesetzt (mode.js) */
html.dark {
    color-scheme: dark;
    --paper: #0F0F10; --panel: #1A1A1C; --ink: #F3F1EE; --muted: #9C9893; --line: #2A2A2D;
    --brand-soft: #3A1E17; --card2: #232326;
  }
html.dark [data-theme], html.dark [data-color] {
    --t-page: color-mix(in srgb, var(--t-a) 7%, #0F0F10);
    --t-soft: color-mix(in srgb, var(--t-a) 26%, #1C1C1E);
    --t-ink: #F3F1EE;
  }
html.dark body { background: var(--paper); }
html.dark .btn:not(.brand):not(.wa):not(.ghost):not(.soft) { color: #111; }
html.dark .btn.soft { color: #FF8A6B; }
html.dark .tabs { background: var(--card2) !important; }
html.dark .tabs button.on, html.dark .chip.on { color: #111; }
html.dark .chip, html.dark .card .chip { background: var(--card2); box-shadow: inset 0 0 0 1.5px var(--line); }
html.dark .chip.on { background: var(--ink); }
html.dark .card .input, html.dark .input:focus, html.dark body.guest .input:focus { background: var(--card2); }
html.dark .input { background: var(--panel); }
html.dark body.guest .card { background: color-mix(in srgb, var(--t-a) 6%, #18181A); box-shadow: none; }
html.dark body.guest .input { background: color-mix(in srgb, var(--t-a) 5%, #232326); }
html.dark .stepper { background: color-mix(in srgb, var(--t-a) 5%, #232326); }
html.dark .rsvp-choices button .em { background: color-mix(in srgb, var(--t-a) 18%, #232326); color: var(--t-ink); }
html.dark .bar { background: linear-gradient(to top, var(--paper) 75%, rgba(15,15,16,0)); }
html.dark .glist .note, html.dark .evstats span, html.dark #authbox .tabs { background: var(--card2); }
html.dark .glist .av.maybe { background: var(--panel); color: var(--ink); }
html.dark .glist .av.no { background: #2C2C2F; }
html.dark .prog { background: #2C2C2F; }
html.dark .linkbox input { background: rgba(0,0,0,.25); color: #fff; }
html.dark .notice .btn { background: #111; color: #fff !important; }
html.dark .themepick.on { background: var(--card2); box-shadow: 0 0 0 2px var(--ink); }
html.dark .themepick.on::after { background-color: var(--ink); filter: invert(1); }
html.dark .sw.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
html.dark .sticker, html.dark .notif, html.dark .sheet { background: #1E1E21; color: var(--ink); }
html.dark .sheet .grab { background: #3A3A3E; }
html.dark .mock .rsvp-choices button, html.dark .mock .mrow, html.dark .mock .items { background: color-mix(in srgb, var(--t-a) 6%, #1E1E21); }
html.dark .mock .rsvp-choices button.on { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); }
html.dark .mock.chat { background-color: #0B141A; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); }
html.dark .bubble { background: #005C4B; }
html.dark .bubble p { color: #E9EDEF; }
html.dark .bubble time { color: #8696A0; }
html.dark .bubble .lnk { color: #53BDEB; }
html.dark .stat:not(.yes) { background: var(--panel); }
html.dark .cta .btn { background: #fff; color: var(--brand2) !important; }
html.dark .cal { box-shadow: none; }
html.dark .phone { box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px #2A2A2D; }
html.dark .legal p { color: #CFCBC6; }
html.dark .faq details { border-color: var(--line); }
html.dark .danger { color: #FF6B6B !important; }
html.dark .err { color: #FF7A7A; }
html.dark #toast { background: #F3F1EE; color: #111; }
html.dark .iconbtn:active { background: rgba(255,255,255,.08); }
html.dark .made a { color: var(--ink); }
/* Dunkelmodus: html.dark wird per Schalter oder nach Handy-Einstellung gesetzt (mode.js) */
html.dark .sticker.s2 i { background: #F3F1EE; color: #111; }

/* =================== Startseite: wechselnde Einladungen (von der Coming-Soon-Seite) =================== */
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.points b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.points li:nth-child(2) b { background: var(--ink); color: var(--paper); }
.points li:nth-child(3) b { background: var(--panel); color: var(--ink); }
.screen.rot { position: relative; height: 500px; }
.screen.rot .slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform .8s var(--ease); background: var(--t-page); }
.screen.rot .slide.on { opacity: 1; transform: none; }
.screen.rot .invite { height: 100%; padding-top: 44px; }
.screen.rot .slide .invite .msg { font-size: 15px; }
.ask { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; color: #111; border-radius: 20px; padding: 14px; z-index: 2; }
.ask b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ask .ch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ask .ch i { font-style: normal; border-radius: 12px; padding: 10px 0; text-align: center; font-size: 12px; font-weight: 700; background: #F2F2F0; transition: background .4s, color .4s, transform .3s var(--ease); }
.ask .ch i.on { background: linear-gradient(160deg, var(--t-a), var(--t-a2)); color: var(--t-on); transform: scale(1.04); }
.showcase .sticker { opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease); animation: none; }
.showcase .sticker.on { opacity: 1; transform: none; }
.showcase .sticker.s1 { left: -14px; top: 290px; bottom: auto; }
.showcase .sticker.s2 { right: -14px; top: 350px; bottom: auto; }
/* Dunkelmodus: html.dark wird per Schalter oder nach Handy-Einstellung gesetzt (mode.js) */
html.dark .ask { background: #1E1E21; color: var(--ink); }
html.dark .ask .ch i { background: #2A2A2D; }
@media (prefers-reduced-motion: reduce) { .showcase .sticker { opacity: 1; transform: none; } }

/* Anlass-Kacheln: erste Kachel am Seitenrand ausrichten, nicht am Bildschirmrand */
.themestrip { scroll-padding-inline: 16px; }

/* Computer: Text links, Handy rechts */
@media (min-width: 900px) {
  main.home { max-width: 1080px; }
  .home-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; min-height: 82vh; }
  .home-top .showcase { margin: 40px auto; }
  .home-top .hero h1 { font-size: 64px; }
  main.home > section { max-width: 640px; margin-left: auto; margin-right: auto; }
  main.home > section.feat { max-width: 640px; }
  .themestrip { margin: 0; padding: 4px 0 10px; scroll-padding-inline: 0; }
}
@media (min-width: 900px) {
  .home-top .showcase { width: 320px; max-width: 320px; }
  .home-top .phone { width: 320px; }
  body:has(main.home) .top { max-width: 1080px; }
}

/* Meine Feste: ruhiger leerer Zustand, Mitteilungen als schmale Zeile */
.minehead h2 { font-size: 30px; letter-spacing: -.035em; }
.empty-hero { text-align: center; padding: 36px 8px 20px; }
.empty-hero .fan { position: relative; height: 130px; max-width: 300px; margin: 0 auto 26px; }
.empty-hero .fan .prev { position: absolute; top: 10px; width: 130px; height: 100px; left: 50%; box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
.empty-hero .fan .prev:nth-child(1) { transform: translateX(-118%) rotate(-8deg); }
.empty-hero .fan .prev:nth-child(2) { transform: translateX(-50%) translateY(-8px); z-index: 2; }
.empty-hero .fan .prev:nth-child(3) { transform: translateX(18%) rotate(8deg); }
.empty-hero h3 { font-size: 22px; letter-spacing: -.03em; }
.empty-hero p { margin: 6px 0 20px; }
.pushrow { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 18px; padding: 12px 12px 12px 14px; }
.pushrow b { display: block; font-size: 15px; }
.pushrow .muted { display: block; }
.pushrow .pushic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.pushrow .pushic .ic { width: 20px; height: 20px; }
.pushrow .btn.ghost { background: var(--paper); }

/* iPhone/Safari: Datums- und Zeitfelder nicht breiter als ihr Platz, Text links wie bei den anderen Feldern */
input[type="date"].input, input[type="time"].input {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
  height: 52px; line-height: 22px; text-align: left;
}
input[type="date"].input::-webkit-date-and-time-value, input[type="time"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].input::-webkit-datetime-edit, input[type="time"].input::-webkit-datetime-edit { padding: 0; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.two > label { min-width: 0; }

/* Einladungs-Überschrift: bei langen Wörtern kleiner statt mitten im Wort umbrechen */
.invite h1 { font-size: calc(clamp(38px, 11vw, 56px) * var(--fit, 1)); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.phone .invite h1 { font-size: calc(36px * var(--fit, 1)); }

/* =================== Verwaltung: ruhiger Aufbau =================== */
.hhead { border-radius: 26px; padding: 20px; background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); position: relative; overflow: hidden; }
.hhead::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); pointer-events: none; }
.hh-top { display: flex; gap: 14px; align-items: center; position: relative; }
.hh-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.2); overflow: hidden; }
.hh-ic img { width: 100%; height: 100%; object-fit: cover; }
.hh-ic .ic { width: 28px; height: 28px; }
.hhead h2 { font-size: 24px; color: inherit; overflow-wrap: anywhere; }
.hhead p { opacity: .85; font-size: 14px; margin-top: 2px; }
.hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; position: relative; }
.hstat { background: rgba(255,255,255,.16); border-radius: 16px; padding: 12px 6px 10px; text-align: center; }
.hstat b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hstat small { font-size: 15px; font-weight: 700; opacity: .8; }
.hstat span { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-top: 4px; }
.hh-note { text-align: center; margin-top: 8px !important; }
.hh-actions { display: flex; gap: 8px; margin-top: 14px; position: relative; }
.hh-actions a { flex: 1; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 6px; border-radius: 999px; background: rgba(255,255,255,.2); color: inherit; }
.textlinks { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
.textlinks button { background: none; border: 0; font-weight: 700; font-size: 14px; color: var(--ink); padding: 6px 0; }
.menu { padding: 6px 0; }
.menu-hosts { display: flex; flex-direction: column; padding: 12px 20px 10px; border-bottom: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 20px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.menu .mrow:first-child, .menu-hosts + .mrow { border-top: 0; }
.mrow:active { background: rgba(0,0,0,.04); }
.mic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--paper); }
.mic .ic { width: 17px; height: 17px; }
.mchev { color: var(--muted); font-size: 20px; }
.mrow.danger .mic { color: #C62828; }
/* Dunkelmodus: html.dark wird per Schalter oder nach Handy-Einstellung gesetzt (mode.js) */
html.dark .mrow:active { background: rgba(255,255,255,.05); }
html.dark .mrow.danger .mic { color: #FF6B6B; }

/* Dunkelmodus: ausgewählte Zustände behalten ihre Farbe */
html.dark .rsvp-choices button.on .em { background: rgba(255,255,255,.22); color: inherit; }
html.dark .chip.on { background: var(--ink); color: #111; }

/* =================== Hell/Dunkel-Schalter =================== */
.topr { display: flex; align-items: center; gap: 8px; }
.modesw { position: relative; width: 62px; height: 34px; border-radius: 999px; border: 0; padding: 0; background: var(--panel); flex: none; cursor: pointer; }
.modesw .ic { position: absolute; top: 8px; width: 18px; height: 18px; color: var(--muted); transition: color .3s, opacity .3s; }
.modesw .sun { left: 8px; } .modesw .moon { right: 8px; }
.modesw .knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .35s var(--ease), background .3s; }
.modesw .knob .ic { position: static; display: block; margin: 5px; width: 18px; height: 18px; color: #F5A524; }
html.dark .modesw .knob { transform: translateX(28px); background: #2A2A2E; }
html.dark .modesw .knob .ic { color: #F3F1EE; }
.modesw:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.modefoot { display: flex; justify-content: center; margin-top: 14px; }
html.modeanim, html.modeanim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
.seg { display: flex; background: var(--paper); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 10px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 4px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--paper); }

/* Als-App-Anleitung */
.ihero { text-align: center; padding: 18px 6px 4px; }
.iapp img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(232,62,42,.6); }
.ihero h2 { font-size: 30px; letter-spacing: -.035em; margin-top: 14px; }
.ihero p { margin-top: 8px; }
.isteps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.istep { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.istep:first-child { border-top: 0; }
.inum { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.iic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.iic .ic { width: 20px; height: 20px; }
.iic.ok { background: var(--brand); color: #fff; }
.card.done { display: flex; gap: 14px; align-items: center; }
details.other summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
details.other summary::-webkit-details-marker { display: none; }
details.other[open] .mchev { transform: rotate(90deg); }
.mchev { transition: transform .2s var(--ease); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sent { display: flex; gap: 14px; align-items: center; padding: 6px 0; }

/* =================== Anlass-Seiten (Einladungstexte) =================== */
.anl { padding-bottom: 40px; max-width: 760px; }
.lp-top { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.crumbs a { color: inherit; text-decoration: none; }
.lp-hero { border-radius: 28px; padding: 28px 22px; background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); position: relative; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); }
.lp-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.lp-ic .ic { width: 28px; height: 28px; }
.lp-hero h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.04em; margin: 16px 0 10px; line-height: 1.02; }
.lp-hero p { font-size: 17px; opacity: .92; max-width: 34em; }
.lp-cta { margin-top: 20px; background: var(--t-on); color: var(--t-a2); }
.lp-usp { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 700; }
.lp-usp li { display: flex; align-items: center; gap: 6px; }
.lp-usp .ic { width: 16px; height: 16px; }
.lp-count { margin: 22px 0 6px; font-weight: 700; color: var(--muted); font-size: 14px; }
.tgroup { margin-top: 26px; }
.tgroup h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 12px; }
.tgrid { display: grid; gap: 10px; }
@media (min-width: 700px) { .tgrid { grid-template-columns: 1fr 1fr; } }
.tcard { background: var(--panel); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; }
.tcard h3 { font-size: 15px; color: var(--brand); }
.tcard p { margin: 8px 0 14px; font-size: 16px; line-height: 1.55; flex: 1; }
.tact { display: flex; gap: 8px; flex-wrap: wrap; }
.tact .btn { min-height: 40px; }
.tact .btn.ghost { background: var(--paper); }
.tact .ic { width: 16px; height: 16px; }
.lp-box, .lp-steps { margin-top: 34px; background: var(--panel); border-radius: 24px; padding: 22px; }
.lp-box h2, .lp-steps h2, .lp-faq h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 8px; }
.lp-bring { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-bring li { display: flex; gap: 6px; align-items: center; background: var(--paper); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; }
.lp-bring .ic { width: 15px; height: 15px; color: var(--brand); }
.lp-steps ol { margin: 10px 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.lp-faq { margin-top: 34px; }
.lp-rel { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.rel { background: var(--panel); border-radius: 999px; padding: 11px 16px; font-weight: 700; text-decoration: none; }
.lp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-link { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; text-decoration: none; background: linear-gradient(150deg, var(--t-a), var(--t-a2)); color: var(--t-on); min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-link .pi { position: absolute; right: -8px; top: -8px; opacity: .25; }
.lp-link .pi .ic { width: 70px; height: 70px; }
.lp-link b { font-size: 18px; letter-spacing: -.02em; }
.lp-link small { opacity: .85; font-size: 13px; margin-top: 2px; }
.foot a { color: inherit; }
.lp-more { margin-top: 30px; }
.lp-more h2 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 12px; }
@media (min-width: 700px) { .lp-links { grid-template-columns: repeat(3, 1fr); } }

/* Konto als Einstellungs-Liste */
.ktitle { font-size: 30px; letter-spacing: -.035em; }
.kprofile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.kprofile b { display: block; font-size: 17px; }
.kprofile .muted { display: block; overflow-wrap: anywhere; }
.kav { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; }
.kgroup { margin: 14px 4px -4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.khint { padding: 4px 20px 12px; font-size: 13px; color: var(--muted); }
.mright { color: var(--muted); font-size: 14px; font-weight: 600; }
.danger-btn { background: #C62828; color: #fff; }
