/* ImmoFil – Gestaltung nach dem Website-Entwurf (design/Immofil_website.png). */

/* Schriften liegen auf dem eigenen Server (SIL Open Font License, siehe static/fonts/LIZENZ-*.txt) */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Montserrat: nur die verwendeten Schnitte 400, 500, 600, Latin-Teilmenge mit Umlauten, ß, „“ und €
   (aus @fontsource/montserrat 5.3.0, siehe static/fonts/LIZENZ-montserrat.txt) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --petrol-900: #0c2f35;
  --petrol-700: #154a52;
  --petrol-500: #2b6b73;
  --creme: #fbf8f2;         /* Seitenhintergrund */
  --creme-hell: #fffdf9;
  --creme-dunkel: #ebe2d2;  /* Linien; Text auf Petrol */
  --sand: #f4ece4;          /* Band mit den drei Schritten */
  --kupfer: #ad7050;        /* dekorativ: Linien, große Ziffern (≥ 3:1) */
  --kupfer-knopf: #9c6244;  /* Knopffläche, Creme darauf 4,7:1 */
  --kupfer-text: #94593b;   /* kleiner Text auf Creme und Sand, ≥ 4,7:1 */
  --kupfer-hell: #e2b48a;   /* Text auf Petrol */
  --text: #1d2a2c;
  --text-leise: #4a5a5c;
  --warnung: #7a2e12;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 72rem;
  --schmal: 44rem;
  --rand: 1rem;
  --radius: 4px;
}
/* Seitenrand wächst mit der Bildschirmbreite, damit Texte auf Tablets und Laptops nicht am Fensterrand kleben */
@media (min-width: 48rem) { :root { --rand: 2rem; } }
@media (min-width: 64rem) { :root { --rand: 3rem; } }

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

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
/* Fett nur im vorhandenen Schnitt 600, damit der Browser keinen Ersatzschnitt erzeugt */
strong, b { font-weight: 600; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--petrol-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 0 0 .5rem; }

a { color: var(--petrol-700); text-underline-offset: .18em; }
a:hover { color: var(--kupfer-text); }

:focus-visible { outline: 3px solid var(--kupfer); outline-offset: 2px; }
/* Der Fokus liegt bei Videos auf den eingebauten Bedienelementen; der Rahmen gehört an das Video selbst */
video:focus, video:focus-within { outline: 3px solid var(--kupfer); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--petrol-900); color: var(--creme); padding: .75rem 1rem; z-index: 10;
}
.skip-link:focus { left: var(--rand); }

/* --- Kopf ------------------------------------------------------------- */
.kopf { background: var(--creme); color: var(--petrol-900); position: relative; z-index: 20; }
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: 1.1rem var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.marke { display: inline-block; text-decoration: none; margin-right: auto; }
.marke img { height: 2.75rem; width: auto; }
/* Hinweis steht rechts: auf großen Bildschirmen hinter der Navigation, mobil vor dem Menüknopf */
.kopf__b2b {
  margin: 0; font-size: .82rem; font-weight: 500; line-height: 1.25; color: var(--kupfer-text);
}
@media (min-width: 64rem) {
  .navigation--breit { order: 2; }
  .kopf__b2b { order: 3; padding-left: 1.5rem; border-left: 1px solid var(--kupfer); }
}
/* Tablet: zu wenig Platz für eine Zeile – Hinweis rechts über der Navigation */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .kopf__innen {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .1rem;
    grid-template-areas: "marke b2b" "marke nav";
  }
  .marke { grid-area: marke; }
  .kopf__b2b { grid-area: b2b; justify-self: end; }
  .navigation--breit { grid-area: nav; justify-self: end; }
  .kopf .navigation--breit ul { gap: 1.5rem; }
}
/* Smartphone: Logo links, Hinweis zweizeilig vor dem Menüknopf */
@media (max-width: 47.99rem) {
  .kopf__innen { gap: .6rem; }
  .marke img { height: 1.9rem; }
  .kopf__b2b { width: min-content; text-align: right; font-size: .75rem; }
}
/* Sehr schmal: Hinweis rechtsbündig in eigener Zeile unter Logo und Menüknopf */
@media (max-width: 23.4rem) {
  .navigation--mobil { order: 2; }
  .kopf__b2b { order: 3; flex-basis: 100%; width: auto; margin-top: -.2rem; }
}

.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.25rem; }
.navigation a {
  color: var(--petrol-900); text-decoration: none; padding: .5rem 0; display: inline-block;
  font-size: .95rem; font-weight: 500;
}
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--kupfer-text); }

.navigation--mobil { display: none; }
.navigation__schalter {
  cursor: pointer; list-style: none; padding: .5rem .9rem; min-height: 44px;
  border: 1px solid var(--petrol-900); border-radius: var(--radius); color: var(--petrol-900);
  display: inline-flex; align-items: center; font-weight: 500;
}
.navigation__schalter::-webkit-details-marker { display: none; }

@media (max-width: 47.99rem) {
  .navigation--breit { display: none; }
  .navigation--mobil { display: block; }
  /* Aufgeklappt: Liste unter der Kopfzeile, Menüknopf und Hinweis bleiben an ihrem Platz */
  .navigation--mobil > nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme); border-bottom: 1px solid var(--creme-dunkel); padding: 0 var(--rand) .75rem;
  }
  .navigation--mobil ul { flex-direction: column; gap: 0; padding-top: .25rem; }
  .navigation--mobil a { padding: .75rem 0; display: block; }
  .kopf__innen .navigation--mobil:not([open]) { flex-basis: auto; }
}

/* --- Abschnitte -------------------------------------------------------- */
main { display: block; }
main:focus { outline: none; }

.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 3rem var(--rand); }
.abschnitt--schmal { max-width: var(--schmal); }
.abschnitt--hell { background: var(--creme-hell); max-width: none; }
.abschnitt--hell > * { max-width: var(--breite); margin-left: auto; margin-right: auto; }
.abschnitt--dunkel { background: var(--petrol-900); color: var(--creme); max-width: none; }
.abschnitt--dunkel h2 { color: var(--creme); }
.abschnitt__kopf { margin-bottom: 2rem; }

.ueberzeile {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kupfer-text); margin: 0 0 .5rem; font-weight: 600;
}
.einleitung { font-size: 1.15rem; color: var(--text-leise); max-width: 40rem; }
.klein { font-size: .9rem; color: var(--text-leise); }
.zentriert { text-align: center; margin-top: 2rem; }

/* Große Überschriften der Startseite */
.titel-gross {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 1.25rem;
}

/* Trennlinie mit Leitsatz */
.trennzeile {
  max-width: var(--breite); margin: 0 auto; padding: 1rem var(--rand) 0;
  display: flex; align-items: center; gap: 1.5rem;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-leise); text-align: center;
}
.trennzeile::before, .trennzeile::after { content: ""; flex: 1; border-top: 1px solid var(--kupfer); opacity: .6; }
@media (max-width: 47.99rem) { .trennzeile::before, .trennzeile::after { display: none; } .trennzeile { letter-spacing: .18em; } }

/* --- Bühne (Startseite) ------------------------------------------------ */
.buehne__innen {
  max-width: var(--breite); margin: 0 auto; padding: 2rem var(--rand) 3rem;
  display: grid; gap: 2.5rem; align-items: center;
}
.buehne h1 {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.1rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.buehne .einleitung { color: var(--text); font-size: 1.1rem; }
/* Überzeile direkt unter dem Logo; nur verschoben, Überschrift und Vorschau bleiben an ihrem Platz */
.buehne .ueberzeile { position: relative; top: -1.75rem; }
/* Überzeile als Teil der H1: gleiche Optik wie als eigener Absatz */
.buehne h1 .ueberzeile { display: block; font-family: var(--sans); line-height: 1.6; }
@media (min-width: 60rem) {
  .buehne__innen { grid-template-columns: 9fr 11fr; padding-top: 2.5rem; }
  .buehne .ueberzeile { top: -2.25rem; }
}

/* --- Knöpfe ------------------------------------------------------------ */
.knopfzeile { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; gap: .9rem;
}
.knopf--primaer, .knopf--kupfer { background: var(--kupfer-knopf); color: var(--creme-hell); }
.knopf--primaer:hover, .knopf--kupfer:hover { background: var(--petrol-900); color: var(--creme-hell); }
.knopf--sekundaer { border-color: currentColor; color: inherit; background: transparent; }
/* Pfeil nur zur Zierde, wird nicht vorgelesen */
.knopf--pfeil::after { content: "→" / ""; font-size: 1.25em; line-height: 1; }
.knopf[disabled] { background: var(--creme-dunkel); color: var(--text-leise); cursor: not-allowed; }

/* --- Video ------------------------------------------------------------- */
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }
.video figcaption { font-size: .85rem; margin-top: .5rem; opacity: .85; }
/* Kennzeichnung KI-generierter Vorschauen: klein, aber gut lesbar */
.ki-hinweis { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .03em; margin: .4rem 0 .15rem; }
/* Feste Farbe: Die Karte ist ein Link, der Hinweis soll beim Überfahren nicht mitfärben */
.karte .ki-hinweis { padding: 0 .25rem; color: var(--text); }
.video--leer {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: var(--petrol-700); border-radius: var(--radius);
}

/* --- Raster und Karten ------------------------------------------------- */
.raster { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.raster { column-gap: 1.25rem; row-gap: 2.5rem; }
.karte__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.karte__link:hover .karte__titel { color: var(--kupfer-text); }
.karte__link:hover .karte__mehr { border-bottom-width: 2px; }
.karte__bild { aspect-ratio: 16 / 9; background: var(--petrol-700); display: grid; place-items: center; overflow: hidden; border-radius: 2px; }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__text { padding: 1.25rem .25rem 0; }
.karte__titel { font-size: 1.6rem; font-weight: 400; line-height: 1.15; margin: 0 0 1rem; }
.karte__kategorie {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--kupfer-text); margin: 0 0 .5rem;
}
.karte__mehr {
  display: inline-flex; gap: .9rem; margin: .25rem 0 0; padding-bottom: .35rem;
  font-size: .9rem; font-weight: 500; color: var(--petrol-900); border-bottom: 1px solid var(--kupfer);
}

.filter ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter a {
  display: inline-block; padding: .45rem 1rem; min-height: 44px; line-height: 1.9;
  border: 1px solid var(--petrol-500); border-radius: 999px; text-decoration: none;
}
.filter a[aria-current="page"] { background: var(--petrol-700); color: var(--creme); border-color: var(--petrol-700); }

/* --- Band mit den Schritten ---------------------------------------------- */
.band { background: var(--sand); }
.band__innen { max-width: var(--breite); margin: 0 auto; padding: 3.5rem var(--rand); }
.band__titel { margin: 0 0 2.25rem; }
.band__kopf { display: grid; gap: 1rem 3rem; align-items: start; margin-bottom: 2.75rem; }
.band__kopf h2 { margin: 0; }
.band__kopf .einleitung { margin: 0; font-size: 1rem; color: var(--text-leise); }
@media (min-width: 60rem) { .band__kopf { grid-template-columns: 1fr 1fr; } }

.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; counter-reset: schritt; }
.schritt {
  counter-increment: schritt; display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; align-items: start;
}
.schritt::before {
  content: counter(schritt, decimal-leading-zero) / "";
  grid-row: span 2; font-family: var(--serif); font-size: 2.9rem; line-height: 1; color: var(--kupfer);
}
.schritt h3 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
.schritt p { margin: 0; font-size: .92rem; color: var(--text-leise); }
@media (min-width: 48rem) {
  .schritte { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .schritt { padding: 0 1.5rem; }
  .schritt:first-child { padding-left: 0; }
  .schritt + .schritt { border-left: 1px solid var(--kupfer); }
}

.ablauf { list-style: none; padding: 0; margin: 0; }
.ablauf li { border-left: 2px solid var(--kupfer); padding: 0 0 1.5rem 1.25rem; }
.ablauf h2 { margin-top: 0; font-size: 1.4rem; }

.kasten { background: var(--creme-hell); border: 1px solid var(--creme-dunkel); padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-top: 2rem; }
.kasten h2 { margin-top: 0; font-size: 1.3rem; }

/* --- „Ihr Film. Ihre Marke.“ unter den Filmkarten: Titel links, Erklärtext rechts --- */
/* Eigener Klassenname: „.marke“ ist das Logo im Seitenkopf. */
.markentext__innen { max-width: var(--breite); margin: 0 auto; padding: 3rem var(--rand) 3.5rem; }
.markentext__innen .einleitung { max-width: 36rem; line-height: 1.7; }
@media (min-width: 60rem) {
  .markentext__innen { gap: 1rem 5rem; padding-top: 4rem; padding-bottom: 4.5rem; }
}

/* --- Produktseite ------------------------------------------------------ */
.produkt { max-width: var(--breite); margin: 0 auto; padding: 2rem var(--rand) 4rem; }
.brotkrumen { font-size: .9rem; margin-bottom: 1.5rem; color: var(--text-leise); }
.produkt__medien { margin: 1.5rem 0 2.5rem; }
.produkt__raster { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .produkt__raster { grid-template-columns: 7fr 5fr; } }
.produkt__angebote h2, .produkt__beschreibung h2 { margin-top: 0; }
.angebot { background: var(--creme-hell); border: 1px solid var(--creme-dunkel); border-top: 3px solid var(--kupfer); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.angebot__preis { font-family: var(--serif); font-size: 1.6rem; color: var(--petrol-900); margin: .25rem 0 1rem; }
.angebot__preis small { display: block; margin-top: .25rem; font-family: var(--sans); font-size: .85rem; line-height: 1.4; color: var(--text-leise); }
.angebot__details dt { font-weight: 600; margin-top: .75rem; }
.angebot__details dd { margin: .15rem 0 0; }
.angebot .knopf { width: 100%; margin-top: 1.25rem; }

/* --- Platzhalter, Hinweise -------------------------------------------- */
.platzhalter {
  background: #fff3c4; color: #5c4400; border: 1px dashed #a67c00;
  padding: .05rem .35rem; border-radius: 3px; font-size: .9em; font-family: var(--sans);
}
.platzhalter--flaeche { font-size: 1rem; }
.hinweis { color: var(--kupfer-text); font-weight: 600; }
.hinweis--rahmen { border: 1px solid var(--kupfer); padding: .75rem 1rem; border-radius: var(--radius); }
.warnung { background: #fbe9e1; color: var(--warnung); border-left: 4px solid var(--warnung); padding: .9rem 1rem; }

/* --- FAQ --------------------------------------------------------------- */
.faq { border-bottom: 1px solid var(--creme-dunkel); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; min-height: 44px; }
.faq__antwort { padding-bottom: 1rem; }

/* --- Formular ---------------------------------------------------------- */
.formular .feld { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.formular label { font-weight: 600; }
.formular input[type="text"], .formular input[type="email"], .formular select, .formular textarea {
  font: inherit; padding: .7rem .8rem; min-height: 48px; width: 100%;
  border: 1px solid var(--petrol-500); border-radius: var(--radius); background: #fff; color: var(--text);
}
.feld--checkbox { flex-direction: row !important; align-items: flex-start; flex-wrap: wrap; }
.feld--checkbox input { width: 1.4rem; height: 1.4rem; margin-top: .2rem; flex-shrink: 0; }
.feld--checkbox label { font-weight: 400; flex: 1; }
.fehler { color: var(--warnung); font-weight: 600; margin: 0; }
.fehler ul { margin: 0; padding-left: 1rem; }
.honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- Rechtstexte, Fuß -------------------------------------------------- */
.rechtstext p { max-width: 65ch; }

.fuss { background: var(--petrol-900); color: var(--creme-dunkel); margin-top: 0; }
.fuss__innen {
  max-width: var(--breite); margin: 0 auto; padding: 2rem var(--rand);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
}
.fuss__marke { margin: 0; }
.fuss__marke img { height: 1.9rem; width: auto; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fuss a {
  color: var(--creme-dunkel); display: inline-block; padding: .4rem 0;
  font-size: .85rem; text-decoration: none;
}
.fuss a:hover { color: var(--kupfer-hell); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* --- B2B-Hinweis --------------------------------------------------------- */
.angebot__b2b { margin-top: -.5rem; }

/* --- Kundenportal -------------------------------------------------------- */
.dateiliste { list-style: none; padding: 0; margin: 0 0 1rem; }
.dateiliste li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 0; border-bottom: 1px solid var(--creme-dunkel);
}
.dateiliste form { margin: 0; }
.knopf--klein { min-height: 44px; padding: .4rem .9rem; font-size: .9rem; }
.formular input[type="url"], .formular input[type="file"] {
  font: inherit; padding: .7rem .8rem; min-height: 48px; width: 100%;
  border: 1px solid var(--petrol-500); border-radius: var(--radius); background: #fff; color: var(--text);
}
