/* Malergeschäft Denis Widmer · Entwurf Seetalwebsites
   Inspiration: COAT Paints (Serif + Grossbuchstaben, Sterne unter den Knöpfen, Kacheln mit Leiste)
   und Backdrop (fette Wortbänder, nummeriertes Raster mit dünnen Linien). */

:root {
  --kohle: #1c1d1f;
  --kohle-2: #26282b;
  --kalk: #f5f2ec;
  --kalk-2: #ece7de;
  --weiss: #fdfcfa;
  --orange: #ff6d00;          /* gemessen im Logo */
  --orange-tief: #b84e00;     /* Orange für kleine Schrift auf Hell */
  --rot: #c8452c;             /* Fensterladen-Rot */
  --stein: #d8d5cf;           /* ungestrichene Wand */
  --grau: #5f5b55;
  --grau-hell: #c9c4bb;
  --linie: rgba(28, 29, 31, .14);
  --linie-hell: rgba(245, 242, 236, .16);

  --titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --kopf-h: 68px;
  --rand: clamp(20px, 4vw, 40px);
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--kohle);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.rahmen { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--rand); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--kohle); color: var(--kalk); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 6px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--weich);
}
.knopf .i { transition: transform .25s var(--weich); }
.knopf:hover .i { transform: translateX(3px); }
.knopf:active { transform: scale(.98); }
.knopf-dunkel { background: var(--kohle); color: var(--kalk); }
.knopf-dunkel:hover { background: #000; }
.knopf-orange { background: var(--orange); color: var(--kohle); }
.knopf-orange:hover { background: #ff8124; }
.knopf-rand { border-color: currentColor; background: transparent; }
.knopf-rand:hover { background: var(--kohle); color: var(--kalk); border-color: var(--kohle); }
.knopf-klein { min-height: 42px; padding: 0 16px; font-size: 15px; }
.nur-klein { display: none; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen { height: var(--kopf-h); display: flex; align-items: center; gap: 28px; }
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.marke img { height: 30px; width: auto; }
.marke-zusatz {
  padding-left: 14px; border-left: 1px solid var(--linie);
  font: 700 12px/1 var(--titel); letter-spacing: .16em; text-transform: uppercase; color: var(--grau);
}
.nav { display: flex; gap: 28px; }
.nav a { font-weight: 500; font-size: 15px; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--weich); }
.nav a:hover { background-size: 100% 2px; }

/* ---------- 1 · Die Wand ---------- */
.wand {
  position: relative; overflow: hidden;
  height: calc(100svh - var(--kopf-h));
  min-height: 560px; max-height: 880px;
}
.wand-farbe {
  position: absolute; inset: 0;
  background: var(--orange);
}
/* frisch gerollte Farbe: feines Korn */
.wand-farbe::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: .13;
}
.wand-innen {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 40px 56px;
}
.wand-ober { font: 700 14px/1.3 var(--titel); letter-spacing: .16em; text-transform: uppercase; opacity: .82; margin-bottom: 18px; }
.wand-titel {
  font: 800 clamp(3rem, min(15.5vw, 15svh), 9.6rem)/.86 var(--titel);
  text-transform: uppercase; letter-spacing: -.005em;
}
.zeile { display: block; }
.zeile-serif {
  font: 400 .92em/1 var(--serif); font-style: italic;
  text-transform: none; letter-spacing: -.01em;
  margin-top: .04em;
}
.wand-text { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 36ch; margin-top: 22px; }
.wand-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wand-beweis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 22px; font-size: 15px; }
.wand-beweis b { font-weight: 600; }
.sterne { display: inline-flex; gap: 2px; }
.sterne .i { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.sterne .halb { opacity: .35; }
.punkt { opacity: .5; }

/* Farbmuster-Karte rechts (nur grosse Bildschirme) */
.farbkarte {
  position: absolute; right: var(--rand); bottom: 64px;
  width: 190px; padding: 10px 10px 16px;
  background: var(--weiss); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 40px -18px rgba(0,0,0,.45);
  transform: rotate(3deg);
  display: none;
}
.farbkarte-muster { display: block; height: 150px; background: var(--orange); border-radius: 2px; }
.farbkarte-name { display: block; margin-top: 12px; font: 800 24px/1 var(--titel); text-transform: uppercase; }
.farbkarte-nr { display: block; margin-top: 4px; font-size: 13px; color: var(--grau); }
@media (min-width: 1000px) { .farbkarte { display: block; } }

/* graue Wand: Platzhalter bis das Canvas gezeichnet ist, dann streicht die Rolle sie von selbst */
.wand-grau, .rolle { display: none; }
.wand-an .wand-grau {
  display: block; position: absolute; inset: 0; z-index: 2;
  background-color: var(--stein);
}
.wand-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
  transition: opacity .45s ease;
}

.wand-an .rolle {
  display: block; position: absolute; left: 0; top: 0; z-index: 4;
  pointer-events: none; opacity: 0;
  transition: opacity .2s ease;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
}
.rolle svg { display: block; width: 100%; height: auto; }
.rolle.sichtbar { opacity: 1; }
.wand.gestrichen .rolle { display: none; }

/* ---------- Wortband ---------- */
.band { background: var(--kohle); color: var(--kalk); overflow: hidden; padding: 14px 0; }
.band-spur { display: flex; align-items: center; width: max-content; animation: band 42s linear infinite; }
.band span { font: 800 30px/1 var(--titel); text-transform: uppercase; letter-spacing: .01em; padding: 0 22px; }
.band i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Blöcke allgemein ---------- */
.block { padding-block: clamp(76px, 10vw, 132px); }
.dunkel { background: var(--kohle); color: var(--kalk); }
.kopfzeile { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.ober {
  display: flex; align-items: center; gap: 12px;
  font: 700 14px/1 var(--titel); letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-tief); margin-bottom: 18px;
}
.ober::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.dunkel .ober { color: var(--orange); }
.titel {
  font: 800 clamp(2.5rem, 6.2vw, 4.7rem)/.92 var(--titel);
  text-transform: uppercase; letter-spacing: -.003em;
  text-wrap: balance;
}
.titel em {
  display: block;
  font: 400 1.04em/1 var(--serif); font-style: italic;
  text-transform: none; letter-spacing: -.01em; color: var(--orange-tief);
}
.dunkel .titel em { color: var(--orange); }
.lead { margin-top: 20px; font-size: 18px; color: var(--grau); max-width: 58ch; }

/* ---------- 2 · Leistungen (Kacheln wie COAT) ---------- */
.kacheln { display: grid; gap: 16px; }
.kachel {
  display: grid; grid-template-columns: 116px 1fr; grid-template-rows: auto 1fr;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 6px; overflow: hidden;
  text-decoration: none;
  transition: transform .35s var(--weich), box-shadow .35s var(--weich);
}
.kachel:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(0,0,0,.45); }
.kachel-bild { grid-row: 1 / 3; min-height: 116px; overflow: hidden; background: var(--kalk-2); position: relative; }
.kachel-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--weich); }
.kachel:hover .kachel-bild img { transform: scale(1.05); }
.kachel-leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; background: var(--kohle); color: var(--kalk);
  transition: background-color .25s, color .25s;
}
.kachel-leiste h3 { font: 800 25px/1 var(--titel); text-transform: uppercase; letter-spacing: .01em; }
.kachel-leiste .i { transition: transform .25s var(--weich); }
.kachel:hover .kachel-leiste { background: var(--orange); color: var(--kohle); }
.kachel:hover .kachel-leiste .i { transform: translateX(4px); }
.kachel-liste { padding: 12px 16px 16px; font-size: 15px; line-height: 1.45; display: grid; gap: 5px; align-content: start; }
.kachel-liste li { position: relative; padding-left: 16px; }
.kachel-liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--orange); }

@media (min-width: 620px) {
  .kacheln { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .kachel { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .kachel-bild { grid-row: auto; aspect-ratio: 1; }
  .kachel-liste { padding: 16px 18px 20px; }
}
@media (min-width: 1060px) {
  .kacheln { grid-template-columns: repeat(4, 1fr); }
  /* Fotos sind nur 276 px gross: nie breiter zeigen */
  .kacheln { max-width: 1160px; }
}

/* Hochglanz: gebaute Lackfläche statt Foto */
.lack {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(155deg, #d6553a 0%, #b3331f 42%, #7e1c10 100%);
}
.lack-spiegel {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,.34) 19%, rgba(255,255,255,.16) 30%, transparent 31%),
    linear-gradient(100deg, transparent 36%, rgba(255,255,255,.18) 37%, rgba(255,255,255,.06) 44%, transparent 45%);
  filter: blur(1.5px);
}
.lack::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-160%) skewX(-12deg);
}
.kachel:hover .lack::after, .lack.glanz::after { animation: glanz 1.3s var(--weich) forwards; }
@keyframes glanz { from { transform: translateX(-160%) skewX(-12deg); } to { transform: translateX(330%) skewX(-12deg); } }
.lack-jahr { position: absolute; left: 14px; bottom: 10px; font: italic 400 26px/1 var(--serif); color: rgba(255,255,255,.92); }

.ausserdem { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 16px; color: var(--grau); }
.ausserdem span { font: 700 13px/1 var(--titel); letter-spacing: .14em; text-transform: uppercase; color: var(--kohle); background: var(--kalk-2); padding: 7px 10px; border-radius: 4px; }

/* ---------- 3 · Werkstatt ---------- */
.werkstatt { display: grid; gap: 40px; align-items: center; }
.werkstatt-bild { max-width: 445px; }
.werkstatt-bild img { width: 100%; border-radius: 4px; }
.werkstatt-bild figcaption { margin-top: 10px; font-size: 13px; color: var(--grau-hell); }
.werkstatt-text > p:not(.ober) { margin-top: 20px; color: var(--grau-hell); max-width: 56ch; }
.zahl { display: flex; align-items: center; gap: 20px; margin: 30px 0 26px; }
.zahl-wert { font: 800 clamp(5.2rem, 13vw, 8.6rem)/.8 var(--titel); color: var(--orange); font-variant-numeric: tabular-nums; min-width: 3ch; }
.zahl-text { max-width: 22ch; font-size: 16px; line-height: 1.4; color: var(--grau-hell); }
.ausstattung { border-top: 1px solid var(--linie-hell); }
.ausstattung li { position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--linie-hell); font-size: 16px; }
.ausstattung li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--orange); }
@media (min-width: 920px) {
  .werkstatt { grid-template-columns: minmax(0, 445px) 1fr; gap: clamp(48px, 6vw, 88px); }
}

/* Fotos an der Hängebahn */
.bahn { margin-top: clamp(72px, 9vw, 110px); }
.bahn-titel { font: 700 14px/1 var(--titel); letter-spacing: .16em; text-transform: uppercase; color: var(--grau-hell); }
.bahn-schiene {
  display: flex; gap: clamp(18px, 3vw, 34px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #55524d transparent;
  padding: 48px 6px 26px;
  margin-inline: -6px;
  /* die Schiene läuft mit dem Inhalt mit */
  background: linear-gradient(#a19e98, #5b5954) 0 16px / 100% 6px no-repeat local;
}
.bahn-schiene:focus-visible { outline-offset: -3px; }
.haenger {
  position: relative; flex: 0 0 clamp(150px, 40vw, 200px);
  scroll-snap-align: start;
  transform-origin: 50% -30px;
}
.haenger::before { /* Draht vom Haken zum Bild */
  content: ""; position: absolute; left: 50%; top: -30px; width: 2px; height: 30px; margin-left: -1px;
  background: #8d8a84;
}
.haenger::after { /* Haken auf der Schiene */
  content: ""; position: absolute; left: 50%; top: -38px; width: 14px; height: 14px; margin-left: -7px;
  border: 2px solid #b5b2ab; border-radius: 50%; background: var(--kohle);
}
.haenger:nth-child(odd) { transform: rotate(-1.4deg); }
.haenger:nth-child(even) { transform: rotate(1.1deg); }
.haenger img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.8); }
.haenger figcaption { margin-top: 10px; font: 700 14px/1 var(--titel); letter-spacing: .12em; text-transform: uppercase; color: var(--grau-hell); text-align: center; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .haenger:hover { animation: pendeln 1.4s var(--weich); }
}
@keyframes pendeln { 0% { transform: rotate(0); } 25% { transform: rotate(3deg); } 55% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } 100% { transform: rotate(0); } }

/* Geschichte: nummeriertes Raster wie Backdrop */
.geschichte { margin-top: clamp(80px, 10vw, 128px); }
.raster { display: grid; border-top: 1px solid var(--linie-hell); }
.raster li { padding: 26px 0 30px; border-bottom: 1px solid var(--linie-hell); }
.nr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--kohle); font: 800 18px/1 var(--titel); }
.raster b { display: block; margin: 18px 0 8px; font: 800 46px/1 var(--titel); text-transform: uppercase; }
.raster p { color: var(--grau-hell); font-size: 16px; max-width: 34ch; }
@media (min-width: 620px) {
  .raster { grid-template-columns: repeat(2, 1fr); }
  .raster li { padding: 28px 28px 34px 0; }
  .raster li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--linie-hell); }
}
@media (min-width: 1060px) {
  .raster { grid-template-columns: repeat(4, 1fr); }
  .raster li { border-bottom: 0; padding: 30px 26px 10px; }
  .raster li:first-child { padding-left: 0; }
  .raster li + li { border-left: 1px solid var(--linie-hell); }
}

/* ---------- 4 · Kontakt ---------- */
.kontakt { display: grid; gap: 48px; align-items: start; }
.gross-tel {
  display: inline-block; margin: 30px 0 24px;
  font: 800 clamp(3rem, 9vw, 5.6rem)/1 var(--titel); letter-spacing: .005em;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 6px; text-underline-offset: 10px;
}
.gross-tel:hover { color: var(--orange-tief); }
.kontakt-liste { display: grid; gap: 14px; margin-bottom: 28px; }
.kontakt-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.kontakt-liste .i { color: var(--orange-tief); margin-top: 3px; }
.kontakt-liste a { text-underline-offset: 3px; overflow-wrap: anywhere; }

.formular {
  display: grid; gap: 16px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 30px 60px -44px rgba(0,0,0,.5);
}
.formular-titel { font: 800 32px/1 var(--titel); text-transform: uppercase; margin-bottom: 4px; }
.formular label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--grau); }
.formular input, .formular select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid #cdc7bc; border-radius: 6px; background: #fff;
  font-size: 16px; color: var(--kohle);
}
.formular input:focus, .formular select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.formular .knopf { width: 100%; margin-top: 6px; }
.formular-danke { padding: 14px 16px; border-radius: 6px; background: #fff1e5; color: var(--kohle); font-weight: 500; }
.formular-danke small { display: block; font-weight: 400; color: var(--grau); margin-top: 2px; }
@media (min-width: 920px) {
  .kontakt { grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 110px); }
}

/* ---------- Fuss ---------- */
.fuss { background: var(--kohle); color: var(--grau-hell); overflow: hidden; }
.wortmarke {
  font: 800 15.2vw/.78 var(--titel); text-transform: uppercase; letter-spacing: -.01em;
  color: var(--orange); white-space: nowrap; text-align: center;
  padding-top: clamp(48px, 7vw, 90px);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 24px 30px; border-top: 1px solid var(--linie-hell); font-size: 14px; }
.fuss a { text-decoration: none; }
.fuss .entwurf { color: var(--kalk); }

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-zeige] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s var(--weich); }
.js [data-zeige].da { opacity: 1; transform: none; }
.kacheln [data-zeige]:nth-child(2), .raster [data-zeige]:nth-child(2) { transition-delay: .08s; }
.kacheln [data-zeige]:nth-child(3), .raster [data-zeige]:nth-child(3) { transition-delay: .16s; }
.kacheln [data-zeige]:nth-child(4), .raster [data-zeige]:nth-child(4) { transition-delay: .24s; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
}
@media (max-width: 560px) {
  :root { --kopf-h: 60px; }
  .marke img { height: 25px; }
  .marke-zusatz { display: none; }
  .nur-gross { display: none; }
  .nur-klein { display: inline; }
  .wand { min-height: 600px; }
  .wand-innen { padding-block: 28px 44px; }
  .punkt { display: none; }
  .wand-knoepfe .knopf { flex: 1 1 auto; }
  .band span { font-size: 24px; padding: 0 16px; }
}

/* niedrige Laptop-Bildschirme: Einstieg muss ganz sichtbar bleiben */
@media (max-height: 760px) and (min-width: 561px) {
  .wand-innen { padding-block: 22px 40px; }
  .wand-ober { margin-bottom: 12px; }
  .wand-text { margin-top: 14px; }
  .wand-knoepfe { margin-top: 18px; }
  .wand-beweis { margin-top: 14px; }
  .farbkarte { bottom: 36px; width: 160px; }
  .farbkarte-muster { height: 118px; }
  .farbkarte-name { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-zeige] { opacity: 1; transform: none; }
}
