/* Jürgen Harrer – Platzhalter bis zum Start der Website.
   Gleiche Bildsprache wie das Cover der Startseite: Porträt randlos,
   ein großer Name, eine handschriftliche Notiz in Union-Gold. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/plex-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Platzhalter für Jürgens echte Handschrift */
@font-face {
  font-family: "Hand";
  src: url("fonts/hand.woff2") format("woff2");
  font-display: swap;
}

:root {
  --rhoendorf: #2d3c4b;
  --tuerkis: #52b7c1;
  --gold: #ffa600;
  --schwarz: #1b191d;
  --rot: #bf111b;
  --ink: var(--rhoendorf);
  --ink-soft: #66717c;
  --wall: #f3f2ef;

  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --hand: "Hand", "Bradley Hand", cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 64px);
}

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

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

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin: 0;
  hyphens: manual;
}

.bogen-mini {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}
.bogen-mini i {
  display: block;
  width: 4px;
  background: currentColor;
}
.bogen-mini i:nth-child(1) { height: 40%; }
.bogen-mini i:nth-child(2) { height: 68%; }
.bogen-mini i:nth-child(3) { height: 100%; border-top-right-radius: 4px 100%; }

/* --------------------------------------------------------------------------
   Bühne: eine Fläche, ein Bild, ein Satz
   Querformat: Jürgen links, Text rechts auf der hellen Wand.
   Hochformat: Jürgen oben, weiße Schrift unten über dem Sakko.
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage__photo {
  position: absolute;
  inset: 0;
  background: url("img/hero-portrait-breit.jpg") 0% 30% / cover no-repeat;
  animation: settle 2200ms var(--ease-out) both;
}

/* Lesbarkeits-Aufhellung zur Wand hin, kein Deko-Verlauf */
.stage__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(246, 245, 242, 0.95) 0%, rgba(246, 245, 242, 0.8) 30%, rgba(246, 245, 242, 0) 56%);
}

.stage__top,
.stage__body {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
}

.stage__top {
  padding-top: clamp(20px, 3svh, 32px);
  display: flex;
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 16px/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .bogen-mini i:nth-child(1) { color: var(--schwarz); }
.brand .bogen-mini i:nth-child(2) { color: var(--rot); }
.brand .bogen-mini i:nth-child(3) { color: var(--gold); }

.stage__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 48px clamp(48px, 8svh, 96px);
}

.stage__text {
  width: min(44%, 640px);
  margin-left: auto;
}

.note {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--hand);
  font-size: clamp(30px, min(2.8vw, 5svh), 46px);
  line-height: 1.05;
  color: #9e5c00;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}

.stage h1 {
  font-size: clamp(56px, min(9vw, 15svh), 168px);
  margin-left: -0.04em;
}

.stage__lede {
  margin: clamp(20px, 3svh, 36px) 0 0;
  max-width: 26ch;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.45;
  text-wrap: pretty;
}

.stage__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  margin-top: clamp(20px, 3svh, 32px);
  font: 600 17px/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: #237780;
  text-decoration: none;
  touch-action: manipulation;
}

.stage__mail::after {
  content: "→";
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}

.stage__mail:active {
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .stage__mail:hover::after {
    transform: translateX(4px);
  }
}

/* Fast quadratische und hohe Fenster: Text unten weiß auf dem Bild */
@media (max-aspect-ratio: 6/5) {
  .stage {
    color: #fff;
    background: var(--schwarz);
  }
  .stage__photo {
    background-position: 0% 18%;
  }
  .stage__photo::after {
    background:
      linear-gradient(to bottom, rgba(18, 21, 26, 0.35) 0%, rgba(18, 21, 26, 0) 18%),
      linear-gradient(to top, rgba(18, 21, 26, 0.9) 0%, rgba(18, 21, 26, 0.66) 36%, rgba(18, 21, 26, 0) 64%);
  }
  .stage__top {
    justify-content: flex-start;
  }
  .stage__body {
    align-items: flex-end;
    padding-block: 0 clamp(28px, 5svh, 48px);
  }
  .stage__text {
    width: auto;
    margin-left: 0;
  }
  .stage h1 {
    font-size: clamp(52px, min(15vw, 10svh), 132px);
  }
  .note {
    color: var(--gold);
  }
  .stage__mail {
    color: #8fd6de;
  }
}

/* Echte Hochformate (Handy, iPad hoch): Hochformat-Zuschnitt */
@media (max-aspect-ratio: 9/10) {
  .stage__photo {
    background-image: url("img/hero-portrait-hoch.jpg");
    background-position: 50% 14%;
  }
}

/* --------------------------------------------------------------------------
   Bewegung: einmal beim Laden, sonst nichts
   -------------------------------------------------------------------------- */

[data-in] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms var(--ease-out) forwards;
}
[data-in="1"] { animation-delay: 150ms; }
[data-in="2"] { animation-delay: 280ms; }
[data-in="3"] { animation-delay: 400ms; }

.note[data-in] {
  transform: rotate(-6deg) translateY(10px);
  animation: note-in 600ms var(--ease-out) 1100ms forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes note-in {
  to {
    opacity: 1;
    transform: rotate(-6deg);
  }
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-in] {
    animation: fade 300ms ease forwards;
    transform: none;
  }
  .note[data-in] {
    animation: fade 300ms ease forwards;
    transform: rotate(-6deg);
  }
  .stage__photo {
    animation: none;
  }
}
