/* =========================================================
   Ergänzungen zum Original-Template-CSS (Kirby-Rebuild)
   Nur was das Original nicht abdeckt bzw. für Kirby-Markup nötig ist.
   ========================================================= */

/* =========================================================
   Design-Tokens (Modernisierung 2026-07)
   Petrol bleibt Anker; ergänzt um Tiefe, kühle Neutrale, Glas-Signature.
   ========================================================= */
:root {
  /* Farbe */
  --petrol: #27737f;
  --petrol-dark: #1d5a64;
  --petrol-tint: rgba(39, 115, 127, .07);
  --ink: #2b3033;            /* Text, kühler als #333 */
  --muted: #67707a;          /* ersetzt #797979 */
  --line: #dbe2e3;           /* kühle Hairline statt #000/#e8e8e8 */
  --bg: #ffffff;
  --bg-tint: #f3f6f7;        /* „Glas"-Off-White statt flaches #efedee */
  /* Form */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 46, .06);
  --shadow-md: 0 10px 28px rgba(16, 42, 46, .10);
  /* Glas-Signature */
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-blur: 14px;
  --glass-border: rgba(255, 255, 255, .55);
  --glass-petrol: rgba(39, 115, 127, .82);
  /* Schrift */
  --font-display: "aaux-next", "Roboto", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

/* aaux-next lokal, mit swap (Original-Template nutzt font-display:auto).
   Dateien liegen bereits in assets/fonts/. */
@font-face {
  font-family: "aaux-next";
  src: url("../fonts/aaux-next-400.woff2") format("woff2"),
       url("../fonts/aaux-next-400.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "aaux-next";
  src: url("../fonts/aaux-next-500.woff2") format("woff2"),
       url("../fonts/aaux-next-500.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: #27737f; color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }

/* Top-Level-Nav: Großschreibung + Farbe absichern */
#desktop-menu .desktop-nav .main-menu > .menu-item > a {
  text-transform: uppercase; color: #333; text-decoration: none; font-weight: 500;
}
#desktop-menu .desktop-nav .main-menu > .menu-item.current > a,
#desktop-menu .desktop-nav .main-menu > .menu-item > a:hover { color: #27737f; }

/* Galerie-Grid (Eindrücke / Referenzen): Links als Grid-Items */
.gallery-grid--4 article a { display: block; overflow: hidden; }
.gallery-grid--4 article a img { height: 380px; width: 100%; object-fit: cover; max-height: 80vh; cursor: zoom-in; transition: transform .35s ease; }
.gallery-grid--4 article a:hover img { transform: scale(1.05); }

/* Innenseiten-Grundlayout */
.page-section { margin: 40px 0; }
@media (min-width: 992px) { .page-section { margin: 70px 0; } }
.content-narrow { max-width: 1050px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: #555; margin-bottom: 1.5rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb a { color: #27737f; }
.subtitle { color: #27737f; font-weight: 500; }

/* Karten-Grid (Rubrik-Übersicht: Leistungen / Referenzen-Kacheln) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e8e8e8; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card .card-media { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.card .card-media--empty { background: #efedee; }
.card .card-body { padding: 1rem 1.1rem; }
.card .card-title { display: block; font-weight: 700; font-size: 1.15rem; color: #27737f; }
.card .card-sub { display: block; color: #797979; font-size: .9rem; margin-top: .25rem; }

/* Akkordeon (Beefup-Stil, animiert) – Grundstyling stammt aus bundle.css */
.accordion { max-width: 1050px; margin: 25px auto 50px; }
.accordion .beefup__head:focus-visible { outline: 2px solid #27737f; outline-offset: 2px; }
.accordion .beefup__inner { padding-bottom: 25px; }

/* Prozess-Schritte (Ablauf „Aus einer Hand" als nummerierte Timeline) */
.prozess-steps { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.prozess-step { display: flex; gap: 1.4rem; position: relative; padding-bottom: 2.2rem; }
.prozess-step:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: -2px; width: 2px; background: #e1e1e1;
}
.prozess-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: #27737f; color: #fff; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.prozess-body { padding-top: .35rem; }
.prozess-title { margin: 0 0 .4rem; font-size: 1.3rem; color: #111; }
.prozess-text { color: #444; }
.prozess-text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .prozess-num { width: 40px; height: 40px; font-size: .95rem; }
  .prozess-step:not(:last-child)::before { left: 19px; top: 46px; }
}

/* Partner-Logos (auf Partner-Seite) */
.partner-logos { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; margin-top: 2rem; }
.partner-logos img { max-height: 90px; width: auto; }

/* Kontaktformular */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 820px) { .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; } }
.kontakt-form .field { margin-bottom: 1.1rem; }
.kontakt-form label { display: block; font-weight: 500; margin-bottom: .35rem; }
.kontakt-form input:not([type="checkbox"]):not([type="radio"]), .kontakt-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #ccc; font: inherit; background: #fff; }
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: 2px solid #27737f; border-color: #27737f; }
.kontakt-form .field-consent label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; font-size: .9rem; line-height: 1.45; }
.kontakt-form .field-consent input { width: auto; flex: none; margin-top: .2rem; }
.kontakt-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.kontakt-form button { background: #27737f; color: #fff; border: 0; padding: .85rem 2rem; cursor: pointer; font: inherit; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.kontakt-form button:hover { background: #1d5a64; }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert-success { background: #e7f3ec; border: 1px solid #b8dcc6; color: #1d6b3b; }
.alert-error { background: #fbeaea; border: 1px solid #e6bcbc; color: #a02525; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.news-card { border: 1px solid #e8e8e8; background: #fff; }
.news-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card h2 { margin: .5rem 1rem; font-size: 1.15rem; }
.news-card .news-date { color: #797979; font-size: .8rem; margin: .75rem 1rem 0; text-transform: uppercase; letter-spacing: .08em; }
.news-excerpt { margin: 0 1rem 1rem; }

/* Footer-Partnerlogos auf sinnvolle Größe begrenzen */
#kontakt .footer-4 img { max-width: 200px; max-height: 80px; width: auto; height: auto; margin-bottom: 1.2rem; }

/* Download-Link (Freistellungsbescheinigung) */
.download-link::before { content: "⤓ "; }

/* Downloads-Seite: Dokumentliste */
.downloads-list { margin: 2rem 0 0; padding: 0; }
.downloads-item { padding: 1rem 0; border-bottom: 1px solid #e2e0e1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; }
.downloads-item .download-link { font-weight: 500; font-size: 1.1rem; }
.downloads-meta { color: #777; font-size: .85rem; }

/* Lightbox */
.lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 2rem; }
.lb-overlay img { max-width: 100%; max-height: 100%; }
.lb-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2.5rem; line-height: 1; background: none; border: 0; cursor: pointer; z-index: 2; }
.lb-overlay .lb-img { max-width: 100%; max-height: 100%; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-count { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; letter-spacing: .08em; }
@media (max-width: 600px) { .lb-nav { width: 44px; height: 44px; font-size: 1.4rem; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; } }

/* =========================================================
   Politur (Feinschliff) – ergänzt 2026-06
   ========================================================= */

/* --- 1. Desktop-Nav-Dropdown aufgewertet (überschreibt template.css) --- */
/* sanftes Ein-/Ausblenden statt hartem display:none/block */
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item > .nav-child {
  display: block;
  left: -16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item:hover > .nav-child,
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item:focus-within > .nav-child {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item > .nav-child > .nav-child-inner {
  background-color: #fff;
  padding: 8px 0;
  border-radius: 6px;
  border-top: 3px solid #27737f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  min-width: 230px;
  overflow: hidden;
}
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item > .nav-child > .nav-child-inner > .menu-item > a {
  transition: background-color .15s ease, color .15s ease, padding .15s ease;
}
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item > .nav-child > .nav-child-inner > .menu-item > a:hover,
body #desktop-menu .bottom .desktop-nav .main-menu > .menu-item > .nav-child > .nav-child-inner > .menu-item.current > a {
  background-color: #f2f1f1;
  color: #27737f;
}
/* dezenter Dropdown-Indikator (Caret) am Eltern-Punkt – inline mittig */
#desktop-menu .desktop-nav .main-menu > .menu-item.deeper.parent > a {
  display: inline-flex;
  align-items: center;
}
#desktop-menu .desktop-nav .main-menu > .menu-item.deeper.parent > a::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
  transition: opacity .2s ease;
}
#desktop-menu .desktop-nav .main-menu > .menu-item.deeper.parent:hover > a::after {
  opacity: 1;
}

/* Mobiles Menü: Untermenü sichtbar, wenn Punkt aufgeklappt (Original nutzte JS-slideToggle) */
body #mobile-menu .mob-content .mob-content-inner .mob-menu .main-menu > .menu-item.open > .nav-child {
  display: block;
}

/* --- 2. Globale Fokus-Sichtbarkeit (Tastatur-Bedienbarkeit) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #27737f;
  outline-offset: 2px;
}

/* --- 3. Buttons: Hover/Active (Original-Buttons hatten keine States) --- */
.button-style {
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.button-style:hover {
  background-color: #1d5a64 !important;
}
.button-style:active {
  transform: translateY(1px);
}

/* --- 4. Service-Kacheln: Hover-Affordanz (anheben + Bild-Zoom) --- */
.buttons-list-module .button-item .button-item-inner {
  transition: transform .2s ease, box-shadow .2s ease;
}
.buttons-list-module .button-item:hover .button-item-inner {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}
.buttons-list-module .button-item .button-item-image {
  overflow: hidden;
}
.buttons-list-module .button-item .button-item-image-bg {
  transition: transform .45s ease;
}
.buttons-list-module .button-item:hover .button-item-image-bg {
  transform: scale(1.04);
}

/* --- 5. Deko-Linien der Überschriften softer (statt hartem Schwarz) --- */
.title-with-line > *::before,
.title-with-line > *::after,
#services .module .module-title .mtitle::before,
#services .module .module-title .mtitle::after,
#gallery .module .module-title .mtitle::before,
#gallery .module .module-title .mtitle::after,
body.featured #content .category-header .heading::before,
body.featured #content .category-header .heading::after {
  background-color: #d8d8d8;
}

/* --- 6. Kontakt-CTA-Band (vor dem Footer) --- */
.cta-band {
  background-color: #27737f;
  color: #fff;
}
.cta-band .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: clamp(2.2rem, 5vw, 3.5rem) 1.25rem;
}
.cta-band .cta-text h2 {
  color: #fff;
  margin: 0 0 .4rem;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  text-transform: none;
}
.cta-band .cta-text p {
  margin: 0;
  opacity: .92;
}
.cta-band .cta-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band .cta-btn {
  display: inline-block;
  background: #fff;
  color: #27737f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .9rem 2rem;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s ease, color .15s ease;
}
.cta-band .cta-btn:hover {
  color: #1d5a64;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.cta-band .cta-phone {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}
.cta-band .cta-phone:hover {
  color: #fff;
  border-bottom-color: #fff;
}
@media (max-width: 720px) {
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* --- 8. Hero-Banner für Innenseiten (optimiert, statt 100vh-Original) --- */
.page-hero {
  position: relative;
  min-height: clamp(300px, 46vh, 520px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.page-hero .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35));
}
.page-hero .page-hero-inner {
  position: relative;
  width: 100%;
}
.page-hero .page-hero-title {
  display: inline-block;
  background: #27737f;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  padding: 14px 30px;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  transform: translateY(50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.page-head-plain { margin-top: 48px; }
@media (min-width: 992px) { .page-head-plain { margin-top: 70px; } }
/* Petrol-Titelbalken für Seiten ohne Hero-Bild (wie Original „no-image"-Banner) */
.page-headline-wrap { margin-top: 40px; margin-bottom: 6px; }
@media (min-width: 992px) { .page-headline-wrap { margin-top: 60px; } }
.page-headline {
  display: inline-block;
  background: #27737f;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  padding: 12px 28px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

/* --- 9. Startseiten-Hero (aussagekräftig: H1 + CTA) --- */
.home-hero {
  position: relative;
  min-height: clamp(440px, 74vh, 740px);
  background-color: #1c2b2e;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.home-hero .home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .28) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 35%);
}
.home-hero .home-hero-inner {
  position: relative;
  max-width: 660px;
  padding-block: 2.5rem;
}
.home-hero .home-hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  text-transform: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.home-hero .home-hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  margin: 0 0 1.9rem;
  max-width: 46ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.home-hero .home-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero {
  display: inline-block;
  background: #27737f;
  color: #fff;
  border: 2px solid #27737f;
  padding: .95rem 2.1rem;
  border-radius: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn-hero:hover { background: #1d5a64; border-color: #1d5a64; color: #fff; transform: translateY(-2px); text-decoration: none; }
.btn-hero--ghost { background: transparent; border-color: rgba(255, 255, 255, .85); }
.btn-hero--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* --- 7. Reduzierte Bewegung respektieren --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .buttons-list-module .button-item:hover .button-item-inner,
  .buttons-list-module .button-item:hover .button-item-image-bg,
  .gallery-grid--4 article a:hover img,
  .cta-band .cta-btn:hover,
  .btn-hero:hover {
    transform: none !important;
  }
}

/* --- 10. Referenzen-Karten: gleiche Höhe (ersetzt das JS „same-height") --- */
#category-blog .category-items .row { align-items: stretch; }
#category-blog .category-item .category-item-block { height: 100%; }

/* =========================================================
   Modernisierung 2026-07 — leichte Auffrischung, Gesamtbild bleibt.
   Alles hier überschreibt template.css / bundle.css (custom lädt zuletzt).
   ========================================================= */

/* --- M1. Typografie: aaux-next für Überschriften (schlägt Roboto-!important
   aus bundle.css). Body bleibt Roboto. --- */
html body h1, html body h2, html body h3, html body h4,
html body .h1, html body .h2, html body .h3,
html body .mtitle, html body .title-with-line > *,
html body .home-hero-title, html body .page-hero-title, html body .page-headline,
html body .button-title, html body .prozess-title,
html body .cta-band .cta-text h2,
html body #content .category-header .heading,
html body .category-item-headline a {
  font-family: var(--font-display) !important;
  letter-spacing: -.01em;
}
html body .home-hero-title { font-weight: 500; letter-spacing: -.02em; }

/* --- M2. Section-Titel: Versalien raus, größer, mixed-case; die zwei 100vw-
   Hairlines durch eine kurze zentrierte Petrol-Akzentlinie ersetzen. --- */
html body .mtitle,
html body section#services .module .module-title .mtitle,
html body section#gallery .module .module-title .mtitle,
html body .title-with-line > *,
html body #content .category-header .heading {
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.15;
  padding-bottom: 20px;
}
/* linke/obere Linie ausblenden … */
html body .mtitle::before,
html body .title-with-line > *::before,
html body #content .category-header .heading::before {
  display: none !important;
}
/* … rechte Linie zum zentrierten Unterstrich umbauen */
html body .mtitle::after,
html body .title-with-line > *::after,
html body #content .category-header .heading::after {
  content: "" !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 0 !important;
  width: 48px !important;
  height: 3px !important;
  transform: translateX(-50%) !important;
  background: var(--petrol) !important;
}

/* --- M3. Glas-Signature ------------------------------------------------ */
/* Frosted Sticky-Header (Desktop, position:fixed liegt schon vor) */
html body #desktop-menu .bottom {
  background-color: var(--glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
html body #desktop-menu.scrolled .bottom { background-color: rgba(255, 255, 255, .78) !important; }
/* Mobile Kopfleiste ebenfalls dezent frosten (offenes Menü bleibt solide) */
html body #mobile-menu .mob-header {
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--line);
}
/* Fallback ohne backdrop-filter → solides Weiß (keine Transparenz-Panne) */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  html body #desktop-menu .bottom,
  html body #mobile-menu .mob-header { background-color: #fff !important; }
}
/* Getönte „Glas"-Label-Balken statt solider Petrol-Blöcke */
html body .buttons-list-module .button-item .button-item-inner .button-item-title {
  background-color: var(--glass-petrol) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 var(--glass-border);
  border-radius: var(--radius) var(--radius) 0 0;
}
html body .page-hero .page-hero-title,
html body .page-headline {
  background: var(--glass-petrol);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 var(--glass-border), 0 10px 30px rgba(0, 0, 0, .18);
  border-radius: var(--radius);
}

/* --- M4. Buttons: eine Formsprache (knapper Radius ~6px) --------------- */
html body a.button-style,
html body .btn-hero,
html body .cta-band .cta-btn,
html body .kontakt-form button {
  border-radius: var(--radius) !important;
}

/* --- M5. Farbtiefe / kühle Neutrale via Tokens ------------------------- */
html body .card .card-sub,
html body .news-card .news-date { color: var(--muted); }
html body #about { background: var(--petrol-tint); }

/* --- M6. Elevation + weichere Karten ----------------------------------- */
html body .card,
html body .news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
html body .card:hover,
html body .news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.gallery-grid--4 article a { border-radius: var(--radius); }

/* --- M7. Dezenter Hero-Load-Reveal (CSS-only; reduced-motion-Block oben
   schaltet Animationen global ab) --- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.home-hero .home-hero-inner { animation: heroRise .7s ease both; }

/* =========================================================
   Modernisierung 2026-07 · Runde 2
   ========================================================= */

/* --- N1. Desktop-Navbar kompakter (war sehr wuchtig: Logo 130px) --------
   Logo + Padding deutlich schlanker, alle Zustände gleich hoch. --- */
html body #desktop-menu .bottom .desktop-inner,
html body #desktop-menu.scrolled .bottom .desktop-inner,
html body #desktop-menu.inner-page .bottom .desktop-inner {
  padding: 12px 0 !important;
}
html body #desktop-menu .desktop-logo img,
html body #desktop-menu.scrolled .desktop-logo img,
html body #desktop-menu.inner-page .desktop-logo img {
  height: 56px !important;
}
/* Spacer (Original 154px @≥1200) an die neue, niedrigere Leiste angleichen,
   damit das Hero-Bild bündig unter der Navbar sitzt (kein weißer Spalt). */
@media (min-width: 1200px) {
  html body #navigation.default-page { padding-top: 80px !important; }
}

/* --- N2. Referenzen: Galerie-Karten komplett neu -----------------------
   Ganzflächiges Coverbild, Titel auf Verlauf, Bild-Zähler-Badge,
   ganze Karte klickbar, Hover-Zoom. --- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 32px;
}
.ref-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1618;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ref-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.ref-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(11, 26, 29, .86) 0%, rgba(11, 26, 29, .30) 42%, rgba(11, 26, 29, 0) 70%);
}
.ref-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}
html body .ref-card-title {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  padding-bottom: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.ref-card-count {
  flex: none;
  align-self: center;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--glass-petrol);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  padding: .35em .75em;
  border-radius: 100px;
  white-space: nowrap;
}
.ref-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ref-card:hover .ref-card-media { transform: scale(1.06); }
.ref-card:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

/* --- N3. Kontaktformular aufgewertet ----------------------------------- */
/* Formular als ruhiges Panel */
html body .kontakt-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.kontakt-form label { color: var(--ink); }
html body .kontakt-form input:not([type="checkbox"]):not([type="radio"]),
html body .kontakt-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html body .kontakt-form input:focus,
html body .kontakt-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(39, 115, 127, .16);
}
html body .kontakt-form button {
  width: 100%;
  border-radius: var(--radius) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
/* Info-Spalte als Kontaktkarte mit Petrol-Kante */
.kontakt-info {
  background: var(--bg-tint);
  border-left: 3px solid var(--petrol);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.8rem) clamp(1.3rem, 2.5vw, 1.7rem);
}
.kontakt-info p { margin: 0 0 .9rem; }
.kontakt-info p:last-child { margin-bottom: 0; }
.kontakt-info a { color: var(--petrol); }
.kontakt-info a:hover { color: var(--petrol-dark); }
