/* ==========================================================================
   Malermeister Rump – statischer Neuaufbau
   Masterlayout: FireShot Capture 163–167 (Desktop, 1920 px Viewport)
   Fließtext: Desktop 14 px · Handy 16 px
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO) ----------------------------
   Die WOFF2-Dateien bitte in assets/fonts/ ablegen (siehe LIESMICH.txt).
   Fehlen sie, greift automatisch Arial als Ersatz. */
@font-face {
  font-family: "Roboto";
  src: local("Roboto"), local("Roboto-Regular"),
       url("../fonts/roboto-v30-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: local("Roboto Medium"), local("Roboto-Medium"),
       url("../fonts/roboto-v30-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans"), local("OpenSans-Regular"),
       url("../fonts/open-sans-v35-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
       url("../fonts/open-sans-v35-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --gruen: #067D6C;        /* dunkleres Grün für Kontrast (5,05:1 auf Weiß) */
  --gruen-hell: #079F8A;   /* Originalgrün: nur auf Schwarz (dort kontraststärker) */
  --gruen-dunkel: #055f52;
  --grau: #CCCCCC;        /* heller als Master (#B8B8B8): Überschrift 3,15:1 */
  --grau-hell: #EDEBEC;
  --schwarz: #040000;
  --text: #000;
  --text-liste: #333;
  --gelb: #FFB812;
  --link: #CD3367;
  --verlauf: linear-gradient(90deg, #079F89 0%, #D2FAF4 40%, #FFFFFF 50%, #C7FFF7 60%, #079F89 100%);

  --container: 988px;
  --font-text: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-roboto: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-open: "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;

  --fliesstext: 14px;
  --zeile: 23px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fliesstext);
  line-height: var(--zeile);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
main { flex: 1 0 auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #000; color: #fff; padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- Kopfbereich ---------- */
.site-header { background: #fff; height: 103px; }
.site-header .container { position: relative; height: 100%; }
.logo { position: absolute; left: -10px; top: 14px; display: block; width: 189px; }
.logo img { width: 189px; height: auto; }
.verlauf { background: var(--verlauf); }
.header-verlauf { height: 23px; }

/* ---------- Slider (Startseite) ---------- */
.hero { padding: 8px 9px 10px; }
.slider {
  position: relative;
  height: 353px;
  overflow: hidden;
  background: #9fd0cc;
}
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide__text { position: absolute; margin: 0; font-family: var(--font-text); line-height: 1; white-space: nowrap; }
.slide--bad .slide__l1 {
  left: 0; right: 0; top: 34.15%; text-align: center;
  font-size: 30px; font-weight: 700; color: #000;
}
.slide--bad .slide__l2 {
  left: 0; right: 0; top: 52.6%; text-align: center;
  font-size: 38.6px; font-weight: 400; color: #000;
}
.slide--farbe .slide__l1 {
  left: 0; right: 0; top: 12.6%; text-align: center;
  font-size: 30.5px; font-weight: 700; color: #000;
}
.slide--mass .slide__l1 {
  left: 2.45%; top: 45.6%;
  font-size: 30.4px; font-weight: 700; color: var(--gelb);
}
.slider__dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.slider__dots button {
  width: 12px; height: 12px; padding: 3px; border: 0; background: transparent; cursor: pointer;
}
.slider__dots button::before {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.25);
}
.slider__dots button[aria-current="true"]::before { background: #000; }

/* ---------- Willkommen ---------- */
.willkommen { background: var(--grau); padding: 7px 0 23px; }
.willkommen h1 {
  color: var(--gruen);
  font-size: 35px; line-height: 36px; font-weight: 700;
  margin-bottom: 17px;
}
.willkommen p:last-child { margin-bottom: 0; }

/* ---------- Leistungen ---------- */
.leistungen { padding: 42px 0 9px; }
.h2-gruen {
  color: var(--gruen);
  font-size: 35px; line-height: 35px; font-weight: 700;
  text-align: center;
}
.leistungen__liste {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto);
}
.leistungen__liste li {
  position: relative;
  padding: 6px 0 6px 40px;
  font-size: 19px; line-height: 28.5px; color: var(--text-liste);
}
.leistungen__liste svg {
  position: absolute; left: 9px; top: 11px; width: 14px; height: 19px; fill: var(--gelb);
}

.claim { background: var(--schwarz); padding: 8px 0 9px; }
.claim h2 { margin: 0; color: var(--gruen-hell); }

/* ---------- Galerie ---------- */
.galerie { background: var(--grau-hell); margin-top: 35px; padding: 52px 26.5px 52px; }
.galerie__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 17.5px;
  margin: 0; padding: 0; list-style: none;
}
.galerie__grid img { width: 100%; height: 247px; object-fit: cover; }
.galerie__grid .haus img { object-position: 50% 34%; }

/* ---------- Kontaktboxen ---------- */
.info { padding: 37px 0 45px; }
.info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.info__box {
  background: var(--gruen); color: #fff;
  min-height: 207px; padding: 17.5px 12px 20px;
  text-align: center; font-family: var(--font-roboto);
}
.info__icon { display: block; width: 60px; height: 53px; margin: 0 auto; fill: #fff; }
.info__box h2 {
  font-family: var(--font-roboto); font-weight: 500;
  font-size: 22px; line-height: 26px; margin: 5px 0 10px;
}
.info__box h2 a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info__box p { margin: 0; font-size: 17px; line-height: 22px; }
.info__box p a { color: #fff; }

/* ---------- Karte (2-Klick-Lösung) ---------- */
.karte { padding: 0 8.5px; }
.karte__rahmen {
  position: relative; height: 522px; overflow: hidden;
  background: #f2f2f2 url("../img/karte-vorschau.jpg") center top / cover no-repeat;
}
.karte__rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.karte__hinweis {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px));
  background: rgba(255,255,255,.94); color: #000;
  border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.18);
  padding: 18px 20px; text-align: center;
  font-size: 13px; line-height: 19px;
}
.karte__hinweis p { margin: 0 0 12px; }
.karte__hinweis .btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--gruen-dunkel); color: #fff;
  font: 700 14px/1 var(--font-text); padding: 11px 18px; border-radius: 4px;
}
.karte__hinweis .btn:hover { background: #044a40; }
.karte__hinweis .klein { display: block; margin-top: 10px; font-size: 12px; }
.karte__rahmen.is-geladen .karte__hinweis { display: none; }

/* ---------- Unterseiten-Titel ---------- */
.seitentitel { background: var(--gruen); padding: 44px 0 43.5px; }
.seitentitel h1 {
  color: #fff; text-align: center;
  font-size: 35px; line-height: 35px; font-weight: 700;
}
.inhalt { padding: 44px 0 30px; }
.inhalt--zentriert { text-align: center; }
.inhalt ol, .inhalt ul { margin: 0; padding-left: 35px; }
.inhalt ol + p, .inhalt ul + p { margin-top: 0; }
.inhalt ul + ol, .inhalt ol + ol { margin-top: 0; }

/* ---------- Schnellkontakt-Leiste ---------- */
.schnellkontakt {
  position: sticky; bottom: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.schnellkontakt ul {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0; padding: 0 14px; list-style: none;
  width: 281px; height: 57.5px;
  background: #000; border-radius: 20px 20px 0 0;
}
.schnellkontakt a {
  display: flex; align-items: center; gap: 10px;
  color: var(--gruen-hell); padding: 10px 6px;
  font: 700 15px/1 var(--font-open); white-space: nowrap;
}
.schnellkontakt a:hover { text-decoration: none; color: #2bd1b8; }
.schnellkontakt svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.schnellkontakt li:first-child a { padding-left: 0; }
.schnellkontakt li:last-child a { padding-right: 4px; }

/* ---------- Fußbereich ---------- */
.site-footer { height: 79px; display: flex; justify-content: space-between; align-items: flex-start; }
.site-footer p {
  margin: 33px 0 0 22px;
  font: 400 15px/20px var(--font-open); color: #000;
}
.footer-nav ul { display: flex; margin: 0 5px 0 0; padding: 0; list-style: none; }
.footer-nav a {
  display: block; position: relative;
  padding: 23px 18px 8px;
  font: 400 15.5px/20px var(--font-text); color: #000;
}
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #fff; opacity: 0; transition: opacity .2s;
}
.footer-nav a:hover { text-decoration: none; }
.footer-nav a:hover::after, .footer-nav a[aria-current="page"]::after { opacity: 1; }
.footer-nav a[aria-current="page"] { color: #fff; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .logo { left: 20px; }
  .slider { height: 300px; }
  .slide--bad .slide__l1, .slide--farbe .slide__l1, .slide--mass .slide__l1 { font-size: 26px; }
  .slide--bad .slide__l2 { font-size: 32px; }
  .galerie { padding: 40px 20px; }
  .galerie__grid img { height: 200px; }
  .info__grid { gap: 12px; }
  .info__box p { font-size: 15px; }
  .karte__rahmen { height: 440px; }
}

/* ==========================================================================
   Handy
   ========================================================================== */
@media (max-width: 767px) {
  :root { --fliesstext: 16px; --zeile: 25px; }
  .container { padding: 0 16px; }

  .site-header { height: 84px; }
  .logo { left: 16px; top: 10px; width: 165px; }
  .logo img { width: 165px; }
  .header-verlauf { height: 14px; }

  .hero { padding: 6px 0 8px; }
  .slider { height: 220px; }
  .slide__text { white-space: normal; padding: 0 16px; text-shadow: 0 0 8px rgba(255,255,255,.65); }
  .slide--bad .slide__l1 { top: 22%; font-size: 21px; }
  .slide--bad .slide__l2 { top: 40%; font-size: 24px; line-height: 1.15; }
  .slide--farbe .slide__l1 { top: 12%; font-size: 22px; }
  .slide--mass .slide__l1 { left: 0; top: 40%; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
  .slide--bad { background-position: 50% 50%; }

  .willkommen { padding: 22px 0 26px; }
  .willkommen h1 { font-size: 26px; line-height: 31px; margin-bottom: 16px; }
  .willkommen p { margin-bottom: 14px; hyphens: auto; -webkit-hyphens: auto; }

  .leistungen { padding: 32px 0 16px; }
  .h2-gruen { font-size: 26px; line-height: 31px; }
  .leistungen__liste { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; margin-top: 12px; }
  .leistungen__liste li { font-size: 18px; padding-left: 34px; }
  .leistungen__liste svg { left: 4px; }
  .claim { padding: 12px 0; }
  .claim .h2-gruen { font-size: 24px; line-height: 29px; }

  .galerie { margin-top: 24px; padding: 24px 16px; }
  .galerie__grid { grid-template-columns: 1fr; gap: 12px; }
  .galerie__grid img { height: auto; aspect-ratio: 16 / 10; }

  .info { padding: 28px 0 28px; }
  .info__grid { grid-template-columns: 1fr; gap: 12px; }
  .info__box { min-height: 0; padding: 20px 16px 22px; }
  .info__box p { font-size: 16px; line-height: 24px; }

  .karte { padding: 0; }
  .karte__rahmen { height: 380px; background-position: 50% 30%; background-size: auto 100%; }

  .seitentitel { padding: 30px 0; }
  .seitentitel h1 { font-size: 28px; line-height: 32px; }
  .inhalt { padding: 28px 0 28px; }
  .inhalt ol, .inhalt ul { padding-left: 26px; }
  .inhalt { overflow-wrap: anywhere; }

  .schnellkontakt ul { width: auto; gap: 14px; height: 54px; padding: 0 16px; border-radius: 18px 18px 0 0; }

  .site-footer { height: auto; flex-direction: column; align-items: center; text-align: center; padding: 16px 16px 14px; }
  .site-footer p { margin: 0 0 4px; font-size: 14px; }
  .footer-nav ul { margin: 0; }
  .footer-nav a { padding: 10px 14px 8px; font-size: 16px; }
  .footer-nav a[aria-current="page"] { color: #000; font-weight: 700; }
  .footer-nav a[aria-current="page"]::after { background: #000; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

@media print {
  .hero, .karte, .schnellkontakt, .skip-link { display: none !important; }
}
