/* =========================================================================
   Pöttke Heizungsservice – Stylesheet
   Palette grounded in the trade: Kupfer (Heizungsrohr) + Petrol-Stahl (Wasser)
   ========================================================================= */

:root {
  /* Farben */
  --ink:      #1a1c1f;   /* warmes Anthrazit – Gusseisen */
  --ink-2:    #3d4248;   /* gedämpfter Fließtext */
  --paper:    #fbfaf8;   /* warmes Weiß */
  --paper-2:  #f2efe9;   /* leicht abgesetzte Fläche */
  --copper:   #b0592b;   /* Kupfer – Leitfarbe */
  --copper-d: #914625;   /* dunkleres Kupfer für Kontrast */
  --ember:    #e08b3e;   /* warmer Akzent / Hover */
  --steel:    #274a56;   /* Petrol-Stahl – Wasser/Gegenpol */
  --steel-2:  #35636f;
  --line:     #e4ded4;   /* Haarlinie */
  --ok:       #2f7d5b;

  /* Typo */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Maße */
  --wrap: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26,28,31,.06), 0 12px 32px -18px rgba(26,28,31,.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1rem; max-width: 62ch; color: var(--ink-2); }
a { color: var(--copper-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }
img, svg { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

/* Fokus sichtbar */
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 3px; }

/* ---- Buttons ---- */
.btn {
  --bg: var(--copper);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  color: #fff; background: var(--bg);
  padding: .82rem 1.35rem; border-radius: var(--radius);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--copper-d); color:#fff; transform: translateY(-1px); }
.btn--steel { --bg: var(--steel); }
.btn--steel:hover { background: var(--steel-2); }
.btn--ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1.5px solid var(--line); padding: .78rem 1.3rem;
}
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--copper); }
.btn svg { width: 1.15em; height: 1.15em; }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,248,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--copper); border-radius: 9px; color: var(--copper);
}
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1; }
.brand__sub  { font-size: .74rem; color: var(--ink-2); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--copper); }
.header-call {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.header-call span { display:block; }
.header-call small { font-weight: 500; font-size: .72rem; color: var(--ink-2); font-family: var(--body); }
.nav-toggle { display: none; }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before {
  /* Strahlungswärme: radialer, warmer Verlauf oben rechts */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(224,139,62,.20), transparent 55%),
    radial-gradient(90% 70% at 6% 108%, rgba(39,74,86,.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--steel); margin-bottom: 1rem;
}
.hero__eyebrow::before { content:""; width: 26px; height: 2px; background: var(--copper); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
.hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; margin-top: .3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero__trust div { line-height: 1.15; }
.hero__trust b { font-family: var(--display); font-size: 1.35rem; color: var(--ink); display:block; }
.hero__trust span { font-size: .86rem; color: var(--ink-2); }

/* Hero-Illustration */
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(26,28,31,.14)); }

/* ============================ SECTIONS ============================ */
section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head .kicker {
  font-family: var(--display); font-weight: 600; color: var(--copper);
  font-size: 1rem; margin-bottom: .5rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.alt { background: var(--paper-2); }

/* ---- Leistungen ---- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  padding: 1.8rem 1.7rem 2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
}
.alt .service { background: var(--paper-2); }
.service__icon {
  width: 46px; height: 46px; color: var(--copper);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: 1.22rem; }
.service p { font-size: .97rem; margin-bottom: 0; }
.service::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 3px;
  background: var(--copper); transition: width .25s ease;
}
.service:hover::after { width: 46%; }

/* ---- Notdienst-Band ---- */
.emergency { background: var(--steel); color: #fff; }
.emergency .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem; flex-wrap: wrap;
}
.emergency h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3rem; }
.emergency p { color: rgba(255,255,255,.82); margin: 0; max-width: 48ch; }
.emergency .btn { --bg: var(--ember); color: var(--ink); }
.emergency .btn:hover { background: #fff; color: var(--ink); }
.emergency__pulse { display:inline-flex; align-items:center; gap:.6rem; font-family:var(--display); font-weight:600; margin-bottom:.4rem; }
.emergency__dot { width:11px; height:11px; border-radius:50%; background:#7fe0a8; box-shadow:0 0 0 0 rgba(127,224,168,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(127,224,168,.6);} 70%{box-shadow:0 0 0 12px rgba(127,224,168,0);} 100%{box-shadow:0 0 0 0 rgba(127,224,168,0);} }

/* ---- Ablauf (echte Sequenz → Nummerierung berechtigt) ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; }
.step { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--line); }
.step__no { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--copper); }
.step h3 { font-size: 1.18rem; margin: .5rem 0 .35rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---- Über uns ---- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.about__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.about__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.about__card li { display: flex; gap: .75rem; align-items: flex-start; font-size: .98rem; }
.about__card li svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }

/* ---- Kontakt ---- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); }
.contact__info dl { margin: 0; display: grid; gap: 1.25rem; }
.contact__info dt { font-family: var(--display); font-weight: 600; color: var(--copper); font-size: .92rem; margin-bottom: .15rem; }
.contact__info dd { margin: 0; color: var(--ink); }
.contact__info a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact__info a:hover { color: var(--copper); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.alt .form { background: var(--paper); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .72rem .85rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--steel); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--ink-2); margin: .4rem 0 0; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 3rem 0 2rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--ember); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .84rem; color: rgba(255,255,255,.55);
}
.footer-brand { display:flex; align-items:center; gap:.6rem; margin-bottom:.8rem; }
.footer-brand .brand__mark { border-color: var(--ember); color: var(--ember); }
.footer-brand strong { color:#fff; font-family:var(--display); }

/* ---- Mobile Sticky Call Bar ---- */
.mobile-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--copper); color: #fff; text-decoration: none;
  align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding: .95rem; box-shadow: 0 -4px 20px rgba(0,0,0,.18);
}

/* ---- Rechtstext-Seiten ---- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal .wrap { max-width: 760px; }
.legal .placeholder { background: #fff5e8; border-left: 3px solid var(--ember); padding: .2rem .5rem; border-radius: 3px; color: var(--copper-d); font-weight: 600; }
.back-link { display:inline-flex; align-items:center; gap:.4rem; margin-bottom:1.5rem; font-family:var(--display); font-weight:600; text-decoration:none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; }
  .about, .contact { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-call { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 0;
  }
  .nav.open a { padding: .85rem 1.2rem; width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
  .mobile-call { display: flex; }
  body { padding-bottom: 60px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .emergency .wrap { flex-direction: column; align-items: flex-start; }
}
