/* DeMuxi-Website · Gestaltung
   Passt zur App 秒作 / MiaoDocs: Pastellfarben, Lila als Leitfarbe, ruhige Flächen, weiche Übergänge.
   Zuerst fürs Handy, ab 720 px und 960 px breiter. Hell und dunkel nach dem Gerät.
   Regeln: Kacheln gleich groß, keine farbigen Ränder an Karten. */

:root {
  color-scheme: light dark;

  --grund: #fbfaff;
  --flaeche: #ffffff;
  --flaeche-leise: #f4f1fc;
  --text: #1b1830;
  --text-leise: #5a5670;
  --linie: rgba(27, 24, 48, 0.09);
  --akzent: #6a48dc;
  --akzent-getoent: rgba(115, 82, 224, 0.1);
  --knopf-von: #7352e0;
  --knopf-bis: #296eeb;
  --schatten: 0 1px 2px rgba(34, 24, 84, 0.04), 0 10px 30px -12px rgba(34, 24, 84, 0.16);
  --schatten-hoch: 0 2px 4px rgba(34, 24, 84, 0.05), 0 22px 44px -16px rgba(34, 24, 84, 0.26);
  --kopf-grund: rgba(251, 250, 255, 0.82);

  --fleck-lila: rgba(222, 212, 255, 0.95);
  --fleck-blau: rgba(204, 227, 255, 0.85);
  --fleck-rosa: rgba(255, 214, 227, 0.6);

  /* Pastell wie in der App (Erststart.swift): heller Verlauf, kräftiger Ton fürs Symbol */
  --lila-1: #f2ebff;  --lila-2: #ded4ff;  --lila-tief: #7352e0;
  --blau-1: #e8f2ff;  --blau-2: #cce3ff;  --blau-tief: #296eeb;
  --rosa-1: #ffedf2;  --rosa-2: #ffd6e3;  --rosa-tief: #d43c74;
  --minze-1: #e3faf0; --minze-2: #c4f0de; --minze-tief: #0b8565;
  --pfirsich-1: #fff2e6; --pfirsich-2: #ffe0c9; --pfirsich-tief: #c95a12;
  --symbol-grund: rgba(255, 255, 255, 0.72);
  /* dunklere Töne für kleine Schrift auf den Pastellflächen (mindestens 4,5:1) */
  --lila-text: #5535c4; --blau-text: #1c56c4; --rosa-text: #a8245a; --minze-text: #086b50; --pfirsich-text: #9c4006;

  --rund: 22px;
  --rund-klein: 14px;
  --breite: 1080px;
  --rand: 20px;
  --kopf-hoehe: 60px;
  --weich: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #100e1a;
    --flaeche: #1a1729;
    --flaeche-leise: #211d34;
    --text: #f1eefb;
    --text-leise: #aaa5c3;
    --linie: rgba(241, 238, 251, 0.1);
    --akzent: #b3a1ff;
    --akzent-getoent: rgba(179, 161, 255, 0.14);
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
    --schatten-hoch: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 44px -16px rgba(0, 0, 0, 0.75);
    --kopf-grund: rgba(16, 14, 26, 0.8);

    --fleck-lila: rgba(115, 82, 224, 0.3);
    --fleck-blau: rgba(41, 110, 235, 0.2);
    --fleck-rosa: rgba(219, 69, 125, 0.12);

    --lila-1: rgba(115, 82, 224, 0.36);  --lila-2: rgba(115, 82, 224, 0.17);  --lila-tief: #b9a9ff;
    --blau-1: rgba(41, 110, 235, 0.36);  --blau-2: rgba(41, 110, 235, 0.17);  --blau-tief: #93bcff;
    --rosa-1: rgba(219, 69, 125, 0.34);  --rosa-2: rgba(219, 69, 125, 0.16);  --rosa-tief: #ffa3c2;
    --minze-1: rgba(13, 143, 110, 0.36); --minze-2: rgba(13, 143, 110, 0.17); --minze-tief: #74dfbc;
    --pfirsich-1: rgba(224, 110, 33, 0.34); --pfirsich-2: rgba(224, 110, 33, 0.16); --pfirsich-tief: #ffb583;
    --symbol-grund: rgba(255, 255, 255, 0.09);
    --lila-text: #b9a9ff; --blau-text: #93bcff; --rosa-text: #ffa3c2; --minze-text: #74dfbc; --pfirsich-text: #ffb583;
  }
}

/* ---------- Grund ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", "Microsoft YaHei",
    "Noto Sans SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

html[lang^="zh"] body { line-height: 1.8; line-break: strict; }

/* Begriffe, die nie getrennt werden (Anführungen, Normnummern) */
.fest { white-space: nowrap; }

/* Chinesisch: kurze Schautexte nur an Satzzeichen umbrechen, nie mitten im Wort (长文 bleibt beim üblichen Umbruch) */
html[lang^="zh"] :is(h1, h2, h3, .einleitung, .unterzeile, .spruch, .kachel p, .app-karte .text, .frage button, .karte p, .eintrag p, .schritt .text, .punkte span, .angaben dd, .knopf, .fuss p) {
  word-break: keep-all; overflow-wrap: anywhere;
}

main { flex: 1; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
p, li, dd { text-wrap: pretty; }

a { color: var(--akzent); text-decoration: none; transition: color 0.2s var(--weich), opacity 0.2s var(--weich); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

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

::selection { background: rgba(115, 82, 224, 0.24); }

.innen { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }

.innen.schmal { max-width: calc(760px + 2 * var(--rand)); }

.sprung {
  position: absolute; left: 12px; top: -120px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-hoch);
  transition: top 0.2s var(--weich);
}
.sprung:focus { top: 12px; }

.nur-vorlesen {
  position: absolute; 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;
}

/* weicher Wechsel zwischen den Seiten (Browser, die es können) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: var(--weich); }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--kopf-grund);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--linie);
}
.kopf-innen { display: flex; align-items: center; gap: 14px; height: var(--kopf-hoehe); }

.marke {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); font-weight: 700; font-size: 19px; line-height: 1.2; white-space: nowrap;
}
.marke:hover { text-decoration: none; opacity: 0.8; }
.marke img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 10px -4px rgba(74, 52, 200, 0.5); }
.marke small { font-size: 13px; font-weight: 600; color: var(--text-leise); letter-spacing: 0.02em; }

.wege { display: none; gap: 2px; }
.wege a {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 14px; border-radius: 999px;
  color: var(--text-leise); font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color 0.25s var(--weich), color 0.25s var(--weich);
}
.wege a:hover { text-decoration: none; color: var(--text); background: var(--flaeche-leise); }
.wege a.aktiv { color: var(--akzent); background: var(--akzent-getoent); }
@media (min-width: 640px) { .wege { display: flex; } }
@media (max-width: 359px) { .marke small { display: none; } }

.sprachwahl {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; flex: none;
  padding: 3px; border-radius: 999px; background: var(--flaeche-leise);
}
.sprachwahl a {
  display: flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 30px; padding: 2px 10px; border-radius: 999px;
  color: var(--text-leise); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color 0.25s var(--weich), color 0.25s var(--weich), box-shadow 0.25s var(--weich);
}
.sprachwahl a:hover { text-decoration: none; color: var(--text); }
.sprachwahl a[aria-current="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(20, 14, 60, 0.16); }

/* ---------- Knöpfe und kleine Teile ---------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 0;
  background: linear-gradient(100deg, var(--knopf-von), var(--knopf-bis));
  color: #fff; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(115, 82, 224, 0.6);
  cursor: pointer;
  transition: transform 0.25s var(--weich), box-shadow 0.25s var(--weich), filter 0.25s var(--weich), background-color 0.25s var(--weich);
}
.knopf:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(115, 82, 224, 0.7); filter: brightness(1.05); }
.knopf:active { transform: translateY(0) scale(0.98); }
.knopf svg { width: 18px; height: 18px; flex: none; }

.knopf.leise {
  background: var(--flaeche); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--linie), var(--schatten);
}
.knopf.leise:hover { box-shadow: inset 0 0 0 1px var(--linie), var(--schatten-hoch); filter: none; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

.pille {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--akzent-getoent); color: var(--akzent);
  font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.pille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pille.ohne-punkt::before { content: none; }

/* ---------- Bühne oben ---------- */

.held { position: relative; isolation: isolate; padding-block: 56px 48px; text-align: center; }
.held::before {
  content: ""; position: absolute; inset: 0 0 -80px 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 60% at 14% 8%, var(--fleck-lila) 0, transparent 70%),
    radial-gradient(48% 54% at 90% 16%, var(--fleck-blau) 0, transparent 70%),
    radial-gradient(42% 46% at 58% 88%, var(--fleck-rosa) 0, transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.held .innen { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.held h1 { font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.1; }
.held .unterzeile { font-size: clamp(1.05rem, 3.6vw, 1.3rem); font-weight: 600; color: var(--text); }
.held .einleitung { max-width: 34em; color: var(--text-leise); font-size: 1.06rem; text-wrap: balance; }
.held .knoepfe { justify-content: center; margin-top: 10px; }
.held.klein { padding-block: 44px 28px; }
.held.klein h1 { font-size: clamp(2rem, 7vw, 3rem); }

.app-bild {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 2px 6px rgba(34, 24, 84, 0.12), 0 26px 50px -18px rgba(74, 52, 200, 0.55);
}
.held .name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; }
.held .name small { font-size: 0.42em; font-weight: 600; color: var(--text-leise); letter-spacing: 0.02em; }
.spruch {
  font-size: clamp(1.2rem, 4.6vw, 1.6rem); font-weight: 700; line-height: 1.35;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--knopf-von), var(--knopf-bis));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .spruch { background-image: linear-gradient(100deg, #b9a9ff, #8fb9ff); }
}

@media (min-width: 720px) {
  .held { padding-block: 88px 64px; }
  .held.klein { padding-block: 64px 36px; }
  .app-bild { width: 156px; height: 156px; border-radius: 36px; }
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: 36px; }
.abschnitt > .innen > h2 { font-size: clamp(1.45rem, 4.6vw, 1.9rem); margin-bottom: 8px; }
.abschnitt .vorspann { color: var(--text-leise); max-width: 40em; margin-bottom: 24px; }
.abschnitt > .innen > h2 + .kacheln,
.abschnitt > .innen > h2 + .karte,
.abschnitt > .innen > h2 + .zwei,
.abschnitt > .innen > h2 + .fragen { margin-top: 20px; }
.abschnitt:last-of-type { padding-bottom: 72px; }

@media (min-width: 720px) {
  .abschnitt { padding-block: 48px; }
  .abschnitt:last-of-type { padding-bottom: 96px; }
}

/* ---------- Kacheln (alle gleich groß) ---------- */

.kacheln { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 14px; }
@media (min-width: 600px) { .kacheln { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 960px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .kacheln.vier { grid-template-columns: repeat(4, 1fr); }
  .kacheln.zweier { grid-template-columns: repeat(2, 1fr); }
}

.kachel {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--rund);
  background: linear-gradient(140deg, var(--k1, var(--lila-1)), var(--k2, var(--lila-2)));
  color: var(--text);
  transition: transform 0.35s var(--weich), box-shadow 0.35s var(--weich);
}
.kachel h3 { font-size: 1.14rem; }
.kachel p { color: var(--text-leise); font-size: 0.97rem; text-wrap: balance; }
@media (prefers-color-scheme: light) { .kachel p { color: #4a4563; } }

.kachel .symbol {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px;
  border-radius: 14px; background: var(--symbol-grund); color: var(--kt, var(--lila-tief));
}
.kachel .symbol svg { width: 24px; height: 24px; }

.t-lila { --k1: var(--lila-1); --k2: var(--lila-2); --kt: var(--lila-tief); --ktx: var(--lila-text); }
.t-blau { --k1: var(--blau-1); --k2: var(--blau-2); --kt: var(--blau-tief); --ktx: var(--blau-text); }
.t-rosa { --k1: var(--rosa-1); --k2: var(--rosa-2); --kt: var(--rosa-tief); --ktx: var(--rosa-text); }
.t-minze { --k1: var(--minze-1); --k2: var(--minze-2); --kt: var(--minze-tief); --ktx: var(--minze-text); }
.t-pfirsich { --k1: var(--pfirsich-1); --k2: var(--pfirsich-2); --kt: var(--pfirsich-tief); --ktx: var(--pfirsich-text); }

a.kachel:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
a.kachel .weiter {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ktx, var(--akzent)); font-size: 0.93rem; font-weight: 600;
}
a.kachel .weiter svg { width: 16px; height: 16px; transition: transform 0.35s var(--weich); }
a.kachel:hover .weiter svg { transform: translateX(3px); }

/* ---------- Karten ---------- */

.karte {
  padding: 24px; border-radius: var(--rund);
  background: var(--flaeche); box-shadow: var(--schatten);
}
.karte h3 { font-size: 1.14rem; margin-bottom: 12px; }
.karte > p + p { margin-top: 10px; }
.karte .leise { color: var(--text-leise); }

.zwei { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .zwei { grid-template-columns: 1fr 1fr; gap: 20px; } }
.zwei > .karte { display: flex; flex-direction: column; }
.zwei > .karte .knoepfe { padding-top: 20px; }
.karte.kontakt { justify-content: center; background: linear-gradient(140deg, var(--lila-1), var(--lila-2)); box-shadow: none; }
@media (prefers-color-scheme: light) { .karte.kontakt .leise { color: #4a4563; } }

/* Hinweis mit Knopf (Hilfe) */
.hilfe-karte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.hilfe-karte h2 { font-size: 1.25rem; margin-bottom: 4px; }

/* App-Karte auf der Startseite */
.app-karte {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; justify-items: center; text-align: center;
  padding: 28px 24px; border-radius: 28px;
  background: linear-gradient(140deg, var(--lila-1), var(--blau-2));
}
.app-karte img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 20px 40px -16px rgba(74, 52, 200, 0.55); }
.app-karte h3 { font-size: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; }
.app-karte h3 small { font-size: 0.6em; font-weight: 600; color: var(--text-leise); }
.app-karte .spruch { font-size: 1.12rem; margin-top: 6px; }
.app-karte .text { color: var(--text-leise); margin-top: 10px; max-width: 34em; }
@media (prefers-color-scheme: light) { .app-karte .text, .app-karte h3 small { color: #4a4563; } }
.app-karte .knoepfe { margin-top: 18px; justify-content: center; }

@media (min-width: 720px) {
  .app-karte { grid-template-columns: auto 1fr; gap: 36px; padding: 40px 44px; text-align: left; justify-items: start; }
  .app-karte img { width: 148px; height: 148px; border-radius: 34px; }
  .app-karte h3, .app-karte .knoepfe { justify-content: flex-start; }
}

/* Angaben (Firmendaten) */
.angaben { display: grid; grid-template-columns: 1fr; gap: 14px; }
.angaben dt { color: var(--text-leise); font-size: 0.86rem; line-height: 1.4; }
.angaben dd { font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
.angaben dd.schmal { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; overflow-wrap: anywhere; }
@media (min-width: 480px) {
  .angaben > div { display: grid; grid-template-columns: 8.2em 1fr; gap: 12px; align-items: baseline; }
  html[lang="en"] .angaben > div { grid-template-columns: 13em 1fr; }
}

/* Punkte mit Symbol (KI-Hinweise) */
.punkte { display: grid; gap: 16px; }
.punkte li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.punkte svg { width: 24px; height: 24px; margin-top: 0.28em; color: var(--akzent); }
html[lang^="zh"] .punkte svg { margin-top: 0.36em; }
@media (min-width: 860px) { .punkte { grid-template-columns: 1fr 1fr; gap: 20px 40px; } }

/* ---------- Fragen und Antworten ---------- */

.fragen { display: grid; gap: 12px; }
.frage { border-radius: var(--rund-klein); background: var(--flaeche); box-shadow: var(--schatten); }
.frage h3 { font-size: 1rem; }
.frage button {
  display: grid; grid-template-columns: 1fr 24px; gap: 14px; align-items: center; width: 100%;
  padding: 18px 20px; border: 0; border-radius: var(--rund-klein); background: none; color: var(--text);
  font: inherit; font-weight: 600; line-height: 1.45; text-align: left; cursor: pointer;
}
.frage button svg { width: 24px; height: 24px; color: var(--text-leise); transition: transform 0.4s var(--weich), color 0.25s var(--weich); }
.frage.offen button svg { transform: rotate(180deg); color: var(--akzent); }
.antwort-innen { overflow: hidden; }
.antwort-innen p { padding: 0 20px 20px; color: var(--text-leise); }
.js .antwort { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--weich); }
.js .antwort-innen { visibility: hidden; transition: visibility 0s linear 0.4s; }
.js .frage.offen .antwort { grid-template-rows: 1fr; }
.js .frage.offen .antwort-innen { visibility: visible; transition-delay: 0s; }
html:not(.js) .frage button svg { display: none; }

/* ---------- Rechtstexte ---------- */

.recht-rahmen { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 0 56px; padding-block: 8px 72px; }
.inhaltsliste { display: none; }

.recht h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 14px; }
.recht h2 { font-size: 1.25rem; margin-top: 2.2em; margin-bottom: 0.2em; scroll-margin-top: 96px; }
.recht p { margin-top: 0.9em; }
.recht p.stand { margin-top: 0; color: var(--text-leise); font-size: 0.95rem; }
.recht ul { margin-top: 0.9em; display: grid; gap: 0.55em; }
.recht ul li { position: relative; padding-left: 1.3em; }
.recht ul li::before {
  content: ""; position: absolute; left: 0.25em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); opacity: 0.7;
}
html[lang^="zh"] .recht ul li::before { top: 0.8em; }
.recht a, .antwort-innen a[href^="mailto:"] { white-space: nowrap; }

.eintraege { margin-top: 1.4em; display: grid; gap: 12px; }
.eintrag { padding: 18px 20px; border-radius: var(--rund-klein); background: var(--flaeche); box-shadow: var(--schatten); }
.eintrag p { margin-top: 0.35em; color: var(--text-leise); font-size: 0.95rem; }
.eintrag p.eintrag-titel { margin-top: 0; color: var(--text); font-size: 1rem; font-weight: 600; }

.zurueck { display: inline-flex; align-items: center; gap: 6px; padding-block: 28px 20px; font-size: 0.95rem; font-weight: 600; }
.zurueck svg { width: 16px; height: 16px; transition: transform 0.35s var(--weich); }
.zurueck:hover { text-decoration: none; }
.zurueck:hover svg { transform: translateX(-3px); }

.weitere { margin-top: 56px; }
.weitere h2 { font-size: 1.1rem; margin-bottom: 14px; }
.weitere .kacheln { grid-template-columns: 1fr; }
@media (min-width: 600px) { .weitere .kacheln { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.weitere .kachel { padding: 18px; }
.weitere .kachel h3 { font-size: 1rem; }

@media (min-width: 1100px) {
  .recht-rahmen.mit-liste { grid-template-columns: 220px minmax(0, 720px); }
  .inhaltsliste { display: block; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; padding-top: 76px; }
  .inhaltsliste p { color: var(--text-leise); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 10px; padding-left: 12px; }
  .inhaltsliste a {
    display: block; padding: 6px 12px; border-radius: 10px; color: var(--text-leise); font-size: 0.9rem; line-height: 1.4;
    transition: background-color 0.25s var(--weich), color 0.25s var(--weich);
  }
  .inhaltsliste a:hover { text-decoration: none; color: var(--text); }
  .inhaltsliste a.aktiv { color: var(--akzent); background: var(--akzent-getoent); }
}

/* ---------- Fuß ---------- */

.fuss { margin-top: auto; background: var(--flaeche-leise); color: var(--text-leise); font-size: 0.92rem; line-height: 1.6; }
.fuss-innen { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 40px 24px; }
.fuss h2 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-leise); margin-bottom: 10px; }
.fuss .firma { color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.fuss a { color: var(--text); }
.fuss a:hover { color: var(--akzent); text-decoration: none; }
.fuss li + li { margin-top: 6px; }
.fuss-unten {
  display: flex; flex-wrap: wrap; gap: 4px 18px; padding-block: 18px 28px;
  border-top: 1px solid var(--linie); font-size: 0.85rem;
}
.fuss-unten a { color: var(--text-leise); }
@media (min-width: 720px) {
  .fuss-innen { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 56px 32px; }
}

/* ---------- Erscheinen beim Rollen ---------- */

.js [data-zeigen] { opacity: 0; transform: translateY(16px); }
.js [data-zeigen].sichtbar {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--weich), transform 0.7s var(--weich);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* nach dem Erscheinen gilt wieder die eigene, schnelle Bewegung der Kachel */
.js a.kachel[data-zeigen].fertig { transition: transform 0.35s var(--weich), box-shadow 0.35s var(--weich); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
  .js [data-zeigen] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .kopf, .fuss, .sprung, .inhaltsliste, .weitere, .zurueck { display: none; }
  .js [data-zeigen] { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Seite nicht gefunden / Sprachwahl ohne Skript ---------- */

.schlicht { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.schlicht h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: 12px; }
.schlicht p { color: var(--text-leise); }
.schlicht .knoepfe { justify-content: center; margin-top: 24px; }

/* Verweis auf der getönten Kontaktkarte: dunkler und unterstrichen, damit er gut lesbar bleibt */
.karte.kontakt a:not(.knopf) { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: light) { .karte.kontakt a:not(.knopf) { color: #5535c4; } }

/* ================= Landingpage: Rundgang mit dem Telefon ================= */

/* Am Handy steht das Telefon oben. Damit der letzte Text nicht unter ihm verschwindet, endet der Bereich, in dem es
   stehen bleibt, um die Höhe des Lesebereichs früher: Telefon und letzter Text rollen dann gemeinsam weg. */
.tour-rahmen {
  --buehne-h: 46svh; --lese-h: calc(100svh - var(--kopf-hoehe) - var(--buehne-h));
  /* Kein overflow (auch kein clip) an diesem Rahmen: Ein beschneidender Vorfahr des stehenden (sticky) Telefons lässt es
     in Safari am iPhone beim Ausrollen zittern (15.11.2026, gemessen bis 2,4 pt je Bild). Die 3D-Leinwand ragt deshalb
     nie über den Fensterrand hinaus, das regelt geraet.js. */
  position: relative; isolation: isolate; padding-bottom: var(--lese-h);
}
.tour { position: relative; display: flow-root; }
.tour-rahmen::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 130svh; max-height: 100%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 12% 6%, var(--fleck-lila) 0, transparent 70%),
    radial-gradient(50% 42% at 92% 12%, var(--fleck-blau) 0, transparent 70%),
    radial-gradient(44% 36% at 60% 70%, var(--fleck-rosa) 0, transparent 70%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

/* Bühne: bleibt beim Rollen stehen. Am Handy oben, am Desktop rechts. */
.buehne {
  position: sticky; top: var(--kopf-hoehe); z-index: 3;
  height: var(--buehne-h);
  display: grid; place-items: center;
  background: var(--grund);
}
.buehne::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; pointer-events: none;
  background: linear-gradient(var(--grund), transparent);
}
.buehne-licht { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.buehne-licht::before, .buehne-licht::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.9;
  animation: atmen 12s ease-in-out infinite alternate;
}
.buehne-licht::before { width: 62%; aspect-ratio: 1; left: 4%; top: 6%; background: var(--fleck-lila); }
.buehne-licht::after { width: 54%; aspect-ratio: 1; right: 2%; bottom: 4%; background: var(--fleck-blau); animation-delay: -6s; }
@keyframes atmen {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -5%, 0) scale(1.14); }
}

/* gezeichnetes Telefon: Rückfall ohne 3D und das Erste, was man sieht */
.geraet {
  position: relative; height: 88%; max-height: 660px; aspect-ratio: 718 / 1500;
  padding: 1.1%; border-radius: 16% / 7.7%;
  background: linear-gradient(145deg, #6a63a8, #2b2756 42%, #58519a 72%, #353068);
  box-shadow: 0 34px 60px -24px rgba(74, 52, 200, 0.5), 0 10px 22px -12px rgba(20, 14, 60, 0.35);
  transform: perspective(1400px) rotateY(-13deg) rotateX(3deg);
  transition: opacity 0.5s var(--weich) 0.15s;
}
.geraet-schirm { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 14.6% / 6.9%; background: #060609; }
.geraet img {
  position: absolute; inset: 1.1% 2.3%; width: 95.4%; height: 97.8%; object-fit: cover; border-radius: 12.4% / 5.6%;
  opacity: 0; transition: opacity 0.6s var(--weich);
}
.geraet img.an { opacity: 1; }
.geraet-schirm::after {
  content: ""; position: absolute; top: 2.9%; left: 50%; width: 28%; height: 4%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.buehne canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; touch-action: pan-y; pointer-events: none;
  transition: opacity 0.7s var(--weich);
}
.buehne.hat-3d canvas { opacity: 1; }
.buehne.hat-3d .geraet { opacity: 0; transition: opacity 0.3s var(--weich); }
/* Solange das 3D-Telefon lädt, bleibt die Bühne frei; kommt es nicht, erscheint das gezeichnete */
.will-3d .geraet { opacity: 0; }

/* Punkte: wo im Rundgang man ist */
.tour-punkte { position: absolute; left: 50%; bottom: 0; z-index: 2; display: flex; gap: 2px; transform: translateX(-50%); }
.tour-punkte button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.tour-punkte button::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--text-leise); opacity: 0.35;
  transition: width 0.4s var(--weich), height 0.4s var(--weich), opacity 0.4s var(--weich), background-color 0.4s var(--weich);
}
.tour-punkte button[aria-current="true"]::before { width: 18px; background: var(--akzent); opacity: 1; }
html:not(.js) .tour-punkte { display: none; }

/* Abschnitte des Rundgangs */
.schritte { margin-bottom: calc(-1 * var(--lese-h)); }
.schritt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--lese-h); padding: 30px var(--rand) 30px; text-align: center;
  transition: opacity 0.6s var(--weich), transform 0.6s var(--weich);
}
.js .schritt:not(.aktiv) { opacity: 0.22; transform: translateY(10px); }
.schritt h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.08; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 14px; }
.schritt h1 small { font-size: 0.4em; font-weight: 600; color: var(--text-leise); letter-spacing: 0.02em; }
.schritt h2 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); line-height: 1.15; }
.schritt .text { max-width: 30em; color: var(--text-leise); font-size: 1.04rem; }
.schritt .marke-zeile { display: inline-flex; align-items: center; gap: 10px; color: var(--akzent); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; }
.schritt .marke-zeile b { font-variant-numeric: tabular-nums; opacity: 0.55; font-weight: 700; }
.schritt .marke-zeile::after { content: ""; order: 1; width: 28px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.35; }
.schritt .marke-zeile span { order: 2; }
.schritt.auftakt { padding-top: 18px; gap: 11px; }
.schritt.auftakt .knoepfe { justify-content: center; }

.rollhinweis {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px;
  color: var(--text-leise); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
}
.rollhinweis svg { width: 20px; height: 20px; animation: wippen 1.8s var(--weich) infinite; }
@keyframes wippen { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(5px); opacity: 1; } }
html:not(.js) .rollhinweis { display: none; }

@media (min-width: 960px) {
  .tour {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px;
    max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand);
  }
  .buehne { grid-column: 2; grid-row: 1; align-self: start; height: calc(100svh - var(--kopf-hoehe)); max-height: 900px; background: none; }
  .buehne::after { content: none; }
  .buehne canvas { left: -22%; width: 122%; }   /* links in die Lücke zum Text; nach rechts verbreitert geraet.js, soweit Platz ist */
  .buehne-licht { overflow: visible; }
  .tour-rahmen { padding-bottom: 0; }
  .schritte { margin-bottom: 0; padding-bottom: 9svh; }
  .schritte { grid-column: 1; grid-row: 1; }
  .schritt { align-items: flex-start; text-align: left; min-height: 82svh; padding-inline: 0; gap: 18px; }
  .schritt.auftakt { min-height: min(calc(100svh - var(--kopf-hoehe)), 900px); padding-top: 0; }
  .schritt.auftakt .knoepfe { justify-content: flex-start; }
  .schritt h1 { justify-content: flex-start; }
  .schritt .text { font-size: 1.12rem; }
  .tour-punkte { left: auto; right: -6px; bottom: auto; top: 50%; flex-direction: column; transform: translateY(-50%); }
  .tour-punkte button[aria-current="true"]::before { width: 6px; height: 18px; }
  .rollhinweis { align-items: flex-start; flex-direction: row; gap: 8px; margin-top: 18px; }
}

/* drei kurze Zusagen nebeneinander */
.zusagen { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 14px; }
@media (min-width: 720px) { .zusagen { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Abschnitt mit Überschrift in der Mitte */
.abschnitt.mittig > .innen > h2, .abschnitt.mittig > .innen > .vorspann { text-align: center; margin-inline: auto; }
.abschnitt .vorspann { text-wrap: balance; }

/* Kacheln leuchten leicht, wenn man darüberfährt */
.kachel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 24px 44px -22px var(--kt, var(--akzent));
  transition: opacity 0.4s var(--weich);
}
@media (hover: hover) {
  .kachel:hover { transform: translateY(-3px); }
  .kachel:hover::after { opacity: 0.55; }
}
.kachel:active { transform: translateY(0) scale(0.99); }

@media (prefers-reduced-motion: reduce) {
  .js .schritt:not(.aktiv) { opacity: 1; transform: none; }
  .buehne-licht::before, .buehne-licht::after, .rollhinweis svg { animation: none; }
}

/* Firmenangaben unter einem einleitenden Satz */
.angaben.oben { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linie); }

/* Unterseiten mit schmaler Spalte: Überschriften mittig, passend zum mittigen Kopfbereich */
.innen.schmal > h2 { text-align: center; }
.schlicht img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 18px 34px -16px rgba(74, 52, 200, 0.55); }

/* Englisch: kurze Absätze in Karten ausgewogen umbrechen (kein „Co., Ltd.“ allein in der letzten Zeile) */
html[lang="en"] .karte p { text-wrap: balance; }

/* Rundgangstexte ausgewogen umbrechen (keine sehr kurze erste Zeile) */
.schritt .text { text-wrap: balance; }

/* kleine Handys (z. B. 375 × 667): erster Bildschirm kompakter, damit nichts unten herausragt */
@media (max-height: 760px) and (max-width: 959px) {
  .rollhinweis { display: none; }
  .schritt.auftakt { padding-top: 10px; padding-bottom: 18px; gap: 8px; }
  .schritt.auftakt h1 { font-size: 2.3rem; }
  .schritt.auftakt .spruch { font-size: 1.1rem; }
  .schritt.auftakt .text { font-size: 0.97rem; line-height: 1.55; }
  html[lang^="zh"] .schritt.auftakt .text { line-height: 1.65; }
}

/* Englisch, vier Kacheln nebeneinander: Platz für zweizeilige Titel, damit die Texte darunter auf einer Höhe beginnen */
@media (min-width: 960px) {
  html[lang="en"] .kacheln.vier .kachel h3 { min-height: 2.5em; }
}
