/* ════════════════════════════════════════════════════════════════════
   MIQ elektro GmbH – style.css
   Die einzige Stelle für Farben, Schrift, Abstände und Komponenten.
   Herkunft der Werte: ../gestaltung.md (Palette aus dem Layoutvorschlag
   vom 2026-09-22, Bronze-Textstufe gerechnet). Doku: design-system/.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Schriften, lokal (fonts/, SIL Open Font License) ─── */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("fonts/playfair-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ─── Tokens ─── */
:root {
  /* Farben (gestaltung.md) */
  --creme:         #F4EDE4;   /* Grundfläche */
  --creme-dunkel:  #E5D2BE;   /* Zitatkasten, ruhige Flächen */
  --petrol:        #0D2428;   /* dunkle Flächen, Text auf Creme */
  --petrol-hell:   #173E48;   /* Kacheln, Band */
  --bronze:        #A8784D;   /* Akzent groß: Linien, Pfeile, Überzeilen, Icons */
  --bronze-text:   #8C6440;   /* Akzent für Text und Buttons (AA) */
  --weiss:         #FFFFFF;

  /* Rollen auf Creme */
  --tinte:         var(--petrol);
  --tinte-weich:   #3A4F55;                 /* Fließtext zweiter Ordnung, 7,4 : 1 */
  --linie:         rgba(13, 36, 40, 0.14);

  /* Rollen auf Petrol */
  --auf-petrol:        var(--creme);
  --auf-petrol-weich:  rgba(244, 237, 228, 0.80);
  --linie-dunkel:      rgba(244, 237, 228, 0.18);

  /* Schrift */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Maße */
  --breite:  1200px;
  --rand:    24px;
  --sektion: clamp(64px, 9vw, 120px);
  --radius:  4px;
  --schatten: 0 18px 40px -24px rgba(13, 36, 40, 0.45);
}

/* ─── Basis ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--bronze); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 3px; }
.dunkel :focus-visible, .band :focus-visible, .fuss :focus-visible, .kachel :focus-visible { outline-color: var(--creme); }
::selection { background: var(--bronze); color: var(--weiss); }

/* ─── Typografie ─── */
h1, h2, h3, .titel { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1, .titel-1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.06; }
h2, .titel-2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3, .titel-3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--tinte-weich); max-width: 56ch; }
.dunkel .lead, .band .lead { color: var(--auf-petrol-weich); }
.klein { font-size: 14px; }
.ueberzeile {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin: 0 0 16px;
}
.dunkel .ueberzeile, .band .ueberzeile { color: var(--bronze); }
.handschrift { font-family: var(--serif); font-style: italic; color: var(--bronze-text); }

/* ─── Flächen ─── */
.dunkel { background: var(--petrol); color: var(--auf-petrol); }
.dunkel-hell { background: var(--petrol-hell); color: var(--auf-petrol); }
.creme-dunkel { background: var(--creme-dunkel); }

/* ─── Layout ─── */
.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sektion { padding-block: var(--sektion); }
.sektion-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.raster { display: grid; gap: 24px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .raster-3, .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .raster-2, .raster-3 { grid-template-columns: 1fr; }
  .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ─── Knöpfe ─── */
.knopf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.knopf::after { content: "→"; font-size: 17px; line-height: 1; }
.knopf-primaer { background: var(--bronze-text); color: var(--weiss); }
.knopf-primaer:hover { background: #7A5636; }
.knopf-sekundaer { background: transparent; color: var(--tinte); border-color: var(--petrol); }
.knopf-sekundaer:hover { background: var(--petrol); color: var(--creme); }
.dunkel .knopf-sekundaer, .dunkel-hell .knopf-sekundaer, .band .knopf-sekundaer { color: var(--creme); border-color: var(--creme); }
.dunkel .knopf-sekundaer:hover, .dunkel-hell .knopf-sekundaer:hover, .band .knopf-sekundaer:hover { background: var(--creme); color: var(--petrol); }
.knopf-still { background: transparent; color: var(--tinte); padding-inline: 0; }
.knopf-still::after { color: var(--bronze); }
.dunkel .knopf-still, .dunkel-hell .knopf-still, .band .knopf-still, .kachel .knopf-still { color: var(--creme); }
.knopf-still:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 0.3em; }

/* Pfeil-Quadrat, wie an den Fotokarten */
.pfeil {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--bronze-text); color: var(--weiss);
  border-radius: var(--radius);
  font-size: 18px; line-height: 1;
  text-decoration: none;
  flex: none;
}
.pfeil::before { content: "→"; }
.pfeil:hover { background: #7A5636; }

/* ─── Kopf und Navigation ─── */
.kopf { background: var(--creme); border-bottom: 1px solid var(--linie); }
.kopf .container { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke img { height: 40px; width: auto; }
.marke .leitsatz { font-size: 11px; letter-spacing: 0.08em; color: var(--tinte-weich); }
.nav { display: flex; gap: 28px; margin-inline: auto; padding: 0; list-style: none; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--tinte); }
.nav a:hover, .nav a[aria-current] { color: var(--bronze-text); }
@media (max-width: 900px) {
  .kopf .container { flex-wrap: wrap; gap: 12px 16px; padding-block: 12px; justify-content: space-between; }
  .nav { order: 3; width: 100%; gap: 18px; margin: 0; overflow-x: auto; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
}

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.hero-bild { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-bild { aspect-ratio: 4 / 3; } }

/* ─── Kacheln (Leistungs-Dreier auf Petrol) ─── */
.kachel {
  background: var(--petrol-hell); color: var(--auf-petrol);
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100%;
}
.kachel .symbol { width: 44px; height: 44px; color: var(--bronze); }
.kachel .symbol svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kachel h3 { margin-top: 6px; }
.kachel p { color: var(--auf-petrol-weich); font-size: 15px; margin: 0; }
.kachel .knopf-still { margin-top: auto; padding-top: 10px; font-size: 14px; }

/* ─── Fotokarte ─── */
.fotokarte { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.fotokarte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); }
.fotokarte-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fotokarte h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; }
.fotokarte p { font-size: 14px; color: var(--tinte-weich); margin: 2px 0 0; }
.projektbild { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); }

.fotokarte ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--tinte-weich); display: grid; gap: 4px; }
.fotokarte ul li::before { content: "·"; color: var(--bronze); margin-right: 8px; }
.aufzaehlung { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--tinte-weich); }
.aufzaehlung li { padding: 8px 0; border-top: 1px solid var(--linie); }
.aufzaehlung b { color: var(--tinte); font-weight: 600; margin-right: 8px; }
.bildunterschrift { font-size: 14px; color: var(--tinte-weich); margin-top: 10px; }
figure { margin: 0; }

/* ─── Band ─── */
.band { background: var(--petrol); color: var(--auf-petrol); }
.band .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
.band h2 { margin-bottom: 16px; }
.band .lead { margin-bottom: 28px; }
.stichworte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--auf-petrol-weich); }
.stichworte b { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--auf-petrol); font-weight: 400; }
.stichworte.erklaert { gap: 18px; font-size: 14px; letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) { .band .container { grid-template-columns: 1fr; } }

/* ─── Zitat ─── */
.zitat {
  background: var(--creme-dunkel); color: var(--tinte);
  padding: 36px 32px 28px;
  border-radius: var(--radius);
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35;
  margin: 0;
}
.zitat::before { content: "\201E"; display: block; font-size: 64px; line-height: 0.4; color: var(--bronze); margin-bottom: 22px; }
.zitat::after { content: ""; display: block; width: 36px; height: 1px; background: var(--bronze); margin-top: 24px; }

/* ─── Text mit Bild (Willkommen) ─── */
.text-bild .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.text-bild h2 { max-width: 16ch; margin-bottom: 20px; }
.text-bild .lead { margin-bottom: 28px; }
.bildstapel { position: relative; }
.bildstapel img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.bildstapel .zitat { position: absolute; right: -24px; bottom: 32px; max-width: 260px; box-shadow: var(--schatten); }
.merkmale { display: flex; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tinte-weich); }
.merkmale li + li::before { content: "/"; margin-right: 14px; color: var(--bronze); }
@media (max-width: 900px) {
  .text-bild .container { grid-template-columns: 1fr; }
  .bildstapel .zitat { position: static; max-width: none; margin-top: 16px; box-shadow: none; }
}

/* ─── Kontakt ─── */
.kontakt .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.kontakt h2 { max-width: 14ch; }
@media (max-width: 900px) { .kontakt .container { grid-template-columns: 1fr; } }

.kontaktzeile { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kontaktzeile li { display: flex; align-items: center; gap: 12px; }
.kontaktzeile svg { width: 20px; height: 20px; color: var(--bronze); stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.kontaktzeile a { text-decoration: none; }
.kontaktzeile a:hover { text-decoration: underline; }

/* ─── Fuß ─── */
.fuss { background: var(--petrol); color: var(--auf-petrol); font-size: 14px; }
.fuss .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px 48px; padding-block: 56px 40px; }
.fuss .marke img { height: 44px; }
.fuss .leitsatz { color: var(--auf-petrol-weich); margin-top: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss a { text-decoration: none; color: var(--auf-petrol); }
.fuss a:hover { color: var(--bronze); }
.fuss .rechtliches { grid-column: 1 / -1; border-top: 1px solid var(--linie-dunkel); padding-top: 20px; color: var(--auf-petrol-weich); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 900px) { .fuss .container { grid-template-columns: 1fr; } }

/* ─── Kleinigkeiten ─── */
.linie { border: 0; border-top: 1px solid var(--linie); margin: 0; }
.dunkel .linie { border-color: var(--linie-dunkel); }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .knopf, .pfeil { transition: none; } }
