/* Maler — „Farbe mit Haltung"
   Weißer Grund, Tinte, und eine Akzentfarbe, die der Besucher selbst im Farbfächer wählt (--farbe).
   Leitmotiv: Malerkrepp. Überschriften kleben auf Kreppstreifen, Leistungen sind Farbkarten. */
:root {
  --farbe: #2446d8; --farbe-text: #ffffff;
  --tinte: #1d1a2f; --tinte-2: #5b576b; --papier: #ffffff; --grau: #f3f1ec;
  --krepp: rgb(238 226 186 / .95); --krepp-kante: rgb(206 190 140 / .9);
  --fokus: var(--tinte);
  --rand: clamp(1.1rem, 4.5vw, 4rem);
  --spur: rgb(29 26 47 / .12); --fuell: var(--farbe); --knopf: var(--papier); --knopf-rand: 4px solid var(--farbe);
  --knopf-g: 24px; --spur-h: 10px; --knopf-schatten: 0 2px 6px rgb(29 26 47 / .25);
  --seg-r: 10px; --seg-an: var(--tinte); --seg-an-text: #fff;
}
:root {
  /* Bausteine aus gemeinsam/rahmen.css */
  --b-akzent: var(--farbe); --b-akzent-text: var(--farbe-text); --b-radius: 10px;
  --b-titel: "Bricolage", sans-serif; --b-zitat: "Bricolage", sans-serif;
  --b-linie: rgb(29 26 47 / .12); --b-karte: #fff; --b-fehler: #c62828; --b-gut: #1f8a55;
  --kopf-fest-grund: rgb(255 255 255 / .88); --kopf-fest-text: var(--tinte); --kopf-fest-rand: rgb(29 26 47 / .08);
  --menue-grund: var(--farbe); --menue-text: var(--farbe-text); --menue-akzent: var(--farbe-text);
  --menue-linie: color-mix(in srgb, var(--farbe-text) 22%, transparent); --menue-schrift: "Bricolage", sans-serif; --menue-gewicht: 800;
  --menue-knopf-grund: var(--papier); --menue-knopf-r: 12px; --menue-knopf-rand: transparent;
}
body { background: var(--papier); color: var(--tinte); font: 400 1.07rem/1.6 "Bricolage", system-ui, sans-serif; font-variation-settings: "opsz" 14; }
h1, h2, h3 { font-family: "Bricolage", sans-serif; font-weight: 800; font-stretch: 82%; letter-spacing: -.02em; line-height: .95; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2.4rem, 6vw, 5.2rem); max-width: 14ch; }
.rahmen { width: min(100% - 2 * var(--rand), 1280px); margin-inline: auto; }

/* ---------- Kopf ---------- */
.kopf { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem var(--rand); }
.marke { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-stretch: 80%; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; background: var(--papier); padding: .35rem .8rem .35rem .5rem; border-radius: 10px; }
.klecks { width: 1.4rem; height: 1.4rem; background: var(--farbe); border-radius: 46% 54% 38% 62% / 55% 40% 60% 45%; transition: background-color .6s; }
.kopf nav { display: flex; gap: .3rem; background: var(--papier); padding: .35rem; border-radius: 12px; }
.kopf nav a { text-decoration: none; font-weight: 700; padding: .35rem .7rem; border-radius: 8px; }
.kopf nav a:hover, .kopf nav a.ist-aktiv { background: var(--farbe); color: var(--farbe-text); }
@media (max-width: 700px) { .kopf nav { display: none; } }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.4rem; border-radius: 12px; font-weight: 800; text-decoration: none; border: 0; transition: transform .2s, background-color .6s, color .6s; }
.knopf:hover { transform: rotate(-1.5deg) scale(1.03); }
.knopf-farbe { background: var(--farbe); color: var(--farbe-text); }
.knopf-weiss { background: var(--papier); color: var(--tinte); }

/* ---------- Held ---------- */
.held { height: 100svh; min-height: 680px; max-height: 1100px; overflow: hidden; background: var(--farbe); }
.held-ersatz { background: radial-gradient(70% 60% at 30% 40%, var(--farbe), var(--tinte)); }
.held-inhalt { position: absolute; z-index: 2; left: var(--rand); bottom: clamp(3rem, 8vh, 6rem); max-width: 44rem; }
.held h1 { font-size: clamp(3.6rem, 10.5vw, 9.6rem); font-stretch: 75%; font-weight: 800; line-height: 1; display: grid; justify-items: start; gap: .1em; }
.krepp {
  display: inline-block; padding: .02em .22em .08em; background: var(--krepp); color: var(--tinte);
  box-shadow: 0 6px 18px rgb(29 26 47 / .18);
  clip-path: polygon(0 4%, 3% 0, 6% 5%, 9% 0, 12% 3%, 88% 0, 91% 4%, 94% 0, 97% 5%, 100% 1%, 100% 97%, 97% 100%, 94% 95%, 91% 100%, 88% 96%, 12% 100%, 9% 95%, 6% 100%, 3% 96%, 0 100%);
  background-image: repeating-linear-gradient(90deg, rgb(0 0 0 / .025) 0 2px, transparent 2px 7px);
  rotate: -2deg; transform-origin: left center;
  animation: kleben .7s cubic-bezier(.2,.9,.2,1) both .2s;
}
.krepp-2 { rotate: 1.2deg; margin-left: .35em; animation-delay: .38s; }
@keyframes kleben { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } }
.held-satz { max-width: 30rem; margin-top: 1.4rem; padding: .9rem 1.1rem; background: var(--papier); border-radius: 12px; font-size: 1.08rem; }
.held-aktionen { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

/* Farbfächer */
.faecher-feld { position: absolute; z-index: 3; right: var(--rand); bottom: clamp(2rem, 6vh, 4rem); width: min(24rem, 42vw); }
.faecher { position: relative; height: 19rem; }
.blatt {
  position: absolute; left: 50%; bottom: 1.2rem; width: 4.2rem; height: 17rem; margin-left: -2.1rem; padding: 0; border: 0; border-radius: 8px;
  transform-origin: 50% calc(100% - 1rem); rotate: var(--w, 0deg); translate: 0 var(--hoch, 0);
  background: #fff; box-shadow: 0 4px 14px rgb(29 26 47 / .22);
  display: grid; grid-template-rows: 1fr auto; overflow: hidden; transition: rotate .5s cubic-bezier(.3,1.3,.4,1), translate .3s;
}
.blatt::before { content: ""; background: var(--c); }
.blatt span { font-size: .72rem; font-weight: 700; padding: .45rem .2rem 1.6rem; writing-mode: vertical-rl; rotate: 180deg; text-align: left; height: 6.5rem; justify-self: center; }
.blatt[aria-checked="true"] { --hoch: -1.6rem; box-shadow: 0 10px 28px rgb(29 26 47 / .35), 0 0 0 3px #fff; z-index: 20 !important; }
.blatt:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.faecher::after { content: ""; position: absolute; left: 50%; bottom: 1.85rem; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa1a8); box-shadow: 0 1px 3px rgb(0 0 0 / .4); z-index: 30; }
.faecher-regler { background: var(--papier); padding: .7rem .9rem .3rem; border-radius: 12px; margin-top: -.4rem; position: relative; z-index: 31; }
.faecher-regler label { font-weight: 700; font-size: .9rem; }
.faecher-regler output { font-weight: 800; }
@media (max-width: 860px) {
  .held { height: auto; min-height: 0; max-height: none; padding: 6rem 0 2rem; }
  .held-inhalt { position: relative; left: auto; bottom: auto; padding-inline: var(--rand); }
  .faecher-feld { position: relative; right: auto; bottom: auto; width: min(22rem, 100% - 2 * var(--rand)); margin: 2rem auto 0; }
  .faecher { height: 16rem; }
  .blatt { height: 14.5rem; width: 3.6rem; margin-left: -1.8rem; }
}

/* ---------- Leistungen als Farbkarten ---------- */
.leistungen { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 3rem; }
.karte { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgb(29 26 47 / .1), 0 10px 30px rgb(29 26 47 / .08); overflow: hidden; rotate: var(--r, 0deg); transition: rotate .35s cubic-bezier(.3,1.4,.5,1), translate .35s; }
.karte:nth-child(odd) { --r: -1.2deg; } .karte:nth-child(3n) { --r: 1.4deg; } .karte:nth-child(4) { --r: .6deg; }
.karte:hover { rotate: 0deg; translate: 0 -6px; }
.muster { display: block; height: 9rem; background: var(--k); position: relative; }
.muster::after { content: ""; position: absolute; inset: auto 0 0; height: 2.2rem; background: linear-gradient(90deg, color-mix(in oklab, var(--k) 70%, #fff) 0 33%, color-mix(in oklab, var(--k) 45%, #fff) 33% 66%, color-mix(in oklab, var(--k) 20%, #fff) 66%); }
.karte h3 { font-size: 1.75rem; padding: 1.1rem 1.2rem .3rem; font-stretch: 85%; }
.karte p { padding: 0 1.2rem 1.4rem; color: var(--tinte-2); }
.k1 { --k: #2446d8; } .k2 { --k: #f2b705; } .k3 { --k: #0f7c7a; } .k4 { --k: #f6a58a; } .k5 { --k: #9bb39a; } .k6 { --k: #4b2c5e; }

/* ---------- Rechner ---------- */
.rechner-bereich { background: var(--grau); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.rechner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "kopf kopf" "raum ein" "ergebnis ergebnis" "hinweis hinweis"; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.rechner-kopf { grid-area: kopf; }
.rechner-kopf p { margin-top: 1rem; color: var(--tinte-2); max-width: 36rem; }
.raum { grid-area: raum; aspect-ratio: 5 / 4; width: 100%; background: var(--grau); }
.raum-ersatz { background: linear-gradient(135deg, var(--farbe), #fff); }
.mini-faecher { position: absolute; left: 1rem; top: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; max-width: calc(100% - 2rem); }
.mini-faecher button { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 1px 4px rgb(0 0 0 / .25); padding: 0; transition: transform .2s; }
.mini-faecher button[aria-checked="true"] { transform: scale(1.22); box-shadow: 0 0 0 2px var(--tinte); }
.eingaben { grid-area: ein; display: grid; gap: 1.3rem; align-content: start; background: #fff; padding: 1.6rem; border-radius: 18px; }
.eingaben label, .feld > span, .feld legend { font-weight: 700; font-size: .95rem; }
.eingaben output { font-weight: 800; font-stretch: 80%; font-size: 1.2rem; }
.zeile { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.feld { display: grid; gap: .4rem; border: 0; margin: 0; padding: 0; }
.stufen { border-radius: 10px; border-color: rgb(29 26 47 / .25); }
.stufen button:disabled { opacity: .3; cursor: default; }
.ergebnis { grid-area: ergebnis; display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 1rem; }
.ergebnis > div { background: #fff; border-radius: 16px; padding: 1.1rem 1.3rem; }
.ergebnis .gross { background: var(--farbe); color: var(--farbe-text); transition: background-color .8s, color .8s; }
.ergebnis dt { font-weight: 700; font-size: .9rem; opacity: .8; }
.ergebnis dd { font-weight: 800; font-stretch: 78%; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; margin-top: .3rem; }
.ergebnis .gross dd { font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1; }
.hinweis { grid-area: hinweis; font-size: .85rem; color: var(--tinte-2); }
@media (max-width: 900px) {
  .rechner { grid-template-columns: 1fr; grid-template-areas: "kopf" "raum" "ein" "ergebnis" "hinweis"; }
  .ergebnis { grid-template-columns: 1fr 1fr; }
  .ergebnis .gross { grid-column: 1 / -1; }
}

/* ---------- Zahlen mit Farbnasen ---------- */
.zahlen { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.tropfzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tropfzahlen > div { display: flex; flex-direction: column; }
.tropfzahlen dd { position: relative; }
.tropfzahlen b { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(3.8rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.04em; padding: .1em .15em 0; background: var(--farbe); color: var(--farbe-text); transition: background-color .8s, color .8s; }
.tropfzahlen svg { display: block; width: 100%; height: 3.6rem; fill: var(--farbe); transform-origin: top; transition: fill .8s; }
@supports (animation-timeline: view()) {
  .tropfzahlen svg { animation: laufen linear both; animation-timeline: view(); animation-range: entry 40% cover 60%; }
  @keyframes laufen { from { scale: 1 .15; } to { scale: 1 1; } }
}
.tropfzahlen dt { font-weight: 700; margin-top: .4rem; }
.zahlen .musterhinweis { margin-top: 2rem; }
@media (max-width: 700px) { .tropfzahlen { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .karten { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.kontakt-bereich { padding: clamp(4.5rem, 9vw, 8rem) 0; background: var(--grau); }
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.kontakt p { margin-top: 1rem; color: var(--tinte-2); }
.kontakt-ruf a { font-weight: 800; font-stretch: 75%; font-size: clamp(2.2rem, 5vw, 3.6rem); text-decoration: none; color: var(--tinte); }
.anfrage { position: relative; display: grid; gap: 1rem; background: #fff; padding: 2.2rem 1.8rem 1.8rem; border-radius: 6px; box-shadow: 0 10px 30px rgb(29 26 47 / .1); }
.anfrage::before { content: ""; position: absolute; top: -.8rem; left: 50%; width: 8rem; height: 1.8rem; margin-left: -4rem; background: var(--krepp); rotate: -3deg; clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 6%, 92% 0, 96% 8%, 100% 2%, 100% 94%, 96% 100%, 92% 92%, 88% 100%, 12% 96%, 8% 100%, 4% 90%, 0 98%); }
.anfrage label { display: grid; gap: .35rem; font-weight: 700; }
.anfrage input, .anfrage select, .anfrage textarea { padding: .8rem .9rem; border: 2px solid rgb(29 26 47 / .15); border-radius: 10px; background: var(--grau); color: var(--tinte); }
.anfrage input:focus-visible, .anfrage select:focus-visible, .anfrage textarea:focus-visible { outline: 3px solid var(--farbe); outline-offset: 0; }
.anfrage .knopf { justify-self: start; }
.anfrage-antwort { min-height: 1.4em; font-weight: 700; }
@media (max-width: 800px) { .kontakt { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #c9c6d6; padding: 0 0 5.5rem; font-size: .95rem; }

/* ---------- Neue Abschnitte ---------- */
.ton-grau { background: var(--grau); }
.ton-tinte { background: var(--tinte); color: #fff; --b-linie: rgb(255 255 255 / .16); --b-text-2: #c9c6d6; --b-akzent: #eee2ba; }
.kopf.ist-fest nav { background: transparent; }
.kopf .menue-knopf, .kopf .kopf-ruf { box-shadow: 0 2px 12px rgb(29 26 47 / .14); font-weight: 800; }
.menue-nav a { font-stretch: 80%; letter-spacing: -.02em; font-size: clamp(2.2rem, 10vw, 3.4rem); }
.menue .marke { color: var(--tinte); }
.menue-ruf { font-stretch: 80%; }
.projekt { position: relative; }
.projekt::before { content: ""; position: absolute; z-index: 2; top: -.7rem; left: 1.4rem; width: 6.5rem; height: 1.6rem; background: var(--krepp); rotate: -4deg; clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 6%, 92% 0, 96% 8%, 100% 2%, 100% 94%, 96% 100%, 92% 92%, 88% 100%, 12% 96%, 8% 100%, 4% 90%, 0 98%); pointer-events: none; }
.projekt:nth-child(2)::before { left: auto; right: 1.4rem; rotate: 3deg; }
.projekt-bild { box-shadow: 0 16px 36px -20px rgb(29 26 47 / .4); }
.projekt h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.projekt-daten dd { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; }
.projekte-hinweis, .stimmen-hinweis { margin-top: 2.5rem; }
.betrieb-lead { font-weight: 700; font-stretch: 90%; }
.siegel li { background: #fff; border: 0; box-shadow: 0 6px 20px rgb(29 26 47 / .08); }
.grundsaetze li { border-top: 0; padding-top: 0; }
.grundsaetze li::before { content: ""; display: block; height: 10px; margin-bottom: 1.2rem; border-radius: 99px; background: var(--farbe); }
.grundsaetze li:nth-child(2)::before { background: #f2b705; }
.grundsaetze li:nth-child(3)::before { background: #0f7c7a; }
.team-bild { background: var(--farbe); color: var(--farbe-text); font-weight: 800; font-stretch: 80%; font-size: 1.3rem; }
.ton-tinte .ablauf-schritte li { border-top-color: rgb(255 255 255 / .2); }
.ton-tinte .ablauf-schritte li::after { background: #eee2ba; height: 4px; top: -2px; border-radius: 99px; }
.ablauf-schritte h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.stimme { background: #fff; border: 0; box-shadow: 0 10px 30px rgb(29 26 47 / .08); }
.stimmen-liste > li:nth-child(1) .stimme { rotate: -.8deg; }
.stimmen-liste > li:nth-child(3) .stimme { rotate: .7deg; }
.stimme blockquote { font-weight: 600; font-stretch: 92%; }
.fragen-liste summary { font-weight: 800; font-stretch: 90%; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.fragen-liste details[open] > summary::after { background-color: var(--farbe); border-color: var(--farbe); color: var(--farbe-text); }
.fragen-kopf a { color: var(--tinte); text-decoration-color: var(--farbe); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kontakt-mail a, .zeiten, .gebiet { color: var(--tinte); }
.anfrage select { background-color: var(--grau); }
.fuss-raster { --fuss-linie: rgb(255 255 255 / .12); }
.fuss .marke { color: var(--tinte); }
.fuss a:not(.marke) { color: #fff; }
.fuss .fuss-titel { color: #eee2ba; opacity: 1; }
