/* =========================================================================
   Animalmotion – Stylesheet
   -------------------------------------------------------------------------
   1. Palette (Adobe Color „Mein Farbschema 4“)
   2. Farben und Formen – alle zentral als Variablen, hier änderbar
   3. Layout und Bausteine (für alle Varianten gleich)
   4. Einblend-Animationen beim Scrollen
   ========================================================================= */

/* ---------- 1. Palette ---------- */
:root {
  --mint: #B8D0C1;
  --lavender: #7779A1;
  --mustard: #E5BB4C;
  --red: #CA4551;
  --berry: #810940;

  --bg: #ffffff;
  --surface: #ffffff;
  --wrap: 1180px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 26px rgba(0,0,0,.07);
  color-scheme: light;
}

/* ---------- 2. Farben und Formen ---------- */
:root {
  --heading: #262022;         /* Überschriften – fast schwarz, leicht warm */
  --ink: #342d2f;             /* Fließtext */
  --muted: #6b6365;           /* Nebentext */
  --eyebrow: #868a8f;         /* Mini-Überschriften wie „Freelance 2D Artist · Hamburg“ – helles, leicht kühles Grau */
  --soft: #f4f8f5;            /* leichtes Mint hinter „Worauf ich spezialisiert bin“ */
  --soft-yellow: #fbf5e4;     /* zartes Gelb ab „Lust auf ein gemeinsames Projekt?“ */
  --line: #ebe6e8;
  --btn-line: #dcd5d8;        /* feine Linie um alle Knöpfe */
  --btn-line-hover: #a39a9d;
  --radius: 16px;
  --btn-radius: 10px;

  --accent: #CA4551;          /* Rot: hervorgehobene Wörter, Links, Play-Symbole */
  --hl: var(--mustard);       /* Strich unter „2D-Animation“ */
  --move-1: var(--mustard);   /* Linie über „Was ich bewege“ */
  --move-2: var(--mint);      /* Linie über „Wen ich bewege“ */
  --dot-2: var(--mint);       /* Punkt bei „Moho Featured Artist“ */

  --accent-2: #a39a9d;
  --em: var(--accent);
  --dot-1: var(--mustard);    /* Punkt bei „Deutscher Kurzfilmpreis“ (wie der Strich unter „2D-Animation“) */
  --play: var(--accent);
  --grad: linear-gradient(135deg, #ece7e9, #d8d0d3);
  --chip-on: var(--heading);
  --card-border: 1px solid var(--line);
  --card-hover-shadow: 0 14px 32px rgba(38,32,34,.10);
  --card-hover-move: translateY(-4px);
}

/* ---------- 3. Layout und Bausteine ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h1, h2 { color: var(--heading); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: .7rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-head { margin-bottom: 2.2rem; }
.sec-head .lead { margin: .9rem 0 0; }
.alt { background: var(--soft); }
.note { font-size: .9rem; color: var(--muted); }
.text-link { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }

/* Knöpfe: einheitlich weiß mit feiner Linie */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.35rem; border-radius: var(--btn-radius); border: 1px solid var(--btn-line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--btn-line-hover); }
/* Mint-Knopf ohne Linie: „Showreel ansehen“ */
.btn-mint { background: #95ae9a; border-color: #95ae9a; color: #fff; }  /* „Showreel ansehen“: weiße Schrift und weißes Play-Zeichen */
.btn-mint:hover { background: #85a08b; border-color: #85a08b; }
/* Senfgelber Knopf ohne Linie: „E-Mail schreiben“ */
.btn-sun { background: var(--mustard); border-color: var(--mustard); color: #fff; }  /* weiße Schrift */
.btn-sun:hover { background: #ddb03a; border-color: #ddb03a; }
/* „Kontakt aufnehmen“: Punkt davor im Rot von „2D-Animation“ */
.btn-dot::before { content: ""; flex: 0 0 auto; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }  /* so groß wie die Punkte bei den Auszeichnungen */
.btn-play { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }

/* ---------- Kopfzeile ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
/* Kreislogo: bewusst ohne Drehung oder Animation, auch nicht beim Darüberfahren, Anklicken oder Antippen */
.logo { display: block; margin-right: auto; line-height: 0; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.logo img { width: 56px; height: 56px; }
.nav ul { display: flex; gap: .2rem; }
.nav a { display: block; padding: .5rem .8rem; color: var(--ink); border-radius: var(--btn-radius); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a.active { background: var(--soft); }
.nav a.cta { border: 1px solid var(--btn-line); margin-left: .3rem; }
.nav a.cta:hover { background: #fff; border-color: var(--btn-line-hover); }
/* Sprachschalter DE | EN links neben „Showreel“ – der dunkle Reiter gleitet zur gewählten Sprache */
.lang-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 2px; border: 1px solid var(--btn-line); border-radius: var(--btn-radius); background: #fff; margin-right: -.15rem; flex: 0 0 auto; }
.lang-switch::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: calc(var(--btn-radius) - 3px); background: var(--heading); transition: transform .28s ease; }
html[lang="en"] .lang-switch::before { transform: translateX(100%); }
.lang-switch button { position: relative; z-index: 1; font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .07em; line-height: 1; padding: .48rem .62rem; border: 0; border-radius: calc(var(--btn-radius) - 3px); background: none; color: var(--muted); cursor: pointer; transition: color .2s ease; }
.lang-switch button[aria-pressed="true"] { color: #fff; cursor: default; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--heading); }
/* Home-Knopf: kleines Häuschen in der Schriftfarbe der Leiste */
.home-btn { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; margin-right: 0; border-radius: var(--btn-radius); color: var(--ink); text-decoration: none; transition: background-color .18s ease; }
.home-btn svg { width: 21px; height: 21px; }
.home-btn:hover { background: var(--soft); }
html:not(.js) .lang-switch { display: none; }   /* ohne JavaScript nur Deutsch */
.i18n-wait body { visibility: hidden; }          /* kurz ausblenden, bis die englischen Texte eingesetzt sind */
.lang-note { font-size: .95rem; color: var(--muted); margin: .9rem 0 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
#burger { display: none; }
@media (max-width: 920px) {
  #burger { display: grid; }
  .lang-switch, .home-btn { margin-right: 0; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: .6rem 1.25rem 1.2rem; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: .15rem; }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; }
}
@media (max-width: 600px) { .logo img { width: 50px; height: 50px; } }
@media (max-width: 430px) { .hero-actions { gap: .8rem; } .hero-cta, .hero-awards { gap: .55rem; } .hero-cta .btn { font-size: .84rem; padding: .7rem .3rem; gap: .3rem; letter-spacing: -.01em; } .hero-awards a { font-size: .78rem; padding: .5rem .4rem; gap: .4rem; } }

/* ---------- Start ---------- */
/* Knöpfe unter dem GIF: oben „Showreel ansehen“ + „Kontakt aufnehmen“, darunter die beiden Auszeichnungen – je 2 nebeneinander */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); background: #fff; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  grid-template-areas: "art title" "actions lead";
  column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: clamp(1.6rem, 3vw, 2.6rem); align-items: start;
}
/* Breite Ansicht: links GIF + Knöpfe, rechts Überschrift + Text.
   Das GIF sitzt etwas höher, sodass der Schriftzug „Animalmotion“ im oberen Bereich neben „Professionelle“ ansetzt. */
.hero-title { grid-area: title; }
.hero-art { grid-area: art; margin-top: -1.2rem; }
/* Knöpfe und Text enden auf gleicher Höhe (unterste Zeile „… Animationswelt…“) */
.hero-lead { grid-area: lead; margin: 0 0 -.32em; align-self: end; }
.hero-actions { grid-area: actions; align-self: end; display: grid; gap: 1.1rem; width: min(100%, 480px); justify-self: center; }
.nowrap { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--em); position: relative; white-space: nowrap; }
/* Sehr schmale Bildschirme (unter 360 px, z. B. iPhone mini mit „Anzeigezoom: Größerer Text“ = 320 px):
   Überschrift so weit verkleinern, dass „& Motion Design“ (ca. 8,5 Schriftgrößen breit) in eine Zeile passt.
   Ab 360 px Breite bleibt die normale Größe. */
.hero h1 { font-size: min(clamp(2.3rem, 5.4vw, 4.1rem), calc((100vw - 2.5rem) / 8.6)); }
.hero-art img { width: 100%; max-width: 500px; margin-inline: auto; }
.hero-cta, .hero-awards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.hero-cta .btn { width: 100%; padding-inline: .8rem; text-align: center; }
.hero-awards a {
  display: flex; align-items: center; justify-content: center; gap: .55rem; height: 100%; padding: .55rem .8rem; text-align: left; line-height: 1.25; border-radius: var(--btn-radius);
  background: #fff; border: 1px solid var(--btn-line); font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.hero-awards a::before { content: ""; flex: 0 0 auto; width: .5em; height: .5em; border-radius: 50%; background: var(--dot-1); }
.hero-awards li:nth-child(2) a::before { background: var(--dot-2); }
.hero-awards a:hover { border-color: var(--btn-line-hover); transform: translateY(-2px); }
@media (max-width: 860px) {
  /* Schmale Ansicht: GIF oben, alles mittig */
  /* minmax(0, 1fr): die Spalte wird nie breiter als der Bildschirm, auch wenn ein Wort nicht passt */
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "title" "lead" "actions"; text-align: center; }
  .hero-grid { row-gap: 1.3rem; }
  .hero-art { margin-top: 0; margin-bottom: 2.2rem; }
  .hero-lead { margin: 0 auto; max-width: 60ch; }
  .hero-actions { justify-self: center; width: min(100%, 480px); margin-top: .4rem; }
  .hero-art img { max-width: 520px; }
}

/* ---------- Animation bewegt eine Menge ---------- */
.moves { background: #fff; padding-top: clamp(3.5rem, 8vw, 7rem); }
/* Überschrift bleibt immer in einer Zeile; animalmotion.js verkleinert sie bei Bedarf passend zur Breite */
.moves-title { font-size: min(clamp(2rem, 4.4vw, 3.3rem), calc((100vw - 2.5rem) / 17));  /* gleiche Größe wie „Lust auf ein gemeinsames Projekt?“ */ line-height: 1.1; letter-spacing: -.03em; text-align: center; white-space: nowrap; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.moves-title em { font-style: normal; color: var(--em); display: inline-block; }
.gif-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.4rem, 1vw, .75rem); }
.gif-grid li { aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius) * .55); background: var(--soft); }
.gif-grid img, .gif-grid video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gif-grid li:hover img, .gif-grid li:hover video { transform: scale(1.05); }
@media (max-width: 700px) { .gif-grid { grid-template-columns: repeat(2, 1fr); } }
.moves-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.move { padding-top: 1.3rem; border-top: 4px solid var(--move-1); }
.move:nth-child(2) { border-top-color: var(--move-2); }
.move h3 { color: var(--heading); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .7rem; }
.move p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 42ch; margin: 0; }
@media (max-width: 760px) {
  .moves-text { grid-template-columns: 1fr; }
  #was-ich-bewege { scroll-margin-top: -8px; }   /* Klick auf „Leistungen“: 8px höher, damit darunter mehr zu sehen ist */
}

/* ---------- Video und Vorschaubilder ---------- */
.player { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.poster-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); text-decoration: none; isolation: isolate; }
.poster-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.poster-card:hover img { transform: scale(1.04); }
.play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .2s ease; pointer-events: none; }
.play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--play); }
a:hover .play, .ref:hover .play { transform: scale(1.1); }

/* ---------- Leistungen ---------- */
.serv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .serv-grid { grid-template-columns: 1fr; } }
.serv-col h3 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.serv-col h3::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--dot-1); transform: rotate(12deg); }
.serv-col:nth-child(2) h3::before { background: var(--dot-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.tile { color: var(--ink); display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: calc(var(--radius) * .75); background: #fff; border: var(--card-border); text-decoration: none; height: 100%; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tile:hover { transform: var(--card-hover-move); border-color: var(--btn-line-hover); box-shadow: var(--card-hover-shadow); }
.tile strong { display: block; line-height: 1.25; }
.ico { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--soft); position: relative; }
.ico::after { content: ""; position: absolute; inset: 0; margin: auto; }
.ico-play::after { width: 0; height: 0; left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--play); }
.ico-ext::after, .ico-down::after { width: 1em; height: 1.2em; line-height: 1.2; text-align: center; color: var(--accent-2); font-weight: 800; }
.ico-ext::after { content: "↗"; }
.ico-down::after { content: "↓"; }
.ico-grid::after { width: 6px; height: 6px; border-radius: 1px; transform: translate(-4px, -4px); background: var(--accent-2); box-shadow: 8px 0 var(--accent-2), 0 8px var(--accent-2), 8px 8px var(--accent-2); }

/* ---------- Referenzen ---------- */
.ref-tools { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: inherit; font-size: .92rem; font-weight: 600; padding: .5rem 1rem; border-radius: var(--btn-radius); border: 1px solid var(--btn-line); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--btn-line-hover); }
.chip[aria-pressed="true"] { background: var(--chip-on); color: #fff; border-color: var(--chip-on); }
.search { margin-left: auto; position: relative; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; font: inherit; padding: .6rem 1rem .6rem 2.4rem; border-radius: var(--btn-radius); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
#ref-count { color: var(--muted); font-size: .92rem; font-weight: 600; }
/* Karten ab 220 px Breite (vorher 260 px): Die Vorschaubilder sind klein und sollen nicht zu groß
   gezogen werden. Ergebnis: Tablet 3 Spalten, Laptop ab ca. 1000 px und große Bildschirme 4 Spalten. */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.3rem; }
.ref { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ref:has(.stretch):hover { transform: var(--card-hover-move); box-shadow: var(--card-hover-shadow); }
.ref-media { position: relative; aspect-ratio: 16 / 9; background: var(--grad); overflow: hidden; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ref-media.noimg img { display: none; }
.ref-media.noimg::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; font-weight: 800; color: rgba(255,255,255,.9); }
.ref-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.ref h3 a { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ref-ctx { color: var(--muted); font-size: .9rem; margin: .4rem 0 .5rem; line-height: 1.45; }
.ref-role { font-size: .9rem; font-weight: 600; margin: 0 0 .8rem; line-height: 1.45; }
.ref-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ref-cta { font-size: .86rem; font-weight: 700; color: var(--accent); }
.badge { position: relative; z-index: 2; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: var(--btn-radius); border: 1px solid var(--btn-line); background: #fff; color: var(--ink); text-decoration: none; }
.badge:hover { border-color: var(--btn-line-hover); }
.more-row { text-align: center; margin-top: 2rem; }
#ref-empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* Referenzen am Handy (bis 560 px Fensterbreite): 2 Karten nebeneinander statt einer großen,
   damit die kleinen Vorschaubilder nicht unscharf wirken. Schrift, Abstände und Abspiel-Knopf
   dafür etwas kleiner. Lange Wörter in den kleinen Texten werden getrennt, die Titel nicht. */
@media (max-width: 560px) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .ref-body { padding: .65rem .7rem .75rem; hyphens: auto; overflow-wrap: break-word; }
  .ref h3 { font-size: .95rem; line-height: 1.2; hyphens: manual; }
  .ref-ctx { font-size: .78rem; margin: .3rem 0 .35rem; line-height: 1.35; }
  .ref-role { font-size: .78rem; margin: 0 0 .55rem; line-height: 1.35; }
  .ref-cta { font-size: .76rem; }
  .ref .badge { font-size: .68rem; padding: .15rem .45rem; }
  .ref .play { width: 38px; height: 38px; }
  .ref .play::after { left: 15px; top: 12px; border-width: 7px 0 7px 12px; }
  .ref-media.noimg::before { font-size: 2.2rem; }
}

/* ---------- Auszeichnungen (im Fenster) ---------- */
.award { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; padding: clamp(1.2rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); }
.award-text h3 { color: var(--heading); font-size: 1.5rem; margin-bottom: .7rem; }
.award-logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.award-logos img { max-height: 84px; width: auto; max-width: 100%; min-width: 0; border-radius: 8px; background: #fff; }
.dots { margin: 0 0 1rem; color: var(--muted); }
.dots li { padding-left: 1.2rem; position: relative; }
.dots li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 780px) { .award { grid-template-columns: 1fr; } }

/* ---------- Über mich ---------- */
/* Übergänge: feine Linie zwischen Referenzen und Über mich; Leistungen und Kontakt mit Farbfläche */
#ueber-mich { border-top: 1px solid var(--line); }
#leistungen { background: var(--soft); }
#kontakt, .site-foot { background: var(--soft-yellow); }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { order: -1; } }
.about .lead { margin: .9rem 0 1.2rem; }
/* Rundes Porträt ohne Rand (mit Platzhalter, solange kein Foto hinterlegt ist) */
.portrait { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 0 auto; }
.portrait img, .portrait-ph { width: 100%; height: 100%; border-radius: 50%; }
.portrait img { object-fit: cover; }
.portrait-ph { display: none; place-items: center; align-content: center; gap: .3rem; text-align: center; background: var(--soft); color: var(--muted); }
.portrait-ph b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.portrait-ph small { font-size: .9rem; font-weight: 600; }
.portrait.noimg img { display: none; }
.portrait.noimg .portrait-ph { display: grid; }
@media (max-width: 860px) { .portrait { width: min(72%, 300px); margin: 0; } }

/* ---------- Kontakt ---------- */
/* Mittig untereinander; Schrift schwarz, „Kontakt“ wie die anderen Mini-Überschriften */
.contact { text-align: center; color: var(--heading); }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.contact h2 em { font-style: normal; }
.contact .eyebrow { color: var(--accent); }  /* „Kontakt“ rot wie „2D-Animation“ */
.contact-label { margin: 1.4rem 0 .35rem; font-size: 1.08rem; color: var(--heading); }
.mail { display: inline-block; margin-bottom: 1.3rem; font-size: clamp(1.25rem, 2.6vw, 1.65rem); font-weight: 800; letter-spacing: -.01em; color: var(--heading); text-decoration: none; overflow-wrap: anywhere; transition: color .18s ease; }
.mail:hover { color: var(--accent); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.contact-label-social { margin-top: 2.4rem; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; }
.social a { color: var(--heading); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.social a:hover { color: var(--accent); }

/* ---------- Fußzeile ---------- */
.site-foot { padding: 2.2rem 0 5rem; color: var(--muted); font-size: .92rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; }
.foot-in nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.site-foot a { text-underline-offset: 3px; }
.site-foot a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Vorschau-Fenster (Videos, Bilder, Galerien) ---------- */
dialog#lb { width: min(1120px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; overflow: hidden; border-radius: calc(var(--radius) * 1.4); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(10,8,14,.35); }
dialog#lb[open] { display: flex; flex-direction: column; animation: lb-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
dialog#lb::backdrop { background: rgba(10,8,14,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }   /* -webkit- für ältere iPhones */
.lb-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1.1rem 1.1rem 1rem 1.6rem; border-bottom: 1px solid var(--line); background: #fff; }
.lb-back { flex-basis: 100%; text-align: left; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.lb-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-titles { flex: 1; min-width: 0; }
.lb-titles .eyebrow { margin-bottom: .25rem; }
#lb-title { font-size: clamp(1.25rem, 2.6vw, 1.8rem); }
dialog.is-media #lb-title { font-size: 1.15rem; }
#lb-title img { width: auto; max-height: 46px; border-radius: 8px; }   /* Logo statt Überschrift (Moho Featured Artist) */
.lb-close { flex: 0 0 44px; height: 44px; display: grid; place-items: center; align-self: flex-start; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
.lb-close svg { width: 20px; height: 20px; }
.lb-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 1.6rem; background: #fff; }
.lb-body > .lead { margin-bottom: 1.6rem; }
.lb-body > iframe { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 74vh; border: 0; background: #000; border-radius: 14px; }
/* Videos: Fenster passt sich genau dem Seitenverhältnis des Videos an (--r = Breite / Höhe, setzt das Skript) */
dialog#lb.is-video { width: min(1120px, 94vw, calc(74vh * var(--r, 16 / 9) + 3.2rem)); }
.lb-body > video { display: block; width: min(100%, calc(74vh * var(--r, 16 / 9))); aspect-ratio: var(--r, 16 / 9); margin-inline: auto; object-fit: cover; border: 0; background: #000; border-radius: 14px; }
/* Im Vollbild das ganze Bild zeigen (nichts abschneiden) und ohne runde Ecken.
   Zwei getrennte Regeln, weil ältere Browser nur die eine oder die andere Schreibweise kennen. */
.lb-body > video:fullscreen { object-fit: contain; border-radius: 0; }
.lb-body > video:-webkit-full-screen { object-fit: contain; border-radius: 0; }
.lb-body > img { margin: auto; width: auto; max-width: 100%; max-height: 74vh; border-radius: 10px; }
.consent { padding: clamp(1.5rem, 5vw, 3rem); text-align: center; background: var(--ink); color: #fff; border-radius: 14px; }
.consent p { max-width: 52ch; margin: 0 auto 1.3rem; opacity: .85; }
.consent p a { color: inherit; text-decoration: underline; }
.consent .btn { margin: .25rem; }
.consent .btn { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.consent .btn:hover { border-color: #fff; }
@media (max-width: 640px) {
  /* Handy: Fenster wie am Desktop nur so hoch wie Kopfzeile und Inhalt, mit kleinem Rand ringsum.
     Dahinter bleibt die Seite abgedunkelt und unscharf sichtbar (Antippen daneben schließt das Fenster).
     Bei Videos richtet sich die Breite nach dem Seitenverhältnis (2.2rem = Innenabstand links + rechts). */
  dialog#lb { width: calc(100vw - 1.5rem); max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); border-radius: var(--radius); }
  dialog#lb.is-video { width: min(calc(100vw - 1.5rem), calc(74vh * var(--r, 16 / 9) + 2.2rem)); }
  .lb-head { padding: .9rem .9rem .9rem 1.1rem; }
  .lb-scroll { padding: 1.1rem; }
}

/* Galerie-Inhalte im Fenster */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .poster-card, .card .player { border-radius: 0; box-shadow: none; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card-body p { color: var(--muted); font-size: .96rem; }
.card-body p strong { color: var(--ink); }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding-top: .4rem; }
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem 1rem; }
.phones li { text-align: center; font-size: .88rem; font-weight: 600; color: var(--muted); }
.phone { display: block; border-radius: 20px; overflow: hidden; border: 5px solid var(--ink); background: #fff; margin-bottom: .5rem; min-height: 120px; transition: transform .18s ease; }
.phone:hover { transform: translateY(-4px) rotate(-1deg); }
.phone img { width: 100%; }
/* Bildretusche: links 2 × 2 (Uhren, darunter Porträts), rechts das Before/After-Bild über beide Zeilen */
.retouch-grid {
  display: grid; gap: .8rem;
  grid-template-columns: 1fr 1fr .88fr .88fr;
  grid-template-areas: "uhr1 uhr2 ba ba" "anne daniel ba ba";
}
.retouch-grid li { min-width: 0; }
.retouch-grid a { display: block; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.retouch-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.retouch-grid a:hover img { transform: scale(1.03); }
.r-uhr1 { grid-area: uhr1; } .r-uhr2 { grid-area: uhr2; } .r-anne { grid-area: anne; } .r-daniel { grid-area: daniel; }
.r-ba { grid-area: ba; }
.r-uhr1, .r-uhr2 { aspect-ratio: 7 / 8; }
.r-anne, .r-daniel { aspect-ratio: 12 / 5; }
.r-uhr1 img, .r-uhr2 img { object-position: left top; }
.r-ba img { object-position: center top; }
.retouch-grid + .note { margin-top: 1.1rem; }
@media (max-width: 760px) {
  .retouch-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "uhr1 uhr2" "anne daniel" "ba ba"; }
  .r-ba { aspect-ratio: 1600 / 1433; }
}

/* ---------- Unterseiten: Impressum, Datenschutz ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(1.85rem, 5vw, 3.6rem); hyphens: auto; overflow-wrap: break-word; }
.page-hero .lead { margin: 1rem 0 0; }
.legal { padding-top: 0; }
.legal-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.legal-grid.single { grid-template-columns: minmax(0, 1fr) 320px; }
.legal-grid.single .legal-side { grid-column: 2; grid-row: 1; }
.legal-grid.single .legal-text { grid-column: 1; grid-row: 1; }
.legal-text { max-width: 74ch; }
.legal-text h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 2.4rem 0 .8rem; scroll-margin-top: 90px; }
.legal-text > h2:first-child { margin-top: 0; }
.legal-text h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; scroll-margin-top: 90px; }
.legal-text ul.list { list-style: disc; padding-left: 1.3rem; margin: 0 0 1em; }
.legal-text ul.list li { margin-bottom: .35rem; }
.legal-text a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-text .source { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.info-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.info-card h2 { font-size: 1.15rem; margin: 0 0 .9rem; }
.info-card p { margin: 0 0 .9rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .name { font-size: 1.2rem; font-weight: 800; }
.info-card a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.legal-side { position: sticky; top: 92px; display: grid; gap: 1rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc summary { font-weight: 800; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; float: right; color: var(--muted); }
.toc[open] summary::after { content: "▴"; }
.toc ol { margin: .8rem 0 0; padding: 0; list-style: none; max-height: calc(100vh - 220px); overflow: auto; }
.toc li a { display: block; padding: .3rem .5rem; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc li a:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 900px) {
  .legal-grid, .legal-grid.single { grid-template-columns: 1fr; }
  .legal-grid.single .legal-side, .legal-grid.single .legal-text { grid-column: auto; grid-row: auto; }
  .legal-side { position: static; }
  .toc ol { max-height: none; }
}

/* ---------- 4. Einblend-Animationen beim Scrollen ----------
   Elemente mit data-reveal erscheinen, sobald sie ins Bild scrollen.
   data-delay="300" verzögert um 300 ms. Ohne JavaScript ist alles sofort sichtbar. */
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js [data-reveal]:not(.is-done) { transition: opacity .8s ease, transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.js .gif-grid [data-reveal]:not(.is-visible) { transform: translateY(22px) scale(.92); }
.js .hero-art[data-reveal]:not(.is-visible) { transform: scale(.94); }
/* Überschrift „Animation bewegt eine Menge“: Wörter gleiten einzeln hoch */
.js [data-split][data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 120ms); }
.js [data-split].is-visible .w > span { transform: none; }
/* „bewegt“ (englisch „moves“) wackelt alle 4 Sekunden, bis die GIFs der Galerie laufen
   (das Beenden übernimmt js/animalmotion.js). Das erste Wackeln kommt 1 Sekunde nach dem Einblenden.
   Eine Runde dauert 4 Sekunden: 0,1 Sekunden Ruhe (0 bis 2,5 %), 1,1 Sekunden Wackeln (bis 30 %),
   danach steht das Wort still. In der kurzen Ruhe am Anfang kann das Skript ohne Ruckeln beenden. */
.js [data-split].is-visible em .w > span { animation: wackeln 4s ease-in-out .9s infinite; }
@keyframes wackeln {
  0%, 2.5%, 30%, 100% { transform: none; }
  8% { transform: rotate(-5deg) translateY(-6%); }
  14.875% { transform: rotate(4deg); }
  21.75% { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
  .js [data-split] .w > span { transform: none; }
}
@media print { .site-head, .to-top, .ref-tools, .more-row, .toc { display: none; } .legal-grid, .legal-grid.single { grid-template-columns: 1fr; } .js [data-reveal] { opacity: 1 !important; transform: none !important; } }
