/* ============================================================
   MARKENFARBEN – nur hier anpassen.
   Hauptfarbe Grau, Akzent Sonnengelb aus dem Logo (#FCC600).
   ============================================================ */
:root {
  --marke:        #fcc600;   /* Logo-Gelb */
  --marke-dunkel: #e5b300;   /* Hover */
  --marke-text:   #8a6b00;   /* Gelb-Ton für Schrift auf Weiß (lesbar) */
  --marke-hell:   #fff6d6;   /* helle Flächen */
  --grau:         #4f5357;   /* HAUPTFARBE: Header, Titelbereich, Kontakt */
  --grau-dunkel:  #3d4044;   /* Footer, Hover */
  --schwarz:      #1d1f21;   /* Schrift auf Gelb */
  --text:         #1d1f21;
  --text-weich:   #5d6166;
  --hintergrund:  #ffffff;
  --flaeche:      #f5f4f0;

  --radius: 12px;
  --schatten: 0 10px 30px rgba(0, 0, 0, .08);
  --breite: 1180px;
  --schrift: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel: "Outfit", var(--schrift);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font-family: var(--schrift); color: var(--text); background: var(--hintergrund); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titel); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.container { max-width: var(--breite); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section.grau { background: var(--flaeche); }
.kicker { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--marke-text); margin-bottom: 10px; }
.dunkel .kicker { color: var(--marke); }
.lead { color: var(--text-weich); font-size: 1.1rem; max-width: 620px; }
.slot-leer { background: repeating-linear-gradient(45deg, var(--marke-hell), var(--marke-hell) 12px, #fff 12px, #fff 24px) !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--marke); outline-offset: 3px; }
.btn-primaer { background: var(--marke); color: var(--schwarz); }
.btn-primaer:hover { background: var(--marke-dunkel); }
.btn-hell { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-hell:hover { background: #fff; color: var(--schwarz); }

/* Header (dunkel, damit das gelbe Logo wirkt) */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: transparent; color: #fff; transition: box-shadow .2s, background .3s; }
.header.gescrollt { background: var(--grau); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: 20px; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--marke); }
.nav .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: #fff; }

/* Hero: freigestellte Personen groß auf Grau, schräge Unterkante */
.ms-hero { position: relative; z-index: 2; background: var(--grau); color: #fff; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--schraege))); margin-bottom: calc(var(--schraege) * -1); }
:root { --schraege: clamp(40px, 6vw, 90px); }
.ms-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: end; gap: 0; }
.ms-hero-text { position: relative; z-index: 2; align-self: center; padding-block: calc(clamp(56px, 8vw, 110px) + var(--kopf)) calc(clamp(56px, 8vw, 110px) + var(--schraege)); }
.ms-hero-bild { padding-top: var(--kopf); }
:root { --kopf: 104px; }
/* Ganz schwaches Foto hinter Kopfzeile und Titelbereich (eigener Bildplatz, im Admin tauschbar) */
.ms-hero { margin-top: calc(var(--kopf) * -1); }
.ms-hero-hintergrund { position: absolute; inset: -40px 0 0; background-size: cover; background-position: center 30%;
  opacity: var(--hell, .16); will-change: transform; }
.ms-hero-hintergrund::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--grau) 0%, rgba(79,83,87,.4) 45%, rgba(79,83,87,0) 100%); }
.ms-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.ms-hero h1 span { color: var(--marke); }
.ms-hero p { font-size: 1.2rem; max-width: 500px; color: rgba(255,255,255,.85); }
.ms-hero .aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ms-hero-bild { align-self: end; margin-right: -40px; will-change: transform; }
.ms-hero-bild img { width: 122%; max-width: none; margin-left: -8%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }

/* Vertrauensleiste */
.vertrauen { background: var(--marke); color: var(--schwarz); }
.vertrauen .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: calc(22px + var(--schraege)) 22px; }
.vertrauen div { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.vertrauen b { font-size: 1.5rem; font-family: var(--titel); }

/* Produkte */
.kopf { display: flex; justify-content: flex-start; align-items: end; gap: 12px 40px; margin-bottom: 44px; flex-wrap: wrap; }
.kopf .lead { max-width: none; flex: 1 1 340px; margin-bottom: 8px; }
.kopf h2 { margin-bottom: 0; }
.produkte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.produkt { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--schatten); text-decoration: none; }
.produkt img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right center; }
.produkt div { padding: 18px 20px 22px; border-top: 3px solid var(--marke); transition: border-top-color .2s; position: relative; z-index: 1; background: #fff; }
.produkt h3 { font-size: 1.1rem; margin-bottom: 4px; }
.produkt p { margin: 0; color: var(--text-weich); font-size: .93rem; }

/* Ablauf */
.ablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; counter-reset: schritt; }
.schritt { background: #fff; padding: 30px 26px; border-radius: var(--radius); }
.schritt::before { counter-increment: schritt; content: counter(schritt); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marke); color: var(--schwarz); font-family: var(--titel); font-weight: 800; font-size: 1.2rem; }
.schritt h3 { margin-top: 16px; font-size: 1.15rem; }
.schritt p { margin: 0; color: var(--text-weich); }

/* Referenzen */
.referenzen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.referenzen img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right bottom; border-radius: 10px; }
.referenzen img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; aspect-ratio: auto; }

/* Über uns / Ausstellung */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--schatten); aspect-ratio: 3 / 2; object-fit: cover; object-position: right bottom; width: 100%; }
.zitat { font-family: var(--titel); font-size: 1.35rem; font-weight: 700; border-left: 4px solid var(--marke); padding-left: 18px; margin: 26px 0; }
.haken { list-style: none; padding: 0; margin: 0; }
.haken li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--marke-text); font-weight: 800; }

/* Partner */
.partner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 60px); }
.partner img { height: 80px; width: auto; }

/* Kontakt */
.kontakt { background: var(--grau); color: #fff; }
.kontakt .lead { color: rgba(255,255,255,.75); }
.kontakt-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.karte { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; }
.karte h3 { color: var(--marke); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.karte p { margin: 0; }
.karte a { text-decoration: none; }
.karte a:hover { color: var(--marke); }
.cta-zeile { margin-top: 36px; }

/* Footer */
.footer { background: var(--grau-dunkel); color: rgba(255,255,255,.6); font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 24px; }
.footer nav { display: flex; gap: 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--marke); }

/* Responsiv */
@media (max-width: 1240px) { .ms-hero .container { grid-template-columns: .85fr 1.15fr; } .ms-hero-bild { margin-right: -2vw; } .ms-hero-bild img { width: 108%; margin-left: -6%; } }
@media (max-width: 980px) {
  .produkte, .ablauf { grid-template-columns: repeat(2, 1fr); }
  .vertrauen .container { grid-template-columns: repeat(2, 1fr); }
  .kontakt-karten, .split { grid-template-columns: 1fr; }
  .ms-hero .container { grid-template-columns: 1fr; }
  .ms-hero-text { padding-bottom: 0; }
  .ms-hero-bild { max-width: 560px; margin: 4px auto 0; padding-top: 0; }
  .ms-hero-bild img { width: 114%; margin-left: -7%; }
}
@media (max-width: 760px) {
  .kopf { gap: 4px; margin-bottom: 28px; }
  .kopf h2 { margin-bottom: .2em; }
  .kopf .lead { margin: 0; }
  .referenzen img:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
  .referenzen img:nth-child(6) { display: none; } /* 1 groß + 4 klein, keine Lücke */
  .section { padding-block: 56px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--grau); padding: 20px; gap: 16px; display: none; }
  .nav.offen { display: flex; }
  .nav .btn { justify-content: center; }
  .referenzen { grid-template-columns: 1fr 1fr; }
  .logo img { height: 44px; }
  .header .container { height: 80px; }
  :root { --kopf: 80px; }
}
@media (max-width: 520px) {
  .produkte, .ablauf, .vertrauen .container { grid-template-columns: 1fr; }
  .partner img { height: 60px; }
}
/* Bewegung beim Scrollen (js/bewegung.js) */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.von-links { transform: translateX(-50px); }
.reveal.von-rechts { transform: translateX(50px); }
.reveal.zoom { transform: scale(.94); }
.reveal.sichtbar { opacity: 1; transform: none; }
.header .logo img { transition: height .25s, transform .25s; transform-origin: left center; }
.header .logo:hover img { transform: scale(1.03); }
.header.gescrollt .container { height: 78px; }
.header.gescrollt .logo img { height: 48px; }
.header .container { transition: height .25s; }

/* Überschriften: Buchstaben gleiten nacheinander von unten hoch (wie Seeburger SV) */
.welle .wort { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.welle .bs { display: inline-block; }
.welle.warten .bs { transform: translateY(110%); }
.welle.los .bs { animation: hochfahren 1.3s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--n) * 45ms); }
@keyframes hochfahren { from { transform: translateY(110%); } to { transform: none; } }

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

/* ============================================================
   Titelbild: eine freigestellte Person (Matt, 08.11.2026)
   ============================================================ */
/* Ein unsichtbarer Platzhalter (Format des früheren Teamfotos) bestimmt die Größe des
   Titelbereichs, die Person steht unten mittig darin. */
.ms-hero-bild { position: relative; --solo-oben: var(--kopf); }
.ms-hero-bild .ms-hero-platz { visibility: hidden; filter: none; }
.ms-hero-bild .ms-hero-solo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: calc((100% - var(--solo-oben)) * .97); width: auto; max-width: none; margin: 0; }
@media (max-width: 980px) { .ms-hero-bild { --solo-oben: 0px; } }

/* ============================================================
   UNTERSEITEN
   ============================================================ */
/* Menü: Produkte mit Untermenü */
.nav-gruppe { position: relative; }
.nav-gruppe > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-gruppe > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.nav-unter { position: absolute; top: 100%; left: -18px; min-width: 300px; padding: 10px; margin-top: 12px; background: var(--grau); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.3); display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-unter::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-unter a { padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.nav-unter a:hover { background: rgba(255,255,255,.08); }
.nav-gruppe:hover .nav-unter, .nav-gruppe:focus-within .nav-unter { opacity: 1; visibility: visible; transform: none; }
.nav a[aria-current="page"], .nav-gruppe.aktiv > a { color: var(--marke); }

/* Seitenkopf: grau wie die Startseite, schräge Unterkante in gelbe Kante */
.seite-kopf { position: relative; z-index: 2; background: var(--grau); color: #fff; margin-top: calc(var(--kopf) * -1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--schraege))); margin-bottom: calc(var(--schraege) * -1); }
.seite-kopf .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  padding-top: calc(var(--kopf) + clamp(40px, 6vw, 80px)); padding-bottom: calc(clamp(50px, 7vw, 90px) + var(--schraege)); }
.kopf-hintergrund { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: var(--hell, .25); pointer-events: none; }
.kopf-hintergrund::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--grau) 0%, rgba(79,83,87,.35) 55%, rgba(79,83,87,0) 100%); }
.kopf-hintergrund.slot-leer, .ms-hero-hintergrund.slot-leer { display: none; }
.seite-kopf .container { position: relative; z-index: 1; }
.seite-kopf.ohne-bild .container { grid-template-columns: 1fr; }
.seite-kopf.klein .container { padding-bottom: calc(30px + var(--schraege)); }
.seite-kopf h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
.seite-kopf h1 span { color: var(--marke); }
.seite-kopf p { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.85); margin: 0; }
.seite-kopf-bild img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; margin-left: auto; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.brotkrumen { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { color: var(--marke); }
.gelbe-kante { height: calc(var(--schraege) + 10px); background: var(--marke); }

/* Text links, Beratungsbox rechts */
/* Überblick: Text und Beratungskasten untereinander (Matt 11.11.2026: weniger Leerraum) */
.text-split { display: grid; grid-template-columns: 1fr; gap: 36px; }
/* weniger Abstand zwischen Überblick und Galerie */
.section:has(.text-split) { padding-bottom: clamp(32px, 4vw, 48px); }
.section:has(.text-split) + .section:not(.grau):not(.dunkel) { padding-top: clamp(16px, 2vw, 24px); }
.section:has(.text-split) + .section.grau { padding-top: clamp(40px, 5vw, 60px); }
.text-split p { max-width: none; }
.beratung-box { background: var(--flaeche); border-radius: var(--radius); padding: 32px; border-top: 4px solid var(--marke); }
.beratung-box h3 { font-size: 1.3rem; }
.beratung-box p { color: var(--text-weich); }
.beratung-box .klein { font-size: .95rem; margin-bottom: 0; }
.beratung-box .klein a { color: var(--marke-text); font-weight: 600; }
.zitat.gross { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; align-self: center; }

/* Varianten-Kacheln (wie Produktkacheln, aber ohne Link) */
.produkte.varianten-3 { grid-template-columns: repeat(3, 1fr); }
.produkte.varianten-5 { grid-template-columns: repeat(3, 1fr); }

/* Galerie mit großer Ansicht */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right center; border-radius: 10px; cursor: pointer; }
.galerie img, .referenzen img { outline: 8px solid transparent; outline-offset: -8px; transition: outline-color .2s; }
/* Beim Drüberfahren: Galeriefotos nur gelber Rahmen; Seiten-Kacheln nur als Ganzes leicht vergrößern (kein Rahmen). */
.produkt { position: relative; transition: opacity .7s ease, transform .25s ease, box-shadow .25s; }
.produkt.reveal:not(.sichtbar) { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
a.produkt:hover, .produkt.variante:hover { transform: scale(1.03); z-index: 2; }
@media (prefers-reduced-motion: reduce) { a.produkt:hover, .produkt.variante:hover { transform: none; } }
.galerie img:hover, .referenzen img:hover { outline-color: var(--marke); }
.grossbild { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,24,.94); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.grossbild img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.grossbild button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.grossbild .pfeil { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 10px; }
.grossbild .pfeil.zurueck { left: 10px; right: auto; }
.grossbild .pfeil.vor { right: 10px; }

/* Team, weitere Produkte, Rechtstexte */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.team img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: #000; }
.weitere-leiste { padding-block: 50px; border-top: 1px solid #eee; }
.chip-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-liste a { text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--flaeche); font-weight: 600; transition: background .15s; }
.chip-liste a:hover { background: var(--marke); }
.kontakt-karten.hell { margin-top: 0; }
.kontakt-karten.hell .karte { background: var(--flaeche); border-color: transparent; }
.kontakt-karten.hell .karte h3 { color: var(--marke-text); }
.kontakt-karten.hell .karte a:hover { color: var(--marke-text); }
.rechtstext { max-width: 800px; }
.rechtstext h2 { font-size: 1.25rem; margin-top: 1.8em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext a { color: var(--marke-text); }
.hinweis { background: var(--marke-hell); border-left: 4px solid var(--marke); padding: 12px 16px; border-radius: 6px; }
.mehr-link { color: var(--marke-text); font-weight: 600; white-space: nowrap; }
.split .partner { justify-content: flex-start; }
.split .partner img { box-shadow: none; aspect-ratio: auto; width: auto; border-radius: 0; }

@media (max-width: 980px) {
  .seite-kopf .container, .text-split { grid-template-columns: 1fr; }
  .beratung-box { position: static; }
  .produkte.varianten-3, .produkte.varianten-5 { grid-template-columns: repeat(2, 1fr); }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-gruppe > a::after { display: none; }
  .nav-unter { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin: 6px 0 0; padding: 0 0 0 14px; background: none; border-left: 2px solid rgba(255,255,255,.15); border-radius: 0; min-width: 0; }
  .nav-unter a { padding: 6px 10px; font-size: .95rem; }
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .produkte.varianten-3, .produkte.varianten-5, .galerie { grid-template-columns: 1fr; }
}
.section:not(.grau) .schritt { background: var(--flaeche); }
@media (max-width: 760px) {
  .header.gescrollt .container { height: 68px; }
  .header.gescrollt .logo img { height: 38px; }
}
/* Mittlere Bildschirme: Logo etwas kleiner, damit Menü und Telefon-Knopf in eine Zeile passen */
.nav .btn { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1100px) {
  .nav { gap: 20px; }
  .logo img, .header.gescrollt .logo img { height: 48px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .nav .btn { display: none; }
}
.referenzen img { cursor: pointer; }
/* Beratungskasten unter der Galerie */
.section:not(.grau):not(.dunkel) + .section.beratung-nach { padding-top: 0; }
.section.beratung-nach { padding-bottom: clamp(48px, 5vw, 64px); }
.section.grau + .section.beratung-nach { padding-top: clamp(40px, 5vw, 56px); }
.section:not(.grau):not(.dunkel):has(+ .beratung-nach) { padding-bottom: clamp(40px, 5vw, 56px); }
/* zwei graue Abschnitte hintereinander: kein doppelter Abstand */
.section.grau + .section.grau { padding-top: 0; }
.section.grau:has(+ .beratung-nach) { padding-bottom: clamp(48px, 5vw, 64px); }
.galerie-knopf { margin: 28px 0 0; }
/* Somfy-Seite: kein eigener Abstand über den Somfy-Inhalten */
.section.somfy-bereich { padding-top: 0; }
.somfy-inhalt > :first-child { margin-top: 0 !important; }
/* roter Knopf zu den Somfy-Videos (wie auf der alten Seite) */
.btn-rot { background: #E3001B; color: #fff; }
.btn-rot:hover, .btn-rot:focus-visible { background: #B80016; color: #fff; }
/* leere Galerie-Kacheln (im Admin angelegt, noch ohne Foto) auf der Website nicht zeigen */
.galerie > .slot-leer { display: none; }
/* Suche im Header (js/suche.js) */
.suche-knopf { order: 3; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; font: inherit; font-weight: 500; border: 1.5px solid rgba(255,255,255,.45); background: transparent; color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.suche-knopf:hover, .suche-knopf:focus-visible, .suche-knopf[aria-expanded="true"] { background: var(--marke); border-color: var(--marke); color: var(--schwarz); outline: none; }
.header .nav { order: 2; }
.suche-offen { overflow: hidden; }
.suche-feld { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,24,.65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.suche-feld[hidden] { display: none; }
.suche-feld > .suche-box { width: min(1100px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--flaeche); border-radius: var(--radius); padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.suche-form { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--marke); border-radius: 999px; padding: 6px 8px 6px 18px; color: var(--grau); }
.suche-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: 8px 0; background: transparent; }
.suche-form input::-webkit-search-cancel-button { display: none; }
.suche-zu { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--flaeche); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--grau); }
.suche-zu:hover { background: var(--marke); }
.suche-info { margin: 14px 4px; color: var(--text-weich); font-size: .95rem; }
.suche-info:empty { display: none; }
.suche-treffer:empty { display: none; }
.suche-treffer .produkt p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.suche-treffer mark { background: #ffe680; color: inherit; border-radius: 2px; }
@media (max-width: 760px) {
  .suche-knopf { order: 0; margin-left: auto; height: 40px; padding: 0 14px 0 11px; }
  .suche-feld { padding: 10px; align-items: flex-start; }
  .suche-feld > .suche-box { padding: 14px 14px 20px; max-height: calc(100dvh - 20px); }
  .suche-form input { font-size: 1rem; }
}

/* Zwei-Klick-Lösung für Somfy-Inhalte (Datenschutz): Hinweis vor dem Laden */
.extern-hinweis { max-width: 760px; margin: 0 auto; padding: 32px; text-align: center; background: var(--flaeche); border-top: 6px solid var(--marke); border-radius: var(--radius); }
.extern-hinweis h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--grau); }
.extern-hinweis .extern-klein { font-size: .9rem; color: var(--text-weich); }
.extern-hinweis .extern-klein a { color: var(--marke-text); }
.extern-hinweis .extern-knopf { margin: 20px 0 0; }
.extern-hinweis .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.extern-hinweis .btn:disabled { opacity: .7; cursor: wait; }
@media (max-width: 600px) { .extern-hinweis { padding: 24px 18px; } }

/* Hero-Kicker auf Desktop größer */
@media (min-width: 900px) { .ms-hero .kicker { font-size: 1.18rem; } }
@media (min-width: 761px) { .nav-unter a { white-space: nowrap; } }

/* Logo nie verzerren (alle Breiten) */
.header .logo img { object-fit: contain; object-position: left center; }
/* Home im Desktop-Menü (js/suche.js), mobil gibt es dafür den Home-Knopf */
@media (max-width: 760px) { .nav .nav-home { display: none; } }
/* Seite darf mobil nicht seitlich verrutschen (Einblend-Effekte ragen sonst rechts raus), Kopfzeile bleibt oben fest */
html { overflow-x: clip; }

/* Mobile Kopfzeile: Home-Knopf statt Suche, Suche im Burger-Menü, Logo unverzerrt (26.11.2026) */
.home-knopf, .suche-menue { display: none; }
@media (max-width: 760px) {
  .header .logo { flex: 0 1 auto; min-width: 0; }
  .header .logo img, .header.gescrollt .logo img { width: auto; height: auto; max-width: 100%; max-height: 44px; }
  .header.gescrollt .logo img { max-height: 38px; }
  .header .suche-knopf { display: none; }
  .home-knopf { display: inline-flex; align-items: center; flex: none; margin-left: auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
  .home-knopf:hover, .home-knopf:focus-visible { background: var(--marke); border-color: var(--marke); color: var(--schwarz); outline: none; }
  .header .container { gap: 12px; }
  .nav .suche-menue { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); background: transparent; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
  .nav .suche-menue:hover { background: var(--marke); border-color: var(--marke); color: var(--schwarz); }
}

/* Desktop-Kopfzeile in einer Zeile: Logo links, Menü, dann Telefon + Suche als runde Symbol-Knöpfe (26.11.2026) */
.kopf-aktionen { display: none; }
@media (min-width: 1101px) {
  .header > .container { max-width: 1440px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}
@media (min-width: 761px) {
  .header .nav { margin-left: auto; }
  .header .nav > .btn { display: none; }
  .kopf-aktionen { display: flex; align-items: center; gap: 10px; order: 3; flex: none; }
  .kopf-tel, .kopf-aktionen .suche-knopf { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; display: inline-flex; align-items: center; }
  .kopf-tel { background: var(--marke); color: var(--schwarz); transition: background .2s, transform .2s; }
  .kopf-tel:hover { background: var(--marke-dunkel); transform: scale(1.06); }
  .kopf-aktionen .suche-knopf span { display: none; }
  .kopf-aktionen .suche-knopf svg { width: 20px; height: 20px; }
  .header .logo { flex: 0 1 auto; min-width: 0; }
  .header .logo img { height: 60px; max-width: 100%; }
  .header.gescrollt .logo img { height: 48px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .header .logo img { height: 48px; }
  .header.gescrollt .logo img { height: 42px; }
  .header .nav { gap: 18px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .header .nav { gap: 14px; }
  .header .nav a { font-size: .92rem; }
  .kopf-aktionen { gap: 8px; }
  .kopf-tel, .kopf-aktionen .suche-knopf { width: 40px; height: 40px; }
}
/* Logo etwas größer und 50px weiter rechts (Matt 26.11.2026) */
@media (min-width: 1101px) {
  .header .logo { margin-left: 50px; }
  .header .logo img { height: 70px; }
  .header.gescrollt .logo img { height: 54px; }
}

/* Telefon-Fenster (Desktop) und Telefon-Knopf mobil statt Home (26.11.2026) */
.tel-fenster { position: fixed; inset: 0; z-index: 210; background: rgba(20,22,24,.65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tel-fenster[hidden] { display: none; }
.tel-box { position: relative; width: min(520px, 100%); background: #fff; border-radius: var(--radius); border-top: 6px solid var(--marke); padding: 36px 40px 30px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.tel-box h2 { color: var(--grau); font-size: 1.6rem; margin: .3em 0 .5em; }
.tel-box p { margin: 0 0 18px; color: var(--text-weich); }
.tel-box .kicker { color: var(--marke-text); }
.tel-gross { display: block; font-family: var(--titel); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--grau); text-decoration: none; letter-spacing: .01em; margin: 6px 0 16px; white-space: nowrap; }
.tel-gross:hover { color: var(--marke-text); }
.tel-box .tel-klein { font-size: .85rem; margin: 0; }
.tel-zu { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--flaeche); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--grau); }
.tel-zu:hover { background: var(--marke); }
.home-knopf { display: none !important; }
@media (max-width: 760px) {
  .nav .nav-home { display: block; }
  .kopf-aktionen { display: flex; order: 0; margin-left: auto; flex: none; }
  .kopf-aktionen .suche-knopf { display: none; }
  .kopf-tel { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marke); color: var(--schwarz); }
  .kopf-tel svg { width: 20px; height: 20px; }
}
/* Logo und Kopfzeile beim Scrollen langsamer verkleinern (Matt 26.11.2026) */
@media (min-width: 1101px) {
  .header .logo img { transition: height 1.5s ease, max-height 1.5s ease, transform .25s; }
  .header .container { transition: height 1.5s ease; }
}
/* Logo 5px tiefer (Matt 26.11.2026) */
@media (min-width: 1101px) {
  .header .logo { position: relative; top: 15px; left: 20px; transition: top 1.5s ease; }
  /* beim Scrollen gleitet das Logo sanft nach oben in die Ursprungsposition */
  .header.gescrollt .logo { top: 0; }
}
/* Logo 3% größer (Matt 26.11.2026) */
@media (min-width: 1101px) { .header .logo img { height: 76px; } .header.gescrollt .logo img { height: 59px; } }

/* TEST Startseite: Rollladen fährt beim Öffnen hoch (nur CSS, nur index.html). Zum Entfernen diesen Block bis zum Ende löschen. */
@keyframes rollladen-auf {
  0%, 4% { transform: translateY(0); animation-timing-function: cubic-bezier(.4,0,1,1); }
  26% { transform: translateY(-78%); animation-timing-function: cubic-bezier(.1,.5,.3,1); } /* die letzten gut 20 % mit dem Logo fahren langsam */
  100% { transform: translateY(-102%); }
}
body:has(.ms-hero)::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent calc(100% - 34px), #3d4044 calc(100% - 34px), #2f3235 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.10) 0, rgba(255,255,255,0) 9px, rgba(0,0,0,.12) 19px, rgba(0,0,0,.45) 21px, rgba(0,0,0,.7) 22px, rgba(255,255,255,.10) 23px),
    url(../bilder/web/logo.png) center 86% / min(94vw, 1500px) auto no-repeat,
    repeating-linear-gradient(to bottom, #8a8f94 0, #6f7479 9px, #5d6166 19px, #44484c 21px, #2c2f32 22px, #8a8f94 23px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: rollladen-auf 5s linear .1s forwards;
}
@media (prefers-reduced-motion: reduce) { body:has(.ms-hero)::after { display: none; } }
/* Tablet und Handy: 20px weniger Abstand zwischen Kopfzeile und Inhalt (Matt 26.11.2026) */
@media (max-width: 1100px) {
  .ms-hero-text { padding-top: calc(clamp(56px, 8vw, 110px) + var(--kopf) - 20px); }
  .seite-kopf .container { padding-top: calc(var(--kopf) + clamp(40px, 6vw, 80px) - 20px); }
}
/* Startseite: Firmenname im Kicker größer und fetter, 10px mehr Luft darunter (Matt 26.11.2026) */
@media (min-width: 761px) {
  .ms-hero .kicker { margin-bottom: 20px; }
  .ms-hero .kicker .kicker-name { font-size: 1.25em; font-weight: 800; letter-spacing: .08em; }
  .ms-hero .kicker .kicker-rest { white-space: nowrap; }
}
.ms-hero .kicker .kicker-rest::before { content: "· "; }
/* breite Bildschirme (Text-Spalte neben dem Foto): Firmenname eigene Zeile, darunter „seit 1986“ ohne Punkt */
@media (min-width: 981px) {
  .ms-hero .kicker .kicker-name { display: block; margin-bottom: 4px; }
  .ms-hero .kicker .kicker-rest::before { content: none; }
}

/* Desktop: „seit 1986“ als Siegel-Grafik neben dem Firmennamen (Matt 26.11.2026) */
.ms-hero .kicker .siegel-bild { display: none; }
@media (min-width: 1101px) {
  .ms-hero .kicker { position: relative; display: inline-block; }
  .ms-hero .kicker .kicker-name { display: inline; margin: 0; white-space: nowrap; }
  .ms-hero .kicker .kicker-rest { position: absolute; left: calc(100% + 18px); top: 50%; width: 84px; height: 84px; transform: translateY(-50%) rotate(16deg); }
  .ms-hero .kicker .kicker-rest::before { content: none; }
  .ms-hero .kicker .siegel-bild { display: block; width: 100%; height: 100%; }
  .ms-hero .kicker .siegel-wort, .ms-hero .kicker .siegel-jahr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ms-hero .kicker .kicker-weiss { color: #fff; }
/* Siegel: wächst langsam und ploppt dann auf (Desktop, nach dem Rollladen) */
@keyframes siegel-plopp {
  0% { transform: scale(0); opacity: 0; }
  15% { opacity: 1; }
  78% { transform: scale(.92); }
  88% { transform: scale(1.22); }
  95% { transform: scale(.96); }
  100% { transform: scale(1); }
}
@media (min-width: 1101px) {
  .ms-hero .kicker .siegel-bild { transform-origin: center; animation: siegel-plopp 2s ease-out 1.4s both; }
}
@media (prefers-reduced-motion: reduce) { .ms-hero .kicker .siegel-bild { animation: none; } }
/* Handy: „seit 1986“ im Kicker ausblenden; Kopf des Fotos mit mindestens 20px Abstand unter den Knöpfen (Matt 26.11.2026) */
@media (max-width: 760px) {
  .ms-hero .kicker .kicker-rest { display: none; }
}
@media (max-width: 980px) {
  .ms-hero-bild { margin-top: 12px !important; }
}
/* Handy/Tablet: Text im Titelbereich beim Scrollen nicht verschieben, damit der Abstand Knopf–Kopf bleibt */
@media (max-width: 980px) { .ms-hero-text { transform: none !important; } }

/* Rollladen nicht bei interner Rückkehr zur Startseite, Neuladen oder Zurück */
html.ohne-rollladen body::after { display: none !important; animation: none !important; }
/* „seit 1986“-Siegel nur beim ersten Aufruf animieren, wie der Rollladen (Matt 28.11.2026) */
html.ohne-rollladen .ms-hero .kicker .siegel-bild { animation: none !important; }
