/* =========================================================================
   Paul Schneider Farbservice — Malermeisterbetrieb Goslar/Vienenburg
   Statische JumpX-Kundenseite. Eine Datei, keine Frameworks, keine CDNs.
   ========================================================================= */

/* --- Farben, Masse, EINE Inhaltskante ---------------------------------- */
:root {
  --navy:        #073e68;
  --navy-tief:   #022f51;
  --blau:        #0871b5;
  --gelb:        #ffd300;
  --rot:         #ef233c;
  --papier:      #f7f7f5;
  --linie:       #dce5eb;
  --text:        #36586f;
  --text-hell:   #516b7d;

  /* Inhaltsbreite: rund drei Viertel des Fensters, nie bei 1000px enden. */
  --inhalt: 1420px;
  --rand: 48px;
  /* Alle Sections haengen an dieser einen Variablen — nie eigene Breiten. */
  --kante: max(var(--rand), calc((100% - var(--inhalt)) / 2));

  --serif: Georgia, 'Times New Roman', 'Nimbus Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
  --hand: 'Segoe Print', 'Bradley Hand', 'Snell Roundhand', 'Comic Sans MS', cursive;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;      /* Anker landen nicht unter dem Header */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;             /* kein horizontales Scrollen, nie */
  background: #fff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

p { font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 99;
  padding: 10px 18px; background: var(--gelb); color: var(--navy);
  font-weight: 800; font-size: 14px; transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* Der Traeger der Inhaltskante. Traegt KEINE eigene Breite. */
.shell { width: 100%; margin-inline: auto; padding-inline: var(--kante); }

/* --- Wiederkehrende Bausteine ------------------------------------------ */
.eyebrow {
  margin: 0 0 21px;
  display: flex; align-items: center; gap: 16px;
  color: var(--navy);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow i { width: 43px; height: 2px; flex: 0 0 43px; background: var(--rot); }

h1, h2 { margin: 0; font-family: var(--serif); color: var(--navy); font-weight: 500; }
h1 { font-size: clamp(52px, 5.3vw, 86px); line-height: .94; letter-spacing: -.045em; }
h2 { font-size: clamp(36px, 3.5vw, 58px); line-height: .98; letter-spacing: -.035em; }

.icon { width: 1em; height: 1em; flex: 0 0 auto; stroke: currentColor; fill: none;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.button {
  background: var(--gelb); color: var(--navy);
  min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding-inline: 23px;
  font-size: 14px; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button .icon { font-size: 17px; stroke-width: 2.2; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 9px 23px rgba(6,61,104,.16); }
.button-small { min-height: 45px; min-width: 164px; }
.button-small .icon { font-size: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 9px;
  border-bottom: 2px solid var(--navy);
  font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap;
  transition: gap .2s ease;
}
.text-link .icon { font-size: 17px; }
.text-link:hover, .text-link:focus-visible { gap: 16px; }

.section { position: relative; padding-block: 64px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 780px; overflow: hidden; background: #fff; }

.hero-photo {
  position: absolute; inset: 0 0 0 34%;      /* laeuft bis an die Fensterkante */
  background-image: url('assets/hero-wohnraum.jpg');
  background-image: image-set(url('assets/hero-wohnraum.webp') type('image/webp'),
                              url('assets/hero-wohnraum.jpg')  type('image/jpeg'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 22%;
  background: linear-gradient(90deg, #fff 12%, rgba(255,255,255,.78) 47%, transparent);
}

/* --- Kopfzeile: Flaeche randlos, Inhalt auf der Kante ------------------- */
.site-header {
  position: relative; z-index: 4;
  width: 100%; height: 105px;                /* Flaeche: linke bis rechte Fensterkante */
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(7,62,104,.07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-inner {                              /* Inhalt: exakt auf der Inhaltskante */
  height: 100%;
  display: grid; grid-template-columns: 250px 1fr auto; align-items: center; gap: 20px;
}
.brand { display: block; }
.brand img { width: 230px; height: 44px; display: block; object-fit: contain; object-position: left center; }

.hauptnav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 47px); font-size: 13px; font-weight: 700; }
.hauptnav a { position: relative; }
.hauptnav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -8px;
  height: 2px; background: var(--gelb); transition: right .2s ease;
}
.hauptnav a:hover::after, .hauptnav a:focus-visible::after, .hauptnav a[aria-current]::after { right: 0; }

.nav-toggle { display: none; }

.hero-inner { position: relative; z-index: 3; min-height: 675px; display: flex; align-items: center; }
.hero-copy {
  width: 530px; max-width: 100%;
  margin-top: -15px;
  padding-block: 56px 50px;
  padding-right: 66px;
  background: linear-gradient(90deg, rgba(255,255,255,.99) 78%, rgba(255,255,255,.73) 91%, transparent);
}
.hero-copy h1 { text-wrap: balance; }
.intro { max-width: 430px; margin: 25px 0 0; font-size: 17px; line-height: 1.48; color: #234d6d; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.trust-list { list-style: none; padding: 0; margin: 33px 0 0; display: grid; gap: 14px; font-size: 14px; }
.trust-list li { display: flex; align-items: center; gap: 14px; }
.trust-list .icon { font-size: 22px; color: var(--blau); stroke-width: 1.8; }

.hero-slogan {
  position: absolute; z-index: 3; right: 26px; bottom: 26px;
  color: var(--navy); font-family: var(--hand);
  font-size: 38px; line-height: .95; font-weight: 700;
  /* Leichter Lichthof — bleibt auf jedem Bildausschnitt lesbar. */
  text-shadow: 0 0 14px rgba(255,255,255,.9), 0 0 30px rgba(255,255,255,.65);
  text-align: center; transform: rotate(-7deg);
  pointer-events: none;
}

/* =========================================================================
   LEISTUNGEN
   ========================================================================= */
.services { background: #fff; padding-bottom: 72px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }

.service-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; }
.service-card {
  min-width: 0;
  background: linear-gradient(180deg, #fff 50%, #fafafa 100%);
  border: 1px solid #eff1f2;
  box-shadow: 0 5px 18px rgba(7,62,104,.035);
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(7,62,104,.09); }
.service-image { width: 100%; height: 225px; display: block; object-fit: cover; object-position: center; background: #dfe7eb; }
.service-body { padding: 21px 20px 23px; min-height: 182px; display: flex; flex-direction: column; align-items: flex-start; }
.service-card h3 { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.05; font-weight: 600; color: var(--navy); hyphens: auto; }
.service-card p { margin: 12px 0 16px; color: #3f6179; font-size: 14px; line-height: 1.35; }
.service-card > .service-body > a { margin-top: auto; display: inline-flex; }
.service-card > .service-body > a .icon { font-size: 22px; }

.service-details {
  margin-top: 52px;
  padding-block: 34px;
  display: grid; grid-template-columns: .92fr 1.4fr; gap: 70px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.service-details h3 { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.12; color: var(--navy); font-weight: 500; }
.detail-copy { columns: 2; column-gap: 38px; }
.detail-copy p { margin: 0 0 16px; color: var(--text); font-size: 14px; line-height: 1.55; break-inside: avoid; }
.detail-copy p:last-child { margin-bottom: 0; }

/* =========================================================================
   REFERENZEN
   ========================================================================= */
.references {
  background: linear-gradient(130deg, #f7f7f5 0%, #fff 58%, #f5f5f2 100%);
  padding-block: 74px 80px;
  overflow: hidden;
}
.references::before {
  content: ''; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: radial-gradient(circle at 70% 15%, #aab7bf 0 1px, transparent 1px);
  background-size: 27px 27px;
}
.references .shell { position: relative; }
.references-heading { display: grid; grid-template-columns: 1.15fr .75fr; align-items: end; gap: clamp(40px, 7vw, 110px); }
.references-intro { padding-bottom: 4px; }
.references-intro p { margin: 0 0 13px; max-width: 470px; color: var(--text); font-size: 15px; line-height: 1.48; }

.gallery-grid {
  margin-top: 37px;
  display: grid;
  grid-template-columns: 1.35fr .79fr .79fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: 3 / 1;
}
.gallery-item { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #dfe7eb; }
.gallery-feature { grid-row: 1 / 3; }
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
}
.gallery-caption {                            /* sauberes HTML-Overlay, kein Bildtext */
  position: absolute; z-index: 1; left: 24px; bottom: 24px;
  width: min(74%, 360px);
  padding: 22px 26px 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 25px rgba(3,47,81,.11);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gallery-caption i { display: block; width: 44px; height: 3px; margin-bottom: 14px; background: var(--gelb); }
.gallery-caption strong { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.16; font-weight: 500; color: var(--navy); }

/* =========================================================================
   UEBER UNS
   ========================================================================= */
.about { position: relative; min-height: 380px; overflow: hidden; padding-block: 63px 68px; background: #fff; }
.about-brush {
  position: absolute; z-index: 0;
  left: calc(var(--kante) - 196px);           /* liegt im Rand, nie im Text */
  top: -8px; width: 190px; height: 210px;
  background: linear-gradient(148deg, var(--gelb) 0 31%, #fff 31% 37%, var(--rot) 37% 49%,
                              #fff 49% 55%, var(--blau) 55% 67%, transparent 67%);
  clip-path: polygon(0 5%, 86% 0, 67% 13%, 100% 16%, 61% 27%, 91% 33%, 52% 44%,
                     79% 53%, 38% 63%, 68% 74%, 22% 84%, 47% 96%, 0 100%);
  transform: rotate(-5deg);
  pointer-events: none;
}
.about .shell { position: relative; z-index: 1; }
.about-top { display: grid; grid-template-columns: 1.15fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.about-copy p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }

.values-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
.value { min-height: 94px; display: flex; flex-direction: column; align-items: center; text-align: center;
         font-family: var(--serif); font-size: 17px; line-height: 1.15; color: var(--navy); }
.value .icon { font-size: 31px; margin-bottom: 10px; stroke-width: 1.55; }
.value strong { font-weight: 500; }
.value span { display: block; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { padding-block: 58px 67px; background: linear-gradient(110deg, #fff 0%, #fff 55%, #f9faf9 100%); }
.faq-shell { display: grid; grid-template-columns: .76fr 1.55fr; gap: clamp(40px, 6vw, 94px); align-items: start; }
.script-note {
  position: relative; width: max-content; max-width: 100%;
  margin: 58px 0 0;
  color: var(--navy); font-family: var(--hand);
  font-size: 28px; line-height: 1.12; font-weight: 700;
  transform: rotate(-5deg); transform-origin: left center;
}
.script-note::after {
  content: ''; position: absolute; left: 9px; right: -9px; bottom: -8px;
  height: 4px; background: var(--gelb); transform: rotate(-4deg);
}
.faq-list { padding-top: 22px; }
.faq-list details { border: 1px solid #e2e7eb; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(7,62,104,.03); }
.faq-list details + details { margin-top: 8px; }
.faq-list summary {
  min-height: 50px; padding: 12px 18px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  font-size: 14px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { font-style: normal; font-size: 23px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 58px 17px 18px; color: var(--text-hell); font-size: 14px; line-height: 1.5; }

/* =========================================================================
   ANFRAGE-FORMULAR
   ========================================================================= */
.anfrage { padding-block: 62px 72px; background: var(--papier); border-top: 1px solid var(--linie); }
.anfrage-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.anfrage-text .intro { max-width: 360px; font-size: 16px; }

.anfrage-kontakt { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.anfrage-kontakt li { display: flex; align-items: flex-start; gap: 13px; font-size: 14px; line-height: 1.45; color: var(--text); }
.anfrage-kontakt .icon { font-size: 20px; color: var(--blau); stroke-width: 1.8; margin-top: 2px; }
.anfrage-kontakt a { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gelb); }

.anfrage-form { background: #fff; border: 1px solid var(--linie); padding: 30px 32px 32px; box-shadow: 0 5px 22px rgba(7,62,104,.04); }
.feld { display: grid; gap: 7px; margin-bottom: 18px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feld label { font-size: 13px; font-weight: 700; color: var(--navy); }
.feld label span[aria-hidden] { color: var(--rot); }
.feld .optional { color: var(--text-hell); font-weight: 400; }
.feld input, .feld textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--linie); background: #fff; color: var(--navy);
  font-size: 15px; font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.feld textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(8,113,181,.14);
}
.feld input:user-invalid, .feld textarea:user-invalid { border-color: var(--rot); }

.feld-check { grid-template-columns: auto 1fr; align-items: start; gap: 11px; margin: 22px 0 24px; }
.feld-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--navy); }
.feld-check label { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--text); }
.feld-check label a { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--gelb); }

/* Honigtopf: aus dem Blickfeld, aber nicht display:none — sonst ignorieren Bots ihn. */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-fehler {
  margin: 0 0 22px; padding: 14px 16px;
  background: #fdeaed; border-left: 4px solid var(--rot);
  font-size: 14px; line-height: 1.5; color: #7d1524;
}
.form-fehler a { font-weight: 700; border-bottom: 1px solid currentColor; }
.pflichtfeld-hinweis { margin: 16px 0 0; font-size: 12px; color: var(--text-hell); }

/* =========================================================================
   FUSSZEILE
   ========================================================================= */
.site-footer {
  position: relative; overflow: hidden;
  min-height: 390px; padding-top: 58px;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, #095a8f 0%, #063f69 43%, #022f51 100%);
}
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.22fr .62fr .95fr .65fr; gap: clamp(32px, 4vw, 70px); }
.footer-grid h3 { margin: 0 0 15px; font-size: 15px; color: #fff; }
.footer-nav a, .footer-legal a { display: block; width: fit-content; margin: 8px 0; color: rgba(255,255,255,.82); font-size: 13px; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-brand img { width: 225px; height: 43px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.footer-brand p { margin: 19px 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.45; }
.socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.socials a {
  border: 1px solid rgba(255,255,255,.45); color: #fff;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.socials .icon { font-size: 16px; }
.social-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.social-mark:hover, .social-mark:focus-visible { background: rgba(255,255,255,.14); border-color: #fff; }
.insta-button {
  min-height: 34px; display: inline-flex; align-items: center; gap: 9px;
  padding-inline: 15px; font-size: 13px; font-weight: 700;
}
.insta-button .icon { font-size: 17px; }
.insta-button:hover, .insta-button:focus-visible {
  background: var(--gelb); border-color: var(--gelb); color: var(--navy); transform: translateY(-2px);
}
.footer-contact { display: flex; align-items: flex-start; gap: 11px; margin: 8px 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.45; }
.footer-contact .icon { font-size: 18px; margin-top: 1px; }
a.footer-contact:hover { color: #fff; }

.footer-bottom {
  position: relative; z-index: 2;
  min-height: 118px; margin-top: 38px; padding-top: 16px; padding-bottom: 86px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55); font-size: 12px;
}

/* Gelber Pinselstrich + Handschrift — Text liegt vollstaendig auf dem Gelb. */
.footer-brush {
  position: absolute; z-index: 1;
  right: -90px; bottom: -30px;
  width: min(760px, 92%); height: 185px;
  background: var(--gelb);
  transform: rotate(-7deg) skewX(-18deg);
  border-radius: 60% 0 0 22%;
  box-shadow: -55px 22px 0 -38px #fff, -67px 38px 0 -40px var(--blau);
  pointer-events: none;
}
.footer-script {
  position: absolute; z-index: 3;
  right: var(--kante); bottom: 26px;
  width: 260px;
  color: var(--navy-tief); font-family: var(--hand);
  font-size: 21px; line-height: 1.22; font-weight: 700;
  text-align: center; transform: rotate(-5deg);
  pointer-events: none;
}

/* =========================================================================
   TEXTSEITEN (Impressum, Datenschutz, Danke, 404)
   Bewusste Ausnahme: ~900px, Lesbarkeit schlaegt Flaeche.
   ========================================================================= */
.page-header { position: relative; background: var(--papier); border-bottom: 1px solid var(--linie); }
.page-hero { padding-block: 58px 46px; }
.page-hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
.page-hero .intro { margin-top: 18px; }
.prose { padding-block: 54px 68px; }
.prose-inner { max-width: 900px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 31px); margin-top: 42px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--navy); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); font-size: 15px; line-height: 1.65; }
.prose p { margin: 12px 0; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose a { border-bottom: 1px solid var(--gelb); }
.prose .hinweis { padding: 16px 20px; background: #fff8d6; border-left: 4px solid var(--gelb); font-size: 14px; }

/* =========================================================================
   RESPONSIV
   ========================================================================= */
@media (max-width: 1240px) {
  :root { --rand: 36px; }
  .service-grid { gap: 14px; }
  .service-image { height: 190px; }
  .service-body { padding: 17px 15px 19px; min-height: 172px; }
  .service-card h3 { font-size: 17px; }
  .service-details { gap: 38px; }
  .header-inner { grid-template-columns: 210px 1fr auto; }
  .brand img { width: 200px; height: 38px; }
  .hero-copy { width: 500px; }
}

@media (max-width: 980px) {
  :root { --rand: 28px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .hauptnav {
    position: absolute; z-index: 6; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; justify-content: flex-start; gap: 0;
    padding: 8px var(--kante) 18px;
    background: #fff; box-shadow: 0 18px 28px rgba(7,62,104,.12);
  }
  .hauptnav[data-offen] { display: flex; }
  .hauptnav a { padding-block: 13px; border-bottom: 1px solid var(--linie); font-size: 15px; }
  .hauptnav a::after { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; padding: 0;
    background: none; border: 1px solid var(--linie); color: var(--navy); cursor: pointer;
  }
  .nav-toggle .icon { font-size: 22px; }
  .nav-toggle .icon-schliessen { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-schliessen { display: block; }
  .nav-toggle[aria-expanded="true"] .icon-menue { display: none; }

  .hero-photo { left: 44%; }
  .hero-copy { width: 475px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .service-image { height: 235px; }
  .service-card:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .service-card:last-child .service-image { height: 100%; min-height: 240px; }
  .service-details { grid-template-columns: 1fr; gap: 24px; }
  .references-heading { gap: 45px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; aspect-ratio: auto; }
  .gallery-feature { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery-item:not(.gallery-feature) { aspect-ratio: 16 / 10; }
  .about-brush { left: calc(var(--kante) - 156px); width: 150px; height: 170px; }
  .about-top { grid-template-columns: 1fr; gap: 30px; }
  .faq-shell { grid-template-columns: .8fr 1.2fr; gap: 50px; }
  .anfrage-shell { grid-template-columns: 1fr; gap: 34px; }
  .anfrage-text .intro { max-width: none; }
  /* Zwei Spalten, aber ALLE Spalten bleiben sichtbar — Impressum und
     Datenschutz muessen auf jeder Breite erreichbar sein. */
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .footer-brand { grid-column: 1 / 3; }
  .footer-bottom { padding-bottom: 96px; }
}

@media (max-width: 680px) {
  :root { --rand: 20px; }
  body, p { font-size: 15px; }
  html { scroll-padding-top: 92px; }

  .hero { min-height: auto; }
  .site-header { height: 87px; }
  .brand img { width: 168px; height: 32px; }
  .button-small { min-width: 46px; padding-inline: 13px; font-size: 0; gap: 0; }
  .button-small .icon { font-size: 19px; }

  .hero-inner { align-items: flex-start; min-height: auto; padding-bottom: 0; }
  .hero-copy {
    width: 100%; margin: 0; padding-block: 44px 40px; padding-right: 0;
    background: none;
  }
  h1 { font-size: clamp(46px, 14.5vw, 72px); }
  h2 { font-size: clamp(32px, 8.6vw, 42px); }
  .intro { font-size: 16px; max-width: none; }
  .hero-actions { gap: 18px; }
  .hero-actions .button { padding-inline: 18px; }
  .trust-list { margin-top: 26px; }

  /* Bild wandert unter den Text — Reihenfolge: Kopfzeile, Text, Bild. */
  .hero { display: flex; flex-direction: column; }
  .site-header { order: 1; }
  .hero-inner { order: 2; }
  .hero-photo { order: 3; position: relative; inset: auto; width: 100%; height: 320px; }
  .hero-photo::after { inset: 0 0 auto; width: 100%; height: 80px; background: linear-gradient(#fff, transparent); }
  .hero-slogan { right: 16px; bottom: 28px; font-size: 26px; }

  .section { padding-block: 48px; }
  .section-heading { display: block; }
  .section-heading > .text-link { margin-top: 24px; }
  .services { padding-bottom: 52px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card, .service-card:last-child { grid-column: auto; display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .service-image, .service-card:last-child .service-image { width: 128px; height: 100%; min-height: 196px; }
  .service-body { min-height: 196px; padding: 17px 15px; }
  .service-details { margin-top: 36px; padding-block: 28px; }
  .detail-copy { columns: 1; }

  .references { padding-block: 52px 56px; }
  .references-heading { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; margin-top: 26px; gap: 8px; }
  .gallery-feature { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .gallery-caption { left: 12px; bottom: 12px; width: min(84%, 290px); padding: 15px 17px 17px; }
  .gallery-caption i { width: 34px; margin-bottom: 10px; }
  .gallery-caption strong { font-size: 16px; }

  .about { padding-block: 50px 44px; }
  .about-brush { left: auto; right: calc(var(--kante) - 30px); top: -14px; width: 108px; height: 130px; opacity: .9; }
  .about-copy { grid-template-columns: 1fr; gap: 16px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
  .value:last-child { grid-column: 1 / 3; }

  .faq { padding-block: 48px 56px; }
  .faq-shell { grid-template-columns: 1fr; gap: 24px; }
  .anfrage { padding-block: 48px 56px; }
  .anfrage-shell { gap: 28px; }
  .anfrage-form { padding: 22px 18px 24px; }
  .feld-reihe { grid-template-columns: 1fr; gap: 0; }
  .anfrage-form .button { width: 100%; }
  .script-note { margin: 34px 0 0 28px; font-size: 25px; }
  .faq-list { padding-top: 0; }
  .faq-list details p { padding-right: 24px; }

  .site-footer { padding-top: 46px; }
  /* Navigation und Rechtliches nebeneinander, Kontakt ueber die volle Breite. */
  .footer-brand { grid-column: 1 / 3; order: 0; }
  .footer-nav { order: 1; }
  .footer-legal { order: 2; }
  .footer-kontakt { grid-column: 1 / 3; order: 3; }
  .footer-bottom { min-height: auto; margin-top: 30px; padding-bottom: 176px; }
  .footer-bottom > span { display: block; max-width: 250px; }
  /* Mobil ein durchgehendes gelbes Band mit weicher Oberkante — der
     Schriftzug sitzt dadurch auf jeder Breite vollstaendig auf dem Gelb. */
  .footer-brush {
    left: -12%; right: -12%; width: 124%; bottom: -46px; height: 212px;
    border-radius: 100% 100% 0 0 / 74% 74% 0 0;
    transform: rotate(-3deg); box-shadow: none;
  }
  .footer-script { left: var(--kante); right: var(--kante); bottom: 30px; width: auto; font-size: 20px; text-align: center; }
}

@media (max-width: 420px) {
  .service-card, .service-card:last-child { grid-template-columns: 1fr; }
  .service-image, .service-card:last-child .service-image { width: 100%; height: 185px; min-height: 0; }
  .service-body { min-height: 0; }
  .hero-slogan { font-size: 22px; right: 12px; bottom: 20px; }
  .footer-script { font-size: 18px; width: 195px; }
}

@media print {
  .site-header, .hero-photo, .hero-slogan, .footer-brush, .about-brush, .nav-toggle { display: none !important; }
  body { color: #000; }
}
