/* Bartoschek Handwerks-Service — Innenausbau & Sanierung.
   Modern, aufgeräumt, schnell. Keine externen Fonts/Skripte/Tracker (DSGVO-freundlich).
   Markenfarben aus dem Logo: Grün (Haus) + Blau (Schriftzug). */

:root {
  --bg: #f3f6f6;
  --surface: #ffffff;
  --ink: #16212c;
  --muted: #5b6876;
  --line: #e6ebee;
  --green: #2b7a66;
  --green-d: #1f5b4c;
  --green-soft: #e9f4f0;
  --blue: #1877c9;
  --blue-d: #135fa3;
  --blue-soft: #e8f1fb;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --maxw: 1160px;
  --shadow-sm: 0 2px 8px rgba(22,40,55,.06);
  --shadow: 0 18px 44px rgba(22,40,55,.10);
  --shadow-lg: 0 30px 70px rgba(22,40,55,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s;
}
header.site.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.nav .logo img { height: 48px; width: auto; }
.nav .links { display: flex; align-items: center; gap: 4px; }
.nav .links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.nav .links a:hover { color: var(--green-d); background: var(--green-soft); }
.nav .links a.cta { background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 18px rgba(24,119,201,.28); }
.nav .links a.cta:hover { background: var(--blue-d); }
.navtoggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.navtoggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
body.nav-open .navtoggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .navtoggle span:nth-child(2) { opacity: 0; }
body.nav-open .navtoggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .navtoggle { display: flex; }
  .nav .links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  body.nav-open .nav .links { opacity: 1; transform: none; pointer-events: auto; }
  .nav .links a { padding: 13px 14px; font-size: 16px; }
  .nav .links a.cta { text-align: center; margin-top: 6px; }
  .nav .logo img { height: 40px; }
  .nav { height: 68px; }
  header.site { scroll-padding-top: 68px; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer; font-size: 16px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(24,119,201,.36); }
.btn.primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ── Hero ── */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 85% -10%, #2f8a73 0%, var(--green-d) 40%, #19506e 78%, var(--blue-d) 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 8%, transparent 72%); }
.hero .wrap { position: relative; padding: 92px 24px 104px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; font-weight: 800; color: #cdeee3;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 14px; background: rgba(255,255,255,.06); }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); font-weight: 800; margin: 20px 0 18px; max-width: 17ch; }
.hero .sub { font-size: clamp(16px, 2.2vw, 21px); color: #e6f1ee; max-width: 620px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 38px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: #eaf5f1; }
.pills span::before { content: "✓"; font-weight: 800; color: #9fe6cf; }

/* ── Sections ── */
section { padding: 88px 0; }
.shead { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.kicker { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; }
.shead h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 10px 0 12px; font-weight: 800; }
.shead p { color: var(--muted); margin: 0; font-size: 17px; }

/* ── Leistungen ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d3e6df; }
.card .ico { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(145deg, var(--green-soft), #f4faf8); color: var(--green-d); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; box-shadow: inset 0 0 0 1px #dcebe5; }
.card h3 { margin: 0 0 9px; font-size: 21px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── Warum wir ── */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.why .item { display: flex; gap: 16px; align-items: flex-start; }
.why .item .b { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue-d); display: grid; place-items: center; font-size: 22px; }
.why .item h3 { margin: 4px 0 5px; font-size: 18px; }
.why .item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Ablauf (Timeline) ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .n { counter-increment: step; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, var(--green), var(--green-d)); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; margin-bottom: 14px; }
.step .n::before { content: counter(step); }
.step h3 { margin: 0 0 5px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── CTA-Band / Kontakt ── */
.contact { background: var(--bg); }
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-lg); padding: 52px;
  background: radial-gradient(120% 140% at 90% 0%, #2f8a73, var(--green-d) 45%, var(--blue-d)); box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 60%); }
.cta-band .inner { position: relative; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 8px; }
.cta-band p { margin: 0; color: #e7f1ee; max-width: 52ch; font-size: 17px; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 34px; }
.info .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.info .box .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; }
.info .lbl { font-weight: 800; color: var(--green-d); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; }
.info .val { margin-top: 5px; font-size: 18px; color: var(--ink); word-break: break-word; }
.placeholder { background: #fff7eb; border: 1px dashed #d98a2b; border-radius: 7px; padding: 1px 8px; color: #97590f; font-weight: 600; font-size: .92em; }

/* ── Footer ── */
footer.site { background: #131f28; color: #b3bfccf2; padding: 40px 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer.site .brand { color: #fff; font-weight: 800; }
footer.site a { color: #d6e0ee; text-decoration: none; font-weight: 600; }
footer.site a:hover { color: #fff; }
footer.site .legal { display: flex; gap: 20px; }
footer.site small { color: #8593a4; }

/* ── Scroll-Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; }
[data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none !important; }
}

/* ── Rechtstext-Seiten ── */
.legalpage { background: var(--surface); }
.legalpage .wrap { padding: 60px 24px 84px; max-width: 820px; }
.legalpage h1 { color: var(--green-d); font-size: 32px; margin: 0 0 8px; }
.legalpage h2 { color: var(--green-d); font-size: 21px; margin: 34px 0 6px; }
.legalpage address { font-style: normal; }
.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; color: var(--blue-d); text-decoration: none; font-weight: 700; }
