/* ============================================================
   DropChat Website – gemeinsames Stylesheet
   ============================================================
   Die Design-Tokens sind 1:1 dieselben wie in der App
   (lib/theme.ts bzw. background_infos/pulse-karte.html), damit
   Website und App zusammengehörig aussehen. Wenn dort eine Farbe
   geändert wird, gehört sie auch hier geändert.

   Die App läuft bewusst nur im Hellmodus (app.json:
   userInterfaceStyle "light") – deshalb hier ebenfalls kein
   Dunkelmodus, sonst sähen beide unterschiedlich aus.
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f5f3ff;
  --border: #e4e0ed;
  --text-1: #1c1917;
  --text-2: #57534e;
  --text-3: #a8a29e;
  --accent: #8b5cf6;
  --accent-light: #f5f3ff;
  --accent-mid: #ddd6fe;

  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  /* Sprungziele der Fußzeilen-Links nicht unter den Seitenrand schieben. */
  scroll-behavior: smooth;
}

body {
  /* Seite füllt immer mindestens die Höhe des Fensters, die Fußzeile sitzt
     unten. Wichtig für die Startseite: Impressum & Co. müssen ohne Scrollen
     sichtbar sein (§ 5 ECG verlangt "leicht und unmittelbar auffindbar"). */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Startseite (Teaser) ──────────────────────────────────── */

.teaser {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 24px 24px;
  text-align: center;
}

.teaser-inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: auftauchen 0.7s var(--ease-out) both;
}

.wortmarke {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.teaser-text {
  max-width: 34ch;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

@keyframes auftauchen {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Abzeichen (wie die Chips in der App) ─────────────────── */

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
}

/* ── Unterseiten: Kopf wie ein App-Screen ─────────────────── */

.seite {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 0;
}

/* Runder Zurück-Knopf, identisch zu den Screens in der App
   (36px, bg-2, zentriertes Chevron). */
.zurueck {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s var(--ease-out);
}

.zurueck:hover,
.zurueck:focus-visible {
  background: var(--accent-light);
}

/* Optisch mittig trotz Zurück-Knopf links: Der Titel nimmt den Rest der
   Zeile ein und bekommt rechts die Knopfbreite als Ausgleich. Bewusst NICHT
   absolut positioniert – ein langer Titel wie "Datenschutzerklärung" würde
   sonst unter dem Knopf liegen statt umzubrechen. */
.kopf-titel {
  flex: 1;
  min-width: 0;
  padding-right: 36px;
  text-align: center;
  font-size: clamp(19px, 5.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.einleitung {
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-3);
  padding: 0 4px 6px;
}

/* ── Abschnitte (Kicker + Karte), wie Konto-Einstellungen ─── */

.abschnitt-titel {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 18px 4px 8px;
}

.karte {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
}

.karte-text {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.karte-text + .karte-text {
  border-top: 1px solid var(--border);
}

/* Beschriftung/Wert-Zeile – entspricht MenuRow in der App. */
.zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
}

.zeile + .zeile {
  border-top: 1px solid var(--border);
}

.zeile-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
}

.zeile-wert {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.zeile-wert a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

/* Schmale Displays: Beschriftung und Wert untereinander statt nebeneinander.
   Zweispaltig bliebe für lange Werte wie den Unternehmensgegenstand sonst nur
   eine schmale, stark umgebrochene Spalte übrig. */
@media (max-width: 480px) {
  .zeile {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px 16px;
  }

  .zeile-wert {
    text-align: left;
  }

  .adresse,
  .karte-text {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Adressblock: mehrzeilig, deshalb untereinander statt zweispaltig. */
.adresse {
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-2);
}

.adresse strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

/* Platzhalter für Seiten, die noch keinen Inhalt haben. */
.platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 24px;
  text-align: center;
}

.platzhalter-titel {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.platzhalter-text {
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-3);
}

/* ── Fußzeile mit den Rechtsseiten ────────────────────────── */

.fusszeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 28px 20px;
  font-size: 13px;
  font-weight: 600;
}

.fusszeile a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s var(--ease-out);
}

.fusszeile a:hover,
.fusszeile a:focus-visible {
  color: var(--accent);
}

.fusszeile .aktiv {
  color: var(--text-1);
}

.fusszeile-marke {
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding-top: 4px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
