/* CINDIGOfilm GmbH – cindigo.de
   Keine externen Schriften oder Skripte (DSGVO). */

:root {
  --rot: #d7141e;          /* CINDIGO-Logo */
  --tinte: #1b1b1f;
  --grau: #5c5c66;
  --linie: #e4e2de;
  --papier: #faf8f5;
  --weiss: #ffffff;
  --dunkel: #141417;

  --pp-holiday: #14385c;
  --pp-art: #d04a36;
  --pp-fashion: #08717a;
  --pp-small: #75894a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1100px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--papier);
}

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

a { color: var(--rot); }
a:hover { text-decoration-thickness: 2px; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.springen {
  position: absolute; left: -9999px; top: 0;
  background: var(--weiss); padding: 8px 12px; z-index: 100;
}
.springen:focus { left: 12px; top: 12px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.kopf .logo img { width: 160px; }
.nav { display: flex; align-items: center; gap: 22px; }
.menue { display: flex; align-items: center; gap: 22px; }
.menue-knopf { display: none; }
.nav a {
  color: var(--tinte); text-decoration: none; font-size: 15px;
  letter-spacing: .02em;
}
.nav a:hover, .nav a[aria-current] { color: var(--rot); }
.nav .sprache {
  border: 1px solid var(--linie); border-radius: 999px;
  padding: 3px 12px; font-size: 13px; font-weight: 600;
}

/* Bühne */
.buehne {
  --lochung: 30px;
  color: #f3f1ee;
  padding: calc(var(--lochung) + 120px) 0 calc(var(--lochung) + 110px);
  position: relative;
  overflow: hidden;
  background-color: var(--dunkel);
  background-image:
    linear-gradient(90deg, rgba(12,14,20,.82) 0%, rgba(12,14,20,.55) 45%, rgba(12,14,20,.08) 80%),
    linear-gradient(180deg, rgba(12,14,20,.25) 0%, rgba(12,14,20,0) 35%),
    url("img/buehne-2000.jpg");
  background-size: cover;
  background-position: center 62%;
}
/* Filmlochung oben und unten wie am Filmband */
.buehne::before, .buehne::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--lochung);
  background-color: #0b0b0d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30'%3E%3Crect x='9' y='8' width='16' height='14' rx='3' fill='%23efe9df'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 34px 30px;
  background-position: 0 center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6);
  z-index: 1;
}
.buehne::before { top: 0; }
.buehne::after { bottom: 0; }
.buehne .huelle { position: relative; z-index: 2; }
.buehne h1, .buehne p { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.buehne .oberzeile {
  text-transform: uppercase; letter-spacing: .25em; font-size: 13px;
  color: #b9b5ae; margin: 0 0 18px;
}
.buehne h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.08;
  margin: 0 0 24px; max-width: 16ch;
}
.buehne h1 em { font-style: italic; color: #ff5a5f; }
.buehne h1.breit { max-width: none; }
.buehne p.einleitung { font-size: 19px; max-width: 56ch; color: #d6d2cb; margin: 0 0 34px; }

.knopf {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  background: var(--rot); color: var(--weiss); text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.knopf:hover { background: #b50f18; }
.knopf.hohl { background: rgba(12,14,20,.35); border: 1px solid rgba(243,241,238,.55); color: #f3f1ee; }
.umschalter { display: flex; flex-wrap: wrap; gap: 12px; }
.umschalter .knopf:not(.hohl) { border: 1px solid transparent; }
.umschalter .knopf[aria-current] { cursor: default; }
.knopf.hohl:hover { border-color: #f3f1ee; }

/* Abschnitte */
section { padding: 90px 0; }
section + section { border-top: 1px solid var(--linie); }
.abschnitt-kopf { max-width: 680px; margin-bottom: 48px; }
.marke {
  text-transform: uppercase; letter-spacing: .2em; font-size: 12px;
  color: var(--rot); font-weight: 700; margin: 0 0 10px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px;
}
h3 { font-size: 19px; margin: 0 0 8px; }
.abschnitt-kopf p { color: var(--grau); margin: 0; }

/* Leistungen Film */
.raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.karte {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px;
  padding: 28px;
}
.karte .nummer {
  font-family: var(--serif); font-size: 15px; color: var(--rot);
  display: block; margin-bottom: 12px;
}
.karte p { margin: 0; color: var(--grau); font-size: 16px; }

/* Mission */
.mission blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45; max-width: 34ch;
}
.mission .spalten { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
.mission .text p { margin: 0 0 16px; color: var(--grau); }
.mission .vertrieb {
  margin-top: 28px; padding: 20px 24px;
  background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--rot);
  border-radius: 10px;
}
.mission .vertrieb h3 { font-size: 16px; margin: 0 0 6px; }
.mission .vertrieb p { margin: 0; color: var(--tinte); font-size: 16px; }
.mission .vertrieb p + p { margin-top: 10px; }

/* Projekte */
.projekte { display: grid; gap: 24px; grid-template-columns: 1fr; }
/* Jede Kachel in voller Breite: Bild links, Text rechts daneben - ein
   Bild über die ganze Breite würde über 700 px hoch. Schmal untereinander. */
.projekt {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center;
}
.projekt .bild {
  aspect-ratio: 1200 / 849; background: linear-gradient(135deg, #2a2a30, #4a3b3c);
  display: flex; align-items: flex-end; padding: 16px;
  color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
/* Projekt mit Bildern (Feld im Format der Bilder, für alle Karten gleich -
   sie tragen Text, ein Zuschnitt schnitte ihn ab): die Bilder blenden reihum ineinander über -
   je 6 s, 1,2 s Überblendung. Das erste liegt unten und bleibt stehen; die
   übrigen legen sich nacheinander darüber. */
.projekt .bild.wechsel {
  padding: 0; position: relative; background: #2a2a30;
}
.bild.wechsel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.bild.wechsel img + img { opacity: 0; animation: wechsel-2 18s infinite; }
.bild.wechsel img + img + img { animation-name: wechsel-3; }
@keyframes wechsel-2 {
  0%, 26.67% { opacity: 0; }
  33.33%, 70% { opacity: 1; }
  70.01%, 100% { opacity: 0; }
}
@keyframes wechsel-3 {
  0%, 60% { opacity: 0; }
  66.67%, 93.33% { opacity: 1; }
  100% { opacity: 0; }
}
/* Vier Bilder: je 6 s im 24-s-Takt, dieselbe Überblendung. */
.bild.wechsel.vier img + img { animation: wechsel4-2 24s infinite; }
.bild.wechsel.vier img + img + img { animation-name: wechsel4-3; }
.bild.wechsel.vier img + img + img + img { animation-name: wechsel4-4; }
@keyframes wechsel4-2 {
  0%, 20% { opacity: 0; }
  25%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes wechsel4-3 {
  0%, 45% { opacity: 0; }
  50%, 75% { opacity: 1; }
  75.01%, 100% { opacity: 0; }
}
@keyframes wechsel4-4 {
  0%, 70% { opacity: 0; }
  75%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bild.wechsel img + img { animation: none; }
}
.projekt .inhalt { padding: 24px 28px; }
.projekt .art { font-size: 13px; color: var(--grau); margin: 0 0 6px; }
.projekt p { margin: 0; color: var(--grau); font-size: 16px; }
.projekt .mehr { margin-top: 14px; font-size: 15px; }
.projekt .mehr a { font-weight: 600; }
.projekt .mehr span { font-size: 13px; }
.platzhalter { outline: 2px dashed #e0b400; outline-offset: -2px; }
.platzhalter-hinweis {
  font-size: 13px; background: #fff6cc; border: 1px solid #ecd36b; border-radius: 8px;
  padding: 8px 12px; display: inline-block; margin-top: 24px; color: #6b5800;
}

/* Pea-Pod */
.peapod { background: var(--weiss); }
.pp-raster { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.pp-karte {
  border: 1px solid var(--linie); border-radius: 16px; padding: 28px;
  border-top: 6px solid var(--farbe); background: var(--weiss);
  display: flex; flex-direction: column;
}
.pp-karte img { width: 100%; max-width: 340px; margin: 0 0 20px -8px; }
.pp-karte p { margin: 0 0 14px; color: var(--grau); font-size: 16px; }
.pp-karte ul { margin: 0 0 18px; padding-left: 18px; color: var(--grau); font-size: 15px; }
.pp-karte li { margin-bottom: 4px; }
.pp-karte .status {
  margin-top: auto; align-self: flex-start;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  color: var(--farbe); border: 1px solid var(--farbe);
}
.pp-karte a.status { text-decoration: none; background: var(--farbe); color: var(--weiss); }
.pp-karte a.status:hover { filter: brightness(1.1); }
.pp-haupt { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.pp-warum h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; color: var(--pp-holiday); }
.pp-warum p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--tinte); }
.pp-neu-titel {
  font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--grau);
  margin: 0 0 18px; font-weight: 700;
}
.pp-neu { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.pp-karte.klein { padding: 20px 22px; border-top-width: 4px; border-radius: 12px; }
.pp-karte.klein img { max-width: 220px; margin: 0 0 12px -5px; }
.pp-karte.klein p { font-size: 15px; margin-bottom: 14px; }
.pp-karte.klein .status { font-size: 12px; padding: 4px 10px; }
.pp-holiday { --farbe: var(--pp-holiday); }
.pp-art { --farbe: var(--pp-art); }
.pp-fashion { --farbe: var(--pp-fashion); }
.pp-small { --farbe: var(--pp-small); }

/* Kontakt */
.kontakt .spalten { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kontakt h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--grau); }
.kontakt p { margin: 0; }
.kontakt .gross { font-family: var(--serif); font-size: 22px; }

/* Fuß */
.fuss {
  background: var(--dunkel); color: #a9a59f; font-size: 14px; padding: 36px 0;
}
.fuss .huelle { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fuss a { color: #d6d2cb; text-decoration: none; margin-left: 18px; }
.fuss a:first-child { margin-left: 0; }
.fuss a:hover { color: var(--weiss); }

/* Rechtstexte */
.recht { padding: 70px 0 90px; }
.recht .huelle { max-width: 760px; }
.recht h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 0 0 30px; }
.recht h2 { font-size: 24px; margin: 36px 0 10px; }
.recht p { margin: 0 0 14px; }

@media (max-width: 800px) {
  .mission .spalten, .pp-raster, .pp-haupt, .pp-neu, .projekt { grid-template-columns: 1fr; }
  .projekt .inhalt { padding: 22px 24px 26px; }
  .pp-haupt { gap: 28px; margin-bottom: 52px; }
  section { padding: 64px 0; }
  .buehne {
    --lochung: 24px;
    padding: calc(var(--lochung) + 72px) 0 calc(var(--lochung) + 64px);
    background-image:
      linear-gradient(180deg, rgba(12,14,20,.55) 0%, rgba(12,14,20,.78) 100%),
      url("img/buehne-1200.jpg");
    background-position: 30% center;
  }
  .buehne::before, .buehne::after { background-size: 28px 24px; }
}

/* Aufklappmenü, sobald die Punkte nicht mehr neben Logo und Sprache passen */
@media (max-width: 680px) {
  .kopf { position: sticky; }
  .nav { gap: 12px; }
  .menue-knopf {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; margin: 0;
    background: transparent; border: 1px solid var(--linie); border-radius: 10px; cursor: pointer;
  }
  .menue-knopf span {
    display: block; height: 2px; background: var(--tinte); border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menue-knopf:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
  .nav .sprache { order: 2; }

  .js .menue {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .js .menue.offen { display: flex; }
  .js .menue a { padding: 16px 20px; font-size: 17px; border-top: 1px solid var(--linie); }
  html:not(.js) .menue { gap: 12px; flex-wrap: wrap; }
}
