/* ─────────────────────────────────────────────────────────────
   Hopp – Apérogutschein (/apero/)   Präfix .ap- (Seite), .ak- (Formular)
   Welt: warme Bar am Abend. Espresso-Holz, Honiggold, Prosecco.
   Signatur: die Karte, die sich beim Ausfüllen mitschreibt.
   ───────────────────────────────────────────────────────────── */
.ap {
  --ap-canvas: #120d09;
  --ap-panel: #1c150f;
  --ap-panel-2: #241b13;
  --ap-line: rgba(201,168,76,.28);
  --ap-line-strong: #8f7330;
  --ap-gold: #e8a020;
  --ap-gold-soft: #c9a84c;
  --ap-gold-hover: #f3b53c;
  --ap-ink: #f3ede6;
  --ap-ink-2: #c9bba9;
  --ap-red: #c0392b;
  --ap-cream: #f3ede6;
  --ap-brown: #1c1610;
  --ap-serif: 'Playfair Display', Georgia, serif;
  --ap-sans: 'DM Sans', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --ap-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ap-ease: cubic-bezier(.22,.61,.36,1);
  --ap-ease-out: cubic-bezier(.16,1,.3,1);
  background: var(--ap-canvas);
  color: var(--ap-ink);
  font-family: var(--ap-sans);
  position: relative;
}
html, body { overflow-x: hidden; overflow-x: clip; }
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }

/* Eine Umgebung: weiches Barlicht, das langsam atmet */
.ap::before {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at 18% 22%, rgba(232,160,32,.07), transparent 70%),
    radial-gradient(35% 28% at 82% 70%, rgba(192,57,43,.05), transparent 70%);
  animation: ap-atem 70s ease-in-out infinite alternate; animation-delay: -12s;
}
@keyframes ap-atem { from { transform: translate3d(-2%, -1%, 0) } to { transform: translate3d(2%, 2%, 0) } }
.ap > * { position: relative; z-index: 1; }

/* ─── Scroll-Hero: Schrift aus der Karte ─── */
.ap .sh { --accent: var(--ap-gold); --poster-ink: var(--ap-ink); }
.ap .sh-band h1, .ap .sh-band h2 {
  font-family: var(--ap-serif); font-weight: 900; text-transform: none; letter-spacing: -0.015em;
  line-height: 1.02; font-size: clamp(38px, 4.4vw, 72px);
}
.ap .sh-band .sh-em { color: var(--ap-gold); font-style: italic; }
.ap .sh-kick { font-family: var(--ap-mono); font-weight: 500; letter-spacing: .22em; }
.ap .sh-band p.sh-sub { font-family: var(--ap-sans); max-width: 30ch; }
.ap .sh-static-title { font-family: var(--ap-serif); text-transform: none; letter-spacing: -0.01em; line-height: 1.02; font-size: clamp(38px, 10vw, 64px); }
.ap .sh .hero-cta.primary, .ap .sh .hero-cta.primary:link, .ap .sh .hero-cta.primary:visited { background: var(--ap-gold) !important; border-color: var(--ap-gold) !important; }
.ap .sh .hero-cta.primary span { color: #1b1408 !important; }
.ap .sh .hero-cta.primary:hover { background: var(--ap-gold-hover) !important; border-color: var(--ap-gold-hover) !important; }

/* Linke Bänder: Text und Knopf als eine Spalte, Knopf direkt unter dem Text */
.ap .sh-band:not(.is-right):not(.is-both) { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ap .sh-band:not(.is-right):not(.is-both) .sh-col { width: min(34vw, 560px); max-width: 100%; }
.ap .sh-band:not(.is-right):not(.is-both) .sh-col + .sh-col { margin-top: 26px; }
.ap .sh-band:not(.is-right) .sh-ctas { justify-content: flex-start; }

/* ─── Bausteine ─── */
.ap-wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.ap-kick { font-family: var(--ap-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ap-gold-soft); margin: 0 0 14px; }
.ap-h1, .ap-h2 { font-family: var(--ap-serif); font-weight: 900; letter-spacing: -0.015em; line-height: 1.04; margin: 0 0 18px; color: var(--ap-ink); }
.ap-h1 { font-size: clamp(42px, 7vw, 84px); }
.ap-h2 { font-size: clamp(34px, 4.6vw, 58px); }
.ap-h1 em, .ap-h2 em { font-style: italic; color: var(--ap-gold); }
.ap-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ap-ink-2); max-width: 46ch; }
.ap-lead a, .ap-faq a { color: var(--ap-gold); }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; background: var(--ap-gold); color: #1b1408; font-family: var(--ap-mono); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .3s var(--ap-ease), transform .3s var(--ap-ease); }
.ap-btn:hover { background: var(--ap-gold-hover); transform: translateY(-1px); }
.ap a:focus-visible, .ap button:focus-visible, .ap input:focus-visible, .ap summary:focus-visible { outline: 2px solid var(--ap-gold); outline-offset: 3px; }

.ap-hero-ohne { padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 9vw, 110px); }

/* ─── So einfach ─── */
.ap-so { padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.ap-schritte { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); counter-reset: s; }
.ap-schritt { position: relative; padding: 30px 26px 30px; border-top: 1px solid var(--ap-line); }
.ap-schritt::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ap-gold); transition: width 1.4s var(--ap-ease-out); }
.ap-so.in .ap-schritt::before { width: 64px; }
.ap-ico { width: 44px; height: 44px; fill: none; stroke: var(--ap-ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.ap-ico-akzent { stroke: var(--ap-gold); }
.ap-schritt-nr { position: absolute; right: 22px; top: 26px; font-family: var(--ap-mono); font-size: 12px; letter-spacing: .2em; color: var(--ap-gold-soft); }
.ap-schritt h3 { font-family: var(--ap-serif); font-size: 26px; font-weight: 700; margin: 0 0 10px; color: var(--ap-ink); }
.ap-schritt p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ap-ink-2); max-width: 32ch; }
/* Einstieg: nacheinander, und danach ohne Verzögerung */
.ap-so .ap-schritt { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ap-ease), transform .9s var(--ap-ease); }
.ap-so.in .ap-schritt { opacity: 1; transform: none; }
.ap-so.in .ap-schritt:nth-child(2) { transition-delay: .12s; }
.ap-so.in .ap-schritt:nth-child(3) { transition-delay: .24s; }
.ap-so.fertig .ap-schritt:nth-child(n) { transition-delay: 0s; }

/* ─── Reservieren ─── */
.ap-form-sek { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px); background: linear-gradient(180deg, transparent, rgba(28,21,15,.85) 18%, rgba(28,21,15,.85) 82%, transparent); position: relative; overflow: hidden; }
/* Perlen: steigen ganz leise auf */
.ap-form-sek::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(243,214,140,.35) 0 1.2px, transparent 1.6px), radial-gradient(circle, rgba(243,214,140,.22) 0 1px, transparent 1.4px);
  background-size: 140px 220px, 90px 160px; background-position: 0 0, 40px 60px;
  animation: ap-perlen 38s linear infinite; animation-delay: -9s; }
@keyframes ap-perlen { from { background-position: 0 0, 40px 60px } to { background-position: 0 -440px, 40px -260px } }
.ap-form-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; position: relative; z-index: 1; }
.ap-karte-spalte { position: sticky; top: calc(var(--sh-top, 61px) + 32px); }

/* Die Karte (Signatur) */
.ap-karte { position: relative; aspect-ratio: 85 / 55; background: var(--ap-cream); color: var(--ap-brown); border-radius: 6px; padding: 14px 34px 14px 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), 0 2px 0 rgba(255,255,255,.4) inset; transform: rotate(-2.5deg); transition: transform .8s var(--ap-ease-out); animation: ap-schweben 7s ease-in-out infinite; animation-delay: -2s; }
@keyframes ap-schweben { 0%,100% { translate: 0 0 } 50% { translate: 0 -6px } }
.ap-karte-spalte:hover .ap-karte { transform: rotate(0deg) scale(1.02); }
.ap-karte-in { height: 100%; border: 1.5px solid #c9a84c; outline: 1px solid rgba(201,168,76,.55); outline-offset: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6% 9%; }
.ap-karte-oben { font-family: var(--ap-sans); font-size: clamp(10px, 1vw, 13px); margin: 0 0 4px; color: #3a2e22; }
.ap-karte-titel { font-family: var(--ap-serif); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1; margin: 0 0 10px; color: var(--ap-brown); }
.ap-karte-titel em { color: var(--ap-red); font-style: italic; }
.ap-karte-name { font-family: var(--ap-serif); font-style: italic; font-size: clamp(16px, 1.6vw, 21px); margin: 0; color: #3a2e22; min-height: 1.3em; }
.ap-karte-zahl { font-family: var(--ap-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 10px; color: #6b5a44; }
.ap-karte-zahl span { color: var(--ap-red); font-weight: 500; display: inline-block; }
.ap-karte-zahl span.bump { animation: ap-bump .45s var(--ap-ease-out); }
@keyframes ap-bump { 40% { transform: scale(1.35) } }
.ap-karte-fuss { font-family: var(--ap-mono); font-size: clamp(8px, .8vw, 10px); letter-spacing: .12em; text-transform: uppercase; margin: 0; color: #6b5a44; }
.ap-karte-nr { position: absolute; right: 17px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; font-family: var(--ap-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #3a2e22; white-space: nowrap; translate: 50% 0; }
.ap-karte-nr b { font-weight: 500; }
.ap-karte-hinweis { margin: 22px 0 0; font-size: 14px; color: var(--ap-ink-2); text-align: center; }

/* ─── Formular (.ak, kommt aus dem Mailtool) ─── */
.ak { margin-top: 28px; }
.ak-web { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.ak-meldung { background: rgba(192,57,43,.14); border-left: 3px solid var(--ap-red); color: var(--ap-ink); padding: 14px 16px; margin: 0 0 22px; font-size: 16px; }
.ak-schritt { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.ak-schritt legend { font-family: var(--ap-serif); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); color: var(--ap-ink); padding: 0; margin: 0 0 6px; display: flex; align-items: baseline; gap: 12px; }
.ak-nr { font-family: var(--ap-mono); font-size: 12px; letter-spacing: .1em; color: var(--ap-canvas); background: var(--ap-gold-soft); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; translate: 0 -3px; flex: none; }
.ak-hilfe { margin: 0 0 16px; font-size: 15px; color: var(--ap-ink-2); line-height: 1.5; }
.ak-leer { padding: 18px; background: var(--ap-panel-2); color: var(--ap-ink-2); }

.ak-events { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--ap-line-strong) transparent; }
.ak-event { position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr) 28px; gap: 16px; align-items: center; padding: 14px 16px; background: var(--ap-panel); border: 1px solid var(--ap-line); border-radius: 4px; cursor: pointer; transition: border-color .3s var(--ap-ease), background .3s var(--ap-ease), transform .3s var(--ap-ease); }
.ak-event:hover { border-color: var(--ap-line-strong); transform: translateX(2px); }
.ak-event input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ak-datum { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border: 1px solid var(--ap-line); border-radius: 3px; line-height: 1; transition: background .3s var(--ap-ease), border-color .3s var(--ap-ease); }
.ak-datum b { font-family: var(--ap-serif); font-size: 26px; font-weight: 900; color: var(--ap-ink); }
.ak-datum i { font-style: normal; font-family: var(--ap-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-gold-soft); margin-top: 5px; }
.ak-ev-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ak-ev-text small { font-family: var(--ap-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-ink-2); }
.ak-ev-text strong { font-family: var(--ap-serif); font-size: 19px; font-weight: 700; color: var(--ap-ink); line-height: 1.2; }
.ak-ev-text span { font-size: 14px; color: var(--ap-ink-2); }
.ak-haken { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ap-line-strong); position: relative; transition: background .3s var(--ap-ease), border-color .3s var(--ap-ease); }
.ak-haken::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #1b1408; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ap-ease-out); }
.ak-event:has(input:checked) { border-color: var(--ap-gold); background: var(--ap-panel-2); }
.ak-event:has(input:checked) .ak-haken { background: var(--ap-gold); border-color: var(--ap-gold); }
.ak-event:has(input:checked) .ak-haken::after { transform: rotate(45deg) scale(1); }
.ak-event:has(input:checked) .ak-datum { border-color: var(--ap-gold); background: rgba(232,160,32,.1); }
.ak-event:has(input:focus-visible) { outline: 2px solid var(--ap-gold); outline-offset: 2px; }

.ak-zahl { display: flex; align-items: center; gap: 0; }
.ak-zahl button { width: 54px; height: 54px; border: 1px solid var(--ap-line-strong); background: var(--ap-panel); color: var(--ap-ink); font-size: 26px; line-height: 1; cursor: pointer; transition: background .25s var(--ap-ease), border-color .25s var(--ap-ease); }
.ak-zahl button:hover { background: var(--ap-panel-2); border-color: var(--ap-gold-soft); }
.ak-minus { border-radius: 4px 0 0 4px; }
.ak-plus { border-radius: 0 4px 4px 0; }
.ak-zahl input { width: 80px; height: 54px; border: 1px solid var(--ap-line-strong); border-left: 0; border-right: 0; background: var(--ap-canvas); color: var(--ap-ink); text-align: center; font-family: var(--ap-serif); font-weight: 900; font-size: 26px; -moz-appearance: textfield; appearance: textfield; border-radius: 0; }
.ak-zahl input::-webkit-outer-spin-button, .ak-zahl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ak-zahl-text { margin-left: 16px; color: var(--ap-ink-2); font-size: 16px; }

.ak-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ak-feld { display: flex; flex-direction: column; gap: 7px; }
.ak-breit { grid-column: 1 / -1; }
.ak-feld span { font-size: 14px; color: var(--ap-ink); font-weight: 600; }
.ak-feld em { font-style: normal; font-weight: 400; color: var(--ap-ink-2); font-size: 13px; margin-left: 4px; }
.ak-feld input { height: 52px; padding: 0 14px; border: 1px solid var(--ap-line-strong); border-radius: 4px; background: var(--ap-canvas); color: var(--ap-ink); font: 16px/1.2 var(--ap-sans); transition: border-color .25s var(--ap-ease), background .25s var(--ap-ease); width: 100%; }
.ak-feld input::placeholder { color: #8c7e6c; }
.ak-feld input:focus { border-color: var(--ap-gold); background: #17110c; outline: none; }
.ak-feld.ist-fehler input, .ak-schritt.ist-fehler .ak-events { border-color: var(--ap-red); box-shadow: 0 0 0 1px var(--ap-red); border-radius: 4px; }

.ak-abschluss { border-top: 1px solid var(--ap-line); padding-top: 24px; }
.ak-check { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ap-ink); margin: 0 0 20px; cursor: pointer; }
.ak-check input { width: 22px; height: 22px; accent-color: var(--ap-gold); }
.ak-check.ist-fehler { color: #ffb0a6; }
.ak-knopf { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 38px; border: 0; border-radius: 2px; background: var(--ap-gold); color: #1b1408; font-family: var(--ap-mono); font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: background .3s var(--ap-ease), transform .3s var(--ap-ease); }
.ak-knopf:hover { background: var(--ap-gold-hover); transform: translateY(-1px); }
.ak-knopf[disabled] { opacity: .7; cursor: progress; }
.ak-knopf.laedt span { opacity: .55; }
.ak-knopf.laedt::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%; background: #1b1408; animation: ap-lauf 1s var(--ap-ease) infinite; }
@keyframes ap-lauf { from { transform: translateX(-100%) } to { transform: translateX(260%) } }
.ak-klein { font-size: 13px; line-height: 1.5; color: var(--ap-ink-2); margin: 16px 0 0; max-width: 52ch; }

/* Danke */
.ak-danke { padding: 34px 30px; background: var(--ap-panel-2); border: 1px solid var(--ap-gold); border-radius: 4px; position: relative; overflow: hidden; animation: ap-auf .9s var(--ap-ease-out) both; }
@keyframes ap-auf { from { opacity: 0; transform: translateY(16px) } }
.ak-danke:focus { outline: none; }
.ak-danke-glas { position: absolute; right: 22px; top: 22px; width: 34px; height: 54px; border: 1.5px solid var(--ap-gold-soft); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; }
.ak-danke-glas::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #f6dd9a, #e0b552); animation: ap-fuellen 1.6s var(--ap-ease-out) .3s forwards; }
@keyframes ap-fuellen { to { height: 78% } }
.ak-danke .ak-kick, .ak-danke .ap-kick { font-family: var(--ap-mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ap-gold); margin: 0 0 10px; }
.ak-danke-h { font-family: var(--ap-serif); font-weight: 900; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin: 0 60px 18px 0; color: var(--ap-ink); }
.ak-danke-liste { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ak-danke-liste li { padding: 12px 14px; border-left: 3px solid var(--ap-gold); background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 3px; }
.ak-danke-liste strong { font-family: var(--ap-serif); font-size: 18px; color: var(--ap-ink); }
.ak-danke-liste span { font-size: 14px; color: var(--ap-ink-2); }
.ak-danke-liste em { font-size: 14px; color: #f0c27a; }
.ak-danke-p { margin: 0; color: var(--ap-ink-2); line-height: 1.55; }

/* ─── Fragen ─── */
.ap-faq { padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 11vw, 140px); }
.ap-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ap-faq-tel { color: var(--ap-ink-2); margin: 0; }
.ap-faq-liste details { border-bottom: 1px solid var(--ap-line); }
.ap-faq-liste summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--ap-serif); font-size: 21px; font-weight: 700; color: var(--ap-ink); }
.ap-faq-liste summary::-webkit-details-marker { display: none; }
.ap-faq-liste summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-family: var(--ap-sans); font-weight: 400; font-size: 26px; color: var(--ap-gold-soft); transition: transform .4s var(--ap-ease); }
.ap-faq-liste details[open] summary::after { transform: rotate(45deg); }
.ap-faq-liste p { margin: 0 0 22px; color: var(--ap-ink-2); line-height: 1.6; max-width: 58ch; }

/* ─── Kleine Bildschirme ─── */
@media (max-width: 900px) {
  .ap-form-grid, .ap-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-karte-spalte { position: relative; top: 0; max-width: 420px; margin: 0 auto 8px; width: 100%; }
  .ap-schritte { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ak-felder { grid-template-columns: minmax(0, 1fr); }
  .ak-event { grid-template-columns: 52px minmax(0,1fr) 26px; gap: 12px; padding: 12px; }
  .ak-datum { height: 52px; }
  .ak-datum b { font-size: 22px; }
  .ak-knopf { width: 100%; }
  .ak-events { max-height: none; overflow: visible; }
  .ap-karte-nr { font-size: 8px; }
}
@media (pointer: coarse) { .ak-zahl button { width: 56px; height: 56px; } }

/* Pausen und weniger Bewegung */
body.ap-pause .ap *, body.ap-pause .ap *::before, body.ap-pause .ap *::after, body.ap-pause .ap::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .ap *, .ap *::before, .ap *::after, .ap::before { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .ap-so .ap-schritt { opacity: 1; transform: none; }
  .ap-schritt::before { width: 64px; }
  .ak-danke-glas::after { height: 78%; }
}
