/* Startseite „Bald neu“ (Stand 25.11.2026): ruhige Kontakttafel über dem Kolosseum-Foto.
   Eine Spalte, mittig: oben Name, Handschrift, Schwerpunkte und Hinweis, darunter eine Tafel mit allen Kontaktwegen.
   Am Desktop stehen Telefon und LinkedIn in der Tafel nebeneinander, Instagram hat dort einen QR-Code, am Handy nicht.
   Acid-Gelb nur für den Mail-Knopf, den Statuspunkt, die Handschrift und die Symbole.
   Ladeanimation: Foto wird scharf, Buchstaben steigen auf, Handschrift schreibt, dann baut sich die Tafel auf.
   Gestartet wird erst, wenn Foto und Schrift geladen sind (start.js setzt .los). Ohne JavaScript oder bei
   „Bewegung reduzieren“ steht alles sofort da. */

.startseite {
  --weiss: #fafaf7;
  --hell: #f4f3ec;
  --leise: rgba(244, 243, 236, 0.7);
  --sehr-leise: rgba(244, 243, 236, 0.5);
  --tafel: rgba(16, 16, 18, 0.3);
  --kante: rgba(255, 255, 255, 0.09);
  --flaeche: rgba(255, 255, 255, 0.045);
  --flaeche-hover: rgba(255, 255, 255, 0.09);
  --tinte: #0b0b0c;
  --rund: 18px;
  --rund-klein: 12px;
  --federnd: cubic-bezier(0.2, 0.9, 0.25, 1);
  color: var(--hell);
  background: var(--tinte);
}
.startseite ::selection { background: var(--acid); color: var(--tinte); }
html:has(.startseite) { background: var(--tinte); scrollbar-color: rgba(244, 243, 236, 0.28) var(--tinte); }

/* Foto: in der Mitte dunkler, damit Name und Text ruhig stehen, zu den Rändern sieht man mehr vom Kolosseum */
.startseite .grund--foto::before {
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(8, 8, 10, 0.62), rgba(8, 8, 10, 0.42) 75%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.3), rgba(8, 8, 10, 0.1) 35%, rgba(8, 8, 10, 0.5));
}

/* ── Aufbau ── */
.start { min-height: 100vh; min-height: 100dvh; }
.buehne {
  flex: 1;
  width: min(100%, 40rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2rem, 5vh, 3rem);
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
}

/* ── Oben: wer und was gerade los ist (eine Spalte, mittig) ── */
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.start .logo { display: inline-flex; align-items: center; }   /* Handschrift mittig unter dem Namen */
.start .logo__name {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  color: var(--weiss);
  letter-spacing: -0.01em;
  /* sehr weicher, kleiner Schatten, damit sich der Name vom Foto abhebt. Als Filter auf dem ganzen Namen,
     weil die Masken der einzelnen Buchstaben einen normalen Textschatten abschneiden würden. */
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.28)) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.42));
}
.start .logo__unter {
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  margin-top: clamp(-0.55rem, -0.45vw, -0.15rem);   /* dicht unter dem Namen */
}

/* Ohne JavaScript schreibt sich die Handschrift nicht: dann steht sie als normale Schrift da */
html:not(.js) .startseite .ink__text { visibility: visible; }

/* Name: jeder Buchstabe in einer eigenen Maske, damit er aus einer Kante aufsteigen kann */
.start .zeichen { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.start .zeichen > span { display: inline-block; }
.start .zeichen--luft { width: 0.3em; }

/* Schwerpunkte: eine ruhige Zeile, getrennt durch kleine gelbe Quadrate */
.felder {
  list-style: none;
  margin: clamp(1.2rem, 2.6vh, 1.8rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  font-family: var(--display);
  font-size: clamp(0.7rem, 3.3vw, 0.98rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hell);
}
.felder li { display: inline-flex; align-items: center; }
.felder li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-inline: 0.85rem;
  background: var(--acid);
  border-radius: 1px;
  translate: 0 -0.06em;
}

/* Hinweis mit Status */
.lage {
  margin-top: clamp(1.4rem, 3.4vh, 2.2rem);
  padding-top: clamp(1.2rem, 2.8vh, 1.7rem);
  border-top: 1px solid rgba(244, 243, 236, 0.16);
  width: min(100%, 30rem);
}
.lage__status {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hell);
}
.lage__punkt { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--acid); }
.lage__punkt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--acid);
  opacity: 0;
}
.lage__text { margin: 0; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.5; color: var(--weiss); }
.lage__text .zeile { display: block; }
.lage__text .zeile--leise { color: var(--leise); }

/* ── Darunter: Kontakttafel ── */
.kontakt {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(0.9rem, 1.4vw, 1.15rem);
  background: var(--tafel);
  border: 1px solid var(--kante);
  border-radius: var(--rund);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
}

/* Mail: großer gelber Knopf, rechts daneben Kopieren */
.mail {
  display: flex;
  align-items: stretch;
  min-height: 4.25rem;
  border-radius: var(--rund-klein);
  background: var(--acid);
  color: var(--tinte);
  overflow: hidden;
}
.mail__link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.mail__icon { width: 1.5rem; height: 1.5rem; flex: none; }
.mail__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mail__titel { font-family: var(--display); font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; }
.mail__adresse { font-size: 0.95rem; overflow-wrap: anywhere; opacity: 0.78; }
.mail__kopie {
  display: none;   /* nur mit JavaScript */
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1rem;
  border: 0;
  border-left: 1px solid rgba(11, 11, 12, 0.16);
  background: rgba(11, 11, 12, 0.06);
  color: inherit;
  font: 600 0.78rem/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.js .mail__kopie { display: inline-flex; }
.mail__kopie-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.mail__kopie-icon--ok { display: none; }
.mail__kopie.kopiert .mail__kopie-icon--kopie { display: none; }
.mail__kopie.kopiert .mail__kopie-icon--ok { display: block; animation: th-haken 0.35s var(--federnd); }
@keyframes th-haken { from { scale: 0.4; opacity: 0; } to { scale: 1; opacity: 1; } }
.mail :focus-visible { outline: 2px solid var(--tinte); outline-offset: -4px; border-radius: 9px; }

/* Telefon und LinkedIn: volle Breite, ruhig */
.weg {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--rund-klein);
  background: var(--flaeche);
  border: 1px solid var(--kante);
  text-decoration: none;
  color: var(--hell);
  transition: background 0.2s, border-color 0.2s;
}
.weg__icon { width: 1.25rem; height: 1.25rem; flex: none; color: var(--acid); }
.weg__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.weg__titel { font-family: var(--display); font-size: 0.98rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--weiss); }
.weg__wert { font-size: 0.9rem; color: var(--leise); }
.weg__pfeil { width: 1.1rem; height: 1.1rem; flex: none; color: var(--sehr-leise); transition: translate 0.25s var(--federnd), color 0.2s; }

/* Instagram: wie die anderen Wege, am Desktop mit QR-Code rechts statt Pfeil */
.weg--ig { padding-block: 0.85rem; }
.weg__qr { width: 88px; height: auto; flex: none; display: block; border-radius: 8px; }
.weg--ig .weg__pfeil { display: none; }

/* Bewegung beim Zeigen und Drücken */
@media (hover: hover) and (pointer: fine) {
  .mail__link:hover, .mail__kopie:hover { background: rgba(11, 11, 12, 0.1); }
  .weg:hover { background: var(--flaeche-hover); border-color: rgba(239, 255, 42, 0.35); }
  .weg:hover .weg__pfeil { color: var(--acid); translate: 3px 0; }
  .weg[href^="https"]:hover .weg__pfeil { translate: 2px -2px; }
}
.mail__link:active, .mail__kopie:active, .weg:active { scale: 0.985; }
.mail__link, .mail__kopie, .weg { transition-property: background, border-color, scale; transition-duration: 0.2s; }

/* Fuß */
.start .fuss { color: var(--sehr-leise); }

/* ── Breite Fenster: Tafel als Raster, Telefon und LinkedIn nebeneinander, damit alles auf einen Blick passt ── */
@media (min-width: 821px) {
  .kontakt { display: grid; grid-template-columns: 1fr 1fr; }
  .mail, .weg--ig { grid-column: 1 / -1; }
}
.start .fuss a { padding-block: 0.4rem; }

/* ── Handy: Tafel einspaltig, Instagram ohne QR-Code (auf dem Handy selbst nicht scanbar), mit Pfeil ── */
@media (max-width: 820px) {
  .startseite .grund--foto::before {
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.55), rgba(8, 8, 10, 0.7) 40%, rgba(8, 8, 10, 0.78));
  }
  .buehne { width: min(100%, 30rem); padding-block: clamp(1.5rem, 6vh, 3rem) 1.5rem; }
  .start .logo__name { font-size: clamp(2.6rem, 13vw, 4rem); }
  .start .logo__unter { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .felder { letter-spacing: 0.05em; }
  .felder li + li::before { margin-inline: clamp(0.4rem, 2vw, 0.6rem); width: 4px; height: 4px; }
  .lage { width: 100%; }
  .lage__text { font-size: 1.02rem; }
  .weg__qr { display: none; }
  .weg--ig { padding-block: 0.7rem; }
  .weg--ig .weg__pfeil { display: block; }
}
@media (max-width: 400px) {
  .kontakt { padding: 0.7rem; }
  .mail__kopie { padding: 0 0.85rem; }
  .mail__kopie-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mail__link { padding-inline: 0.85rem; gap: 0.7rem; }
}

/* ── Ladeanimation ── */
@media (prefers-reduced-motion: no-preference) {
  /* Statuspunkt pulsiert ruhig weiter (läuft auch ohne .los, ist klein und unaufdringlich) */
  .lage__punkt::after { animation: th-puls 2.4s ease-out infinite; }
  @keyframes th-puls {
    from { transform: scale(1); opacity: 0.75; }
    to { transform: scale(2.8); opacity: 0; }
  }

  /* wartet, bis start.js .los setzt */
  .js .grund__foto,
  .js .start .zeichen > span,
  .js .start .felder li,
  .js .start .lage,
  .js .start .lage__status,
  .js .start .lage__text .zeile,
  .js .start .kontakt,
  .js .start .kontakt > *,
  .js .start .weg__qr,
  .js .start .fuss { animation-play-state: paused; }
  .los .grund__foto,
  .los .start .zeichen > span,
  .los .start .felder li,
  .los .start .lage,
  .los .start .lage__status,
  .los .start .lage__text .zeile,
  .los .start .kontakt,
  .los .start .kontakt > *,
  .los .start .weg__qr,
  .los .start .fuss { animation-play-state: running; }

  /* 1 · Foto: taucht unscharf und dunkel auf, zoomt zurück und wird scharf, danach atmet es langsam weiter */
  .js .grund__foto {
    animation:
      th-foto-rein 2.8s cubic-bezier(0.16, 0.84, 0.24, 1) backwards,
      th-foto-atmen 22s ease-in-out 2.8s infinite alternate;
    scale: 1.05;
  }
  @keyframes th-foto-rein {
    from { scale: 1.2; filter: blur(18px) brightness(0.3); opacity: 0; }
    35% { opacity: 1; }
    to { scale: 1.05; filter: blur(0) brightness(1); opacity: 1; }
  }
  @keyframes th-foto-atmen {
    from { scale: 1.05; }
    to { scale: 1.09; }
  }

  /* 2 · Name: Buchstaben steigen nacheinander aus der Kante auf, leicht gekippt */
  .js .start .zeichen > span { animation: th-zeichen 0.95s var(--federnd) backwards; }
  .start .zeichen:nth-child(1) > span { animation-delay: 0.50s; }
  .start .zeichen:nth-child(2) > span { animation-delay: 0.56s; }
  .start .zeichen:nth-child(3) > span { animation-delay: 0.62s; }
  .start .zeichen:nth-child(4) > span { animation-delay: 0.68s; }
  .start .zeichen:nth-child(6) > span { animation-delay: 0.78s; }
  .start .zeichen:nth-child(7) > span { animation-delay: 0.84s; }
  .start .zeichen:nth-child(8) > span { animation-delay: 0.90s; }
  .start .zeichen:nth-child(9) > span { animation-delay: 0.96s; }
  .start .zeichen:nth-child(10) > span { animation-delay: 1.02s; }
  .start .zeichen:nth-child(11) > span { animation-delay: 1.08s; }
  .start .zeichen:nth-child(12) > span { animation-delay: 1.14s; }
  @keyframes th-zeichen {
    from { transform: translateY(112%) rotate(9deg); opacity: 0; }
    40% { opacity: 1; }
    to { transform: none; opacity: 1; }
  }

  /* 3 · Handschrift unter dem Namen schreibt sich (start.js, nach 1,3 s) */

  /* 4 · Schwerpunkte gleiten einzeln herein */
  .js .start .felder li { animation: th-gleiten 0.7s var(--federnd) backwards; }
  .start .felder li:nth-child(1) { animation-delay: 1.60s; }
  .start .felder li:nth-child(2) { animation-delay: 1.68s; }
  .start .felder li:nth-child(3) { animation-delay: 1.76s; }
  .start .felder li:nth-child(4) { animation-delay: 1.84s; }
  @keyframes th-gleiten {
    from { transform: translateX(-18px); opacity: 0; filter: blur(4px); }
    to { transform: none; opacity: 1; filter: none; }
  }

  /* 5 · Trennlinie zieht sich auf, dann Status und Hinweis zeilenweise aus der Unschärfe */
  .js .start .lage { animation: th-linie 0.9s var(--federnd) 1.9s backwards; }
  @keyframes th-linie { from { border-top-color: transparent; } to { border-top-color: rgba(244, 243, 236, 0.16); } }
  .js .start .lage__status { animation: th-schaerfe 0.8s ease-out 2.0s backwards; }
  .js .start .lage__text .zeile { animation: th-schaerfe 0.9s ease-out backwards; }
  .start .lage__text .zeile:nth-child(1) { animation-delay: 2.15s; }
  .start .lage__text .zeile:nth-child(2) { animation-delay: 2.3s; }
  @keyframes th-schaerfe {
    from { transform: translateY(10px); opacity: 0; filter: blur(8px); }
    to { transform: none; opacity: 1; filter: none; }
  }

  /* 6 · Tafel taucht auf, ihre Teile federn nacheinander hoch */
  .js .start .kontakt { animation: th-tafel 1s var(--federnd) 2.25s backwards; }
  @keyframes th-tafel {
    from { transform: translateY(26px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .js .start .kontakt > * { animation: th-federn 0.8s var(--federnd) backwards; }
  .start .kontakt > :nth-child(1) { animation-delay: 2.45s; }
  .start .kontakt > :nth-child(2) { animation-delay: 2.57s; }
  .start .kontakt > :nth-child(3) { animation-delay: 2.69s; }
  .start .kontakt > :nth-child(4) { animation-delay: 2.81s; }
  .start .kontakt > :nth-child(5) { animation-delay: 2.81s; }
  @keyframes th-federn {
    from { transform: translateY(18px) scale(0.96); opacity: 0; }
    60% { opacity: 1; }
    to { transform: none; opacity: 1; }
  }

  /* 7 · QR-Code klappt herein */
  .js .start .weg__qr {
    transform-origin: 100% 50%;
    animation: th-klappen 0.95s var(--federnd) 3.0s backwards;
  }
  @keyframes th-klappen {
    from { transform: perspective(600px) rotateY(70deg); opacity: 0; }
    30% { opacity: 1; }
    to { transform: perspective(600px) rotateY(0); opacity: 1; }
  }

  /* 8 · Impressum und Datenschutz zuletzt */
  .js .start .fuss { animation: th-einblenden 1s ease-out 4s backwards; }
  @keyframes th-einblenden { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .mail__link, .mail__kopie, .weg, .weg__pfeil { transition: none; }
}

/* Wölbung am Mauszeiger (start.js, WebGL, derzeit aus): Zeichenfläche liegt deckungsgleich über dem Foto */
.grund__woelbung { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; }
.woelbung .grund__woelbung { opacity: 1; }
