/* ==========================================================================
   Malerbetrieb Bornschein – statische Website
   Masterlayout: FireShot-PDFs (Referenz-Viewport 1440 px)
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, kein Google-Fonts-Abruf) ---------- */
/* Fließtext: Segoe UI (Windows) – sonst die metrisch kompatible Open-Source-Schrift Selawik */
@font-face {
  font-family: "BS Text";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: local("Segoe UI Light"), local("SegoeUI-Light"),
       url("../fonts/selawik-light.woff2") format("woff2");
}
@font-face {
  font-family: "BS Text";
  font-weight: 350;
  font-style: normal;
  font-display: swap;
  src: local("Segoe UI Semilight"), local("SegoeUI-Semilight"),
       url("../fonts/selawik-semilight.woff2") format("woff2");
}
@font-face {
  font-family: "BS Text";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Segoe UI"), local("SegoeUI"),
       url("../fonts/selawik-regular.woff2") format("woff2");
}
/* Überschriften / Kontaktboxen: Roboto */
@font-face {
  font-family: "Roboto";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/roboto-300.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/roboto-400.woff2") format("woff2");
}

/* ---------- Variablen ---------- */
:root {
  --blau: #244588;
  --rot: #ec1a24;
  --grau-hell: #edebec;
  --grau-dunkel: #727272;
  --text: #2a2829;
  --weiss: #ffffff;
  --link-rot: #cc3366;
  --container: 1140px;         /* Elementor "boxed" */
  --font-text: "BS Text", "Segoe UI", Selawik, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --fs-text: 13px;             /* Fließtext Desktop: 13 px */
  --lh-text: 1.5;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blau); color: #fff; padding: 8px 14px;
}
.skip-link:focus { left: 10px; top: 10px; }
.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;
  padding: 0 15px;
}

/* ---------- Header ---------- */
.site-header { background: var(--weiss); height: 214px; }
.site-header .container { height: 100%; display: flex; align-items: center; }
.logo { display: block; width: 365px; margin-top: -2px; }
.logo img { width: 365px; height: auto; }

/* ---------- Hero-Slider ---------- */
.hero {
  position: relative;
  height: 497px;
  overflow: hidden;
  background: #9aa;
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide::after {             /* heller Schleier wie im Master */
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .2);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide--1 { background-image: url("../img/slide-farbfaecher.jpg"); }
.hero__slide--2 { background-image: url("../img/slide-haus.jpg"); }
.hero__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 60px; height: 76px; margin-top: -38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, .9);
}
.hero__arrow svg { width: 21px; height: 40px; }
.hero__arrow:hover, .hero__arrow:focus-visible { color: #fff; }
.hero__arrow--prev { left: 9px; }
.hero__arrow--next { right: 9px; }

/* ---------- Intro (grau) ---------- */
.intro {
  position: relative;
  background: var(--grau-hell);
  padding: 78px 0 50px;
}
.intro::after {                   /* Pfeil-Trenner nach unten */
  content: ""; position: absolute; left: 50%; bottom: -30px;
  width: 93px; height: 30px; transform: translateX(-50%);
  background: var(--grau-hell);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.intro .container { display: flex; align-items: flex-start; }
.intro__text { flex: 0 0 70%; max-width: 70%; padding-right: 10px; }
.intro__badge { flex: 0 0 30%; max-width: 30%; display: flex; justify-content: center; padding-top: 27px; padding-left: 45px; }
.intro__badge img { width: 248px; }
.intro h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  color: var(--blau);
  margin: 0 0 18px;
}
.intro p.spacer-top { margin-top: 1.5em; }

/* ---------- Leistungen ---------- */
.leistungen { padding: 58px 0 0; }
.leistungen h2 {
  text-align: center;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  color: var(--blau);
  margin-bottom: 16px;
}
.leistungen__cols { display: flex; }
.leistungen__cols ul { flex: 0 0 50%; list-style: none; margin: 0; padding: 0 0 0 13px; }
.leistungen__cols li {
  display: flex; align-items: center;
  height: 50px;
  font-size: var(--fs-text);
}
.leistungen__cols li svg { width: 32px; height: 32px; flex: none; margin-right: 9px; color: var(--blau); }

.claim {
  text-align: center;
  padding: 106px 0 65px;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 43px;
  line-height: 1.2;
  color: var(--blau);
}
.claim__highlight { position: relative; display: inline-block; }
.claim__highlight svg {
  position: absolute; top: 46%; left: 50%;
  width: calc(100% + 21px); height: calc(100% + 24px);
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.claim__highlight path {
  fill: none; stroke: var(--rot); stroke-width: 5px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1500; stroke-dashoffset: 0;
}
.claim.js-wait .claim__highlight path { stroke-dashoffset: 1500; }
.claim.is-animated .claim__highlight path { animation: draw 1.2s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1500; } to { stroke-dashoffset: 0; } }

/* ---------- Leistungs-Kacheln ---------- */
.kacheln { background: var(--grau-hell); padding: 70px 25px 69px; }
.kacheln__grid { display: flex; gap: 0; }
.kachel {
  position: relative; flex: 1 1 0; margin: 0 15px;
  height: 277px; overflow: hidden; display: block;
  color: #fff; text-decoration: none;
}
.kachel__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.5s ease;
}
.kachel:hover .kachel__bg, .kachel:focus-visible .kachel__bg { transform: scale(1.2); }
.kachel__title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-text); font-weight: 300;
  font-size: 22px; line-height: 1.2;
  transition: transform .3s ease;
}
.kachel:hover .kachel__title { transform: scale(1.1); }

/* ---------- Kontaktboxen ---------- */
.kontakt { padding: 80px 0 0; }
.kontakt__grid { display: flex; justify-content: space-between; }
.kbox {
  position: relative;
  width: 358px;
  min-height: 181px;
  background: var(--grau-dunkel);
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 300;
  padding: 33px 12px 21px;
}
.kbox__icon {
  position: absolute; left: 50%; top: -27px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rot); border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.kbox__icon svg { width: 25px; height: 25px; fill: #fff; }
.kbox__title {
  display: block;
  font-size: 24px; line-height: 1.03;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
  color: #fff;
  margin-bottom: 13px;
}
.kbox__body { font-size: 19px; line-height: 1.26; }
.kbox__body a { color: #fff; text-decoration: none; }
.kbox__body a:hover, a.kbox__title:hover { text-decoration: underline; color: #fff; }

.stadtlink {
  text-align: center;
  padding: 84px 0 61px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
}
.stadtlink a { color: var(--blau); text-underline-offset: 2px; }
.stadtlink a:hover { color: var(--rot); }

/* ---------- Karte ---------- */
.karte { padding: 0 10px 10px; }
.karte__inner { position: relative; }
.karte__inner img { width: 100%; }
.karte__btn {
  position: absolute; left: 50%; top: 50.1%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 15px;
  height: 48px; padding: 0 14px;
  background: var(--rot); color: #fff;
  font-family: var(--font-text); font-weight: 350; font-size: 17px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 6px rgba(114, 114, 114, .65);
  border-radius: 2px;
}
.karte__btn svg { width: 18px; height: 18px; fill: #fff; }
.karte__btn:hover { background: #c8141d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grau-dunkel); color: #fff; }
.site-footer .container {
  max-width: 1160px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer__copy {
  margin: 0; padding-top: 10px;
  font-size: var(--fs-text); line-height: 1.2; font-weight: 300;
}
.footer-nav { display: flex; align-self: flex-start; padding-right: 5px; }
.footer-nav a {
  position: relative; display: block;
  padding: 20px 20px 0; height: 56px;
  font-size: var(--fs-text); line-height: 1.2; color: #fff; text-decoration: none;
}
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--rot);
  transform: scaleX(0); transition: transform .3s;
}
.footer-nav a:hover::after, .footer-nav a[aria-current="page"]::after { transform: scaleX(1); }

.footer-space { background: var(--grau-hell); height: 73px; }

/* ---------- Kontaktleiste (fixiert unten) ---------- */
.quickbar {
  position: fixed; left: 50%; bottom: 0; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 22px;
  width: 317px; height: 66px; padding: 0 18px;
  background: var(--blau); color: #fff;
  border-radius: 12px 12px 0 0;
  font-size: var(--fs-text);
}
.quickbar a { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.quickbar a:hover span { text-decoration: underline; }
.quickbar svg { fill: #fff; flex: none; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page-title {
  background: var(--blau); color: #fff;
  height: 159px; display: flex; align-items: center; justify-content: center;
}
.page-title h1 {
  font-family: var(--font-head); font-weight: 400;
  font-size: 60px; line-height: 1; margin-top: -3px;
}
.legal { padding: 77px 0 24px; }
.legal h2 {
  font-family: var(--font-text); font-weight: 300;
  font-size: 42px; line-height: 1.2; color: var(--blau);
  margin: 0 0 12px;
}
.legal h3 {
  font-family: var(--font-text); font-weight: 400;
  font-size: 13px; line-height: var(--lh-text);
  margin: 0 0 .8em; color: #1f1d1e;
}
.legal ul { margin: 0; padding: 0 0 0 30px; }
.legal li { margin: 0; }
.legal ul + p { margin-top: 0; }
.legal p + ul { margin-top: 0; }
.legal a { color: var(--link-rot); text-decoration: none; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal a[href^="tel:"], .legal a[href^="mailto:"] { color: inherit; }
.legal .mb { margin-bottom: .8em; }
.legal sup { font-size: 70%; line-height: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .kacheln { padding-left: 10px; padding-right: 10px; }
  .kontakt__grid { gap: 12px; }
  .kbox { width: auto; flex: 1 1 0; }
}
@media (max-width: 767px) {
  :root { --fs-text: 15px; --lh-text: 1.45; }
  .site-header { height: 110px; }
  .site-header .container { justify-content: center; }
  .logo, .logo img { width: 180px; }
  .hero { height: 220px; }
  .intro { padding: 36px 0 40px; }
  .intro .container { flex-direction: column; }
  .intro__text, .intro__badge { flex: none; max-width: 100%; padding: 0; }
  .intro__badge { margin-top: 24px; }
  .intro__badge img { width: 150px; }
  .intro h1 { font-size: 24px; line-height: 1.15; }
  .leistungen { padding-top: 46px; }
  .leistungen h2 { font-size: 21px; padding: 0 10px; }
  .leistungen__cols { flex-direction: column; padding-left: 10px; }
  .leistungen__cols li { font-size: 15px; height: 38px; }
  .claim { font-size: 25px; padding: 40px 10px 36px; }
  .kacheln { padding: 30px 10px; }
  .kacheln__grid { flex-direction: column; gap: 16px; }
  .kachel { margin: 0; flex: none; height: 200px; }
  .kachel__title { font-size: 18px; }
  .kontakt { padding-top: 36px; }
  .kontakt__grid { flex-direction: column; gap: 40px; padding: 0 10px; }
  .kbox { width: 100%; flex: none; min-height: 0; padding: 40px 12px 24px; }
  .kbox__title { font-size: 18px; }
  .kbox__body { font-size: 15px; }
  .stadtlink { font-size: 17px; padding: 36px 16px; }
  .karte { padding: 0; }
  .karte__inner { height: 260px; overflow: hidden; }
  .karte__inner img { height: 100%; object-fit: cover; object-position: 50% 50%; }
  .site-footer .container { height: auto; flex-direction: column; align-items: center; text-align: center; padding: 14px 16px 6px; }
  .site-footer__copy { padding-top: 0; font-size: 13px; }
  .footer-nav a { font-size: 13px; padding: 10px 12px 0; height: 34px; }
  .footer-space { height: 60px; }
  .quickbar { width: auto; gap: 18px; padding: 0 18px; font-size: 14px; height: 48px; }
  .page-title { height: 84px; }
  .page-title h1 { font-size: 30px; }
  .legal { padding-top: 32px; }
  .legal h2 { font-size: 25px; }
  .legal h3 { font-size: 15px; }
  .legal ul { padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .kachel__bg, .kachel__title { transition: none; }
  .claim.is-animated .claim__highlight path { animation: none; }
}
