/* ==========================================================================
   Wisinger Malermeister – Globales Stylesheet
   Design angelehnt an die Original-Website (weißer Header, Grün #7cae7c,
   Schwung-Grafik, Bildkarten, dunkler Footer) | Responsive | BFSG-orientiert
   ========================================================================== */

:root {
  /* Markenfarben (Firmenidentität) */
  --brand: #7cae7c;
  --brand-dark: #5d915d;
  --brand-darker: #476f47;
  --brand-ink: #333333;
  --brand-tint: #eef5ee;
  --brand-tint-2: #dcebdc;

  --ink: #333333;
  --ink-soft: #5a5a5a;
  --paper: #ffffff;
  --paper-soft: #f7f5f5; /* #efeaea, Tönung um ~50 % Richtung Weiß reduziert */
  --line: #e3e3e3;
  --footer-bg: #1b1b1b;

  --focus: #14532d;
  --error: #b3261e;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .09);

  --font: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

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

html { scroll-blocked: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-blocked: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-darker); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4 { line-height: 1.25; color: var(--brand-ink); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* Skip-Link (BFSG) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-ink); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Topbar (Telefon / Zeiten / Adresse) ---------- */
.topbar { background: var(--paper); font-size: .88rem; color: var(--ink-soft); }
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: .3rem 1.6rem;
  align-items: center; justify-content: space-between;
  padding-block: .45rem;
}
.topbar .group { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; align-items: center; }
.topbar span.item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--brand-dark); }
.topbar .ico { color: var(--brand-dark); display: inline-flex; }
.topbar .ico svg { width: 15px; height: 15px; }

/* ---------- Masthead (Firmenidentität: weiß, Logo links, Navi rechts) ---------- */
.masthead { background: var(--paper); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .9rem;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 260px; max-width: 62vw; height: auto; }

/* Hauptnavigation im Masthead */
.nav-toggle {
  display: none; background: none; border: 2px solid var(--brand-ink); border-radius: var(--radius-sm);
  color: var(--brand-ink); font: inherit; font-weight: 700; padding: .45rem .9rem;
  cursor: pointer; align-items: center; gap: .5rem;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: flex; align-items: center; gap: .35rem;
  padding: .7rem .9rem; color: var(--brand-ink); font: inherit; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; background: none; border: 0; cursor: pointer;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover, .nav-list > li > button:hover { color: var(--brand-dark); }
.nav-list > li > a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.nav-list .caret {
  width: .55em; height: .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-list > li.has-sub { display: flex; align-items: stretch; }
.nav-list > li.has-sub > a { padding-right: .35rem; }
.sub-toggle {
  background: none; border: 0; cursor: pointer; color: var(--brand-ink);
  padding: 0 .6rem 0 .15rem; display: inline-flex; align-items: center;
}
.sub-toggle:hover { color: var(--brand-dark); }

.sub-menu {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; right: 0; min-width: 270px;
  background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow); display: none; z-index: 60;
}

/* Desktop: Untermenü auch per Hover/Fokus öffnen (Hauptpunkt bleibt klickbar) */
@media (hover: hover) and (min-width: 1081px) {
  .nav-list > li:hover > .sub-menu,
  .nav-list > li:focus-within > .sub-menu { display: block; }
}

/* Mobil: Link und Aufklapp-Pfeil nebeneinander, Untermenü darunter */
@media (max-width: 1080px) {
  .nav-list > li.has-sub { flex-wrap: wrap; }
  .nav-list > li.has-sub > a { width: auto !important; flex: 1; }
  .nav-list > li.has-sub > .sub-toggle { width: auto !important; padding: 0 1.2rem; }
  .sub-menu { width: 100%; }
}
.sub-menu a {
  display: block; padding: .55rem 1.1rem; color: var(--ink); text-decoration: none;
  font-size: .98rem;
}
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--brand-tint); color: var(--brand-darker); }
li.open > .sub-menu { display: block; }

.lang-switch { display: flex; align-items: center; gap: .25rem; padding-left: .8rem; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .3rem .55rem; border-radius: var(--radius-sm); border: 2px solid transparent;
}
.lang-switch img {
  width: 21px; height: 14px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); /* Kontur, damit Weiß der RU-Flagge sichtbar bleibt */
}
.lang-switch a:hover { color: var(--brand-dark); }
.lang-switch a[aria-current="true"] { border-color: var(--brand); color: var(--brand-dark); }

/* Mobil: Navigation als Drawer von rechts */
.drawer-head { display: none; }
body.nav-open { overflow: hidden; }
body.nav-open::after {
  content: ""; position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45); z-index: 98;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
    width: min(320px, 85vw); margin: 0;
    background: #fff; box-shadow: -10px 0 30px rgba(0, 0, 0, .22);
    padding: .4rem 0 2rem; overflow-y: auto;
    transform: translateX(105%); visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }
  .nav-list.open { transform: none; visibility: visible; }
  .drawer-head {
    display: flex; justify-content: flex-end;
    border-bottom: 1px solid var(--line); margin-bottom: .4rem;
  }
  .nav-close {
    background: none; border: 0; cursor: pointer;
    font-size: 1.3rem; line-height: 1; color: var(--brand-ink);
    padding: .8rem 1rem;
  }
  .nav-close:hover { color: var(--brand-dark); }
  .nav-list > li > a, .nav-list > li > button { border-bottom: 0; width: 100%; }
  .sub-menu { position: static; box-shadow: none; background: var(--paper-soft); border-top: 0; }
  .sub-menu a { padding-left: 2rem; }
  .lang-switch { padding: .5rem 0 .5rem .9rem; }
}

/* Grüner Schwung unter dem Header (liegt über dem Hero) */
:root { --swoosh-h: calc(100vw * 160 / 2600); }
.swoosh {
  display: block; width: 100%; height: auto;
  position: absolute; left: 0; right: 0; /* Overlay: nimmt keinen Platz ein */
  z-index: 5; pointer-events: none;
}

/* Inhalt (#inhalt) beginnt direkt am Masthead, der Schwung läuft darüber */
main#inhalt { position: relative; }
main#inhalt > .section:first-child { padding-top: calc(clamp(2.6rem, 7vw, 4.2rem) + var(--swoosh-h)); }

/* ---------- Hero: eigene Bild-Ebene (2/3 Breite, links) hinter .wrap ---------- */
.hero {
  position: relative;
  background: var(--brand-tint);
}
.hero-bg {
  position: absolute; top: 0; bottom: 0; left: 0; width: 66.6667%;
  background-size: cover; background-position: center 30%; background-repeat: no-repeat;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(238,245,238,0) 50%, rgba(238,245,238,1) 100%);
}
/* Desktop: Hero mindestens 600px hoch, Karte vertikal zentriert */
@media (min-width: 761px) {
  .hero { min-height: 600px; display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}

/* Hero auf Leistungsseiten */
.service-hero .hero-bg { background-position: center 35%; }
.service-hero .wrap { padding-block: calc(2 * clamp(2rem, 5vw, 3.2rem)) clamp(2rem, 5vw, 3.2rem) !important; }
.service-hero .hero-card { max-width: 720px; }
.service-hero .hero-card h1 { font-size: clamp(1.45rem, 3vw, 2rem); }
.service-hero .breadcrumb { margin-bottom: .6rem; }
.service-hero .sub { margin-bottom: .2em; font-size: 1rem !important; text-transform: uppercase; letter-spacing: .06em; font-weight: 700 !important; }
.service-hero .sub.sub-lead {
  text-transform: none; letter-spacing: 0; margin: 0 0 .6em;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem) !important; font-weight: 500 !important;
  line-height: 1.4;
}
.hero .wrap { position: relative; padding-block: calc(2 * clamp(2.5rem, 7vw, 5rem)) clamp(2.5rem, 7vw, 5rem); }
.hero-card {
  margin-left: auto; max-width: 620px;
  background: rgba(255, 255, 255, .96); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.hero-card h1 { margin-bottom: .35em; }
.hero-card .sub { color: var(--brand-dark); font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 500; line-height: 1.35; margin-bottom: .9em; }
.checks { list-style: none; margin: 0 0 .5rem; padding: 0; }
.checks li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.checks li:last-child { border-bottom: 0; }
.checks a { color: var(--ink); text-decoration: none; }
.checks a:hover { color: var(--brand-darker); text-decoration: underline; }
.checks li::before {
  content: ""; flex: none; width: .95em; height: .95em; margin-top: .45em;
  background-color: var(--brand);
  -webkit-mask: url("../img/checkmark.svg") center / contain no-repeat;
  mask: url("../img/checkmark.svg") center / contain no-repeat;
}
@media (max-width: 760px) {
  .hero .wrap { padding-top: 300px !important; }
  .hero-bg { width: 100%; bottom: auto; height: 400px; }
  .hero-bg::before {
    background: linear-gradient(to bottom, rgba(238,245,238,0) 50%, rgba(238,245,238,1) 100%);
  }
  .hero-card { margin-inline: auto; }
}

.hero-card .hero-tuev { margin: .9rem 0 .2rem; width: 152px; height: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 700; padding: .75rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid var(--brand); transition: background .2s, color .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-darker); }
.btn.ghost:hover { background: var(--brand-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }

/* ---------- Sektionen & Karten ---------- */
.section { padding-block: clamp(2.6rem, 7vw, 4.2rem); }
.section.alt { background: var(--paper-soft); }
.section-head { max-width: 800px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { color: var(--brand-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr)); gap: 1.4rem; }
.card {
  background: linear-gradient(to top, #efeaea 0%, #ffffff 33.3333%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .4rem;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  background: var(--brand-tint); display: grid; place-items: center;
  margin-bottom: .6rem; color: var(--brand-darker);
}
.card .icon svg { width: 30px; height: 30px; }
.card .icon.big { width: 64px; height: 64px; border-radius: 50%; }
.card .icon.big svg { width: 34px; height: 34px; }
.card h3 a { color: var(--brand-ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.card .more { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .95rem; }

/* Bildkarten (Startseite, wie Original) */
.photo-card {
  position: relative;
  background: linear-gradient(to top, #efeaea 0%, #ffffff 33.3333%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.photo-card .pc-media { position: relative; }
.photo-card .pc-media img { display: block; }
.photo-card .pc-media::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%;
  aspect-ratio: 2600 / 84;
  background: url("../img/img-swoosh.svg") bottom center / 100% 100% no-repeat;
  box-shadow: 0 1px 0 0 #ffffff; /* deckt Subpixel-Fuge zur Karte ab */
}
.photo-card h3 { margin: 1.1rem 1.2rem .4rem; font-size: 1.35rem; }
.photo-card h3 a { color: var(--brand-ink); text-decoration: none; }
.photo-card h3 a:hover { color: var(--brand-dark); }
.photo-card p { color: var(--ink-soft); margin: 0 1.4rem 1.2rem; font-size: .98rem; }
/* CTA in Karten: zwei Hintergrundgrafiken – Default (»-Parallelogramm)
   und Hover (Segmentleiste mit «), Text bleibt HTML */
.card-cta {
  align-self: flex-end; margin-top: 1rem;
  display: flex; align-items: center;
  height: 44px; max-width: 54px; overflow: hidden;
  background: url("../img/teaser-btn-default.svg") no-repeat left center / auto 100%;
  color: var(--ink); text-decoration: none; font-weight: 700;
  white-space: nowrap;
  transition: max-width .4s ease;
}
.card-cta .chev {
  flex: none; width: 53px; display: grid; place-items: center;
  color: #fff;
}
.card-cta .chev svg { width: 22px; height: 22px; transition: transform .3s ease; }
.card-cta .label { opacity: 0; padding: 0 1.3rem 0 96px; transition: opacity .25s .1s; }
.photo-card:hover .card-cta, .card:hover .card-cta,
.card-cta:hover, .card-cta:focus-visible {
  max-width: 320px;
  background-image: url("../img/teaser-btn-hover.svg");
}
.photo-card:hover .card-cta .chev svg, .card:hover .card-cta .chev svg,
.card-cta:hover .chev svg, .card-cta:focus-visible .chev svg { transform: scaleX(-1); }
.photo-card:hover .label, .card:hover .label,
.card-cta:hover .label, .card-cta:focus-visible .label { opacity: 1; }
.photo-card .card-cta { margin-top: auto; }

/* Teaser-Karten auf Bereichs-Übersichtsseiten */
.hub-cards { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

/* Karten im .card-grid komplett klickbar (Stretched-Link über den Titel-Link) */
.card, .photo-card { position: relative; }
.card-grid .card h3 a::after, .card-grid .photo-card h3 a::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.card-grid .card-cta { position: relative; z-index: 2; }

/* CTA in gepolsterten Karten immer bündig zur unteren rechten Kartenkante */
.card { overflow: hidden; }
.card .card-cta {
  margin-top: auto;
  margin-right: -1.6rem; margin-bottom: -1.6rem;
}
.card .card-cta, .photo-card .card-cta { align-items: center; } /* Inhalt vertikal mittig */
.card h3 + p { margin-bottom: 1rem; } /* Abstand zwischen Text und CTA */

/* Linkkarten-Liste (Unterleistungen) */
.linklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: .7rem; }
.linklist a {
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600;
}
.linklist a::before {
  content: ""; flex: none; width: .9em; height: .9em;
  background-color: var(--brand-dark);
  -webkit-mask: url("../img/checkmark.svg") center / contain no-repeat;
  mask: url("../img/checkmark.svg") center / contain no-repeat;
}
.linklist a:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-darker); }

/* ---------- Inhaltsseiten ---------- */
.page-head {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--paper) 100%);
  padding-block: calc(clamp(2rem, 6vw, 3.2rem) + var(--swoosh-h)) 1.5rem;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: .9rem; margin-bottom: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--brand-dark); }

.content-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }

/* Listen im Fließtext des content-grid: grüne Check-Icons als Aufzählungszeichen */
.content-grid .prose ul { list-style: none; padding-left: 0; }
.content-grid .prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.content-grid .prose ul li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: .95em; height: .95em;
  background-color: var(--brand-dark);
  -webkit-mask: url("../img/checkmark.svg") center / contain no-repeat;
  mask: url("../img/checkmark.svg") center / contain no-repeat;
}
.prose .intro { font-size: 1.13rem; color: var(--ink-soft); }

/* Seitenleiste */
.sidebar { position: sticky; top: 1rem; display: grid; gap: 1.3rem; }
.widget {
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem;
}
.widget h2, .widget h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: block; padding: .5rem 0; text-decoration: none; color: var(--ink); }
.widget li a:hover, .widget li a[aria-current="page"] { color: var(--brand-darker); font-weight: 700; }
.widget.contact p { margin: 0 0 .4rem; font-size: .98rem; }
.widget.contact strong { color: var(--brand-ink); }
.widget.contact .btn { margin-top: .6rem; }
.contact-lines { list-style: none; margin: 0 0 .5rem; padding: 0; }
.widget .contact-lines li {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .35rem 0; border-bottom: 0; font-size: .98rem;
}
.contact-lines .ico {
  color: var(--brand-dark); display: inline-flex; flex: none;
  align-items: center; height: calc(1em * 1.7); /* mittig zur ersten Textzeile */
}
/* generische Widget-Link-Regel (display:block + Padding) hier neutralisieren,
   damit Telefon-/Mail-Links auf gleicher Höhe wie das Icon liegen */
.widget .contact-lines li a { display: inline; padding: 0; }
.contact-lines .ico svg { width: 16px; height: 16px; }
.contact-lines a { color: var(--brand-dark); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: .7rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--brand-ink);
  padding: .9rem 1.1rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.05em; height: 1.05em;
  background-color: var(--brand-dark);
  -webkit-mask: url("../img/chevron-down.svg") center / contain no-repeat;
  mask: url("../img/chevron-down.svg") center / contain no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--brand-dark); }
.faq details > div { padding: 0 1.1rem .9rem; }

/* CTA-Band */
.cta-band { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; }
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.4rem; padding-block: 2.4rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; opacity: .95; }
.cta-band .btn { background: #fff; color: var(--brand-darker); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-tint); border-color: var(--brand-tint); }

/* ---------- Kontakt / Formular ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--brand-ink); }
.field .req { color: var(--error); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7rem .9rem; border: 1.5px solid #9c9c9c; border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-dark); outline: 3px solid rgba(124,174,124,.4); outline-offset: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .3rem; flex: none; accent-color: var(--brand-dark); }
.form-note { font-size: .92rem; color: var(--ink-soft); }
.honey { position: absolute; left: -9999px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr)); gap: 1.2rem; margin-bottom: 2rem; }

/* ---------- Footer (dunkel, wie Original) ---------- */
.site-footer { background: var(--footer-bg); color: #cfcfcf; }
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 2.4rem;
  padding-block: 3rem 2rem;
}
.site-footer h2 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; border-bottom: 1px solid #2e2e2e; }
.site-footer li:last-child { border-bottom: 0; }
.site-footer .footer-brand li, .site-footer .plain li { border-bottom: 0; padding: 0; }
.site-footer a { color: #cfcfcf; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer ul.arrows a { display: inline-flex; align-items: center; gap: .5rem; }
.site-footer ul.arrows a::before { content: "›"; color: var(--brand); font-weight: 800; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; color: #b5b5b5; }
.site-footer .contact-lines li {
  display: flex; align-items: flex-start; gap: .65rem;
  border-bottom: 0; padding: .3rem 0; font-size: .95rem;
}
.site-footer .contact-lines .ico { color: var(--brand); }
.site-footer .contact-lines strong { color: #fff; }
.site-footer .contact-lines a { color: #cfcfcf; }
.site-footer .contact-lines a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid #2e2e2e; padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; justify-content: space-between;
  font-size: .92rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-bottom li { border: 0; padding: 0; }
/* Platz, damit die fest positionierten Schaltflächen (Barrierefreiheit,
   „Nach oben") die Rechtslinks am Seitenende nie überdecken. */
.footer-bottom { padding-bottom: 4.6rem; }
/* Ab 1340px liegen die Schaltflächen links/rechts neben dem 1200px breiten
   Inhaltsbereich – dann ist der Zusatzabstand nicht mehr nötig. */
@media (min-width: 1340px) { .footer-bottom { padding-bottom: 1.1rem; } }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Nach-oben-Link */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; display: none;
  place-items: center; text-decoration: none; box-shadow: var(--shadow);
  border: 0; cursor: pointer; font-size: 1.2rem;
}
.to-top.show { display: grid; }
.to-top:hover { background: var(--brand-dark); }

/* Tabellen (Impressum etc.) */
table.info { border-collapse: collapse; width: 100%; }
table.info th, table.info td { text-align: left; padding: .5rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { color: var(--brand-ink); white-space: nowrap; }

/* ---------- TÜV-Zertifizierung ---------- */
.cert-box {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.2rem;
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius); padding: 1.4rem; margin: 0 0 1.6rem;
}
.cert-box img { flex: none; background: #fff; border-radius: var(--radius-sm); padding: .5rem .7rem; }
.cert-box > div { flex: 1; min-width: 240px; }
.cert-box h2 { margin-top: 0 !important; font-size: 1.2rem; }
.cert-box p { margin: 0; }

.tuev-logo { margin-top: .8rem; }
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.6rem; max-width: 900px;
}
.cert-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1rem;
}
.cert-grid img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cert-grid figcaption { font-size: .92rem; color: var(--ink-soft); padding-top: .8rem; }
.cert-grid figcaption strong { color: var(--brand-ink); }

/* Zoom-Button um Zertifikat-/Meisterbrief-Bilder */
.cert-zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; line-height: 0; border-radius: var(--radius-sm);
}
.cert-zoom img { transition: transform .18s ease, box-shadow .18s ease; }
.cert-zoom:hover img, .cert-zoom:focus-visible img {
  transform: scale(1.02); box-shadow: var(--shadow);
}
.cert-zoom:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- Über uns: Meisterbrief ---------- */
.meister-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 2.8rem); align-items: start;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr); max-width: 940px;
}
.meister-grid figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem;
}
.meister-grid figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.meister-grid .prose > :first-child { margin-top: 0; }
.meister-grid .prose ul { margin: 1.1rem 0 0; padding-left: 1.2rem; }
.meister-grid .prose li { margin-bottom: .45rem; }
@media (max-width: 780px) { .meister-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .cert-zoom img { transition: none; }
  .cert-zoom:hover img, .cert-zoom:focus-visible img { transform: none; }
}

/* ---------- Referenzen: Bildergalerie mit Lightbox ---------- */
.gal-hint { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.2rem; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}
.gal-cell { margin: 0; }
.gal-item {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  background: linear-gradient(to top, #efeaea 0%, #ffffff 33.3333%);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gal-item:hover, .gal-item:focus-visible { box-shadow: var(--shadow); transform: translateY(-3px); }
.gal-media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.gal-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease;
}
.gal-item:hover .gal-media img { transform: scale(1.04); }
.gal-media::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%;
  aspect-ratio: 2600 / 84;
  background: url("../img/img-swoosh.svg") bottom center / 100% 100% no-repeat;
}
.gal-cap {
  display: block; padding: .9rem 1.1rem 1.1rem;
  font-size: .93rem; line-height: 1.5; color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .gal-item, .gal-media img { transition: none; }
  .gal-item:hover { transform: none; }
  .gal-item:hover .gal-media img { transform: none; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 20, 20, .9);
}
.lightbox[hidden] { display: none; }
html.lb-open .a11y-widget, html.lb-open .to-top { display: none; }
.lb-figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lb-figure img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 74vh;
  width: auto; height: auto; border-radius: var(--radius-sm); background: #000;
}
.lb-figure figcaption {
  color: #f2f2f2; font-size: .95rem; line-height: 1.5;
  margin-top: .9rem; max-width: 720px; margin-inline: auto;
}
.lb-count { display: block; color: #b5b5b5; font-size: .82rem; margin-top: .35rem; }
.lightbox button[hidden] { display: none; }
.lightbox button {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
  .lightbox button[hidden] { display: none; }
.lightbox button { width: 42px; height: 42px; }
  .lb-figure img { max-height: 62vh; }
}

.tuev-badge {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #2e2e2e;
  display: flex; align-items: center; gap: .8rem;
}
.tuev-badge img { flex: none; width: 110px; height: auto; }
.tuev-badge p { margin: 0; font-size: .85rem; color: #b5b5b5; }

/* Meisterbrief-Nachweis im Footer */
.meister-badge {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #2e2e2e;
  display: flex; align-items: center; gap: .9rem;
}
.mb-thumb {
  flex: none; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0;
  border-radius: 3px;
}
.mb-thumb img {
  width: 74px; height: auto; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mb-thumb:hover img, .mb-thumb:focus-visible img {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow);
}
.mb-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.meister-badge p { margin: 0; font-size: .85rem; color: #b5b5b5; }
@media (prefers-reduced-motion: reduce) { .mb-thumb img { transition: none; } .mb-thumb:hover img { transform: none; } }

/* ---------- Barrierefreiheits-Widget (Button unten links) ---------- */
.a11y-fab {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-dark); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.a11y-fab svg { width: 28px; height: 28px; }
.a11y-fab:hover { background: var(--brand-darker); }

.a11y-panel {
  position: fixed; left: 1.1rem; bottom: 4.6rem; z-index: 95;
  width: min(340px, calc(100vw - 2.2rem));
  max-height: min(70vh, 560px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem;
}
.a11y-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .6rem; color: var(--brand-ink);
}
.a11y-head > span { display: inline-flex; gap: .4rem; align-items: center; }
.a11y-reset, .a11y-close {
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink);
  padding: .3rem .6rem; cursor: pointer;
}
.a11y-reset:hover, .a11y-close:hover { border-color: var(--brand); color: var(--brand-darker); }
.a11y-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin: .8rem 0 .4rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-toggle {
  display: flex; align-items: center; gap: .5rem; text-align: left;
  background: var(--paper-soft); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink);
  padding: .55rem .6rem; cursor: pointer;
}
.a11y-toggle .a11y-ic { flex: none; display: inline-flex; color: var(--brand-dark); }
.a11y-toggle .a11y-ic svg { width: 20px; height: 20px; }
.a11y-toggle:hover { border-color: var(--brand); }
.a11y-toggle[aria-pressed="true"] {
  background: var(--brand-tint-2); border-color: var(--brand-dark); color: var(--brand-darker);
}

/* Wirkung der Schalter (Klassen am <html>-Element) */
html.a11y-bigtext { font-size: 118%; }
html.a11y-line body { line-height: 2.1; }
html.a11y-font body { font-family: Verdana, Arial, sans-serif; }
html.a11y-contrast body {
  --ink: #000; --ink-soft: #1a1a1a; --brand-ink: #000;
  --brand-dark: #14532d; --brand-darker: #0c3d1f; --line: #666;
}
html.a11y-contrast a { text-decoration: underline; }
html.a11y-gray img, html.a11y-gray .hero-bg, html.a11y-gray .swoosh { filter: grayscale(1); }
html.a11y-noimg img, html.a11y-noimg .hero-bg { visibility: hidden; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after {
  transition: none !important; animation: none !important;
}
html.a11y-noanim { scroll-blocked: auto; }
html.a11y-links a {
  text-decoration: underline !important;
  background: #ffe9a0; color: #1a1a1a !important;
  border-radius: 2px;
}
html.a11y-links .site-footer a, html.a11y-links .cta-band a { color: #1a1a1a !important; }

/* Druck */
@media print {
  .topbar, .nav-toggle, .nav-list, .to-top, .cta-band, .skip-link { display: none !important; }
  body { font-size: 11pt; }
}
