/* =========================================================================
   Donaubauer GmbH – Heizung & Sanitär · Design-System
   Marke: Wärme (Rot) + Sanitär (Blau) auf warm-neutralem Grund, Anthrazit-Text.
   ========================================================================= */
:root {
  --bg: #f6f4f0;
  --bg-2: #eeeae3;
  --surface: #ffffff;
  --ink: #1b1e24;
  --ink-soft: #565c66;
  --line: rgba(27, 30, 36, 0.12);
  --line-strong: rgba(27, 30, 36, 0.2);

  --heat: #e4362b;         /* Rot – Wärme */
  --heat-deep: #b71f16;
  --water: #1a9fd6;        /* Blau – Sanitär */
  --water-deep: #147aa6;
  --flame: linear-gradient(135deg, var(--water) 0%, #4fb4de 30%, #f0533f 62%, var(--heat) 100%);

  --shadow-sm: 0 6px 18px -10px rgba(27, 30, 36, 0.4);
  --shadow: 0 26px 60px -34px rgba(27, 30, 36, 0.5);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: min(1180px, 92vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
::selection { background: var(--heat); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--water-deep); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Marken-Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.brand .mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand .mark svg { width: 26px; height: 26px; }
.brand .name { line-height: 1.05; }
.brand .name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--heat-deep); margin-top: 2px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); transition: color .2s ease; }
.nav-links a:hover { color: var(--heat); }
.nav-cta {
  font-weight: 700; font-size: 0.9rem; padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: transform .16s var(--ease-out), background .18s ease;
}
.nav-cta:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .nav-cta:hover { background: var(--heat-deep); transform: translateY(-1px); } }
.burger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

/* ---------- Info-Banner (Urlaub o. Ä.) ---------- */
.site-notice { display: flex; align-items: center; justify-content: center; gap: 11px; text-align: center; background: linear-gradient(90deg, #fbe9c9, #f7d7a2); color: #7a3f0d; padding: 11px 20px; font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid #edc588; }
.site-notice svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: #c2740f; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-notice span { max-width: 70ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.98rem;
  padding: 15px 26px; border-radius: 999px; cursor: pointer; border: 0; font-family: inherit;
  transition: transform .16s var(--ease-out), box-shadow .18s var(--ease-out), background .18s ease, color .18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--heat); color: #fff; box-shadow: 0 16px 32px -16px var(--heat-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px var(--heat-deep); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 116px) 0 84px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -140px; right: -160px; width: 600px; height: 600px; z-index: 0;
  background: radial-gradient(circle at center, rgba(26,159,214,0.22), rgba(228,54,43,0.14) 46%, transparent 70%);
  filter: blur(8px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--heat-deep);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px rgba(228,54,43,0.18); }
h1.hero-title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance;
  font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.03; margin: 24px 0 20px;
}
h1.hero-title em { font-style: italic; color: var(--heat); }
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 47ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-card { position: relative; background: var(--ink); color: #fff; border-radius: 24px; padding: 32px 30px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .9; background: radial-gradient(circle at 88% -10%, rgba(26,159,214,0.4), transparent 52%), radial-gradient(circle at 5% 110%, rgba(228,54,43,0.34), transparent 50%); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 16px; }
.stat-row { display: flex; gap: 24px; margin: 20px 0; }
.stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; color: #fff; }
.stat span { font-size: 0.78rem; opacity: 0.72; }
.hero-card ul { list-style: none; display: grid; gap: 11px; }
.hero-card li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.93rem; opacity: 0.95; }
.hero-card li svg { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 15px 0; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); display: inline-flex; gap: 56px; align-items: center; }
.marquee-track span::after { content: "✳"; color: var(--water); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 8vw, 112px) 0; }
.sec-head { max-width: 660px; margin-bottom: 50px; }
.sec-tag { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--heat); }
.sec-head h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; margin: 12px 0 14px; text-wrap: balance; }
.sec-head p { color: var(--ink-soft); font-size: 1.04rem; }

/* ---------- Leistungen ---------- */
#leistungen { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease; }
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--flame); transition: width .4s var(--ease-out); }
.service .ic { width: 50px; height: 50px; border-radius: 13px; background: rgba(228,54,43,0.1); display: grid; place-items: center; margin-bottom: 18px; }
.service .ic svg { width: 25px; height: 25px; stroke: var(--heat-deep); fill: none; stroke-width: 2; }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; margin-bottom: 9px; }
.service p { font-size: 0.94rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
  .service:hover::after { width: 100%; }
}

/* ---------- Referenzen / Galerie ---------- */
#referenzen { background: var(--bg); }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.gallery-count { font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: inherit; font-size: 0.9rem; font-weight: 700; padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--ease-out); }
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-group + .gallery-group { margin-top: 44px; }
.gallery-subhead { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -0.01em; margin-bottom: 18px; }
.sub-dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; }
.sub-dot.heat { background: var(--heat); box-shadow: 0 0 0 4px rgba(228,54,43,0.16); }
.sub-dot.water { background: var(--water); box-shadow: 0 0 0 4px rgba(26,159,214,0.16); }
.gallery {
  columns: 4 240px; column-gap: 16px;
}
.gallery figure {
  break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--bg-2); border: 1px solid var(--line); cursor: zoom-in; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gallery figure img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease-out); background: var(--bg-2); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(27,30,36,0.42));
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .gallery figure:hover img { transform: scale(1.05); }
  .gallery figure:hover::after { opacity: 1; }
}
.gallery-empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-strong); border-radius: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(15, 17, 20, 0.86); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); opacity: 0; transform: scale(0.96); transition: opacity .28s var(--ease-out), transform .28s var(--ease-out); }
.lightbox.shown img { opacity: 1; transform: scale(1); }
.lb-btn { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.22); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .16s var(--ease-out); }
.lb-btn:hover { background: rgba(255,255,255,0.24); }
.lb-btn:active { transform: scale(0.92); }
.lb-btn svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.2; }
.lb-close { top: 3vmin; right: 3vmin; }
.lb-prev { left: 3vmin; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vmin; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 3vmin; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about-visual { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4/5; background: var(--bg-2); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-grid p { color: var(--ink-soft); margin-bottom: 15px; }
.about-grid p.lead { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); font-weight: 500; line-height: 1.4; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge { font-size: 0.82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.badge b { color: var(--heat); }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; color: var(--ink); margin-top: 22px; }

/* ---------- Ablauf ---------- */
#ablauf { background: var(--ink); color: #fff; }
#ablauf .sec-head h2 { color: #fff; }
#ablauf .sec-head p { color: rgba(255,255,255,0.68); }
#ablauf .sec-tag { color: #ff7a6e; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { border-top: 2px solid rgba(255,255,255,0.18); padding-top: 20px; }
.step b { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.step h4 { font-size: 1.08rem; margin: 12px 0 7px; }
.step p { font-size: 0.9rem; color: rgba(255,255,255,0.68); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 2px; }
.contact-info .row { display: flex; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-info .row .ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: rgba(26,159,214,0.1); display: grid; place-items: center; }
.contact-info .row .ic svg { width: 22px; height: 22px; stroke: var(--water-deep); fill: none; stroke-width: 2; }
.contact-info .row small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--water-deep); font-weight: 700; }
.contact-info .row strong { font-weight: 600; font-size: 1.02rem; }
.contact-info .row a strong:hover { color: var(--heat); }
.placeholder { color: var(--heat-deep) !important; font-style: italic; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--bg); font-family: inherit; font-size: 0.95rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(26,159,214,0.16); }
.field textarea { resize: vertical; min-height: 108px; }
form.card .btn-primary { width: 100%; justify-content: center; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; transition: color .2s ease; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
footer.site { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; margin-bottom: 36px; }
.foot-grid h5 { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--heat-deep); margin-bottom: 14px; }
.foot-grid a, .foot-grid p { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--heat); }
.foot-brand p { max-width: 36ch; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 0.84rem; color: var(--ink-soft); }
.foot-bottom .credit { margin-left: auto; }
.foot-bottom .credit a { color: var(--heat); font-weight: 700; text-underline-offset: 2px; }
.foot-bottom .credit a:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--water-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-weight: 700; color: var(--ink); }
.legal .back:hover { color: var(--heat); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 18px 0; }

/* ---------- Reveal & Reduced Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .lightbox img { transition: opacity .2s ease; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px var(--wrap-pad, 4vw); background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav-links.open a { padding: 10px 0; width: 100%; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .services, .steps, .foot-grid { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; }
  .gallery { columns: 2 140px; }
}
