/* ══════════════════════════════════════════════════════════════════════════
   timesofmylife.de — ein Stylesheet für Startseite und Textseiten.
   Keine Inline-Styles: Die Seite läuft mit einer strengen Content-Security-
   Policy (style-src 'self'), die sie gar nicht erst zulassen würde.
   ══════════════════════════════════════════════════════════════════════════ */

/* Inter, lokal ausgeliefert (SIL Open Font License, siehe fonts/OFL-Inter.txt).
   Eine variable Datei deckt die Gewichte 400/500/600/700 ab. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  /* Farben */
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --bg: #FFFFFF;
  --kachel-hell: #F5F5F7;
  --kachel-schwarz: #000000;
  --kachel-dunkel: #1D1D1F;
  --karte-dunkel: #2C2C2E;
  --text-dunkel: #F5F5F7;
  --text-dunkel-2: #A1A1A6;
  --link: #0066CC;
  --link-dunkel: #2997FF;
  --fuss-link: #424245;

  --mms-terrakotta: #C2694B;
  --mms-eukalyptus: #6F9187;
  --mms-sand: #C7B29C;
  --mms-creme: #F7F1E8;
  --mft-amber: #E8A33D;
  --mfw-blau: #1F5FC9;
  --mfw-hellblau: #9CC0FF;

  /* Maße */
  --radius-kachel: 28px;
  --radius-karte: 22px;
  --abstand: 12px;
  --rand: 12px;
  --nav-hoehe: 52px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}
.dunkel :focus-visible,
.karte--zaehler:focus-visible { outline-color: var(--link-dunkel); }

.sprung {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.sprung:focus { top: 8px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav__innen {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--nav-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.nav__marke {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
.nav__links a {
  font-size: 13px;
  color: #3A3A3C;
}

.nav__knopf {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav__knopf span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav__knopf[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__knopf[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ── Kopfbereich ────────────────────────────────────────────────────────── */

.kopf {
  padding: 120px 24px 96px;
  text-align: center;
}
.kopf__name {
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-2);
}
.kopf h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.kopf__unterzeile {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

/* ── Kacheln ────────────────────────────────────────────────────────────── */

.kacheln {
  padding: 0 var(--rand) var(--rand);
  display: flex;
  flex-direction: column;
  gap: var(--abstand);
}

.kachel {
  border-radius: var(--radius-kachel);
  overflow: hidden;
  padding: 72px 24px 0;
  text-align: center;
  scroll-margin-top: calc(var(--nav-hoehe) + 12px);
}
.kachel h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dunkel { color: var(--text-dunkel); }

.reihe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--abstand);
}
.reihe > .kachel {
  flex: 1 1 520px;
  min-width: 0;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  flex: none;
  border-radius: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.app-icon--mms { width: 88px; height: 88px; font-size: 13px; background: var(--mms-terrakotta); color: #000; }
.app-icon--mft { background: var(--mft-amber); color: var(--text); }
.app-icon--mfw { background: var(--mfw-blau); color: #fff; }

.aktionen {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
}

.lnk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 500;
}
.dunkel .lnk { color: var(--link-dunkel); }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.pill:hover { text-decoration: none; background: #333336; }
.dunkel .pill { background: var(--text-dunkel); color: var(--text); }
.dunkel .pill:hover { background: #fff; }

/* MyMindscript */
.kachel--mms { background: var(--mms-creme); }
.kachel--mms h2 { font-size: clamp(40px, 5vw, 64px); }
.kachel--mms .claim {
  margin-top: 12px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.handy {
  width: 260px;
  height: 520px;
  margin: 56px auto -140px;
  padding: 48px 22px;
  border: 10px solid var(--text);
  border-radius: 48px;
  background: var(--mms-creme);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.handy__bild { height: 140px; border-radius: 20px; background: var(--mms-terrakotta); }
.handy__zeile { height: 14px; border-radius: 7px; }
.handy__zeile--1 { width: 70%; background: var(--mms-eukalyptus); }
.handy__zeile--2 { width: 50%; background: var(--mms-sand); }
.handy__feld { height: 64px; border-radius: 16px; background: #fff; }

/* My Friends Table / My Friends World */
.kachel--mft { background: var(--kachel-schwarz); }
.kachel--mfw { background: var(--kachel-hell); }

.reihe h2 { font-size: clamp(36px, 4vw, 48px); }
.reihe .beschreibung {
  max-width: 420px;
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.35;
  color: var(--text-2);
}
.dunkel .beschreibung { color: var(--text-dunkel-2); }

.deko-kreise {
  margin-top: auto;
  padding: 88px 0 56px;
  display: flex;
  gap: 14px;
}
.deko-kreise span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mft-amber);
}
.deko-kreise span:nth-child(2) { background: var(--text-dunkel); }
.deko-kreise span:nth-child(3) { background: var(--text-2); }
.deko-kreise span:nth-child(4) { opacity: 0.55; }

.deko-globus-halter {
  margin-top: auto;
  padding-top: 48px;
}
.deko-globus {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: -72px;
  border-radius: 50%;
  background: var(--mfw-blau);
}
.deko-globus span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}
.deko-globus span:nth-child(1) { left: 70px; top: 60px; }
.deko-globus span:nth-child(2) { left: 180px; top: 100px; }
.deko-globus span:nth-child(3) { left: 120px; top: 170px; background: var(--mfw-hellblau); }

/* Einer geht noch */
.kachel--egn {
  background: var(--kachel-dunkel);
  padding: 88px 24px 64px;
  overflow: visible;
}
.kachel--egn h2 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -0.035em;
}
.kachel--egn .beschreibung {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--text-dunkel-2);
}
.kachel--egn .aktionen { margin-top: 16px; }

.karten {
  max-width: 1000px;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  text-align: left;
}

.karte {
  flex: 1 1 360px;
  min-width: 0;
  padding: 40px;
  border-radius: var(--radius-karte);
  display: flex;
}
.karte:hover { text-decoration: none; }
.karte:hover .karte__weiter { text-decoration: underline; }

.karte h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.karte__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.karte__text { font-size: 17px; line-height: 1.45; }
.karte__weiter {
  margin-top: auto;
  padding-top: 12px;
  font-size: 19px;
  font-weight: 500;
}

.karte--zaehler {
  flex-direction: column;
  gap: 12px;
  background: var(--karte-dunkel);
  color: var(--text-dunkel);
}
.karte--zaehler h3 { font-size: 32px; line-height: 1.15; }
.karte--zaehler .karte__label { margin-top: 16px; color: var(--text-dunkel-2); }
.karte--zaehler .karte__text { color: var(--text-dunkel-2); }
.karte--zaehler .karte__weiter { color: var(--link-dunkel); }

.spielkarten { display: flex; gap: 8px; }
.spielkarten span {
  width: 44px;
  height: 60px;
  border-radius: 8px;
  background: var(--text-dunkel);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.spielkarten span:nth-child(2) { background: #F2C94C; }
.spielkarten span:nth-child(3) { background: #6FCF97; }

.karte--buch {
  flex-wrap: wrap;
  gap: 28px;
  background: var(--kachel-hell);
  color: var(--text);
}
.karte--buch h3 { font-size: 26px; line-height: 1.2; }
.karte--buch .karte__label { color: var(--text-2); }
.karte--buch .karte__text { color: var(--text-2); }
.karte--buch .karte__weiter { padding-top: 0; color: var(--link); }

.karte__inhalt {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cover {
  width: 120px;
  height: 180px;
  flex: none;
  padding: 16px 14px;
  border-radius: 4px 10px 10px 4px;
  background: var(--text);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  color: var(--text-dunkel);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

/* ── Fußzeile ───────────────────────────────────────────────────────────── */

.fuss {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--text-2);
}
.fuss__links { display: flex; gap: 20px; }
.fuss a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fuss-link);
}

/* ── Textseiten (Impressum, Datenschutz) ────────────────────────────────── */

.textseite {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  font-size: 17px;
  line-height: 1.6;
}
.textseite h1 {
  margin-bottom: 32px;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.textseite h2 {
  margin: 40px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.textseite p + p { margin-top: 14px; }
.textseite ul { margin: 14px 0 0; padding-left: 22px; }
.textseite li + li { margin-top: 6px; }
.textseite a { text-decoration: underline; }
.textseite .stand { margin-top: 48px; font-size: 14px; color: var(--text-2); }

.hinweis {
  margin-bottom: 32px;
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--mms-creme);
  font-size: 15px;
  line-height: 1.5;
}

/* Offene Pflichtangaben, damit sie niemand übersieht. */
.luecke {
  padding: 1px 6px;
  border-radius: 6px;
  background: #FFE9A8;
  font-weight: 600;
}

/* ── Handy (unter 734 px) ───────────────────────────────────────────────── */

@media (max-width: 733px) {
  :root {
    --radius-kachel: 24px;
    --radius-karte: 20px;
    --abstand: 10px;
  }

  .nav__innen { padding: 0 20px; }
  .nav__knopf { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
  }
  .nav__links.ist-offen { display: flex; }
  .nav__links a {
    min-height: 52px;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .nav__links a + a { border-top: 1px solid rgba(0, 0, 0, 0.08); }

  .kopf { padding: 72px 20px 64px; }
  .kopf__name { font-size: 19px; }
  .kopf h1 { font-size: 48px; }
  .kopf__unterzeile { font-size: 19px; }

  .kachel { padding: 56px 20px 0; }
  .kachel--mms h2 { font-size: 36px; }
  .kachel--mms .claim { font-size: 19px; }
  .reihe h2, .kachel--egn h2 { font-size: 32px; }
  .reihe .beschreibung, .kachel--egn .beschreibung { font-size: 19px; }
  .reihe > .kachel { flex-basis: 100%; min-height: 0; }

  /* „Zur Website ›" in eigener Zeile, die Store-Buttons nebeneinander darunter. */
  .aktionen { gap: 8px 10px; margin-top: 20px; }
  .aktionen .lnk { flex: 0 0 100%; justify-content: center; }
  .pill { padding: 0 20px; }

  .handy { margin-top: 40px; }
  .deko-kreise { padding-top: 56px; }
  .deko-kreise span { width: 56px; height: 56px; }
  .deko-globus { width: 260px; height: 260px; }
  .deko-globus span:nth-child(1) { left: 60px; top: 52px; }
  .deko-globus span:nth-child(2) { left: 156px; top: 86px; }
  .deko-globus span:nth-child(3) { left: 104px; top: 148px; }

  .kachel--egn { padding: 56px 20px 20px; }
  .kachel--egn .aktionen { margin-top: 8px; }
  .karten { margin-top: 32px; gap: 10px; }
  .karte { flex-basis: 100%; padding: 28px 24px; }
  .karte--zaehler h3 { font-size: 28px; }
  .karte--buch { flex-direction: column; flex-wrap: nowrap; gap: 24px; }
  .karte--buch h3 { font-size: 24px; }
  .karte__inhalt { flex: none; }
  .karte__weiter { font-size: 17px; }

  .fuss { padding: 16px 20px 28px; }
  .textseite { padding: 56px 20px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__knopf span { transition: none; }
}
