/* ==========================================================================
   Marten Thiemann – Director of Photography
   Look: Apple (hell, ruhig) mit sparsamen Orange-Akzenten
   Layout: Projektreihen aus 3 Stills
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ebebef;
  --text: #1d1d1f;
  --muted: #55555a;
  --line: #d2d2d7;
  --line-strong: #b9b9c0;

  /* Akzent aus der alten Website – nur für kleine Details */
  --accent: #f7a92a;
  --accent-soft: #fbbd53;
  --accent-ink: #96590a;  /* dunkler, für Text auf Weiß/Grau (≥ 4,5:1) */
  --field-line: #86868b;  /* Rahmen von Formularfeldern (≥ 3:1) */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px -12px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;

  --header-h: 56px;
  --col: min(70vw, 1280px);      /* Breite der Projektspalte */
  --col-open: min(90vw, 1600px); /* Breite eines geöffneten Projekts */
  --gutter: 16px;
  --space: clamp(64px, 9vh, 112px); /* Abstand zwischen den Abschnitten */

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-anchor: none; /* Scroll-Ausgleich beim Zuklappen übernimmt main.js – in allen Browsern gleich */
}

::selection { background: rgba(247, 169, 42, 0.35); }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--text); /* dunkel, damit der Fokus überall deutlich sichtbar ist */
  outline-offset: 3px;
  border-radius: 6px;
}

/* „Zum Inhalt springen“ – nur sichtbar, wenn per Tastatur angesprungen */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Kleine Bausteine ---------------------------------------------------------- */

/* „Aufnahme-Punkt“ – der wiederkehrende Akzent */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.link:hover { color: var(--accent-ink); }
.link span { transition: transform 0.3s var(--ease); }
.link:hover span { transform: translateX(3px); }

.t-sub { font-weight: 400; color: inherit; opacity: 0.7; }
.t-sub::before { content: "| "; opacity: 0.5; }

/* ---------- Header (Milchglas) ------------------------------------------ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  transition: transform 0.5s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  height: 100%;
  width: min(100% - 2 * var(--gutter), 1600px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand__name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand__role {
  font-size: 13px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav { display: flex; gap: 28px; }
.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .brand__role { display: none; }
  .nav { gap: 18px; }
}

/* ---------- Einstieg ------------------------------------------------------ */

.hero {
  width: var(--col);
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 0 36px;
}
.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.hero__role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.45em 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.015em;
}
.hero__role::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

@media (max-width: 899px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 28px; }
}

/* ---------- Projektliste ------------------------------------------------- */

.work {
  width: var(--col);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.project {
  --w: 100%;
  position: relative;
  width: var(--w);
  margin-left: calc((100% - var(--w)) / 2);
  transition: width var(--dur) var(--ease), margin var(--dur) var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* Sofort zuklappen (beim automatischen Schließen oberhalb des Bildschirms) */
.no-anim, .no-anim * { transition: none !important; }

/* Höhen-Animation über Grid-Zeilen (0fr ↔ 1fr) */
.collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.collapse > * { min-height: 0; overflow: hidden; }
.collapse.is-closed { grid-template-rows: 0fr; opacity: 0; }

/* Die Reihe aus drei Stills */
.row-wrap > div { padding: 2px 2px 12px; margin: -2px -2px -12px; } /* Platz für den Schatten */

.row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
  transition: opacity 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.row__cell { aspect-ratio: 2 / 1; overflow: hidden; }
.row__cell + .row__cell { border-left: 1px solid rgba(255, 255, 255, 0.5); }
.row__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease);
}

/* Orangefarbene Kante, die beim Hover einläuft */
.row::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.row__caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 56px 22px 16px;
  color: #fff;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.row__label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.row__title { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.row__meta { display: block; margin-top: 2px; font-size: 12px; opacity: 0.85; }

@media (hover: hover) {
  .row:hover,
  .row:focus-visible { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px -14px rgba(0,0,0,.35); }
  .row:hover .row__cell img,
  .row:focus-visible .row__cell img { transform: scale(1.03); }
  .row:hover .row__caption,
  .row:focus-visible .row__caption { opacity: 1; transform: none; }
  .row:hover::after,
  .row:focus-visible::after { transform: scaleX(1); }
}

/* Auf Touch-Geräten steht der Titel immer unter der Reihe */
.row-caption-touch { display: none; }
@media (hover: none) {
  .row__caption { display: none; }
  .row-caption-touch {
    display: block;
    padding: 10px 2px 6px;
  }
  .row-caption-touch .row__label { color: var(--accent-ink); }
  .row-caption-touch .row__title { font-size: 16px; }
  .row-caption-touch .row__meta { color: var(--muted); opacity: 1; }
}

/* Geöffnetes Projekt: breiter, Rest tritt zurück */
.work.has-open .project:not(.is-open) .row { opacity: 0.4; }
.work.has-open .project:not(.is-open) .row:hover { opacity: 0.85; }

@media (min-width: 900px) {
  .project.is-open { --w: var(--col-open); }
}

/* Karte des geöffneten Projekts */
.panel__inner { padding: 4px 0 8px; }
.project.is-open .panel__inner { padding: 4px 0 28px; }

.card {
  position: relative;
  padding: clamp(14px, 1.6vw, 24px);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid #e3e3e8;
  border-top: 3px solid var(--accent);
}

.card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 1100px) {
  .card__top {
    grid-template-columns: min(calc(56svh * 16 / 9), 66%) minmax(260px, 1fr);
    gap: 32px;
    align-items: stretch;
  }
}

/* Player – höchstens ca. die Hälfte der Bildschirmhöhe */
.player {
  position: relative;
  width: min(100%, calc(56svh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Unsichtbare Blenden über den Link-Elementen von YouTube:
   Titel/Kanal oben links, „Link kopieren“ unten links, YouTube-Logo unten rechts.
   Lautstärke, Untertitel, Einstellungen, Zeitleiste und Vollbild bleiben bedienbar. */
.yt-shield { position: absolute; z-index: 1; }
.yt-shield--title { top: 0; left: 0; right: 200px; height: 64px; }
.yt-shield--copy  { bottom: 0; left: 0; width: 80px; height: 56px; }
.yt-shield--logo  { bottom: 0; right: 0; width: 140px; height: 56px; }

.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.poster:hover img { opacity: 0.8; transform: scale(1.01); }

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--text); }
.poster:hover .play { transform: scale(1.08); background: var(--accent-soft); }

.consent {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
.consent a { color: #fff; }

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s var(--ease), border-color 0.2s, transform 0.3s var(--ease);
}
.close:hover { border-color: var(--accent); transform: rotate(90deg); }
.close svg { width: 12px; height: 12px; stroke: var(--text); stroke-width: 2; }
.project.is-open .close { opacity: 1; }

/* Am breiten Bildschirm sitzt × in der Info-Spalte, sonst über dem Player */
@media (max-width: 1099px) {
  .card { padding-top: 64px; }
}

/* Titel + Credits neben bzw. unter dem Player */
.info-bar { padding: 0 2px; }
@media (min-width: 1100px) {
  .info-bar { padding-right: 52px; } /* Platz für das ×-Symbol */
}
.info-bar__title {
  margin: 6px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.info-bar__title .t-sub { display: block; font-size: 0.75em; margin-top: 2px; }
.info-bar__title .t-sub::before { content: none; }
.info-bar__desc {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3a3a3e;
  max-width: 38em;
}
.info-bar__desc.is-placeholder {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-style: italic;
}
.info-bar__meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.info-bar__credits {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  display: grid;
  gap: 2px;
}
.info-bar__credits .role {
  display: inline-block;
  min-width: 56px;
  color: var(--muted);
}

/* Vollständige Credits: rechts neben dem Video, in sich scrollbar */
.credits-box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  min-height: 0;
}
.credits-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.credits-scroll {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.credits-scroll::-webkit-scrollbar { width: 6px; }
.credits-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.credits-scroll::-webkit-scrollbar-track { background: transparent; }
.credits-scroll:focus-visible { outline-offset: 2px; }

/* Weiche Kanten: unten, solange noch etwas folgt – oben, sobald gescrollt wurde */
.credits-box.has-overflow .credits-scroll {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 82%, transparent 100%);
}
.credits-box.has-overflow.is-scrolled .credits-scroll {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 82%, transparent 100%);
}
.credits-box.has-overflow.is-scrolled.at-end .credits-scroll {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 100%);
}

.credits-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.credits-list { margin: 0; font-size: 13px; line-height: 1.4; }
.credits-list__item { margin-bottom: 10px; }
.credits-list dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits-list dd { margin: 1px 0 0; }

.credits-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--accent-ink);
  transition: opacity 0.3s;
}
.credits-box.has-overflow .credits-hint { display: block; }
.credits-hint__arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.credits-box.at-end .credits-hint__arrow { transform: rotate(180deg); } /* ganz unten: Pfeil zeigt nach oben */

/* Breite Karte: Spalte so hoch wie der Player, Liste füllt den Rest */
@media (min-width: 1100px) {
  /* nur bei Projekten mit Credits; ohne Credits bleibt die Spalte normal */
  .info-bar:has(.credits-box) { position: relative; min-height: 0; }
  .info-bar:has(.credits-box) .info-bar__inner {
    position: absolute;
    inset: 0 52px 0 2px;
    display: flex;
    flex-direction: column;
  }
  .credits-box { flex: 1 1 auto; }
  .credits-scroll { flex: 1 1 auto; max-height: none; min-height: 0; }
}

/* BTS-Reihe direkt unter dem Player */
.bts {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bts__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 14px;
}
.bts__head .eyebrow { margin: 0; }

.mini {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.mini__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s;
  transition-delay: calc(var(--i) * 60ms + 250ms);
}
.project.is-open .mini__item { opacity: 1; transform: none; }
.mini__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
a.mini__item:hover { box-shadow: 0 0 0 2px var(--accent); }

/* Copyright-Hinweis: sehr klein und dezent im unteren Bildrand */
.credit {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
a.mini__item:hover img { transform: scale(1.05); }

@media (max-width: 899px) {
  :root { --col: calc(100vw - 2 * var(--gutter)); }
  .row__cell { aspect-ratio: 4 / 3; }
  .row { border-radius: var(--radius-sm); }
  .player { border-radius: var(--radius-sm); width: 100%; }
  .card { border-radius: 18px; }
  .mini { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mini__item { border-radius: 8px; }
}

/* ---------- Abschnitte Info + Kontakt ------------------------------------- */

.section {
  width: var(--col);
  margin: 0 auto;
  padding: var(--space) 0 0;
  scroll-margin-top: calc(var(--header-h) - 24px);
}

.panel-box {
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid #e3e3e8;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.about__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.about__lead {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.about__text {
  margin: 1.1em 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.about__text strong { color: var(--text); font-weight: 600; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 6px 14px;
  border-radius: 980px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 899px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
}

/* ---------- Kontakt --------------------------------------------------------- */

.contact__title {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 44px);
  text-wrap: balance;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.contact__title .accent { color: var(--accent); }
.contact__sub {
  margin: 0.6em 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 899px) {
  .contact__grid { grid-template-columns: 1fr; }
}

.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field {
  position: relative;
  display: block;
}
.field input,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(247, 169, 42, 0.22);
}
.field span {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 17px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease);
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  transform: translateY(-9px) scale(0.72);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(247, 169, 42, 0.9);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.button:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(247, 169, 42, 0.95);
}
.button[disabled] { opacity: 0.5; cursor: default; }


.form__status { margin: 0; font-size: 14px; min-height: 1.5em; }
.form__status.is-error { color: #c2001a; }

.thanks {
  padding: 40px 0;
  animation: fadeUp 0.8s var(--ease) both;
}
.thanks h3 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.thanks p { margin: 8px 0 0; color: var(--muted); }

.direct { display: grid; gap: 8px; align-content: start; }
.direct__intro {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Kleine, dezente Kontakt-Buttons */
.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 9px 14px 9px 9px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.channel:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.channel__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--accent);
}
.channel__icon svg { width: 16px; height: 16px; display: block; }
.channel__icon--ig {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.channel__text { display: grid; min-width: 0; line-height: 1.3; }
.channel__title { font-size: 14px; font-weight: 600; }
.channel__sub {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.channel__arrow {
  margin-left: auto;
  padding-left: 6px;
  font-size: 14px;
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease);
}
.channel:hover .channel__arrow { transform: translateX(2px); }

/* ---------- Footer ---------------------------------------------------------- */

.footer {
  width: var(--col);
  margin: var(--space) auto 0;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.footer > span { display: inline-flex; align-items: center; gap: 8px; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Textseiten (Impressum, Datenschutz) ----------------------------- */

.legal {
  width: min(100% - 2 * var(--gutter), 760px);
  margin: 0 auto;
  padding: calc(var(--header-h) + 8vh) 0 0;
}
.legal h1 {
  margin: 0 0 40px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.legal h2 { margin: 44px 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.legal h3 { margin: 28px 0 6px; font-size: 17px; }
.legal p, .legal li { color: #3a3a3e; }
.legal a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal + .footer { width: min(100% - 2 * var(--gutter), 760px); }

/* ---------- Einblenden ------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { transform: none; }
  .js .reveal.is-in { transition: opacity 0.4s linear !important; }
}
