/* Landing Page unter /: Elektroblau, Text links, Profil einer römischen Büste (The Met, CC0) als Halbton rechts, darüber
   die Linien der Profilanalyse und eine Scanlinie. Logo-Auftakt. Alles auf einem Bildschirm, ohne Scrollen.
   Schrift: San Francisco als Systemschrift (Apple), sonst Inter. Entscheidungen: marke/richtungen/README.md. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root { --blau: #003BD3; --weiss: #FFFFFF; --zweit: #D6DDFF; --linie: #9AA7FF; --rand: clamp(20px, 5vw, 64px);
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { position: relative; margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  overflow-x: hidden; overflow-x: clip; background: var(--blau); color: var(--weiss); font: 400 16px/1.45 var(--sf);
  -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 5; pointer-events: none; background: url("/start/korn.svg");
  opacity: 0.09; mix-blend-mode: multiply; }
a { color: inherit; }

/* Logo-Auftakt: das Logo dreht sich in die Mitte, dann gibt der Vorhang die Seite frei. Bei jedem Aufruf der Startseite,
   auch nach „Zurück“ (halbton.js startet ihn dann neu). */
.auftakt { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; pointer-events: none;
  background: var(--blau); animation: auftakt-weg 1.1s 1.9s ease forwards; }
.auftakt img { width: 108px; height: 108px; animation: auftakt-logo 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes auftakt-logo { 0% { opacity: 0; transform: rotate(-150deg) scale(0.55); }
  55% { opacity: 1; transform: rotate(0deg) scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes auftakt-weg { to { opacity: 0; visibility: hidden; } }

.kopf { position: sticky; top: 0; z-index: 4; background: var(--blau); display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--rand); }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; }
.marke img { width: 28px; height: 28px; }

/* Bild rechts, Gesicht schaut zum Text. Höchstens 44 % der Breite, damit es auf mittleren Fenstern (760 bis 1300 px) nie in
   den Text läuft; senkrecht in der Mitte. Die Breite folgt der Höhe über das Seitenverhältnis. */
.bild { position: absolute; z-index: 1; top: 0; bottom: 0; margin: auto 0; right: max(0px, calc(50vw - 760px));
  height: min(100%, 1080px, 44vw * 1136 / 900); aspect-ratio: 900 / 1136; }
.flaeche { position: absolute; inset: 0; }
.bild img, .bild canvas, .bild svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Das Foto ist nur die Vorlage für den Halbton und wird nie angezeigt (Gesa, 28.10.). Es lädt trotzdem. */
.bild img { visibility: hidden; }
.bild canvas { opacity: 0; transition: opacity 0.6s ease; }
.bild canvas.an { opacity: 1; }
.messung { fill: none; stroke: var(--linie); stroke-width: 1.6; overflow: visible; }
.messung line { stroke-dasharray: 800; stroke-dashoffset: 0; animation: zeichnen 1.6s 2.6s cubic-bezier(0.6, 0, 0.2, 1) both; }
.messung .l2 { animation-delay: 3s; }
.messung circle { fill: var(--blau); stroke: var(--weiss); stroke-width: 2; animation: da 0.5s 3.9s ease both; }
.messung text { fill: var(--zweit); stroke: var(--blau); stroke-width: 7px; paint-order: stroke; font: 500 22px var(--sf);
  letter-spacing: 0.04em; transition: opacity 0.5s ease; }
.scant .messung text:not(.an) { opacity: 0; }
/* Scanlinie: senkrechter Lichtstreifen, die Position setzt halbton.js */
.scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transform: translateX(-10%);
  transition: opacity 0.4s ease; }
.scan::before { content: ""; position: absolute; top: 4%; bottom: 18%; left: 0; width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.9) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(150, 175, 255, 0.55); }

/* Statement und Text */
.held { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 2svh var(--rand) 48px; max-width: min(58rem, 56vw); container-type: inline-size; }
/* Der Slogan richtet sich nach der Breite der Textspalte (cqi), „Kieferorthopädie“ passt so immer in eine Zeile, und
   nach der Höhe des Fensters, damit niedrige Fenster nicht überlaufen. */
.aussage { margin: 0; font-weight: 600; font-size: clamp(2.2rem, min(10.5cqi, 10svh), 6.4rem); line-height: 1;
  letter-spacing: -0.045em; text-wrap: balance; }
.unter { max-width: 31em; margin: 28px 0 0; color: var(--zweit); font-size: clamp(17px, 0.9rem + 0.45vw, 21px);
  line-height: 1.5; letter-spacing: -0.005em; text-wrap: pretty; }
.unter + .unter { margin-top: 14px; }
/* Einziger Knopf der Startseite, unter dem Text: zu den Insights. Anmelden geht dort über die Karte, das Konto über den Fuß. */
.los { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.los a { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--weiss); color: var(--blau);
  font-weight: 600; font-size: 17px; text-decoration: none; }
.los a:hover { background: var(--zweit); }

.fuss { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 18px var(--rand) max(18px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--zweit); }
.fuss span { margin-left: 12px; }
:focus-visible { outline: 2px solid var(--weiss); outline-offset: 3px; }

.aussage { animation: hoch 1.1s 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.unter { animation: hoch 1.1s 2.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.los { animation: hoch 1.1s 2.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes hoch { from { opacity: 0; transform: translateY(18px); } }
@keyframes da { from { opacity: 0; } }
@keyframes zeichnen { from { stroke-dashoffset: 800; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .auftakt, .scan { display: none; }
}

/* Handy: Kopfzeile, Bild, Text, Fuß untereinander. Das Bild füllt den Platz, der übrig bleibt, und behält sein
   Seitenverhältnis (innere Fläche). Sein ausgeblendeter unterer Teil liegt hinter dem Slogan. */
@media (max-width: 760px) {
  .bild { position: relative; top: auto; bottom: auto; right: auto; flex: 1 1 0; min-height: 72px; height: auto; max-height: none;
    aspect-ratio: auto; margin: 4px 0 -56px; }
  .flaeche { left: auto; right: 0; width: auto; height: 100%; aspect-ratio: 900 / 1136; }
  .bild canvas, .bild img, .bild svg { -webkit-mask: linear-gradient(#000 60%, transparent 90%); mask: linear-gradient(#000 60%, transparent 90%); }
  .messung { stroke-width: 2.4; }
  .messung text { font-size: 30px; }
  .held { flex: none; max-width: none; padding: 0 var(--rand) 20px; }
  .aussage { font-size: clamp(2.2rem, 1.2rem + 4vw, 2.8rem); }
  .unter { margin-top: 14px; font-size: 15.5px; line-height: 1.45; }
  .unter + .unter { margin-top: 10px; }
  .fuss { padding-top: 10px; font-size: 12px; }
  .fuss span { display: none; }
  .fuss a { display: inline-block; padding: 6px 0; }
}
/* Niedrige Handys, Chrome auf dem iPhone und der Browser in WhatsApp: Schrift kleiner, damit das Bild Platz behält */
@media (max-width: 760px) and (max-height: 720px) {
  .aussage { font-size: 2rem; }
  .unter { margin-top: 10px; font-size: 14px; }
}
/* Sehr niedrige Fenster (Handy quer): kein Bild, der Text beginnt direkt unter dem Kopf */
@media (max-width: 760px) and (max-height: 560px), (max-height: 440px) {
  .bild { display: none; }
  .held { padding-top: 12px; }
}
