/* TARO Bau — Handwerk/Trockenbau. Graphit + Signalrot #D93A39 */
@font-face {
  font-family: "Roboto";
  src: url("/font/roboto-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/font/roboto-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #2e2e2d;
  --ink-soft: #55534f;
  --paper: #ffffff;
  --paper-warm: #f5f4f2;
  --line: #e3e1dd;
  --accent: #d93a39;
  --accent-dark: #b52f2e;
  --footer-bg: #262523;
  --footer-text: #b9b6b1;
  --radius: 10px;
  --container: 1140px;
  --container-text: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.12; font-weight: 600; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-warm { background: var(--paper-warm); }

.kicker {
  display: block;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--accent);
  border: 0; background: none; cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
}
.icon-btn:active { background: rgba(217, 58, 57, 0.12); }

.header-phone-text {
  display: none;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone-text:hover { color: var(--accent); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 400; }
.main-nav a:hover { color: var(--accent); }

/* mobile nav overlay */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; inset: 65px 0 auto 0; z-index: 99;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }
  .main-nav[hidden] { display: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    display: block; padding: 14px 24px; font-size: 1.1rem;
  }
}
@media (min-width: 900px) {
  .main-nav { position: static; }
  .main-nav[hidden] { display: block; }
  .burger { display: none; }
  .icon-btn.phone-icon { display: none; }
  .header-phone-text { display: inline-block; }
  .site-header { padding: 12px 32px; }
  .logo img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(76deg, rgba(24,23,22,0.82) 0%, rgba(24,23,22,0.55) 46%, rgba(24,23,22,0.18) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: clamp(80px, 14vw, 168px) 20px;
  color: #fff;
}
.hero .kicker { color: #ff9c9b; }
.hero h1 { max-width: 15ch; }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.87);
  max-width: 44ch;
  margin-bottom: 32px;
}
.hero-meta {
  margin-top: 40px;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* ---------- About / USP ---------- */
.about-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; }
}
.about-grid .big-text { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); }

.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.usp-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.usp-list svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.usp-list strong { display: block; margin-bottom: 2px; }
.usp-list span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-card .body { padding: 18px 20px 20px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-card + .contact-card { margin-top: 18px; }
.contact-card .label {
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.contact-card a.big { font-size: 1.25rem; font-weight: 600; }
.contact-card address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 44px 0 36px;
  font-size: 0.95rem;
}
.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 16px 36px;
  justify-content: space-between; align-items: baseline;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-credit {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #a09d98;
}
.footer-credit a { color: #a09d98; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--ink);
  color: #fff;
  padding: 34px 0;
}
.stats-bar .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.stats-bar .num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
}
.stats-bar .lbl { color: rgba(255,255,255,0.72); font-size: 0.95rem; }

/* ---------- Referenzen: before/after ---------- */
.ref-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 900px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }

.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}
/* высота через padding-hack — работает везде, включая старые Safari без aspect-ratio */
.ba::before {
  content: "";
  display: block;
  padding-top: 66.667%; /* 3:2 */
}
.ba img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba .after-wrap {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  /* стартовое положение; дальше JS ставит clip-path напрямую (Safari не обновляет var() в clip-path) */
  -webkit-clip-path: inset(0 0 0 50%);
  clip-path: inset(0 0 0 50%);
}
.ba .divider {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 2px; background: #fff;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.ba .knob {
  position: absolute; top: 50%; left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  pointer-events: none;
}
.ba .tag {
  position: absolute; bottom: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(24,23,22,0.72);
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
}
.ba .tag-before { left: 10px; }
.ba .tag-after { right: 10px; }
.ba input[type="range"] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize;
  margin: 0; padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ref-card h3 { margin: 16px 0 4px; }
.ref-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; }
.steps .n {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem; font-weight: 600;
  margin-bottom: 14px;
}
.steps .n::before { content: counter(step); }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 720px) {
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute; top: 26px; left: 64px; right: -14px;
    height: 1px; background: var(--line);
  }
}

/* ---------- FAQ ---------- */
.faq { max-width: var(--container-text); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 400;
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 16px; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-note a { color: var(--accent-dark); }

/* ---------- Regions ---------- */
.region-list {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.region-list li {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Legal pages / 404 ---------- */
.page-legal h1 { margin-bottom: 0.8em; }
.page-legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page-legal ul { padding-left: 1.2em; }

.page-404 { text-align: center; padding: clamp(80px, 16vw, 180px) 20px; }
.page-404 .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 600; color: var(--line); line-height: 1; }
