/* imm.one – Irgendwas mit Medien. Reines CSS, kein Framework. */

@font-face { font-family: "HN"; src: url("/media/schrift/HelveticaNeueLTPro-Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HN"; src: url("/media/schrift/HelveticaNeueLTPro-It.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "HN"; src: url("/media/schrift/HelveticaNeueLTPro-Bd.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HN"; src: url("/media/schrift/helvetica-neue-heavy.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "HN Ex"; src: url("/media/schrift/HelveticaNeueLTPro-BdEx.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Farben aus der bisherigen Website (Kadence-Palette) */
:root {
  --weiss: #ffffff;
  --hell: #f5f5f5;
  --linie: #e2e2e2;
  --grau: #717171;
  --text-2: #3d3d3d;
  --schwarz: #050505;
  --orange: #ff7d00;
  --orange-hell: #ffa82d;

  --schrift: "HN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --schrift-breit: "HN Ex", "HN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rand: clamp(16px, 4vw, 56px);
  --breite: 1240px;
  --rund: 28px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text-2);
  font-family: var(--schrift);
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.6;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--schwarz); line-height: 1.12; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.nur-vorleser {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--schwarz); color: var(--weiss); padding: 10px 16px; border-radius: 10px;
}
.sprung:focus { top: 12px; color: var(--weiss); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--rand);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-logo { display: block; width: 132px; flex: none; transition: opacity .25s, transform .25s; }
/* Auf der Startseite erscheint das kleine Logo erst, wenn das große weggescrollt ist */
.kopf.logo-versteckt .kopf-logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.kopf-logo img { width: 100%; }
.menue ul { display: flex; gap: clamp(14px, 2vw, 32px); }
.menue a {
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; color: var(--schwarz); padding: 6px 0; position: relative;
}
.menue a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.menue a:hover::after, .menue a[aria-current="true"]::after { transform: scaleX(1); }
.menue a:hover { color: var(--schwarz); }
.menue-knopf { display: none; }

@media (max-width: 860px) {
  .menue-knopf {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--schwarz);
  }
  .menue-strich, .menue-strich::before, .menue-strich::after {
    display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px;
    transition: transform .25s, background .25s;
  }
  .menue-strich { position: relative; }
  .menue-strich::before, .menue-strich::after { content: ""; position: absolute; left: 0; }
  .menue-strich::before { top: -8px; }
  .menue-strich::after { top: 8px; }
  .menue-knopf[aria-expanded="true"] .menue-strich { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-strich::before { transform: translateY(8px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-strich::after { transform: translateY(-8px) rotate(-45deg); }

  .menue {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    max-height: calc(100dvh - 100%); overflow-y: auto;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    padding: 8px var(--rand) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menue.offen { transform: none; opacity: 1; visibility: visible; }
  .menue ul { flex-direction: column; gap: 0; }
  .menue a { display: block; font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .menue a::after { display: none; }
}

/* ---------- Abschnitte allgemein ---------- */
main > section { padding: clamp(56px, 9vw, 140px) var(--rand); }
.abschnitt-titel {
  font-family: var(--schrift-breit);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 64px);
  letter-spacing: -.01em;
  max-width: 20ch;
  margin: 0 auto clamp(32px, 5vw, 72px);
  text-align: center;
  text-wrap: balance;
}

/* ---------- Intro ---------- */
.intro {
  max-width: var(--breite); margin: 0 auto;
  display: grid; justify-items: center; text-align: center;
  padding-top: clamp(32px, 6vw, 96px) !important;
}
.intro-logo { width: min(100%, 980px); }
.intro-logo img { width: 100%; }
.intro-text { max-width: 34em; margin-top: clamp(32px, 5vw, 72px); }
.intro-text p { margin: 0 0 1.1em; font-size: 1.12em; }
.intro-satz {
  font-weight: 900; color: var(--schwarz);
  font-size: clamp(26px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.01em;
}
.intro-satz span { display: block; font-weight: 400; font-size: max(17px, .55em); color: var(--grau); margin-top: .5em; letter-spacing: 0; }
.intro-text strong { color: var(--schwarz); }

.pfeil { display: block; width: clamp(72px, 9vw, 120px); margin: clamp(24px, 4vw, 56px) auto; transition: transform .2s; }
.pfeil:hover { transform: translateY(6px); }
.pfeil img { width: 100%; }

/* ---------- Beispiele ---------- */
.beispiele { padding-left: 0 !important; padding-right: 0 !important; }
.beispiel { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(20px, 3vw, 40px); }
.beispiel-titel { width: min(78vw, 560px); }
.beispiel-titel img { width: 100%; }

.film { position: relative; margin: 0; width: min(100% - 2 * var(--rand), 1900px); }
.film video {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--hell); border-radius: var(--rund);
}
/* Auto-Film hat schwarze Balken im Bild – die werden abgeschnitten */
.film-breitwand video { aspect-ratio: 1080 / 816; }
@media (min-width: 741px) {
  .film video { aspect-ratio: 16 / 9; }
  .film-breitwand video { aspect-ratio: 1280 / 546; }
}
/* Video öffnet sich beim Scrollen auf volle Breite (wie bisher, ohne Plugin) */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .film {
      width: min(820px, 100% - 2 * var(--rand));
      animation: aufziehen linear both;
      animation-timeline: view();
      animation-range: entry 10% contain 40%;
    }
    .film video { animation: ecken linear both; animation-timeline: view(); animation-range: entry 10% contain 40%; }
    @keyframes aufziehen { to { width: min(1900px, 100vw - 32px); } }
    @keyframes ecken { to { border-radius: 8px; } }
  }
}
.ton {
  position: absolute; right: 16px; bottom: 16px;
  font: 700 13px/1 var(--schrift); letter-spacing: .04em; text-transform: uppercase;
  color: var(--weiss); background: rgba(5, 5, 5, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer;
}
.ton:hover { background: var(--orange); }
.ton[aria-pressed="true"] { background: var(--orange); }

/* Stream-Galerie: Band zum Wischen */
.galerie { width: 100%; min-width: 0; justify-self: stretch; }
.galerie-band {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--rand) 8px; scroll-padding: 0 var(--rand);
  scrollbar-width: none;
}
.galerie-band::-webkit-scrollbar { display: none; }
.galerie-band li { flex: none; scroll-snap-align: start; }
.galerie-band img {
  height: clamp(260px, 52vh, 620px); width: auto; max-width: calc(100vw - 2 * var(--rand) - 24px);
  border-radius: 20px; object-fit: cover;
  background: var(--hell);
}
.galerie-knoepfe { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.galerie-knoepfe button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--schwarz);
  background: var(--weiss); color: var(--schwarz); font: 700 22px/1 var(--schrift); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.galerie-knoepfe button:hover { background: var(--schwarz); color: var(--weiss); }
.galerie-knoepfe button:disabled { opacity: .3; cursor: default; background: var(--weiss); color: var(--schwarz); }

/* ---------- Kunden ---------- */
.kunden { background: var(--hell); border-radius: var(--rund); margin: 0 clamp(8px, 1.5vw, 24px); }
.logos {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 72px) clamp(24px, 6vw, 96px);
  align-items: center; justify-items: center;
}
.logos img {
  max-height: 64px; width: auto; max-width: 100%;
  filter: grayscale(1); opacity: .78; mix-blend-mode: multiply; transition: opacity .2s;
}
.logos li:hover img { opacity: 1; }
@media (max-width: 640px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos img { max-height: 44px; }
}

/* ---------- Team ---------- */
.team { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; }
.gruender { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
.gruender img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rund); background: var(--hell); }
.gruender h3 { font-size: clamp(20px, 2vw, 30px); font-weight: 900; margin-top: 16px; }
.netzwerk-titel { margin-top: clamp(72px, 10vw, 160px); }
.gruppe + .gruppe { margin-top: clamp(40px, 6vw, 80px); }
.gruppe h3 {
  font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--grau); padding-bottom: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--linie);
}
.leute { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 28px 20px; }
.leute img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--hell); transition: transform .25s; }
.leute li:hover img { transform: rotate(-2deg) scale(1.02); }
.leute p { margin: 12px 0 0; line-height: 1.35; font-size: .9em; }
.leute strong { display: block; color: var(--schwarz); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Kontakt ---------- */
.kontakt {
  max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.kontakt .abschnitt-titel { text-align: left; margin: 0 0 28px; }
.kontakt address { font-style: normal; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.4; color: var(--schwarz); }
.kontakt-wege { margin-top: 28px; display: grid; gap: 10px; }
.kontakt-wege a { font-weight: 700; font-size: clamp(18px, 1.5vw, 24px); color: var(--schwarz); }
.kontakt-wege a:hover { color: var(--orange); }

.faehnchen { margin: 0; position: relative; text-align: center; padding-bottom: 8px; }
.faehnchen blockquote { margin: 0; }
.faehnchen blockquote p {
  margin: 0; font-weight: 900; text-transform: uppercase; color: var(--schwarz);
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; text-wrap: balance;
}
.faehnchen figcaption { color: var(--grau); margin-top: 10px; }
.faehnchen-pfeil { width: clamp(90px, 10vw, 150px); margin: 8px auto 0; transform: translateX(40%); }
.faehnchen-aufkleber {
  width: min(300px, 70%); margin: 0 auto; border-radius: 50%;
  transform: rotate(-8deg); transition: transform .3s;
}
.faehnchen-aufkleber:hover { transform: rotate(4deg) scale(1.03); }
@media (max-width: 760px) {
  .kontakt { grid-template-columns: 1fr; }
}

/* ---------- Fuß ---------- */
.fuss {
  margin-top: clamp(40px, 6vw, 96px);
  background: var(--hell); border-radius: var(--rund) var(--rund) 0 0;
  padding: 28px var(--rand);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  font-size: 15px;
}
.fuss p { margin: 0; }
.fuss ul { display: flex; gap: 24px; }

/* ---------- Rechtliche Seiten ---------- */
.rechtlich { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 100px) var(--rand); font-size: 17px; }
.rechtlich h1 { font-family: var(--schrift-breit); font-size: clamp(32px, 5vw, 56px); margin-bottom: 40px; overflow-wrap: anywhere; hyphens: auto; }
.rechtlich h2 { font-size: 24px; margin: 48px 0 12px; }
.rechtlich h3 { font-size: 19px; margin: 32px 0 8px; }
.rechtlich h4 { font-size: 17px; margin: 24px 0 6px; }
.rechtlich p, .rechtlich li { overflow-wrap: anywhere; }
.rechtlich ul { list-style: disc; padding-left: 1.2em; }
.rechtlich .stand { color: var(--grau); margin-top: 48px; font-size: 15px; }
