/* Dachdecker Müller – Muster Variante 2 (dunkel und kräftig)
   Aufbau: schwebende dunkle Kopfleiste über bildschirmfüllendem Foto,
   Überschrift in Großbuchstaben, Leistungen als seitliches Laufband. */

:root {
  --nacht: #14161a;
  --nacht-hell: #1f2228;
  --text: #1c1f24;
  --grau: #5b636e;
  --hell: #f3f4f6;
  --weiss: #fff;
  --breite: 78rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}
/* Königsblau als Akzent, dunkle Flächen neutral anthrazit */
:root { --akzent: #2f49d1; --akzent-dunkel: #2238a8; --akzent-text: #fff; --akzent-hell: #a9b6ff; --akzent-zart: #edf0fb; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em;
  margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
p { margin: 0 0 1em; }
a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible, .laufband:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--akzent); outline-offset: 3px;
}
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--weiss); color: var(--text); padding: .5rem 1rem; z-index: 60; }

.innen { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }
section[id] { scroll-margin-top: 4.5rem; }
.abschnitt { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* Knöpfe */
.knopf {
  display: inline-block; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center;
  padding: .9rem 1.6rem; border-radius: 6px; border: 2px solid var(--akzent);
  background: var(--akzent); color: var(--akzent-text);
}
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf-klein { padding: .55rem 1.1rem; }
.knopf-dunkel { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.knopf-dunkel:hover { background: var(--nacht-hell); border-color: var(--nacht-hell); }

/* Schwebende Kopfleiste */
.kopf {
  position: fixed; top: .75rem; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(calc(100% - 1.5rem), var(--breite));
  background: color-mix(in srgb, var(--nacht) 94%, transparent); color: var(--weiss);
  border-radius: 10px; padding: .6rem .75rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.logo { flex: none; background: var(--weiss); border-radius: 6px; padding: .45rem .9rem; display: block; }
.logo span { display: block; width: 124px; height: 30px; background: url(../bilder/logo.png) -294px 0 no-repeat; }
.menue { margin-left: auto; }
.menue summary {
  list-style: none; cursor: pointer; font-weight: 700;
  padding: .5rem .9rem; border: 2px solid var(--weiss); border-radius: 6px;
}
.menue summary::-webkit-details-marker { display: none; }
.menue nav { display: flex; flex-direction: column; }
.menue nav a {
  white-space: nowrap; text-decoration: none; font-weight: 700; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .03em; padding: .7rem .25rem;
}
.menue nav a:hover { color: var(--akzent-hell); }
.nur-schmal { display: none; }
@media (max-width: 29.99rem) {
  .kopf-kontakt { display: none; }
  .nur-schmal { display: block; }
}
@media (max-width: 67.99rem) {
  .menue[open] { order: 3; flex-basis: 100%; margin-left: 0; }
  .menue[open] summary { display: inline-block; margin-bottom: .25rem; }
  .kopf:has(.menue[open]) .kopf-kontakt { margin-left: auto; }
}
@media (min-width: 68rem) {
  .menue summary { display: none; }
  .menue nav { flex-direction: row; gap: 1.5rem; }
  .menue::details-content { content-visibility: visible; display: block; }
  .kopf { padding: .6rem .75rem; gap: 2rem; }
}

/* Bühne */
.buehne { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; background: var(--nacht); color: var(--weiss); }
.buehne > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.buehne::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--nacht) 82%, transparent) 0%, color-mix(in srgb, var(--nacht) 50%, transparent) 45%, color-mix(in srgb, var(--nacht) 15%, transparent) 100%),
    linear-gradient(to top, color-mix(in srgb, var(--nacht) 85%, transparent) 0%, transparent 45%);
}
.buehne-text {
  position: relative; z-index: 1; width: 100%; max-width: var(--breite); margin: 0 auto;
  padding: 8rem var(--rand) clamp(2.5rem, 7vw, 5rem);
}
.buehne h1 { max-width: 14em; }
.oberzeile { font-size: 1.125rem; font-weight: 600; margin-bottom: .6rem; }
.unterzeile { font-size: 1.125rem; max-width: 34em; margin: 1rem 0 1.75rem; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.siegel { background: var(--weiss); border-radius: 6px; padding: .2rem .6rem; }
.siegel img { height: 44px; width: auto; }

/* Leistungen: Laufband */
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.kopfzeile h2 { border-left: .35rem solid var(--akzent); padding-left: .9rem; }
.pfeile { display: flex; gap: .5rem; flex: none; }
.pfeile button {
  cursor: pointer; font: inherit; font-size: 1.25rem; line-height: 1;
  width: 2.75rem; height: 2.75rem; border-radius: 6px;
  border: 2px solid var(--akzent); background: var(--weiss); color: var(--text);
}
.pfeile button:hover { background: var(--akzent); color: var(--akzent-text); }
.laufband {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 22rem); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding: .25rem max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand))) 1.25rem;
  scroll-padding-left: max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand)));
}
.kachel {
  position: relative; scroll-snap-align: start; display: block; overflow: hidden;
  border-radius: 10px; aspect-ratio: 3 / 4; background: var(--nacht); color: var(--weiss); text-decoration: none;
}
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel span {
  position: absolute; inset: auto 0 0 0; padding: 4rem 1.25rem 1.25rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--nacht) 95%, transparent) 30%, transparent);
  font-size: .9375rem; line-height: 1.45;
}
.kachel strong { display: block; font-size: 1.375rem; text-transform: uppercase; font-weight: 800; margin-bottom: .3rem; }
.kachel:hover strong { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 3px; text-underline-offset: .25em; }

/* Dunkle Abschnitte */
.dunkel { background: var(--nacht); color: var(--weiss); }
.vorteile { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.vorteile li { background: var(--nacht-hell); border-top: .25rem solid var(--akzent); border-radius: 0 0 8px 8px; padding: 1.5rem; color: #c9ced6; }
.vorteile strong { display: block; color: var(--weiss); font-size: 1.1875rem; margin-bottom: .4rem; }

/* Geteilte Abschnitte */
.geteilt { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 54rem) { .geteilt { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.geteilt h2 { margin-bottom: 1.25rem; }
.geteilt p { max-width: 34em; }
.geteilt .knopf { margin-top: .5rem; }
.bild-junge {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 10px;
  background: #e9ecef url(../bilder/start.jpg) 40% 20% / auto 150% no-repeat;
}

/* Karriere: ruhiges, zart blaues Band mit blauem Streifen links */
.karriere { background: var(--akzent-zart); color: var(--text); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.karriere .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.karriere .innen > div { flex: 1 1 24rem; border-left: .35rem solid var(--akzent); padding-left: 1.25rem; }
.karriere h2 { margin-bottom: .75rem; }
.karriere p { margin: 0; max-width: 38em; font-size: 1.125rem; color: var(--grau); }

/* Kontakt */
#kontakt .geteilt { align-items: start; }
address { font-style: normal; margin: 1.25rem 0; line-height: 1.8; }
.formular { display: grid; gap: 1rem; background: var(--nacht-hell); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 10px; }
.formular label { display: grid; gap: .3rem; font-weight: 600; font-size: .9375rem; }
.formular input, .formular select, .formular textarea {
  font: inherit; font-weight: 400; width: 100%; color: var(--text);
  padding: .65rem .75rem; border: 1px solid #8a929d; border-radius: 6px; background: var(--weiss);
}
.formular .knopf { justify-self: start; }
.hinweis { font-size: .875rem; color: #aab1bb; margin: 0; }

/* Fuß */
.fuss { background: color-mix(in srgb, var(--nacht) 70%, #000); color: #c9ced6; padding: 1.75rem 0 2.25rem; font-size: .9375rem; }
.fuss .innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.5rem; }

/* ---------- Unterseiten ---------- */
.menue nav a[aria-current="page"] { color: var(--akzent-hell); box-shadow: inset 0 -3px 0 var(--akzent); }

.knopf-hell { background: transparent; border-color: var(--weiss); color: var(--weiss); }
.knopf-hell:hover { background: var(--weiss); border-color: var(--weiss); color: var(--text); }

/* kürzere Bühne; oben genug Platz für die schwebende Kopfleiste */
.buehne-unter { min-height: 0; }
.buehne-unter .buehne-text { padding-top: clamp(9rem, 22vh, 13rem); }
.buehne-unter > img { object-position: 50% 45%; }

.pfad { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9375rem; margin-bottom: 1rem; color: #d3d7de; }
.pfad a { color: var(--weiss); }
.pfad [aria-current] { font-weight: 700; color: var(--weiss); }

.balken { border-left: .35rem solid var(--akzent); padding-left: .9rem; margin-bottom: 2rem; }
.flaeche-hell { background: var(--hell); }

.kasten { background: var(--akzent-zart); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.kasten h3 { font-size: 1.1875rem; margin: 0 0 .75rem; }
.haken { list-style: none; margin: 0; padding: 0; }
.haken li { position: relative; padding: .6rem 0 .6rem 2rem; border-top: 1px solid rgba(47, 73, 209, .18); }
.haken li:first-child { border-top: 0; }
.haken li::before {
  content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .9rem; height: .45rem;
  border-left: 3px solid var(--akzent); border-bottom: 3px solid var(--akzent); transform: rotate(-45deg);
}

.arten { display: grid; gap: 1.5rem; }
@media (min-width: 54rem) { .arten { grid-template-columns: 1fr 1fr; } }
.arten article { background: var(--weiss); border-radius: 10px; overflow: hidden; display: grid; }
.arten img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* mittlere Breite: eine Spalte, Bild links neben dem Text */
@media (min-width: 34rem) and (max-width: 53.99rem) {
  .arten article { grid-template-columns: 2fr 3fr; }
  .arten img { aspect-ratio: auto; min-height: 12rem; }
}
.arten article > div { padding: 1.5rem; }
.arten h3 { font-size: 1.3125rem; text-transform: uppercase; font-weight: 800; margin: 0; }
.art-zeile { color: var(--akzent); font-weight: 700; margin: .15rem 0 .6rem; }
.arten p:last-child { margin: 0; color: var(--grau); font-size: 1rem; }

.einleitung-dunkel { color: #c9ced6; max-width: 44em; margin: 1rem 0 0; font-size: 1.125rem; }
.vorteile-zwei { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.vorteile-zwei li { line-height: 1.65; }
.muster-hinweis {
  margin: 1.5rem 0 0; padding: .75rem 1rem; border: 1px dashed #8a929d; border-radius: 6px;
  font-size: .875rem; color: #c9ced6; max-width: 48em;
}

.themen { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.themen .kachel { aspect-ratio: 4 / 3; }
