/* MyTimeGlobe · Stil der Anmeldeseite. Marke: 24 Finance Time und My Finance Time (Tinte, Blau, Archivo, Inter). */

@font-face { font-family: 'Archivo'; src: url('/schrift/Archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/schrift/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --tinte: #06080B;
  --weiss: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --leise: rgba(255, 255, 255, 0.68);
  --zart: rgba(255, 255, 255, 0.58);
  --linie: rgba(255, 255, 255, 0.2);
  --blau: #1D74F2;
  --blau-text: #71A7F7;
  --fehler: #FFB4A8;
  --rand: 20px;
  --kurve: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--tinte); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; scrollbar-color: rgba(255, 255, 255, 0.25) var(--tinte); }
body { min-height: 100svh; background: var(--tinte); color: var(--text); font: 400 1rem/1.5 'Inter', system-ui, sans-serif; caret-color: var(--blau); }
::selection { background: var(--blau); color: var(--weiss); }
a { color: inherit; text-decoration-line: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-decoration-thickness: from-font; text-underline-offset: 0.18em; transition: text-decoration-color 150ms var(--kurve); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blau-text); outline-offset: 3px; border-radius: 4px; }
img, svg, canvas { display: block; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Wortmarke: Archivo 800, enge Laufweite, „My“ in Blau wie bei My Finance Time */
.wortmarke { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 100%; letter-spacing: -0.045em; line-height: 0.9; color: var(--weiss); text-decoration: none; white-space: nowrap; }
.wortmarke b { font-weight: 800; color: var(--blau); }

/* ---------- Titelkopf der Ausgabe */
.kopf { padding: 18px var(--rand) 0; }
.kopf .wortmarke { display: block; font-size: clamp(2.6rem, 12.4vw, 3.1rem); }
.ausgabe { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--linie); font-size: 0.8125rem; font-weight: 500; color: var(--leise); font-variant-numeric: tabular-nums; }

/* ---------- Die Erde: eine Bühne über die ganze Breite, darin die Kugel als Quadrat. Bild sofort, WebGL darüber */
.erde { --s: clamp(11.5rem, min(100vw - 1rem, 100svh - 32rem), 23rem); --einzug: max(var(--rand), 50% - var(--s) / 2 - 10rem); --oben: max(0px, 3.7rem - var(--s) * 0.12); position: relative; height: calc(var(--s) + var(--oben) + 2.6rem); margin: 12px 0 0.9rem; user-select: none; -webkit-user-select: none; }
.kugel { position: absolute; top: var(--oben); left: calc(50% - var(--s) / 2); width: var(--s); aspect-ratio: 1; touch-action: pan-y; }
.kugel .bild, .kugel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kugel canvas { opacity: 0; transition: opacity 600ms var(--kurve); cursor: grab; }
.erde.lebt canvas { opacity: 1; }
.erde.zieht canvas { cursor: grabbing; }
.linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.linien polyline { fill: none; stroke: rgba(255, 255, 255, 0.78); stroke-width: 1; transition: opacity 200ms var(--kurve); }
.linien circle { fill: var(--weiss); stroke: var(--blau); stroke-width: 2.5; transition: opacity 200ms var(--kurve); }
.meldung { position: absolute; width: max-content; max-width: min(10.5rem, 50% - var(--einzug) - 8px); pointer-events: none; transition: opacity 200ms var(--kurve); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.75); }
.meldung.links { left: var(--einzug); }
.meldung.rechts { right: var(--einzug); text-align: end; }
.meldung .wo { display: block; font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--leise); white-space: nowrap; }
.meldung.unten { max-width: min(14rem, 100% - 2 * var(--einzug)); }
@media (max-width: 379px) { .meldung .datum { display: none; } }
.meldung .was { display: block; margin-top: 2px; font-family: 'Archivo', sans-serif; font-weight: 650; font-stretch: 100%; font-size: 0.9375rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--weiss); text-wrap: balance; }
.hinten { opacity: 0; }

/* ---------- Text und Abo */
.abo { padding: 0 var(--rand) 28px; }
h1 { font-family: 'Archivo', sans-serif; font-weight: 690; font-stretch: 104%; font-size: clamp(1.9rem, 8.6vw, 2.25rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--weiss); text-wrap: balance; }
.lead { margin-top: 10px; max-width: 34rem; font-size: 0.9375rem; line-height: 1.45; color: var(--leise); text-wrap: pretty; }
.lead strong { font-weight: 500; color: var(--text); }

.formular { margin-top: 18px; max-width: 36rem; }
.formular label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--leise); }
.zeile { display: flex; gap: 8px; }
.zeile input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 26px; background: rgba(255, 255, 255, 0.06); color: var(--weiss); font: 500 16px/1 'Inter', sans-serif; transition: border-color 150ms var(--kurve), background-color 150ms var(--kurve); }
.zeile input::placeholder { color: rgba(255, 255, 255, 0.5); }
.zeile input:hover { border-color: rgba(255, 255, 255, 0.4); }
.zeile input:focus-visible { outline: 2px solid var(--blau-text); outline-offset: 2px; border-color: var(--blau-text); background: rgba(29, 116, 242, 0.12); }
.zeile input[aria-invalid='true'] { border-color: var(--fehler); }
.knopf { position: relative; flex: none; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: var(--weiss); color: var(--tinte); font: 650 16px/1 'Inter', sans-serif; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: scale 150ms var(--kurve), background-color 150ms var(--kurve); }
.knopf:hover { background: #E6EEFB; }
.knopf:not(:disabled):active { scale: 0.96; }
.knopf .zeichen { position: relative; width: 18px; height: 18px; }
.knopf .zeichen svg { position: absolute; inset: 0; transition: opacity 300ms var(--kurve), scale 300ms var(--kurve), filter 300ms var(--kurve); }
.knopf .haken { opacity: 0; scale: 0.25; filter: blur(4px); }
.knopf.fertig, .knopf.fertig:hover { background: var(--weiss); cursor: default; }
.knopf.fertig:active { scale: 1; }
.knopf.fertig .plus { opacity: 0; scale: 0.25; filter: blur(4px); }
.knopf.fertig .haken { opacity: 1; scale: 1; filter: blur(0); }
.fehlertext { margin-top: 8px; font-size: 0.8125rem; color: var(--fehler); }
.fehlertext:empty { margin: 0; }
.status { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--text); }
.status:empty { margin: 0; }
.status strong { color: var(--weiss); font-weight: 600; }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.einwilligung { margin-top: 12px; max-width: 36rem; font-size: 0.8125rem; line-height: 1.5; color: var(--zart); text-wrap: pretty; }

/* Niedrige Handy-Fenster (In-App-Browser): Abo bleibt im ersten Bildschirm */
@media (max-width: 599px) and (max-height: 720px) {
  h1 { font-size: 1.85rem; }
  .lead { margin-top: 8px; font-size: 0.875rem; }
  .formular { margin-top: 14px; }
}

/* ---------- Fuß */
.fuss { padding: 20px var(--rand) 32px; border-top: 1px solid var(--linie); margin: 24px var(--rand) 0; padding-inline: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--zart); }
.fuss nav { display: flex; gap: 18px; }
.fuss a { color: var(--leise); padding-block: 12px; margin-block: -12px; }
.fuss .rechts { margin-left: auto; }

/* ---------- Auftritt: einmal beim Laden. Kopf und Erde stehen sofort; die Linien ziehen sich zu ihren Orten, der Text folgt */
@media (prefers-reduced-motion: reduce) {
  .knopf .zeichen svg { transition-property: opacity; }
  .knopf .haken, .knopf.fertig .plus { scale: 1; filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .auftritt { animation: auftritt 300ms var(--kurve) both; animation-delay: calc(var(--i, 0) * 100ms + 150ms); }
  .kugel .bild { animation: setzen 1100ms var(--kurve) both; }
  .linien polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ziehen 560ms var(--kurve) forwards; animation-delay: calc(700ms + var(--n, 0) * 140ms); }
  .linien circle { animation: einblenden 240ms var(--kurve) both; animation-delay: calc(620ms + var(--n, 0) * 140ms); }
  .meldung { animation: auftritt 360ms var(--kurve) both; animation-delay: calc(1080ms + var(--n, 0) * 140ms); }
}
@keyframes auftritt { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }
@keyframes setzen { from { scale: 1.035; opacity: 0.6; } }
@keyframes ziehen { to { stroke-dashoffset: 0; } }
@keyframes einblenden { from { opacity: 0; } }

/* ---------- Breiter: Titelzeile über die ganze Breite, links Abo, rechts die Erde */
@media (min-width: 600px) and (max-width: 899px) { .erde { --s: clamp(15rem, min(100vw - 4rem, 100svh - 31rem), 27rem); } }

@media (min-width: 900px) {
  :root { --rand: max(40px, calc((100vw - 1240px) / 2)); }
  .kopf { padding-top: 32px; }
  .kopf .wortmarke { font-size: clamp(4.5rem, 8vw, 6.5rem); }
  .ausgabe { margin-top: 18px; padding-top: 12px; font-size: 0.875rem; }
  .seite { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; padding: 0 var(--rand); }
  .abo { grid-column: 1; grid-row: 1; padding: 56px 0 0; }
  .erde { grid-column: 2; grid-row: 1; --s: min((100cqw - 48px) * 7 / 12, 100svh - 16rem, 42rem); --einzug: 0px; margin: 8px 0 3rem; }
  .kugel { left: auto; right: 0; margin-right: calc(((100cqw - 48px) * 7 / 12 - var(--s)) / 2); }
  .meldung { max-width: 13rem; }
  .meldung .wo { font-size: 0.8125rem; }
  .meldung .was { font-size: 1.125rem; }
  h1 { font-size: clamp(2.5rem, 3.6vw, 3.4rem); }
  .lead { font-size: 1.0625rem; margin-top: 14px; }
  .formular { margin-top: 26px; max-width: 30rem; }
  .einwilligung { max-width: 30rem; }
}

/* ---------- Textseiten: Danke, Willkommen, Impressum, Datenschutz */
.text { padding: 28px var(--rand) 0; max-width: calc(42rem + 2 * var(--rand)); }
.text h1 { margin-bottom: 16px; }
.text h2 { margin: 30px 0 8px; font-family: 'Archivo', sans-serif; font-weight: 650; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--weiss); }
.text h3 { margin: 18px 0 6px; font-size: 1rem; font-weight: 600; color: var(--weiss); }
.text p, .text li { color: var(--leise); text-wrap: pretty; }
.text p + p { margin-top: 10px; }
.text ul { margin: 8px 0 0 1.2em; }
.text li + li { margin-top: 4px; }
.text .zurueck { display: inline-block; margin-top: 28px; }
.kopf.klein .wortmarke { font-size: 1.6rem; }
@media (min-width: 900px) { .text { padding-top: 48px; } .kopf.klein .wortmarke { font-size: 2rem; } }
