/* ═══════════════════════════════════════════════════════════
   Jakob Jocham · Heizung & Sanitär · Dachau
   Design: warm-handwerklich · Anthrazit + Kupfer
   Fonts: Fraunces (Display) · Hanken Grotesk (Body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #201812;
  --ink-soft: #2c211a;
  --ink-mute: #6b5d51;
  --cream: #f6efe4;
  --cream-deep: #efe5d5;
  --paper: #fbf7ee;
  --copper: #c1671f;
  --copper-bright: #e08a3c;
  --copper-deep: #96500f;
  --line: rgba(32, 24, 18, 0.14);
  --line-light: rgba(246, 239, 228, 0.16);
  --shadow: 0 24px 60px -24px rgba(32, 24, 18, 0.45);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}

h1 em, h2 em {
  font-style: italic;
  color: var(--copper);
}

p { margin: 0 0 1em; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--copper); color: #fff; padding: 0.6rem 1rem; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ── Grain-Overlay für Atmosphäre ── */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ── Eyebrow ── */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.1rem;
}
.eyebrow-line {
  width: 2.2rem; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--copper-bright), var(--copper-deep));
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--copper-bright), var(--copper-deep));
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(193, 103, 31, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(193, 103, 31, 0.75); }
.btn-ghost {
  border: 1.5px solid var(--line-light); color: var(--cream);
}
.btn-ghost:hover { background: rgba(246, 239, 228, 0.09); }
.btn-call {
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(246, 239, 228, 0.2);
}
.btn-call:hover { background: var(--copper-deep); }
.btn-big { font-size: 1.2rem; padding: 1.05rem 2rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem var(--pad);
  background: rgba(32, 24, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: linear-gradient(140deg, var(--copper-bright), var(--copper-deep));
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 18px -8px rgba(193,103,31,0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-text small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,239,228,0.6); }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: rgba(246,239,228,0.85);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--copper-bright); }
.header-call { margin-left: 0.5rem; }

/* ── Hero ── */
.hero {
  position: relative;
  background:
    radial-gradient(60rem 34rem at 85% -10%, rgba(193, 103, 31, 0.28), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(193, 103, 31, 0.14), transparent 60%),
    linear-gradient(165deg, #2c211a 0%, var(--ink) 55%, #17110c 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--pad) clamp(4rem, 9vw, 7.5rem);
}
.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  font-weight: 600;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(246, 239, 228, 0.82);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.4rem; }
.hero-stats {
  display: flex; gap: clamp(1.4rem, 3.5vw, 3rem);
  margin: 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line-light);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600; color: var(--copper-bright);
}
.hero-stats dd { margin: 0; font-size: 0.88rem; color: rgba(246,239,228,0.65); }

.hero-visual { position: relative; }
.hero-img-main {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
  border: 1px solid rgba(246,239,228,0.18);
}
.hero-img-main img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-img-small {
  position: absolute; margin: 0;
  bottom: -2.2rem; left: -2.6rem;
  width: clamp(9rem, 15vw, 13rem);
  border-radius: 14px; overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.hero-img-small img { aspect-ratio: 1; object-fit: cover; }
.hero-badge {
  position: absolute; top: -1.2rem; right: -0.6rem;
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--cream); color: var(--ink);
  padding: 0.75rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  font-size: 0.8rem; line-height: 1.25;
}
.hero-badge svg { width: 1.5rem; height: 1.5rem; color: var(--copper); flex: none; }
.hero-badge strong { display: block; font-size: 0.9rem; }

/* ── Marquee ── */
.marquee {
  position: relative;
  border-top: 1px solid var(--line-light);
  background: rgba(23, 17, 12, 0.72);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: rgba(246,239,228,0.75);
  white-space: nowrap;
}
.marquee-track i { color: var(--copper); font-style: normal; font-size: 0.7rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ── */
.section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); }
.section-head { max-width: 1240px; margin: 0 auto clamp(2.4rem, 5vw, 4rem); }
.section-head h2, .about h2, .area h2, .contact h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-sub { max-width: 38rem; color: var(--ink-mute); font-size: 1.1rem; }

/* ── Leistungen ── */
.services { background: var(--cream); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.4rem;
  max-width: 1240px; margin: 0 auto;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(32,24,18,0.35);
  border-color: rgba(193,103,31,0.45);
}
.service-icon {
  display: grid; place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(224,138,60,0.18), rgba(150,80,15,0.12));
  border: 1px solid rgba(193,103,31,0.35);
  color: var(--copper);
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 1.6rem; height: 1.6rem; }
.service-card h3 { font-size: 1.35rem; }
.service-card p { color: var(--ink-mute); font-size: 0.98rem; margin-bottom: 0; }
.service-card--accent {
  background: linear-gradient(160deg, var(--ink-soft), var(--ink));
  color: var(--cream);
  border-color: rgba(193,103,31,0.5);
}
.service-card--accent p { color: rgba(246,239,228,0.75); }
.service-card--accent .service-icon { background: rgba(224,138,60,0.16); color: var(--copper-bright); }
.service-link {
  display: inline-block; margin-top: 1rem;
  font-weight: 700; color: var(--copper-bright);
  text-decoration: none; font-size: 1.1rem;
}
.service-link:hover { text-decoration: underline; }

/* ── Betrieb ── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.about-visual { position: relative; padding-bottom: 3.5rem; }
.about-img {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-img--offset {
  position: absolute; right: -1rem; bottom: 0;
  width: 58%;
  border: 5px solid var(--paper);
  transform: rotate(2.5deg);
}
.about-img--offset img { aspect-ratio: 16 / 10; }
.about-copy p { color: var(--ink-mute); }
.check-list {
  list-style: none; margin: 1.6rem 0; padding: 0;
  display: grid; gap: 0.7rem;
}
.check-list li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.check-list svg {
  width: 1.35rem; height: 1.35rem; flex: none;
  color: var(--copper);
  background: rgba(193,103,31,0.12);
  border-radius: 50%;
  padding: 0.2rem;
}
.about-quote {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--copper);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; line-height: 1.45;
}
.about-quote cite {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-body); font-style: normal;
  font-size: 0.85rem; font-weight: 700; color: var(--copper-deep);
}

/* ── Arbeiten ── */
.works {
  background:
    radial-gradient(50rem 30rem at 110% 0%, rgba(193,103,31,0.2), transparent 55%),
    linear-gradient(170deg, var(--ink-soft), var(--ink) 70%);
  color: var(--cream);
}
.works .section-sub { color: rgba(246,239,228,0.68); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.4rem;
  max-width: 1240px; margin: 0 auto;
}
.work-card {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-light);
  aspect-ratio: 4 / 3.1;
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover img { transform: scale(1.06); }
.work-card figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.6rem 1.3rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(23,17,12,0.88) 62%);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.work-card strong { font-family: var(--font-display); font-size: 1.15rem; }
.work-card span { font-size: 0.85rem; color: rgba(246,239,228,0.7); }

/* ── Ablauf ── */
.process { background: var(--paper); }
.process-grid {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1.4rem;
  max-width: 1240px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(32,24,18,0.4); }
.step-num {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 3rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--copper);
  display: block; margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.25rem; }
.process-step p { color: var(--ink-mute); font-size: 0.95rem; margin: 0; }

/* ── Einzugsgebiet + Notfall ── */
.area { background: var(--cream-deep); }
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.area-copy p { color: var(--ink-mute); }
.area-chips {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.area-chips li {
  padding: 0.55rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.area-chips li:hover { border-color: var(--copper); color: var(--copper-deep); transform: translateY(-2px); }
.emergency {
  background: linear-gradient(160deg, var(--ink-soft), var(--ink));
  color: var(--cream);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(193,103,31,0.4);
}
.emergency-icon { width: 3rem; height: 3rem; color: var(--copper-bright); margin: 0 auto 1rem; display: block; }
.emergency h3 { font-size: 1.6rem; }
.emergency p { color: rgba(246,239,228,0.75); }
.emergency .btn { margin: 0.6rem auto 0.9rem; }
.emergency small { display: block; color: rgba(246,239,228,0.55); font-size: 0.82rem; }

/* ── Kontakt ── */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.contact-copy > p { color: var(--ink-mute); max-width: 32rem; }
.contact-phone {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--copper-deep);
  text-decoration: none;
  margin: 0.4rem 0 1.6rem;
  transition: color 0.2s ease;
}
.contact-phone:hover { color: var(--copper-bright); }
.contact-facts { display: grid; gap: 1.2rem; margin-bottom: 1.6rem; }
.contact-fact { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-fact svg {
  width: 1.5rem; height: 1.5rem; flex: none;
  color: var(--copper); margin-top: 0.2rem;
}
.contact-fact strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); }
.map-link { font-weight: 700; color: var(--copper-deep); text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.contact-visual {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.contact-visual img { aspect-ratio: 4 / 3.4; object-fit: cover; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem var(--pad) 1.6rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
  max-width: 1240px; margin: 0 auto 2rem;
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand p { margin: 0.3rem 0 0; font-size: 0.88rem; color: rgba(246,239,228,0.6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-left: auto; }
.footer-links a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: rgba(246,239,228,0.8);
}
.footer-links a:hover { color: var(--copper-bright); }
.footer-note {
  max-width: 1240px; margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem; color: rgba(246,239,228,0.45);
}

/* ── Floating Call Button (mobil) ── */
.fab-call {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 85;
  display: none; align-items: center; gap: 0.55rem;
  background: linear-gradient(135deg, var(--copper-bright), var(--copper-deep));
  color: #fff; font-weight: 700; text-decoration: none;
  padding: 0.95rem 1.4rem; border-radius: 999px;
  box-shadow: 0 16px 34px -10px rgba(150, 80, 15, 0.8);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.fab-call svg { width: 1.25rem; height: 1.25rem; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 16px 34px -10px rgba(150,80,15,0.8), 0 0 0 0 rgba(224,138,60,0.5); }
  50% { box-shadow: 0 16px 34px -10px rgba(150,80,15,0.8), 0 0 0 12px rgba(224,138,60,0); }
}

/* ── Animationen ── */
.reveal-load { opacity: 0; transform: translateY(22px); animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.52s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee-track { animation: none; }
  .fab-call { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 34rem; margin-top: 1.5rem; }
  .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-visual { order: -1; max-width: 34rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-call span { display: none; }
  .header-call { padding: 0.8rem; border-radius: 50%; }
  .brand-text small { display: none; }
  .hero-img-small { left: -0.4rem; bottom: -1.6rem; }
  .hero-badge { right: 0; top: -1rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .about-img--offset { right: 0; }
  .fab-call { display: inline-flex; }
  .site-footer { padding-bottom: 5.5rem; }
}
