:root {
  --bg: #050505;
  --surface: #111111;
  --card: #1a1a1a;
  --accent: #8b5cf6;
  --accent-dim: rgba(139, 92, 246, 0.15);
  --text: #ffffff;
  --muted: #888888;
  --radius: 14px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Gloock", Georgia, serif;
  --legal-column: 38rem;
  /* Kopfgrafik: gleiche Höhenlogik wie Landing-Logo + Unterseiten-Banner */
  --header-graphic-max-h: min(146px, calc(100svh - 11.5rem));
}

@supports (height: 100dvh) {
  :root {
    --header-graphic-max-h: min(146px, calc(100dvh - 11.5rem));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(139, 92, 246, 0.06), transparent 45%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Full-bleed Kopfgrafik (zentriert, volle Viewport-Breite) */
.site-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  line-height: 0;
}

a.site-banner {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.site-banner:hover {
  text-decoration: none;
}

a.site-banner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

/* Unterseiten: gleiche Maximalhöhe wie Logo auf der Startseite */
.site-head .site-banner img {
  width: auto;
  max-width: 100%;
  max-height: var(--header-graphic-max-h);
  margin-left: auto;
  margin-right: auto;
}

/* Unterseiten-Header: wie Landing links/rechts kacheln (ab Tablet-Breite) */
.site-head__banner-row {
  display: grid;
  align-items: center;
  width: 100%;
}

.site-head__banner-row::before,
.site-head__banner-row::after {
  content: "";
  display: none;
  height: var(--header-graphic-max-h);
  background-image: url("/images/header-v2.png");
  background-repeat: repeat-x;
  background-size: auto var(--header-graphic-max-h);
  pointer-events: none;
}

.site-head__banner-row::before {
  grid-column: 1;
  background-position: right center;
}

.site-head__banner-row::after {
  grid-column: 3;
  background-position: left center;
}

@media (max-width: 767px) {
  .site-head__banner-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-head__banner-row > .site-banner {
    grid-column: 1;
  }
}

@media (min-width: 768px) {
  .site-head__banner-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: stretch;
  }

  .site-head__banner-row::before,
  .site-head__banner-row::after {
    display: block;
  }

  .site-head__banner-row > .site-banner {
    grid-column: 2;
    justify-self: center;
  }
}

.site-head__banner-row > .site-banner {
  width: auto;
  max-width: 100%;
}

/* Kopfbereich: Sprachwahl oben rechts, Banner-Grafik darunter (kein Überlagern) */
.site-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.site-head > .lang-pill-nav {
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: calc(env(safe-area-inset-top, 0px) + 8px);
  margin-right: max(1rem, env(safe-area-inset-right, 0px));
  margin-bottom: 0.6rem;
  max-width: calc(100% - max(2rem, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
}

.site-head > .site-head__banner-row {
  flex-shrink: 0;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  text-align: center;
}

header.site-header {
  margin-bottom: 2rem;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.hero-card {
  background: linear-gradient(145deg, var(--card), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-card p:last-child {
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.42);
}

a.btn {
  text-decoration: none;
}

a.btn:hover {
  text-decoration: none;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.beta-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  flex: 1 1 100%;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 auto 0.5rem;
  max-width: var(--legal-column);
  text-align: center;
}

.page-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: var(--legal-column);
  text-align: center;
}

.prose {
  color: rgba(255, 255, 255, 0.88);
}

/* Rechtstexte: linksbündig lesbar; äußere Spalte (.wrap) bleibt zentriert */
article.prose {
  text-align: left;
  width: 100%;
  max-width: var(--legal-column);
  margin-left: auto;
  margin-right: auto;
}

.prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.65rem;
  color: var(--text);
  text-align: left;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  text-align: left;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  text-align: left;
  list-style-position: outside;
  box-sizing: border-box;
}

.prose ol {
  padding-left: 1.55rem;
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.45rem;
  text-align: left;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose ul > li::marker {
  color: rgba(255, 255, 255, 0.38);
}

.prose ol > li::marker {
  color: rgba(255, 255, 255, 0.45);
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

/* FAQ: zentrierte Spalte, Trennlinien, ausklappbare Einträge */
article.prose.faq {
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion {
  width: 100%;
  max-width: var(--legal-column);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  list-style-type: none;
  font-family: var(--font-body);
  color: var(--text);
  transition: color 0.15s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  color: rgba(255, 255, 255, 0.92);
}

.faq-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-q {
  margin: 0;
  max-width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.faq-summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.faq-panel {
  padding: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}

.faq-panel p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

.placeholder-note {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.site-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-header-row .tagline {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.site-header-row .lang-switch {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 520px) {
  .site-header-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .site-header-row .tagline {
    grid-column: 1;
  }

  .site-header-row .lang-switch {
    grid-column: 1;
    justify-self: end;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-dim);
}

.thanks-banner {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.thanks-banner strong {
  color: #fff;
}

.form-intro {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
}

.apply-form {
  margin-top: 0.25rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

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

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.checkbox-field {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  max-width: 100%;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.form-submit-row {
  margin-top: 0.25rem;
  display: flex;
  justify-content: center;
}

/* Spam-Honeypot (FormSubmit-Empfehlung) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   Landing = Welcome-Screen der App (welcome.tsx): volle Höhe, Sprache oben
   rechts, Branding zentriert leicht über Mitte, ein Primary-CTA unten.
   Keine Scrollbars — Inhalt skaliert in den Viewport (wie gebundene App-UI).
   --------------------------------------------------------------------------- */

html.landing-html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.landing-body {
  margin: 0;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: #050505;
  background-image: none;
}

.landing-app {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100svh;
  max-height: 100svh;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  .landing-app {
    height: 100dvh;
    max-height: 100dvh;
  }
}

/* Sprach-Pill-Menü (mitscrollend; auf Unterseiten in .site-head oben rechts) */
.lang-pill-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  box-sizing: border-box;
  max-width: 100%;
}

.wrap.wrap--lang {
  position: relative;
  padding-top: 2rem;
}

.landing-app > .lang-pill-nav:first-child {
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: calc(env(safe-area-inset-top, 0px) + 8px);
  margin-right: max(1rem, env(safe-area-inset-right, 0px));
  margin-bottom: 0.35rem;
  max-width: calc(100% - max(2rem, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
}

.wrap.wrap--lang:not(:has(> .page-meta)) > .page-title {
  margin-bottom: 2rem;
}

.lang-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  flex-shrink: 0;
}

.lang-pill-icon svg {
  display: block;
}

.lang-pill-nav .lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.lang-pill-nav .lang-pill:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.lang-pill-nav .lang-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-pill-nav .lang-pill[aria-current="page"] {
  font-weight: 700;
  color: #fff;
  background: rgba(139, 92, 246, 0.45);
}

.landing-app__center {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: 8px;
}

.landing-app__brand {
  flex: 0 1 auto;
  min-height: 0;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  --logo-h: var(--header-graphic-max-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(clamp(-0.75rem, -2.5svh, -2.75rem));
  text-align: center;
}

.landing-app__brand-row {
  display: grid;
  align-items: center;
  width: 100%;
}

/* Breiter Viewport: Logo-Grafik links/rechts als repeat-x kacheln (Grid-Spalten 1 + 3) */
.landing-app__brand-row::before,
.landing-app__brand-row::after {
  content: "";
  display: none;
  height: var(--logo-h);
  background-image: url("/images/header-v2.png");
  background-repeat: repeat-x;
  background-size: auto var(--logo-h);
  pointer-events: none;
}

.landing-app__brand-row::before {
  grid-column: 1;
  background-position: right center;
}

.landing-app__brand-row::after {
  grid-column: 3;
  background-position: left center;
}

@media (max-width: 767px) {
  .landing-app__brand-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.landing-app__brand-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  aspect-ratio: 4000 / 632;
  object-fit: contain;
}

@media (min-width: 768px) {
  .landing-app__brand-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: stretch;
  }

  .landing-app__brand-row::before,
  .landing-app__brand-row::after {
    display: block;
  }

  .landing-app__brand-logo {
    grid-column: 2;
    max-width: none;
  }
}

.landing-app__tagline {
  margin: clamp(6px, 1.8svh, 18px) 0 0;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: clamp(13px, 3.8vw, 18px);
  font-weight: 400;
  letter-spacing: clamp(0.06em, 0.15vw, 1.5px);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.landing-app__bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px max(16px, env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-right, 0px));
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.landing-app__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0 auto;
  min-height: clamp(48px, 10vw, 56px);
  padding: 0 clamp(12px, 4vw, 20px);
  border-radius: 28px;
  background: #8b5cf6;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(14px, 3.9vw, 16px);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.landing-app__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.42);
  text-decoration: none;
  color: #fff;
}

.landing-app__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.landing-app__cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: min(480px, 100%);
}

.landing-app__cta-row .landing-app__cta {
  width: 100%;
  max-width: none;
  margin: 0;
}

.landing-app__cta--secondary {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  box-shadow: none;
}

.landing-app__cta--secondary:hover {
  transform: translateY(-1px);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  box-shadow: none;
}

.landing-app__cta--secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.landing-app__legal-rule {
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-app__legal {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.landing-app__legal-sep {
  color: var(--muted);
  user-select: none;
}

.landing-app__legal a {
  color: var(--accent);
  text-decoration: none;
}

.landing-app__legal a:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .lang-pill-nav {
    gap: 4px;
    padding: 2px;
  }

  .lang-pill-nav .lang-pill {
    padding: 5px 6px;
    font-size: 11px;
  }
}
