/* M. Schoch Malerservice – Entwurf Seetalwebsites */
:root {
  --gips: #ECE7DD;
  --gips-dunkel: #C9C3B8;
  --tapete: #2F4A3E;
  --ocker: #D49A1E;
  --ocker-dunkel: #A9761A;
  --ink: #1E1C19;
  --ink-2: rgba(30, 28, 25, .68);
  --ink-3: rgba(30, 28, 25, .48);
  --hell: #F1ECE2;
  --linie: rgba(30, 28, 25, .16);

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;

  --rand: 20px;
  --luft: 72px;
  --r: 6px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
}
@media (min-width: 900px) {
  :root { --rand: 40px; --luft: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gips);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(1200px + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--hell);
  border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 17px;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.btn:hover { background: #000000d0; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Einstieg ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero__farbe { position: absolute; inset: 0; background: var(--ocker); z-index: -2; }
.hero__rolle { position: absolute; inset: 0; z-index: -1; border-top: 14px solid var(--ocker-dunkel); opacity: 0; pointer-events: none; }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.top__name { font-weight: 500; text-decoration: none; padding: 8px 0; }
.top__nav { display: none; gap: 40px; }
.top__nav a { text-decoration: none; color: var(--ink-2); transition: color 150ms ease-out; }
.top__nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .top__nav { display: flex; } }

.hero__in { position: relative; flex: 1; display: flex; flex-direction: column; padding-bottom: 40px; }
.hero__ort { margin-top: 64px; color: var(--ink-2); }
.hero__name {
  margin: 8px 0 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 500;
  font-size: 47vw;
  line-height: .9;
  letter-spacing: -.045em;
  margin-left: -.04em;
  position: relative; z-index: 1;
}
@media (min-width: 900px) {
  .hero__ort { margin-top: 40px; }
  .hero__name { font-size: min(38vw, 46vh, 460px); }
}

.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: block; }

/* Farbfächer: drei Schichten als Muster, steht schräg vor dem Namen */
.hero__karte {
  position: absolute; z-index: 2;
  right: calc(var(--rand) + 4px);
  top: 29%;
  width: 124px;
  will-change: transform;
}
@media (min-width: 900px) {
  .hero__karte { width: 184px; right: calc(var(--rand) + 25%); top: 34%; }
}
.faecher {
  background: var(--hell);
  border-radius: var(--r);
  padding: 8px 8px 0;
  transform: rotate(9deg);
  filter: drop-shadow(0 18px 24px rgba(60, 40, 0, .28));
}
.faecher__feld { display: flex; align-items: flex-end; aspect-ratio: 1 / .78; margin-bottom: 8px; padding: 8px; }
.faecher__feld b { font-family: var(--mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.faecher__feld--gips { background: var(--gips-dunkel); color: var(--ink); }
.faecher__feld--tapete { background: var(--tapete) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 0v12' stroke='%23ffffff' stroke-opacity='.09' stroke-width='3'/%3E%3C/svg%3E"); color: var(--hell); }
.faecher__feld--farbe { background: var(--ocker); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(30,28,25,.12); }

.hero__unten { margin-top: auto; }
@media (min-width: 900px) { .hero__unten { max-width: 640px; } }
.hero__satz {
  font-family: var(--display);
  font-variation-settings: 'wdth' 85, 'opsz' 40;
  font-weight: 450;
  font-size: 24px; line-height: 1.12; letter-spacing: -.02em;
}
@media (min-width: 900px) { .hero__satz { font-size: 40px; } }
.hero__cta { margin-top: 24px; }

/* Einstieg in Bewegung */
.js .hero__farbe { clip-path: inset(100% 0 0 0); }
.js .hero__rolle { transform: translateY(100%); }
.js .hero .line > span { transform: translateY(105%); }
.js .hero .fade { opacity: 0; transform: translateY(16px); }
.js .hero__karte .faecher { opacity: 0; transform: translateY(-64px) rotate(-14deg) scale(1.06); }

.hero.is-in .hero__farbe { clip-path: inset(0 0 0 0); transition: clip-path 1300ms var(--expo); }
.hero.is-in .hero__rolle { transform: translateY(0); opacity: 0; animation: rolle 1300ms var(--expo); transition: transform 1300ms var(--expo); }
@keyframes rolle { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.hero.is-in .line > span { transform: none; transition: transform 1000ms var(--expo); transition-delay: calc(500ms + var(--i, 0) * 90ms); }
.hero.is-in .fade { opacity: 1; transform: none; transition: opacity 800ms var(--expo), transform 800ms var(--expo); transition-delay: calc(500ms + var(--i, 0) * 90ms); }
.hero.is-in .hero__karte .faecher { opacity: 1; transform: rotate(9deg); transition: transform 1600ms var(--expo) 700ms, opacity 400ms ease-out 700ms; }

/* ---------- Abschnitte ---------- */
.section { padding: var(--luft) 0; }
.h2 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 80, 'opsz' 96;
  font-weight: 500;
  font-size: 48px; line-height: 1; letter-spacing: -.035em;
}
@media (min-width: 900px) { .h2 { font-size: 88px; } }
.kopf { display: grid; gap: 16px; margin-bottom: 40px; }
.kopf__text { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 900px) {
  .kopf { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 64px; }
}

/* Aussage */
.aussage__text {
  font-family: var(--display);
  font-variation-settings: 'wdth' 90, 'opsz' 60;
  font-weight: 450;
  font-size: 32px; line-height: 1.14; letter-spacing: -.025em;
  max-width: 22ch;
}
@media (min-width: 900px) { .aussage__text { font-size: min(6vw, 80px); max-width: 20ch; } }
.wort { color: var(--ink); transition: opacity 400ms ease-out; }
.js .wort { opacity: .16; }
.js .wort.an { opacity: 1; }

.kapsel {
  display: inline-block; vertical-align: -.08em;
  width: 1.7em; height: .82em; border-radius: 999px;
  margin: 0 .04em;
}
.kapsel--gips { background: var(--gips-dunkel); }
.kapsel--tapete { background: var(--tapete) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 0v10' stroke='%23ffffff' stroke-opacity='.12' stroke-width='2'/%3E%3C/svg%3E"); }
.kapsel--farbe { background: var(--ocker); }
.js .kapsel { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 900ms var(--expo); }
.js .kapsel.an { clip-path: inset(0 0 0 0 round 999px); }

.aussage__fuss { display: grid; gap: 24px; margin-top: 64px; color: var(--ink-2); max-width: 760px; }
.label { display: block; color: var(--ink-3); margin-bottom: 8px; }
@media (min-width: 900px) { .aussage__fuss { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* Leistungen: Schichten */
.schichten { padding-top: 0; }
.schichten .kopf { padding-bottom: 40px; margin-bottom: 0; }
.panel {
  position: sticky; top: 0;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.panel--gips { background: var(--gips-dunkel); color: var(--ink); }
.panel--tapete {
  background: var(--tapete) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 0v28' stroke='%23ffffff' stroke-opacity='.05' stroke-width='8'/%3E%3C/svg%3E");
  color: var(--hell);
}
.panel--farbe { background: var(--ocker); color: var(--ink); }
.panel__in { height: 100%; display: flex; flex-direction: column; padding-top: 40px; padding-bottom: 40px; position: relative; }
.panel__meta { display: flex; gap: 24px; opacity: .68; }
.panel__name {
  margin: 24px 0 0;
  font-family: var(--display);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 500;
  font-size: 22vw; line-height: .9; letter-spacing: -.045em;
  margin-left: -.04em;
}
.panel__text { margin-top: 24px; max-width: 32ch; opacity: .8; }
.panel__karte { margin-top: auto; align-self: flex-end; width: 56%; max-width: 360px; will-change: transform; }
@media (min-width: 900px) {
  .panel__in { padding-top: 64px; padding-bottom: 64px; }
  .panel__name { font-size: min(15vw, 210px); }
  .panel__karte { position: absolute; right: var(--rand); bottom: 64px; width: 30%; }
}

/* Farbmuster-Karte */
.muster {
  background: var(--hell); color: var(--ink);
  border-radius: var(--r);
  padding: 8px 8px 16px;
  filter: drop-shadow(0 24px 32px rgba(20, 16, 8, .3));
}
.muster__farbe { display: block; aspect-ratio: 4 / 3; border-radius: 3px; }
.muster__name { display: block; margin-top: 16px; padding-left: 8px; }
.panel--gips .muster__farbe { background: var(--gips-dunkel); box-shadow: inset 0 0 0 1px rgba(30,28,25,.1); }
.panel--tapete .muster__farbe { background: inherit; background: var(--tapete) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 0v16' stroke='%23ffffff' stroke-opacity='.1' stroke-width='4'/%3E%3C/svg%3E"); }
.panel--farbe .muster__farbe { background: var(--ocker); box-shadow: inset 0 0 0 1px rgba(30,28,25,.1); }

/* Arbeiten */
.rahmen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rahmen__feld {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--ink-3);
  border-radius: var(--r);
  display: flex; align-items: flex-end; padding: 8px;
  color: var(--ink-3);
}
.rahmen__feld .mono { font-size: 11px; }
@media (min-width: 900px) { .rahmen { gap: 24px; } .rahmen__feld { padding: 16px; } .rahmen__feld .mono { font-size: 13px; } }

/* Offerte */
.offerte { background: var(--hell); }
.offerte__grid { display: grid; gap: 64px; }
@media (min-width: 900px) { .offerte__grid { grid-template-columns: 1.1fr 1fr; gap: 104px; align-items: start; } }
.form { display: grid; gap: 24px; }
.feld { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.feld legend, .feld > label { padding: 0; margin-bottom: 8px; font-size: 15px; color: var(--ink-2); }
.feld legend { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--linie); border-radius: 999px;
  cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.chip span:hover { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ocker); border-color: var(--ocker); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.reihe { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.reihe--eng { grid-template-columns: 136px 1fr; }
.form input[type=text], .form select, .stepper {
  width: 100%; min-height: 48px;
  border: 1px solid var(--linie); border-radius: var(--r);
  background: var(--gips); color: var(--ink);
  font: inherit; font-size: 16px; padding: 0 16px;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E1C19' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.stepper { display: flex; align-items: center; padding: 0; }
.stepper button { width: 44px; height: 46px; border: 0; background: none; font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { flex: 1; min-width: 0; text-align: center; border: 0; background: none; font: inherit; font-family: var(--mono); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }

.zettel-ort { display: grid; gap: 24px; justify-items: start; }
.zettel {
  width: 100%;
  background: #FBF8F1;
  padding: 24px;
  border-radius: 2px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 16px 24px rgba(30, 28, 25, .14));
}
.zettel__an { color: var(--ink-3); text-transform: none; padding-bottom: 16px; border-bottom: 1px solid var(--linie); margin-bottom: 16px; }
.zettel__text { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); }
.adresse { color: var(--ink-2); font-size: 15px; }

/* Fusszeile */
.fuss { background: var(--ink); color: var(--hell); padding: 64px 0 40px; overflow: hidden; }
.fuss__name {
  font-family: var(--display);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 500;
  font-size: 47vw; line-height: .85; letter-spacing: -.045em;
  margin-left: -.04em;
  color: var(--ocker);
}
@media (min-width: 900px) { .fuss__name { font-size: min(38vw, 460px); } }
.fuss__reihe { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; color: rgba(241, 236, 226, .68); }
.fuss__reihe a { text-transform: none; padding: 8px 0; margin: -8px 0; }
.fuss__entwurf { margin-top: 40px; font-size: 14px; color: rgba(241, 236, 226, .48); }

/* Ohne Bewegung: alles sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  .js .hero__farbe { clip-path: none; }
  .js .hero__rolle { display: none; }
  .js .hero .line > span, .js .hero .fade, .js .hero__karte .faecher { transform: none; opacity: 1; }
  .js .hero__karte .faecher { transform: rotate(9deg); }
  .js .wort { opacity: 1; }
  .js .kapsel { clip-path: none; }
  .panel { position: relative; }
  * { transition: none !important; animation: none !important; }
}
