/* Öffentliche Seiten (Anmelden, Registrieren, Hilfe, Rechtliches, Fehler) im Startseiten-Look „Heute Nacht“.
   Baut auf landing.css auf und übersetzt die gemeinsamen Klassen der Formulare ins Nacht-Design. */
.public-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 0%, #3A1572 0%, var(--night) 70%); min-height: 100vh; display: flex; flex-direction: column; }
.public-hero .beam { height: 100%; opacity: .7; }
.public-main { position: relative; flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(12px, 3vw, 32px) 20px clamp(56px, 8vw, 96px); }
.public-main.narrow { max-width: 520px; }

.public-main h1 { margin: 0; font-family: 'Unbounded', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; color: #FFFFFF; text-shadow: 0 0 22px rgba(255,61,165,.6); }
.public-main h2 { margin: 18px 0 4px; font-family: 'Unbounded', system-ui, sans-serif; font-size: 19px; color: var(--cyan); }
.public-main p { margin: 0; }
.public-main a { color: var(--cyan); }
.public-main p a, .public-main li a { font-weight: 700; }

.card { background: rgba(29,15,63,.92); border: 2px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--soft); }
.small { font-size: 15px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
label.field .hint { font-weight: 500; color: var(--soft); }
.public-main input[type=text], .public-main input[type=email], .public-main input[type=password], .public-main input[type=tel], .public-main input[type=number], .public-main textarea {
  min-height: 52px; width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px;
  background: var(--night); color: var(--text); font: inherit; font-size: 17px;
}
.public-main input:focus-visible, .public-main textarea:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(43,228,255,.35); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); flex-shrink: 0; }

.public-main .btn { min-height: 54px; font-size: 17px; background: transparent; color: var(--cyan); border-color: var(--cyan); cursor: pointer; font-family: inherit; }
.public-main .btn.primary { background: var(--pink); color: var(--night); border-color: var(--pink); box-shadow: 0 0 26px rgba(255,61,165,.55); }
.public-main .btn.primary:hover { background: #FF62B6; color: var(--night); }
.public-main .btn.block { width: 100%; }

.errors { background: rgba(255,61,165,.14); border: 2px solid var(--pink); color: #FFD3EA; border-radius: 14px; padding: 12px 16px; font-weight: 700; }
.flash { background: rgba(43,228,255,.12); border: 2px solid var(--cyan); color: #D7FAFF; border-radius: 14px; padding: 12px 16px; font-weight: 700; margin-bottom: 18px; }

details.card summary { cursor: pointer; font-weight: 800; font-size: 18px; min-height: 44px; display: flex; align-items: center; list-style-position: outside; }
details.card[open] summary { color: var(--yellow); }
.legal p { color: var(--soft); }
.legal p strong { color: var(--text); }

.error-code { display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--night); border-radius: 999px; padding: 4px 14px; font-weight: 800; }

/* Klickflächen ≥ 44 px für kleine Links */
.public-main a.small, .public-main .tap { display: inline-flex; align-items: center; min-height: 44px; }
.nav .logo { display: inline-flex; align-items: center; min-height: 44px; }
/* Link mitten im Text: größere Klickfläche ohne Zeilensprung */
.tap-inline { display: inline-block; min-height: 44px; padding: 11px 0; margin: -11px 0; }

/* Kopfzeile volle Breite (public-hero ist eine Flex-Spalte) */
.public-hero .nav { width: 100%; }
.public-main.wide { max-width: 860px; }

/* Hilfe: Themen, Fragen als aufklappbare Karten, gut lesbare Zeilenlänge */
.help { max-width: 70ch; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.help-toc a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--text); background: rgba(29,15,63,.92); }
.help-toc a:hover { border-color: var(--cyan); }
.help-group { gap: 12px; padding-top: 8px; }
.help-group h2 { font-size: 22px; margin: 8px 0 0; scroll-margin-top: 16px; }
.help details { scroll-margin-top: 16px; }
.help details summary { line-height: 1.35; padding: 4px 0; }
.help details p { margin-top: 10px; color: var(--soft); }

/* Inhaltsseiten (Anlässe, Funktionen) */
.content-page { gap: 18px; max-width: 70ch; }
.content-page h2 { font-size: 22px; margin: 14px 0 0; }
.content-page h3 { margin: 0; font-size: 18px; color: #FFFFFF; }
.content-page .intro-text { font-size: 19px; color: var(--soft); }
.content-page section p, .content-faq p { color: var(--soft); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 15px; color: var(--soft); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.content-steps, .content-list { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; }
.content-steps li::marker { color: var(--yellow); font-weight: 800; }
.content-list li::marker { color: var(--pink); }
.content-faq { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.cta-box { margin-top: 8px; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 18px; background: rgba(29,15,63,.92); text-decoration: none; }
.related a:hover { border-color: var(--cyan); }
.related strong { color: var(--cyan); }
.related span { color: var(--soft); font-size: 15px; }

/* Lange deutsche Wörter (z. B. „Datenschutzerklärung“) auf schmalen Bildschirmen trennen statt abschneiden */
/* Überschriften nie mit Bindestrich trennen („zu-rück“); nur ein Wort, das gar nicht passt, bricht um */
.public-main h1, .public-main h2 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
/* aktionen.js misst damit, ob ein Wort übersteht, und verkleinert dann die Schrift */
.public-main h1.ganz, .public-main h2.ganz { overflow-wrap: normal; }
@media (max-width: 420px) { .public-main h1 { font-size: 26px; } }

/* Angemeldet: feste Leiste „Zurück zu meinen Feiern“ (installierte App hat keinen Zurück-Knopf; Abstand zur iPhone-Statusleiste) */
.app-zurueck { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; min-height: calc(48px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0; background: #1C1830; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.app-zurueck:hover, .app-zurueck:focus-visible { color: #fff; text-decoration: none; opacity: .9; }

/* Weiche Seitenwechsel auch zu/von Hilfe, Datenschutz, Impressum (passend zu app.css) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Partner werden (partner-werden.blade.php): Formular mit Design-Auswahl und Vorschau */
.partner-form fieldset { border: 0; padding: 0; margin: 0; }
.partner-form legend { font-family: 'Unbounded', system-ui, sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.partner-form select, .partner-form input[type=url] { width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; font: inherit; padding: 0 12px; }
.partner-form select option { color: #15122B; }
.partner-form input[type=color] { width: 72px; height: 48px; border: 2px solid rgba(255,255,255,.25); border-radius: 12px; background: transparent; padding: 4px; }
.partner-form input[type=file] { font: inherit; font-size: 15px; color: var(--soft); }
.partner-designs { display: grid; gap: 12px; }
@media (min-width: 760px) { .partner-designs { grid-template-columns: 1fr 1fr; } }
.partner-design { position: relative; display: grid; gap: 10px; padding: 12px; border: 2px solid rgba(255,255,255,.2); border-radius: 16px; cursor: pointer; }
.partner-design input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.partner-design:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 18px rgba(255,61,165,.35); }
.partner-design:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.partner-design-text { font-size: 15px; color: var(--soft); }
.partner-design-text b { color: #FFFFFF; }
.partner-design-vorschau { background: #FFFFFF; border-radius: 12px; padding: 10px; pointer-events: none; }
/* Vorschau auf weißer Fläche: Farben aus partner-tipp.css statt der dunklen Seite */
.content-page section .partner-design-vorschau p { color: #2A2236; }
.content-page .partner-design-vorschau .ptipp-hell { color: #1E5E69; }
.content-page .partner-design-vorschau .ptipp-voll:not(.ptipp-hell) { color: var(--p-ink); }
