/* WA-Ci DOT · Einrichtungsanimation und Website-Erklärung · Stand 2026-10-21 (Dunkelmodus)
   Gestaltung zu dot-einrichtung-intro.js (Klassenliste dort im Kopfkommentar).
   Lagen und Größen, die von der Zeit abhängen, setzt das Skript inline. Hier stehen nur feste Gestaltung und Typografie.
   Keine externen Ressourcen. Schriften liegen in fonts/ (Pfade relativ zu dieser Datei). */

@font-face {
  font-family: "Manrope";
  src: url("../../../assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../../../assets/fonts/DMSerifDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ───── Wurzel ───── */
.dot-intro {
  box-sizing: border-box;
  color: var(--dot-intro-tinte, #12242B);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
.dot-intro *,
.dot-intro *::before,
.dot-intro *::after { box-sizing: inherit; }

/* Hintergrund */
.dot-intro--verlauf {
  background-color: #fff;
  background-image: var(--dot-intro-verlauf, radial-gradient(ellipse 70% 62% at 50% 40%, #ddeefa, #f4f9fd 52%, #fff));
}
.dot-intro--transparent { background: transparent; }

/* Overlay (Lage, z-index und Deckkraft setzt das Skript) */
.dot-intro--overlay {
  position: fixed;
  inset: 0;
  overscroll-behavior: contain;
  touch-action: none;
}

/* Inline: Höhe aus dem Seitenverhältnis, schmale Container im Hochformat */
.dot-intro--inline {
  display: block;
  width: 100%;
  aspect-ratio: var(--dot-intro-verhaeltnis, 16 / 9);
  min-height: 360px;
}
.dot-intro--inline.dot-intro--schmal {
  aspect-ratio: var(--dot-intro-verhaeltnis, 4 / 5);
}

/* ───── Bühne ───── */
.dot-intro__buehne {
  display: block;
  -webkit-user-select: none;
  user-select: none;
}

/* ───── Erklärung „Digitaler Organizer & Tagebuch“ ───── */
.dot-intro__erklaerung {
  -webkit-user-select: none;
  user-select: none;
  font-kerning: normal;
}
.dot-intro__zeile {
  font-weight: 350;
  letter-spacing: -.015em;
}
.dot-intro__initiale { pointer-events: none; }
/* Variante „leicht“ (Standard): Manrope deutlich leichter als die Punktinitialen */
.dot-intro__rest {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 350;
  letter-spacing: -.015em;
  color: var(--dot-intro-tinte, #12242B);
  will-change: transform, opacity;
}
/* Variante „punkt“: Wortreste und „&“ zeichnet das SVG als Punktschrift; der echte Text bleibt unsichtbar im DOM */
.dot-intro--schrift-punkt .dot-intro__rest,
.dot-intro--schrift-punkt .dot-intro__und {
  color: transparent;
}
.dot-intro__und {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dot-intro-blau, #0179CF);
  will-change: transform, opacity;
}

/* ───── Teil 2: Überleitung zur Schule ───── */
.dot-intro__papier { z-index: 0; }
.dot-intro__schule {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-user-select: none;
  user-select: none;
}
.dot-intro__eingerichtet {
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--dot-intro-muted, #536279);
}
.dot-intro__schulname {
  margin-top: .15em;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.15;
  will-change: transform, opacity;
}

/* Sichtbarer Wechsel zu v3.1 (ab 8300): kein eigener Hintergrund, kein zweiter Überspringen-Knopf */
.dot-intro--uebergabe { background: transparent !important; }
.dot-intro--uebergabe .dot-intro__knopf { visibility: hidden; }

/* ───── Überspringen / Weiter (Overlay) ───── */
.dot-intro__knopf {
  position: absolute;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--dot-intro-linie, #D3E0E8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--dot-intro-muted, #536279);
  font: 600 15px/1.2 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.dot-intro__knopf:hover {
  color: var(--dot-intro-tinte, #12242B);
  border-color: var(--dot-intro-blau, #0179CF);
  background: #fff;
}
@media (min-width: 768px) {
  .dot-intro__knopf { right: 32px; bottom: 32px; }
}

/* Fokusring nur bei Tastaturbedienung */
.dot-intro__knopf:focus { outline: none; }
.dot-intro--tastatur .dot-intro__knopf:focus,
.dot-intro--tastatur .dot-intro__knopf:focus-visible {
  outline: 3px solid var(--dot-intro-blau, #0179CF);
  outline-offset: 3px;
}

/* ───── Anhalten / Fortsetzen (Website-Loop) ───── */
.dot-intro__pause {
  -webkit-appearance: none;
  appearance: none;
  z-index: 1;
  border-radius: inherit;
  color: transparent;
}
.dot-intro__pause[hidden] { display: none; }
.dot-intro__pause:focus { outline: none; }
.dot-intro__pause:focus-visible {
  outline: 3px solid var(--dot-intro-blau, #0179CF);
  outline-offset: -3px;
}
.dot-intro--angehalten .dot-intro__pause::after {
  content: "Angehalten";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--dot-intro-muted, #536279);
  font: 600 13px/1.2 "Manrope", system-ui, sans-serif;
}

/* ───── Nur für Screenreader ───── */
.dot-intro__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ───── Dunkelmodus (21.10.2026) ─────
   Das Skript setzt .dot-intro--dunkel nach Systemeinstellung bzw. data-farbschema / ?farbschema= und zeichnet die
   SVG-Punkte passend (Tinte #E6EEF4, Blau #2A98E6). Eigene Werte über die Variablen mit „-dunkel“. */
.dot-intro--dunkel {
  --dot-intro-tinte: var(--dot-intro-tinte-dunkel, #E6EEF4);
  --dot-intro-blau: var(--dot-intro-blau-dunkel, #2A98E6);
  --dot-intro-muted: var(--dot-intro-muted-dunkel, #9DAABB);
  --dot-intro-linie: var(--dot-intro-linie-dunkel, #2B3D4F);
  color-scheme: dark;
}
.dot-intro--dunkel.dot-intro--verlauf {
  background-color: #08121C;
  background-image: var(--dot-intro-verlauf-dunkel, radial-gradient(ellipse 70% 62% at 50% 40%, #12304A, #0B1C2B 52%, #08121C));
}
.dot-intro--dunkel .dot-intro__knopf { background: rgba(12, 26, 38, .78); }
.dot-intro--dunkel .dot-intro__knopf:hover { background: #0B1C2B; }
.dot-intro--dunkel.dot-intro--angehalten .dot-intro__pause::after { background: rgba(12, 26, 38, .85); }

/* ───── Reduzierte Bewegung: Standbild, keine Übergänge ───── */
@media (prefers-reduced-motion: reduce) {
  .dot-intro *,
  .dot-intro *::before,
  .dot-intro *::after { transition: none !important; animation: none !important; }
}
.dot-intro--ruhig .dot-intro__rest,
.dot-intro--ruhig .dot-intro__und { will-change: auto; }

/* Druck: Animation nicht ausgeben */
@media print {
  .dot-intro--overlay { display: none !important; }
}
