/* henkel.bio – gemeinsames Stylesheet
   Idee: Namen als riesige Schilder. Jede Person hat EINE eigene Farbe,
   sonst nur Schwarz und Weiß. Keine Schatten, keine Verläufe, keine Radien. */

:root {
  --ink: #111;
  --paper: #fff;
  --grey: #6b6b6b;
  --line: #111;
  --accent: #111;

  /* Farben pro Person – hier ändern */
  --kilian: #ffd400;
  --mila: #2f4bff;

  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif-condensed, sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- Kleinkram ---------- */

.mono {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .02em;
}

/* Platzhalter sollen auffallen, damit man sie nicht vergisst */
.ph {
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(0,0,0,.07) 6px 12px);
  outline: 1px dashed currentColor;
  outline-offset: 1px;
}
.ph::before {
  content: "Platzhalter: ";
  font-family: var(--mono);
  font-size: .75em;
  opacity: .7;
}

/* Foto-Platzhalter: schlicht, damit ein echtes Bild ihn 1:1 ersetzen kann */
.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: #e9e9e9;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) 50%, transparent calc(50% + 1px)),
    #ececec;
}
.photo--empty span {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: .3rem .6rem;
  font-family: var(--mono);
  font-size: .75rem;
}

/* ---------- Kopfzeile ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.5rem;
  padding: 1rem 16px;
  border-bottom: 2px solid var(--line);
  font-family: var(--mono);
  font-size: .85rem;
}
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top .home { font-weight: 700; margin-right: auto; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.top nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent, var(--ink));
  padding: 0 .35rem;
}

/* ---------- Hauptseite ---------- */

.intro {
  padding: 2.5rem 16px 1.5rem;
  max-width: 46rem;
}
.intro h1 {
  font: 400 clamp(3rem, 14vw, 9rem)/.85 var(--display);
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.intro p { margin: 0; max-width: 34rem; }

.names {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.names li { border-bottom: 2px solid var(--line); }

.name-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem 16px;
  text-decoration: none;
  color: var(--ink);
}
.name-row .big {
  font: 400 clamp(4rem, 22vw, 15rem)/.8 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  display: flex;
  align-items: flex-end;
  gap: .15em;
}
.name-row .big::after {
  content: "\2192";
  font-family: var(--text);
  font-size: .35em;
  line-height: 1;
  padding-bottom: .1em;
  transition: transform .15s;
}
.name-row .meta { display: grid; gap: .5rem; max-width: 30rem; }
.name-row .meta p { margin: 0; }
.name-row .photo { width: 9rem; aspect-ratio: 1; }

.name-row:hover, .name-row:focus-visible { background: var(--c); color: var(--on-c, var(--ink)); }
.name-row:hover .big::after { transform: translateX(.2em); }
.name-row:focus-visible { outline-offset: -6px; }

@media (min-width: 760px) {
  .name-row {
    grid-template-columns: 9rem 1fr minmax(14rem, 22rem);
    align-items: end;
    gap: 2rem;
  }
  .name-row .meta { padding-bottom: .4rem; }
}

/* Chronik */
.chronik { padding: 3rem 16px 2rem; }
.chronik h2, .section-title {
  font: 400 clamp(2rem, 7vw, 3.5rem)/1 var(--display);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}
.chronik ol { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.chronik li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-top: 1px solid var(--ink);
}
.chronik li:last-child { border-bottom: 1px solid var(--ink); }
.chronik time { font-family: var(--mono); font-weight: 700; }
.chronik .add { margin-top: 1rem; color: var(--grey); }

.foot {
  padding: 2rem 16px 6rem;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--grey);
}

/* ---------- Profilseiten ---------- */

.theme-kilian { --accent: var(--kilian); --on-accent: #111; }
.theme-mila   { --accent: var(--mila);   --on-accent: #fff; }

/* Kilian: schwarz, laut, Gelb als Signal */
.theme-kilian {
  --ink: #f4f4f0;
  --paper: #0d0d0d;
  --line: #f4f4f0;
  --grey: #9a9a9a;
}
.theme-kilian .photo { background: #222; }
.theme-kilian .photo--empty { background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) 50%, transparent calc(50% + 1px)), #1c1c1c; }
.theme-kilian .ph { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255,255,255,.1) 6px 12px); }

.profile-head {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 16px 2rem;
  border-bottom: 2px solid var(--line);
}
.profile-head h1 {
  margin: 0;
  font: 400 clamp(5rem, 30vw, 20rem)/.78 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.profile-head .photo {
  width: min(100%, 22rem);
  transform: rotate(-1.5deg);
  border-width: 3px;
}
.profile-head .lead { margin: 0; max-width: 32rem; font-size: 1.15rem; }

@media (min-width: 860px) {
  .profile-head {
    grid-template-columns: 1fr 20rem;
    grid-template-areas: "name photo" "lead photo";
    align-items: end;
    column-gap: 3rem;
  }
  .profile-head h1 { grid-area: name; }
  .profile-head .lead { grid-area: lead; }
  .profile-head .photo { grid-area: photo; align-self: start; margin-top: .5rem; }
}

/* Inhalt als Zeilen: Etikett links, Text rechts */
.rows { margin: 0; padding: 0 16px; }
.row {
  display: grid;
  gap: .4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.row > h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
}
.row > div > :first-child { margin-top: 0; }
.row > div > :last-child { margin-bottom: 0; }
.row ul { margin: 0; padding-left: 1.1rem; }
.row li + li { margin-top: .25rem; }

@media (min-width: 760px) {
  .row { grid-template-columns: 12rem minmax(0, 40rem); gap: 2rem; }
  .row > h2 { padding-top: .25rem; }
}

.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { margin: 0 !important; border: 2px solid var(--ink); padding: .1rem .55rem; font-weight: 700; }

blockquote.quote {
  margin: 0;
  font: 400 clamp(1.8rem, 6vw, 3rem)/1.05 var(--display);
  text-transform: uppercase;
}
blockquote.quote footer { font: .85rem/1.4 var(--mono); text-transform: none; margin-top: .6rem; color: var(--grey); }

.links { list-style: none; padding: 0 !important; display: grid; gap: .3rem; }
.links a { font-weight: 700; text-underline-offset: 3px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .75rem;
}
.gallery .photo { aspect-ratio: 1; }
.gallery .photo:nth-child(2n) { transform: rotate(1deg); }
.gallery .photo:nth-child(3n) { transform: rotate(-1.2deg); }

/* ---------- Musik-Leiste (nur Kilian) ---------- */

.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 16px calc(.55rem + env(safe-area-inset-bottom));
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: .8rem;
  z-index: 10;
}
.player button {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font: 700 1rem/1 var(--text);
  cursor: pointer;
}
.player button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.player .track { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .track b { text-transform: uppercase; }
.player input[type="range"] { width: 6rem; accent-color: #111; }
.player .hint { opacity: .75; }
@media (max-width: 480px) { .player input[type="range"] { display: none; } }

.eq { display: inline-flex; gap: 2px; height: .9rem; align-items: flex-end; margin-right: .4rem; vertical-align: -1px; }
.eq i { width: 3px; background: currentColor; height: 30%; }
.playing .eq i { animation: eq .8s infinite alternate ease-in-out; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.playing .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { to { height: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
