/* KaderPro Website — gemeinsames Stylesheet.
   Farbwerte 1:1 aus der App (frontend/lib/theme.ts), damit Web und App
   dieselbe Identität tragen. Keine externen Fonts/CDNs — self-contained. */

:root {
  --bg: #0b0c14;
  --surface: #171a2a;
  --surface-alt: #111524;
  --card-bg: rgba(16, 19, 32, 0.55);
  --card-border: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #7b5cff;
  --secondary: #a347ff;
  --accent: #ff4fcb;
  --blue: #4da8ff;
  --green: #3ddc84;
  --gold: #ffb23e;
  --text: #ffffff;
  --muted: #b8c0d9;
  --faint: #7e86a3;
  --gradient: linear-gradient(120deg, #a347ff, #7b5cff, #ff4fcb);
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dezente Neon-Glows im Hintergrund, wie die Gradient-Flächen der App */
.glow-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(123, 92, 255, 0.22), transparent 70%),
    radial-gradient(500px 380px at 90% 10%, rgba(255, 79, 203, 0.13), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(163, 71, 255, 0.12), transparent 70%);
}

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 12, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #000111; /* Hintergrundfarbe des Logos */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(123, 92, 255, 0.55);
  flex: none;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}


/* "Bald in den Stores"-Hinweis im Header */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  padding: 0.32rem 0.75rem;
  border: 1px solid rgba(255, 79, 203, 0.4);
  border-radius: 999px;
  background: rgba(255, 79, 203, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: soon-pulse 2s ease-in-out infinite;
}

@keyframes soon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-dot { animation: none; }
}

/* Sprachauswahl (Flaggen) im Header */
.lang-switch {
  display: flex;
  gap: 0.3rem;
  margin-left: 0.4rem;
}

.lang-flag {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(0.55) opacity(0.7);
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lang-flag:hover {
  filter: grayscale(0) opacity(1);
  background: rgba(255, 255, 255, 0.06);
}

.lang-flag.active {
  filter: grayscale(0) opacity(1);
  border-color: rgba(255, 79, 203, 0.55);
  background: rgba(255, 79, 203, 0.12);
}

/* Schmale Screens: Navigation in eigene Zeile umbrechen statt zu quetschen */
@media (max-width: 640px) {
  .site-header .container {
    flex-wrap: wrap;
    row-gap: 0.15rem;
    padding-block: 0.7rem;
  }

  .site-nav {
    width: 100%;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .soon-pill {
    font-size: 0.72rem;
    padding: 0.24rem 0.6rem;
  }

  .lang-switch {
    order: 1;
    margin-left: auto;
  }
}

/* ---------- Typografie-Bausteine ---------- */

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons & Badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px rgba(123, 92, 255, 0.4);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-ghost {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Platzhalter, bis die Apps live sind — dann durch echte Store-Badges ersetzen */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: var(--surface-alt);
  color: var(--faint);
  line-height: 1.25;
  cursor: default;
}

.store-badge small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-badge strong {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

.hero .container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: flex-start;
}

.hero-note {
  color: var(--faint);
  font-size: 0.85rem;
}

/* Bild-Slot: zeigt assets/hero.png; fehlt das Bild, bleibt der gestylte
   Platzhalter (Telefonrahmen mit Gradient) sichtbar. */
.phone-slot {
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(220px 200px at 30% 15%, rgba(163, 71, 255, 0.35), transparent 70%),
    radial-gradient(240px 240px at 75% 85%, rgba(255, 79, 203, 0.25), transparent 70%),
    var(--surface);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(123, 92, 255, 0.25);
  padding: 12px;
  position: relative;
}

.phone-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

.phone-slot .slot-hint {
  position: absolute;
  inset: 12px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
  padding: 1.5rem;
  border: 1px dashed var(--card-border);
}

.phone-slot.has-image .slot-hint {
  display: none;
}

/* ---------- Sektionen ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 92, 255, 0.16);
  color: var(--primary);
  flex: none;
}

.feature-icon.icon-pink {
  background: rgba(255, 79, 203, 0.14);
  color: var(--accent);
}

.feature-icon.icon-blue {
  background: rgba(77, 168, 255, 0.14);
  color: var(--blue);
}

.feature-icon.icon-green {
  background: rgba(61, 220, 132, 0.14);
  color: var(--green);
}

.feature-icon.icon-gold {
  background: rgba(255, 178, 62, 0.14);
  color: var(--gold);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.audience-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.audience-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--surface-alt);
  padding: 1.5rem;
}

.audience-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.audience-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Bewertungs-Spotlight ---------- */

.spotlight-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  /* Gespiegelte Variante: Bild links, Text rechts */
  .spotlight-grid.flip {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .spotlight-grid.flip .spotlight-copy {
    order: 2;
  }
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.spotlight-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.spotlight-lead strong {
  color: var(--text);
}

.spotlight-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.spotlight-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.spotlight-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(123, 92, 255, 0.7);
}

/* ---------- CTA-Band ---------- */

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  /* Stadion-Foto (assets/cta-background.jpg) mit Abdunklung fuer Lesbarkeit */
  background:
    linear-gradient(rgba(11, 12, 20, 0.66), rgba(11, 12, 20, 0.78)),
    url("assets/cta-background.jpg") center 32% / cover no-repeat,
    var(--surface);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 32rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-block: 2rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--muted);
}

/* ---------- Unterseiten (Rechtstexte) ---------- */

.page {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.7rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.3rem;
  margin-block: 0.6rem;
}

.prose li {
  margin-block: 0.3rem;
}

.prose strong {
  color: var(--text);
}

/* Muster-Widerrufsformular (abgesetzter Block in der Widerrufsbelehrung) */
.prose blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.04);
}

.prose blockquote p {
  margin-block: 0.5rem;
}

/* Auffällige Markierung für auszufüllende Stellen */
.todo {
  background: rgba(255, 178, 62, 0.16);
  border: 1px dashed rgba(255, 178, 62, 0.5);
  color: var(--gold);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-style: normal;
  white-space: nowrap;
}

.notice {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 178, 62, 0.4);
  background: rgba(255, 178, 62, 0.08);
  color: var(--gold);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* ---------- Join-Seite ---------- */

.join-main {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding-block: 3rem;
}

.join-card {
  width: min(430px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.join-card h1 {
  font-size: 1.5rem;
}

.join-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  color: var(--text);
  word-break: break-all;
}

.join-card .btn {
  width: 100%;
}

/* Innere Bloecke (#with-code/#without-code): das globale Reset nimmt den
   p-Elementen die Abstaende — hier uebernimmt ein Flex-Layout mit gap. */
.join-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

/* Wichtig: display:flex wuerde sonst das hidden-Attribut aushebeln. */
.join-flow[hidden] {
  display: none;
}

.join-code-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin-block: 0.3rem;
}

.join-code-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.2rem;
}

.join-hint {
  font-size: 0.83rem;
  color: var(--faint);
}

/* ---- Werte-System (Attribute + OVR-Erklärung) ---- */
.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.attr-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}

.attr-code {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(255, 79, 203, 0.4);
  background: rgba(255, 79, 203, 0.08);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}

.attr-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.attr-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.keeper-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  background: rgba(255, 159, 46, 0.07);
  border: 1px solid rgba(255, 159, 46, 0.35);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}

.keeper-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.keeper-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.keeper-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ovr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.ovr-how,
.ovr-scale-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
}

.ovr-how h3,
.ovr-scale-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ovr-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ovr-scale {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5b6e 0%, #ff9f2e 38%, #4da8ff 66%, #3ddc84 92%);
}

.ovr-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.tick-red { color: #ff5b6e; }
.tick-orange { color: #ff9f2e; }
.tick-blue { color: var(--blue); }
.tick-green { color: var(--green); }

.ovr-scale-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
