/* Steiner Sanitär & Heizung — Demo-Website für ricooess.ch
   Palette: Graphit, Stahlweiss, Signalblau. Technisch, ruhig, kontrastreich. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-vf.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-vf.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --graphite: #14181d;
  --graphite-2: #1d232b;
  --steel: #eef1f4;
  --steel-2: #dde3e9;
  --blue: #1f5eff;
  --blue-dark: #1546c4;
  --cyan: #35c8e0;
  --signal: #ff6b2c;
  --ink: #14181d;
  --ink-soft: #5b6773;
  --line: rgba(20, 24, 29, .12);
  --radius: 12px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}
.section-head { max-width: 620px; margin-bottom: 2.6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Demo- und Notfallband ---------- */

.demobar {
  background: var(--graphite);
  color: #c3ccd6;
  font-size: .82rem;
  text-align: center;
  padding: .55rem 1rem;
}
.demobar strong { color: #fff; }
.demobar a { color: var(--cyan); }

.alertbar {
  background: var(--signal);
  color: #22150c;
  font-weight: 600;
  font-size: .92rem;
  padding: .6rem 1rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  text-align: center;
}
.alertbar a { color: inherit; }
.alertbar span::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22150c;
  margin-right: .5rem;
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; display: block; line-height: 1.1; letter-spacing: -.02em; }
.brand__sub { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

.nav__links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__links a:hover { color: var(--blue); }
.nav__toggle { display: none; border: 1px solid var(--line); background: none; border-radius: 8px; font: inherit; padding: .5rem .7rem; cursor: pointer; }

.nav__phone { font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__phone small { display: block; font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .04em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--ghost { border-color: currentColor; }
.btn--ghost:hover { background: rgba(31, 94, 255, .08); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */

/* Der Innenteil bringt seine eigene Luft mit — die Abstände von `section`
   würden hier doppelt zählen und unten einen leeren Streifen erzeugen. */
.hero { background: var(--graphite); color: #fff; position: relative; overflow: hidden; padding: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 78% 18%, rgba(31, 94, 255, .35), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(53, 200, 224, .18), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero p.lead { color: #b6c2ce; font-size: 1.12rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: #93a2b1; }
.hero__meta b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; color: #fff; }

/* ---------- Leistungen ---------- */

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--blue); transform: translateY(-3px); }
.service__icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--blue); }
.service p { color: var(--ink-soft); margin: 0 0 .8rem; font-size: .96rem; }
.service ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.service li { padding-left: 1.1rem; position: relative; }
.service li::before { content: '—'; position: absolute; left: 0; color: var(--blue); }

.band { background: var(--steel); }
.band-dark { background: var(--graphite); color: #fff; }
.band-dark .section-head p { color: #9aa8b6; }

/* ---------- Ablauf ---------- */

.steps-flow { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.flow { position: relative; padding-top: 2.6rem; }
.flow::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.flow h3 { margin-bottom: .3rem; }
.flow p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.band-dark .flow p { color: #9aa8b6; }

/* ---------- Rechner ---------- */

.calc {
  display: grid;
  grid-template-columns: 1fr 350px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -45px rgba(20, 24, 29, .6);
}
.calc__main { padding: clamp(1.5rem, 3vw, 2.5rem); }
.calc__side { background: var(--graphite); color: #fff; padding: clamp(1.5rem, 3vw, 2.2rem); }

.progress { display: flex; gap: .35rem; margin-bottom: 1.8rem; }
.progress li {
  flex: 1;
  list-style: none;
  height: 4px;
  border-radius: 999px;
  background: var(--steel-2);
  transition: background .3s;
}
.progress li[data-on] { background: var(--blue); }
.progress-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; }

.step { display: none; }
.step[data-active] { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.opt {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: .9rem 1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.opt:hover { border-color: var(--blue); }
.opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.opt b { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.opt small { color: var(--ink-soft); font-size: .84rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem .9rem;
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field--error input, .field--error textarea { border-color: #b3261e; }
.field__error { display: none; color: #b3261e; font-size: .8rem; margin: .25rem 0 0; }
.field--error .field__error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .88rem; color: var(--ink-soft); }

.calc__actions { display: flex; gap: .7rem; margin-top: 1.8rem; }

.estimate { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; margin: .3rem 0 .2rem; }
.calc__side dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .92rem; margin: 1.6rem 0 0; }
.calc__side dt { color: #93a2b1; }
.calc__side dd { margin: 0; text-align: right; }
.calc__side .note { font-size: .82rem; color: #93a2b1; margin-top: 1.6rem; }

.done { text-align: center; padding: 1rem 0; }
.done__ref { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; background: var(--steel); border-radius: 10px; padding: .45rem 1.2rem; display: inline-block; margin: .5rem 0 1rem; letter-spacing: .08em; }

/* ---------- Referenzen ---------- */

.ref { border-left: 3px solid var(--blue); padding-left: 1.2rem; }
.ref blockquote { margin: 0 0 .8rem; font-size: 1.05rem; }
.ref cite { font-style: normal; font-size: .88rem; color: var(--ink-soft); }
.band-dark .ref cite { color: #9aa8b6; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; }
.stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; line-height: 1; color: var(--blue); }
.band-dark .stat b { color: var(--cyan); }
.stat span { font-size: .9rem; color: var(--ink-soft); }
.band-dark .stat span { color: #9aa8b6; }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: .8rem 0 0; color: var(--ink-soft); }

/* ---------- Notfall ---------- */

.emergency { background: var(--graphite-2); color: #fff; border-radius: 18px; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.emergency h2 { margin-bottom: .4rem; }
.emergency p { color: #9aa8b6; margin: 0; }
.emergency__num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--signal); text-decoration: none; display: block; }

/* ---------- Footer ---------- */

.footer { background: var(--graphite); color: #93a2b1; padding: 4rem 0 2rem; font-size: .92rem; }
.footer h4 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; margin: 0 0 .7rem; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer__bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; }

/* ---------- Bewegung ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .emergency { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__phone { display: none; }
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.25rem 1.2rem;
    display: none;
  }
  .nav__links[data-open] { display: flex; }
  .nav__links a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .alertbar span::before { animation: none; }
  .step[data-active] { animation: none; }
  .btn:hover, .service:hover { transform: none; }
}
