/* Hundertmark GmbH Malerbetrieb – Stylesheet
   Schriften lokal eingebunden (keine externen Anfragen) */

@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("../fonts/barlow-semi-condensed-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --gruen: #007933;        /* Hausfarbe aus der bisherigen Seite */
  --gruen-dunkel: #0d3b24;
  --gruen-hell: #e8f1eb;
  --rot: #972737;          /* Zweitfarbe aus der bisherigen Seite */
  --grau: #c9c9c9;
  --putz: #f3f4f2;
  --text: #1c2420;
  --text-leise: #4c5650;
  --weiss: #ffffff;
  --band-rot: #c0392b;
  --band-orange: #e98a24;
  --band-gelb: #f3c22f;

  --head: "Barlow SC", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: .18em; }
a:hover { color: var(--gruen-dunkel); }
:focus-visible { outline: 3px solid var(--band-orange); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gruen-dunkel);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--weiss); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid #e3e5e2;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.logo { display: inline-flex; text-decoration: none; color: var(--gruen); }
.logo svg { height: 3.4rem; width: auto; }
.logo-name { font-family: var(--head); font-weight: 700; font-style: italic; fill: var(--gruen); }
.logo-sub { font-family: var(--head); font-weight: 600; fill: var(--gruen-dunkel); letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .55rem .8rem;
  font-family: var(--head); font-weight: 600; font-size: 1.15rem;
  color: var(--text); text-decoration: none; border-radius: var(--radius);
}
.nav a:hover { color: var(--gruen); background: var(--gruen-hell); }
.nav a[aria-current="page"] { color: var(--gruen); box-shadow: inset 0 -3px 0 var(--gruen); border-radius: 0; }
.nav .nav-tel a { background: var(--gruen); color: var(--weiss); margin-left: .5rem; padding: .55rem 1rem; }
.nav .nav-tel a:hover { background: var(--gruen-dunkel); color: var(--weiss); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--gruen); color: var(--gruen);
  font: 600 1.05rem var(--head); padding: .4rem .8rem; border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid #e3e5e2; display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--pad) 1.25rem; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid #eceeeb; border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-tel a { margin: .75rem 0 0; text-align: center; border-radius: var(--radius); }
  .logo svg { height: 2.9rem; }
}

/* ---------- Farbband (Pinselstrich aus dem Logo) ---------- */
.band { display: block; width: 100%; height: 22px; }
.band svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero Startseite ---------- */
.hero { background: var(--weiss); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: calc(max(0px, (100vw - var(--max)) / 2) + min(100vw, var(--max)) * .46) minmax(0, 1fr); align-items: center; }
.hero-text { min-width: 0; padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(2.5rem, 6vw, 5rem) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.hero h1 { overflow-wrap: break-word; }
.hero h1 { color: var(--gruen-dunkel); max-width: 14ch; }
.hero p { font-size: 1.3rem; max-width: 36ch; color: var(--text-leise); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero-img { width: 100%; height: clamp(420px, 42vw, 680px); object-fit: cover; object-position: 35% 45%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-height: 340px; }
  .hero-text { padding-left: var(--pad); }
}

/* ---------- Seitenkopf Unterseiten ---------- */
.page-head { background: var(--gruen-dunkel); color: var(--weiss); position: relative; overflow: hidden; }
.page-head .wrap { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; z-index: 1; }
.page-head h1 { color: var(--weiss); margin-bottom: .3em; }
.page-head p { color: #dfe9e2; font-size: 1.25rem; margin: 0; }
.page-head.has-img .head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.crumbs { font-size: .95rem; margin-bottom: 1rem; color: #bcd0c3; }
.crumbs a { color: #dfe9e2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .8rem 1.4rem;
  font: 600 1.15rem/1.2 var(--head);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gruen); color: var(--weiss); }
.btn-primary:hover { background: #00652a; color: var(--weiss); }
.btn-light { background: var(--weiss); color: var(--gruen-dunkel); }
.btn-light:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--weiss); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--weiss); }
.btn-outline { border-color: var(--gruen); color: var(--gruen); background: transparent; }
.btn-outline:hover { background: var(--gruen-hell); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-putz { background: var(--putz); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--gruen); }
.facts li { padding: 1rem 0; border-bottom: 1px solid #dfe2de; }
.facts strong { display: block; font-family: var(--head); font-size: 1.45rem; color: var(--gruen-dunkel); line-height: 1.2; }
.facts span { color: var(--text-leise); }

/* Leistungsliste: Zeilen statt Kacheln */
.services { margin-top: 2.5rem; border-top: 1px solid #d5d9d4; }
.service-row {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 2rem; align-items: center;
  padding: 1.75rem 0; border-bottom: 1px solid #d5d9d4; text-decoration: none; color: inherit;
}
.service-row img { width: 300px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.service-row h3 { margin-bottom: .3rem; color: var(--gruen-dunkel); }
.service-row p { margin: 0; color: var(--text-leise); }
.service-row .tags { margin-top: .5rem; font-size: 1rem; color: var(--gruen); font-weight: 600; }
.service-row .more { font-family: var(--head); font-weight: 600; color: var(--gruen); white-space: nowrap; }
.service-row:hover h3 { color: var(--gruen); }
.service-row:hover .more { text-decoration: underline; }
@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
  .service-row img { width: 100%; }
}

/* Leistungsseite */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; max-width: 68ch; }
.prose li { margin-bottom: .35em; }
.aside-box { background: var(--putz); border-left: 4px solid var(--gruen); padding: 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0; }
.aside-box h3 { font-size: 1.35rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.aside-box li { padding: .45rem 0; border-bottom: 1px solid #dde1dc; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 0; }
.figure-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: .95rem; color: var(--text-leise); margin-top: .4rem; }
@media (max-width: 600px) { .figure-pair { grid-template-columns: 1fr; } }

/* Zeitleiste (echte Abfolge) */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.25rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--grau); }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 2rem; padding: 0 0 1.75rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.25rem - 6px); top: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--weiss); border: 3px solid var(--gruen); }
.timeline .year { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--gruen); line-height: 1.3; }
.timeline p { margin: 0; }

/* Kontaktband */
.cta-band { background: var(--gruen); color: var(--weiss); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.cta-band h2 { color: var(--weiss); margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: #e3efe7; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; padding: .55rem 0; border-bottom: 1px solid #e1e4e0; }
.contact-list .k { color: var(--text-leise); }
address { font-style: normal; margin-bottom: 1.5rem; }

.form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form .field { margin-bottom: 1.1rem; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #aab3ad; border-radius: var(--radius); background: var(--weiss); color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--band-orange); outline-offset: 0; border-color: var(--gruen); }
.form textarea { min-height: 9rem; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: 1rem; }
.form .check input { width: auto; margin-top: .3rem; }
.form .hint { font-size: .95rem; color: var(--text-leise); }
.hp { position: absolute; left: -5000px; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice-ok { background: var(--gruen-hell); border-left: 4px solid var(--gruen); }
.notice-err { background: #f8e9eb; border-left: 4px solid var(--rot); }

/* Karte (Zwei-Klick-Lösung) */
.map-consent {
  position: relative; aspect-ratio: 16 / 10; background: var(--putz);
  border: 1px solid #d7dbd6; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  background-image: repeating-linear-gradient(45deg, rgba(0,121,51,.05) 0 2px, transparent 2px 18px);
}
.map-consent .inner { max-width: 32rem; }
.map-consent p { font-size: 1rem; color: var(--text-leise); margin: 0 auto 1rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Rechtstexte */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.75rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--gruen-dunkel); color: #d4e1d8; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer h2 { font-size: 1.25rem; color: var(--weiss); margin-bottom: .8rem; }
.site-footer a { color: var(--weiss); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer p { margin: 0 0 .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; grid-template-columns: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .cta-band, .map-consent { display: none; } }
.team-fig { margin-bottom: 1.5rem; }
.team-fig img { width: 100%; border-radius: var(--radius); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); }
.figure-pair figure:only-child { grid-column: 1 / -1; }
.figure-pair figure:only-child img { aspect-ratio: auto; }
.logo img { height: 4.25rem; width: auto; }
@media (max-width: 960px) { .logo img { height: 2.9rem; } }
/* Farbkarten statt Stockfoto */
.chip { display: block; width: 300px; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.chip-bodenbelagsarbeiten { background: linear-gradient(90deg, #8a5a33 0 20%, #a8743f 20% 40%, #c49a63 40% 60%, #dcc29a 60% 80%, #ece0c8 80%); }
.chip-waermedaemmung { background: linear-gradient(90deg, #0d3b24 0 20%, #007933 20% 40%, #4c9b5f 40% 60%, #9cc7a5 60% 80%, #e8f1eb 80%); }
@media (max-width: 800px) { .chip { width: 100%; } }
