/* Ocker & Kalk – Malerwerkstatt · Demo von FatCat Digital
   Farbwelt: Kalk-Creme, Tinte, Terrakotta, Ocker, Salbei, Petrol.
   Schriften: Instrument Serif (OFL) + Inter (OFL), beide gemeinsam unter /fonts/. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-german.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream: #f6f1ea;
  --paper: #fffaf3;
  --sand: #eee3d3;
  --ink: #1f1a17;
  --muted: #6b5e55;
  --line: #ddd0bf;
  --terra: #b4532a;       /* Flächen, große Schrift, weiße Schrift darauf */
  --terra-ink: #9a4322;   /* kleine Schrift auf Creme (AA) */
  --ocker: #e9a23b;
  --salbei: #8f9a6a;
  --petrol: #264653;
  --brombeere: #6d3b4b;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.375rem;
  --section: clamp(4.5rem, 10vw, 8.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
section[id], main [id] { scroll-margin-top: 7.5rem; }

:focus-visible { outline: 0.1875rem solid var(--terra); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.section-ink :focus-visible, .demobar :focus-visible, .site-footer :focus-visible { outline-color: var(--ocker); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 0.75rem; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 0.625rem 1rem; border-radius: 0.5rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ---------- Kopf: Demo-Leiste + Navigation (immer sichtbar) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; }
.demobar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0.875rem;
  padding: 0.375rem 1rem; background: var(--ink); color: #e9e1d6;
  font-size: .75rem; line-height: 1.4; text-align: center;
}
.demobar a { color: var(--ocker); font-weight: 600; text-underline-offset: 0.1875rem; }
.site-header {
  background: rgba(246, 241, 234, .9);
  -webkit-backdrop-filter: blur(0.625rem); backdrop-filter: blur(0.625rem);
  border-bottom: 1px solid rgba(31, 26, 23, .08);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.logo-mark { width: 2.125rem; height: 2.125rem; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.logo-text { font-family: var(--serif); font-size: 1.6rem; line-height: 1; letter-spacing: -.01em; }
.logo-text i, .footer-logo i { color: var(--terra); }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 0.375rem 0; background: linear-gradient(var(--terra), var(--terra)) left bottom / 0 2px no-repeat; transition: background-size .3s, color .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 2px; }
.header-inner .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: block; }
  .header-inner .btn { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 62.4375rem;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 2.5rem; padding: 0 1.125rem; font-size: .9rem; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: #9a4322; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--terra); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-ink);
}
.eyebrow .num {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: 0; text-transform: none;
  display: inline-grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.eyebrow-light { color: var(--ocker); }
.h2 { font-family: var(--serif); font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; margin-top: 1.125rem; }
.h2 em { color: var(--terra); }
.section-ink .h2 em { color: var(--ocker); }
.section-lead { margin-top: 1.25rem; max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
.section-ink .section-lead { color: #cfc4b7; }

.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.25rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6.875rem); position: relative; overflow: hidden; }
.hero::before { /* großer, weicher Farbklecks hinter der Kopie */
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: -22vmax; top: -24vmax;
  background: radial-gradient(closest-side, rgba(233, 162, 59, .22), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; position: relative; }
.hero-title {
  font-family: var(--serif); font-size: clamp(3.1rem, 11.5vw, 7rem); line-height: .98; letter-spacing: -.02em;
  margin-top: 1.375rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.stroke-word { position: relative; color: var(--terra); white-space: nowrap; }
.brush-line {
  position: absolute; left: -2%; right: -2%; bottom: -.02em; width: 104%; height: .2em; overflow: visible;
}
.brush-line path { fill: none; stroke: var(--ocker); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-lead { margin-top: 1.625rem; max-width: 32rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-art { position: relative; justify-self: center; width: min(100%, 28.75rem); }
.hero-backdrop {
  position: absolute; inset: 7% -4% -4% 9%;
  border-radius: 62.4375rem 62.4375rem 1.75rem 1.75rem;
  background: linear-gradient(135deg, #e9c46a 0%, #e76f51 45%, #264653 100%);
}
.hero-img {
  position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 62.4375rem 62.4375rem 1.75rem 1.75rem;
  box-shadow: 0 1.875rem 3.75rem -30px rgba(31, 26, 23, .45);
}
.hero-chips {
  position: absolute; left: -4%; bottom: 8%; display: grid; gap: 0.5rem;
}
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.625rem; width: max-content;
  padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 62.4375rem; background: var(--paper);
  box-shadow: 0 0.625rem 1.5rem -12px rgba(31, 26, 23, .35); font-size: .88rem; font-weight: 500;
}
.hero-chips li::before { content: ""; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--c); }
.hero-chips li:nth-child(2) { margin-left: 1.125rem; }
.hero-chips li:nth-child(3) { margin-left: 0.375rem; }

@media (max-width: 899.98px) {
  .hero-chips { left: 0.75rem; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-art { justify-self: end; }
}

/* ---------- Farbkarte ---------- */
.palette { padding-bottom: 0.5rem; }
.palette-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.sw {
  display: flex; align-items: flex-end; min-height: 4.75rem; padding: 0.625rem 0.75rem;
  background: var(--c); color: var(--t); border-radius: 0.875rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .08);
}
@media (min-width: 768px) {
  .palette-row { grid-template-columns: repeat(6, 1fr); gap: 0.625rem; }
  .sw { min-height: 6.875rem; }
}

/* ---------- Leistungen ---------- */
.services { display: grid; gap: 1.25rem; }
.service {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
}
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.service:hover .service-media img { transform: scale(1.04); }
.service-body { padding: 1.5rem 1.5rem 1.75rem; }
.service h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.05; display: flex; align-items: center; gap: 0.75rem; }
.service h3::before { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); flex: none; }
.service p { margin-top: 0.75rem; color: var(--muted); }
.service--innen { --c: var(--ocker); }
.service--fassade { --c: var(--terra); }
.service--kalk { --c: var(--salbei); }
.service--tapete { --c: var(--petrol); }
.service--fassade .service-media img { object-position: 50% 70%; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.125rem; }
.tags li { font-size: .8rem; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; background: var(--cream); border: 1px solid var(--line); }

.tapete-pattern {
  background-color: var(--ocker);
  background-image:
    radial-gradient(circle at 50% 100%, var(--petrol) 0 1.375rem, var(--cream) 1.375rem 1.6875rem, var(--terra) 1.6875rem 2.125rem, var(--cream) 2.125rem 2.375rem, transparent 2.4062rem),
    radial-gradient(circle at 50% 100%, var(--petrol) 0 1.375rem, var(--cream) 1.375rem 1.6875rem, var(--terra) 1.6875rem 2.125rem, var(--cream) 2.125rem 2.375rem, transparent 2.4062rem);
  background-size: 5rem 2.5rem;
  background-position: 0 0, 2.5rem 1.25rem;
}

@media (min-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(12, 1fr); }
  .service--innen, .service--tapete { grid-column: span 7; }
  .service--fassade, .service--kalk { grid-column: span 5; }
  .service--innen .service-media, .service--tapete .service-media { aspect-ratio: 16 / 9; }
  /* 5er-Spalte gleich hoch wie das 16:9-Bild der 7er-Spalte daneben → Titel auf einer Linie */
  .service--fassade .service-media, .service--kalk .service-media { aspect-ratio: 5 / 4; }
}

/* ---------- Farbberatung (Signatur) ---------- */
.section-ink { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.farb-grid { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.farb-steps { margin-top: 2.25rem; display: grid; gap: 1.125rem; counter-reset: fs; }
.farb-steps li {
  position: relative; padding-left: 3.25rem; color: #cfc4b7; counter-increment: fs;
}
.farb-steps li::before {
  content: counter(fs); position: absolute; left: 0; top: -2px;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  font: italic 1.2rem/1 var(--serif); color: var(--ink); background: var(--ocker);
}
.farb-steps li:nth-child(2)::before { background: #e07b54; }
.farb-steps li:nth-child(3)::before { background: #7fb0b8; }
.farb-steps strong { color: var(--cream); font-weight: 600; }

.wall-wrap { position: relative; }
.wall {
  position: relative; aspect-ratio: 4 / 5; border-radius: 1.125rem;
  padding: 8% 6%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%;
  background-color: #efe7da;
  background-image: url("img/kalkputz-1440.webp");
  /* Bildpipeline 2026-11-11: Box bis ≈ 710×880 px, cover bei 1,37:1 → ≈ 1210 px Bildbreite; 1x → 1440, 2x → 2560 */
  background-image: image-set(url("img/kalkputz-1440.avif") type("image/avif") 1x, url("img/kalkputz-2560.avif") type("image/avif") 2x,
                              url("img/kalkputz-1440.webp") type("image/webp") 1x, url("img/kalkputz-2560.webp") type("image/webp") 2x);
  background-size: cover; background-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 2.5rem 5rem -40px rgba(0, 0, 0, .7);
}
.band {
  position: relative; background-color: var(--c);
  /* Rollenstruktur: feine Längsriefen */
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 0.4375rem),
                    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .08));
  /* unruhige Unterkante wie ein echter Rollenauftrag */
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 0.625rem) no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h60v4c-4 3-7 1-10 4s-6-2-10 1-5 4-9 1-6 1-10-1-6 3-10 1-4-3-11-2z'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 0.625rem) no-repeat,
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h60v4c-4 3-7 1-10 4s-6-2-10 1-5 4-9 1-6 1-10-1-6 3-10 1-4-3-11-2z'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
  border-radius: 0.25rem 0.25rem 0 0;
}
.band-name {
  position: absolute; left: 10%; top: 6%; font-size: clamp(.62rem, 1.4vw, .78rem); font-weight: 600; letter-spacing: .06em;
  color: #fff; writing-mode: vertical-rl; transform: rotate(180deg);
}
.band:first-child .band-name { color: var(--ink); }
.roller {
  position: absolute; width: 30.8%; left: 65.3%; bottom: -6%;
  color: var(--petrol); pointer-events: none;
  filter: drop-shadow(0 0.75rem 0.875rem rgba(0, 0, 0, .35));
}
.wall-note { display: none; margin-top: 1.125rem; font-size: .9rem; color: #a99d90; text-align: center; } /* nur sichtbar, wenn die Animation läuft (JS) */
.wall-wrap.is-animated { display: flex; flex-direction: column; }
/* Hinweis über der Wand: unten hängt am Ende der Rollengriff */
.wall-wrap.is-animated .wall-note { display: block; order: -1; margin: 0 0 1rem; }

@media (min-width: 960px) {
  .farb-grid { grid-template-columns: 1fr 1fr; }
  .wall { aspect-ratio: 5 / 6; }
}

/* ---------- Beispielarbeiten ---------- */
.note-badge {
  display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem; border-radius: 62.4375rem;
  border: 1.5px dashed var(--terra-ink); color: var(--terra-ink); font-size: .85rem; font-weight: 600;
}
.gallery { display: grid; gap: 1rem; }
.g figure { position: relative; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.g--tall img { aspect-ratio: 3 / 4; }
.g figure:hover img { transform: scale(1.04); }
.g figcaption {
  position: absolute; left: 0.875rem; bottom: 0.875rem; right: 0.875rem; display: flex; flex-direction: column; gap: 2px;
  width: max-content; max-width: calc(100% - 1.75rem);
  padding: 0.625rem 1rem; border-radius: 0.875rem; background: rgba(255, 250, 243, .94);
}
.g figcaption span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.g figcaption small { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

@media (min-width: 768px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 1.25rem; grid-auto-flow: row dense; }
  .g--wide { grid-column: span 2; }
  .g--wide img { aspect-ratio: 16 / 7; }
  .g--tall { grid-row: span 2; }
  .g--tall figure { min-height: 100%; }
  .g--tall img { position: absolute; inset: 0; aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: 5fr 3.5fr 3.5fr; grid-auto-rows: clamp(15rem, 22vw, 20.625rem); }
  .g--tall { grid-column: 1; grid-row: 1 / span 2; }
  .g--wide { grid-column: 2 / span 2; grid-row: 1; }
  .g figure { min-height: 100%; }
  .g img, .g--wide img, .g--tall img { position: absolute; inset: 0; aspect-ratio: auto; }
}

.quote {
  margin: clamp(3.5rem, 8vw, 6rem) auto 0; max-width: 46rem; text-align: center; position: relative;
}
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2; }
.quote footer { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ---------- Ablauf ---------- */
.section-sand { background: var(--sand); }
.steps { display: grid; gap: 1.125rem; }
.step {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.875rem;
  overflow: hidden;
}
.step::before { /* Farbstrich oben – per JS beim Einblenden „gestrichen" */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.5rem; background: var(--c);
  transform-origin: left center; transform: scaleX(var(--paint, 1));
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}
.step-num {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--c); color: #fff; font: italic 1.8rem/1 var(--serif);
}
.step:first-child .step-num { color: var(--ink); }
.step:nth-child(3) .step-num { color: var(--ink); }
.step h3 { margin-top: 1.125rem; font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.step p { margin-top: 0.625rem; color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-data { margin: 2.25rem 0 0; display: grid; gap: 1.125rem; }
.contact-data dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); font-weight: 600; }
.contact-data dd { margin: 0.25rem 0 0; font-size: 1.1rem; }
.contact-data a { text-decoration-color: var(--terra); text-underline-offset: 0.25rem; }
@media (min-width: 600px) { .contact-data { grid-template-columns: 1fr 1fr; } }

.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 1.75rem;
  padding: clamp(1.375rem, 4vw, 2.5rem); display: grid; gap: 1.25rem;
}
.field { display: grid; gap: 0.375rem; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-size: .9rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 0.75rem; padding: 0.75rem 0.875rem; min-height: 3rem;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 6.875rem; }
.field input:hover, .field textarea:hover { border-color: #c4b39e; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0.1875rem solid var(--terra); outline-offset: 1px; border-color: var(--terra); background: #fff; }
.field ::placeholder { color: #75685e; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices legend { margin-bottom: 0.5rem; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 0.5625rem 1rem; border-radius: 62.4375rem; border: 1.5px solid var(--line);
  background: var(--cream); font-size: .92rem; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--terra); }
.chip input:checked + span { background: var(--terra); border-color: var(--terra); color: #fff; }
.chip input:focus-visible + span { outline: 0.1875rem solid var(--terra); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-hint { font-size: .82rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status {
  padding: 0.875rem 1rem; border-radius: 0.75rem; background: #fbe9dc; color: #5e2a14; font-weight: 600;
  border-left: 0.3125rem solid var(--terra);
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc4b7; padding: 3rem 0; }
.footer-inner { display: grid; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 2rem; color: var(--cream); line-height: 1; }
.footer-small { font-size: .9rem; }
.footer-small a { color: var(--ocker); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.375rem; font-size: .9rem; }
.footer-links a { color: var(--cream); text-underline-offset: 0.25rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
}

/* ---------- 4K: alles in rem skaliert ab 1921 px mit ---------- */
@media (min-width: 1921px) { html { font-size: calc(100% + (100vw - 1920px) / 192); } }

/* ---------- Detailseite (lehm-kalk/) ---------- */
.service-more { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--terra-ink); text-underline-offset: 0.25rem; }
.detail-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.detail-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.detail-back { display: block; width: fit-content; font-size: .9rem; color: var(--muted); text-underline-offset: 0.25rem; margin-bottom: 1.25rem; }
.detail-title { font-family: var(--serif); font-size: clamp(2.8rem, 9vw, 5.6rem); line-height: 1; letter-spacing: -.02em; margin-top: 1rem; display: flex; align-items: center; gap: 1rem; }
.detail-title::before { content: ""; width: .35em; height: .35em; border-radius: 50%; background: var(--salbei); flex: none; }
.detail-media { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.detail-points { display: grid; gap: 1.125rem; }
.detail-points li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.detail-points h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.detail-points p { margin-top: 0.625rem; color: var(--muted); }
.detail-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 768px) { .detail-points { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   Native Motion (Demo 2026-11) – reines CSS, keine Bibliothek.
   Bewegungsregel wie site.js: System „Bewegung reduzieren" → aus,
   außer der Seitenschalter steht auf „an" (html[data-bewegung="an"]).
   Ohne Browser-Support bleibt alles statisch und sichtbar.
   ========================================================================= */

/* a) Seitenübergang Leistungskarte → Detailseite (Chrome/Edge 126+, Safari 18.2+) */
@view-transition { navigation: auto; }
.service--kalk .service-media img, .detail-media img { view-transition-name: kalk-bild; }
.service--kalk h3, .detail-title { view-transition-name: kalk-titel; width: fit-content; }
::view-transition-group(kalk-bild), ::view-transition-group(kalk-titel) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) {
  /* nur Kreuzblende, kein Morph */
  html:not([data-bewegung="an"]) .service--kalk .service-media img,
  html:not([data-bewegung="an"]) .detail-media img,
  html:not([data-bewegung="an"]) .service--kalk h3,
  html:not([data-bewegung="an"]) .detail-title { view-transition-name: none; }
  html:not([data-bewegung="an"])::view-transition-old(root),
  html:not([data-bewegung="an"])::view-transition-new(root) { animation-duration: .15s; }
}

/* b) Lese-Fortschritt + Scroll-Einblenden (Chrome 115+, Safari 26+; Firefox: statisch) */
.lesefortschritt { display: none; }
@keyframes lese-fort { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(2.5rem); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lesefortschritt {
      display: block; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
      background: var(--terra); transform-origin: 0 50%; pointer-events: none;
      animation: lese-fort linear both; animation-timeline: scroll(root block);
    }
    /* Variante B: nur wenn die Seite es anfordert – dann lässt demo.js den GSAP-Reveal weg */
    html[data-reveal="css"] [data-reveal] {
      animation: einblenden linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
  }
  html[data-bewegung="an"] .lesefortschritt {
    display: block; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
    background: var(--terra); transform-origin: 0 50%; pointer-events: none;
    animation: lese-fort linear both; animation-timeline: scroll(root block);
  }
  html[data-bewegung="an"][data-reveal="css"] [data-reveal] {
    animation: einblenden linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
  }
}

/* c) Rückruf-Popover (Baseline: popover 2025, @starting-style 2024) */
.rueckruf-knopf .rueckruf-icon { flex: none; }
@media (max-width: 599.98px) {
  /* schmal: nur Symbol, Name bleibt für Screenreader */
  .rueckruf-knopf { width: 2.5rem; padding: 0; }
  .rueckruf-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.header-inner .rueckruf-knopf ~ .btn { margin-left: -0.875rem; }
.rueckruf {
  position: fixed; inset: 7.25rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) auto auto; margin: 0;
  width: min(23rem, calc(100vw - 2 * var(--gutter)));
  padding: 1.5rem 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1.5rem 3rem -1rem rgba(31, 26, 23, .35);
  opacity: 0; transform: translateY(-0.75rem) scale(.97); transform-origin: 100% 0;
  transition: opacity .22s ease-out, transform .22s ease-out,
              overlay .22s allow-discrete, display .22s allow-discrete;
}
.rueckruf:popover-open { opacity: 1; transform: none; }
@starting-style { .rueckruf:popover-open { opacity: 0; transform: translateY(-0.75rem) scale(.97); } }
.rueckruf-titel { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; padding-right: 2.5rem; }
.rueckruf-text { margin-top: 0.5rem; color: var(--muted); }
.rueckruf-tel { margin-top: 1.125rem; width: 100%; font-size: 1.05rem; }
.rueckruf-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--terra-ink); text-underline-offset: 0.25rem; }
.rueckruf-hinweis { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.rueckruf-zu {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  font: 400 1.75rem/1 var(--sans); cursor: pointer;
}
.rueckruf-zu:hover { background: var(--sand); }
@media (prefers-reduced-motion: reduce) {
  /* nur Deckkraft, kein Gleiten/Skalieren */
  html:not([data-bewegung="an"]) .rueckruf,
  html:not([data-bewegung="an"]) .rueckruf:popover-open { transform: none; }
  @starting-style { html:not([data-bewegung="an"]) .rueckruf:popover-open { transform: none; } }
}

/* Bildpipeline 2026-11-11: <picture> erzeugt keine eigene Box — Layout bleibt wie beim nackten <img> */
picture { display: contents; }
picture > source { display: none; } /* sonst wird <source> unter display:contents zum Grid-Element (handel: Bild 0 px hoch) */
