/* =========================================================
   Maler Lieb · Stylesheet
   Konzept: Farbtonkarte des Malers. Ein Streifen echter
   Farbtöne zieht sich als Leitmotiv durch die Seite.
   Alle Farben und Schriften als Variablen: Änderungen nur hier.
   ========================================================= */

@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Farben: abgeleitet aus dem Logo (Schwarz, Rot, Blau, Gelb, Grün) */
  --paper: #f8f7f4;        /* Grundton */
  --paper-2: #efede8;      /* Flächen */
  --ink: #2a2622;          /* Text */
  --ink-soft: #57524b;     /* Nebentext */
  --deep: #282625;         /* Logo-Schwarz: Kopf, dunkle Flächen */
  --accent: #f5ad20;       /* Logo-Gelb: Buttons, Akzente */
  --accent-ink: #1a528f;   /* Logo-Blau: Überzeilen, Links */
  --line: #dcd9d2;
  --red: #ce2635; --blue: #1a528f; --yellow: #f5ad20; --green: #1f764d;

  /* Farbstreifen (Leitmotiv, Reihenfolge wie im Logo: L i e b) */
  --sw-1: var(--red); --sw-2: var(--red); --sw-3: var(--blue); --sw-4: var(--blue);
  --sw-5: var(--yellow); --sw-6: var(--yellow); --sw-7: var(--green); --sw-8: var(--green);

  /* Schrift */
  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Maße */
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-weight: 600; font-size: 1.3rem; }
p { margin: 0; max-width: 64ch; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }

/* ---------- Farbtonkarte ---------- */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); height: 8px; }
.swatches span:nth-child(1){background:var(--sw-1)} .swatches span:nth-child(2){background:var(--sw-2)}
.swatches span:nth-child(3){background:var(--sw-3)} .swatches span:nth-child(4){background:var(--sw-4)}
.swatches span:nth-child(5){background:var(--sw-5)} .swatches span:nth-child(6){background:var(--sw-6)}
.swatches span:nth-child(7){background:var(--sw-7)} .swatches span:nth-child(8){background:var(--sw-8)}

/* ---------- Kopfbereich ---------- */
.topbar { background: #1c1a19; color: #d9d4cc; font-size: .875rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--deep); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand img { height: 64px; width: auto; }
.brand .tagline { display: grid; line-height: 1.2; color: #fff; border-left: 1px solid rgba(255,255,255,.22); padding-left: .9rem; }
.brand .tagline strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; }
.brand .tagline span { font-size: .88rem; color: #e4ded4; white-space: nowrap; }
@media (max-width: 480px) { .brand .tagline strong { font-size: 1.05rem; } .brand .tagline span { font-size: .74rem; } .brand { gap: .55rem; } .brand .tagline { padding-left: .55rem; } }
.brand .wordmark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand .wordmark small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: #cfc9bf; margin-top: .2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .85rem; text-decoration: none; color: #f3efe8; font-weight: 600; border-radius: var(--radius); }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav .nav-cta { background: var(--accent); color: var(--ink); margin-left: .5rem; }
.nav .nav-cta:hover { background: #ffbf3d; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: .5rem .75rem; font: 600 .95rem var(--body); color: #fff; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--deep); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .nav .nav-cta { margin: .5rem 0 0; text-align: center; }
  .brand img { height: 52px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ffbf3d; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Fotos (mit Platzhalter, falls Bild fehlt) ---------- */
.photo { position: relative; margin: 0; background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(46,43,38,.05) 14px 28px), var(--paper-2);
  overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing::after { content: attr(data-label); position: absolute; inset: auto 0 0 0; padding: .6rem .8rem; font-size: .8rem; color: var(--ink-soft); }
.photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: .35rem .7rem; font-size: .8rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--blue); box-shadow: inset 0 -.28em 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: .75rem; min-width: 0; }
.hero-media .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.hero-media .photo { aspect-ratio: 1; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-top: .5rem; }
.facts div { display: grid; }
.facts strong { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: .875rem; color: var(--ink-soft); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.5rem; max-width: 46rem; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--deep); color: #f3efe8; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .lead, .section-dark p { color: #d4cec4; }
.section-dark a { color: #fff; }

/* Leistungen als Farbtonkarte */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: 1.6rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; position: relative; }
.service::before { content: ""; display: block; width: 2.5rem; height: 2.5rem; border-radius: 2px; background: var(--chip, var(--accent)); margin-bottom: .4rem; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.service .code { position: absolute; top: 1.6rem; right: 1.4rem; font-size: .72rem; letter-spacing: .08em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.service p { font-size: .98rem; color: var(--ink-soft); }
.service-link { text-decoration: none; color: inherit; display: grid; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service-link:hover .service { background: #fff; }

/* Zwei Spalten */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
.split .photo { aspect-ratio: 4 / 3; }
.stack { display: grid; gap: 1.1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--accent); }
.timeline li { padding: 0 0 1.6rem 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; background: var(--paper); border: 3px solid var(--blue); border-radius: 50%; }
.timeline strong { font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; display: block; line-height: 1.2; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red); }
.steps li:nth-child(2)::before { color: var(--blue); } .steps li:nth-child(3)::before { color: var(--yellow); } .steps li:nth-child(4)::before { color: var(--green); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery a { display: block; }

/* Leistungsdetail */
.detail { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 3rem; padding-block: 2.2rem; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail > * { min-width: 0; }
.detail h2 { font-size: 1.6rem; }
.detail h2::before { content: ""; display: block; width: 2.2rem; height: .5rem; background: var(--chip, var(--accent)); margin-bottom: .8rem; }
.detail .tag { display: none; }
.detail-chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; }
.detail .tag i { width: .9rem; height: .9rem; border-radius: 2px; background: var(--chip, var(--accent)); display: inline-block; }
.detail ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.detail .stack p { color: var(--ink); }
@media (max-width: 720px) { .detail { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: .5rem; max-width: 52rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin-top: .7rem; color: var(--ink-soft); }

/* Region */
.places { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.places li { border: 1px solid rgba(255,255,255,.3); padding: .35rem .8rem; border-radius: 999px; font-size: .92rem; }

/* CTA-Band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.phone-big { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); text-decoration: none; color: inherit; font-variant-numeric: tabular-nums; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-grid > * { min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 0; }
.dl dt { font-weight: 600; }
.dl dd { margin: 0; }
form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select { font: inherit; padding: .75rem .85rem; border: 1px solid #b9b7ad; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.notice.ok { background: #e3efe6; color: #1f5132; }
.notice.err { background: #f6e3de; color: #7a2716; }
@media (max-width: 820px) { .contact-grid, .two { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal ul { margin: 0 0 .8rem; }

/* Fußbereich */
.site-footer { background: var(--ink); color: #c9cfd3; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid #3a4651; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Seitenkopf Unterseiten */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .wrap { display: grid; gap: 1rem; }
.service h3 { hyphens: auto; font-size: 1.15rem; }
@media (max-width: 600px) { .topbar .wrap > span:first-child { display: none; } .topbar .wrap { justify-content: center; } }
.photo picture { display: block; width: 100%; height: 100%; }
/* Kennzahlen im Hero: drei nebeneinander, auch mit „Malermeister“ */
@media (min-width: 821px) {
  .facts { gap: 1rem 2rem; }
  .facts strong { font-size: 1.65rem; }
  .facts span { white-space: nowrap; }
}
