/* =========================================================
   Hengl Bedachungen GmbH — Design System
   Architektonisch · monochrom · Kupfer-Akzent · editorial
   ========================================================= */

:root {
  --ink:        #15191c;
  --ink-2:      #1d2327;
  --slate:      #424d55;
  --muted:      #707a81;
  --line:       #d9dde0;     /* Haarlinie hell */
  --line-soft:  #eceef0;
  --bg:         #ffffff;
  --bg-soft:    #f4f5f6;
  --bg-paper:   #f0f1f2;
  --copper:     #b06a40;
  --copper-dk:  #95572f;
  --white:      #ffffff;

  --maxw: 1240px;
  --radius: 3px;
  --shadow: 0 22px 60px -28px rgba(21,25,28,.42);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.04rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; font-weight: 650; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ---------- Kicker (Index-Label mit Haarlinie) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem;
  font-weight: 700; color: var(--copper); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--copper); }
.eyebrow--light { color: #cf9a78; }

/* ---------- Buttons (kantig, architektonisch) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.7em;
  border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 1.05em 2.1em; font-size: .98rem; }
.btn--accent { background: var(--ink); color: #fff; }
.btn--accent:hover { background: var(--copper); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn__icon { width: 1.05em; height: 1.05em; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #dfe3e5; }
.section__head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 70px); }
.section__title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1.1rem; }
.section__intro { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }
.section__intro--light { color: #9aa3a8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(21,25,28,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--slate); position: relative; padding: .4em 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: var(--copper); transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: .4rem; font-size: .85rem; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 28px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (editorial, links ausgerichtet) ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-bottom: 70px; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,16,18,.92) 0%, rgba(13,16,18,.7) 38%, rgba(13,16,18,.15) 100%);
}
.hero__content { position: relative; padding-block: clamp(60px, 9vw, 120px); max-width: 720px; }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 650; margin-bottom: 1.5rem; letter-spacing: -.03em; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #d5dadd; max-width: 560px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
/* schmale Faktenleiste am Hero-Fuß */
.hero__facts {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(13,16,18,.35); backdrop-filter: blur(4px);
}
.hero__facts .container { display: flex; flex-wrap: wrap; }
.hero__fact { padding: 18px 0; padding-right: 48px; margin-right: 48px; border-right: 1px solid rgba(255,255,255,.14); }
.hero__fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__fact b { display: block; font-size: 1.02rem; letter-spacing: .01em; }
.hero__fact span { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #9aa3a8; }

/* ---------- Grid layouts ---------- */
.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.grid-2 p { margin-bottom: 1.15rem; color: var(--slate); }
.grid-2 .section__title { margin-bottom: 1.4rem; }

/* Bild mit Kupfer-Eckrahmen (architektonisch) */
.figure { position: relative; }
.figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.figure::before {
  content: ""; position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1.5px solid var(--copper); border-radius: var(--radius); z-index: -1;
}

/* ---------- Service-Kacheln (Haarlinie, Linien-Icon) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  position: relative; padding: 44px 38px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); transition: background .3s;
}
.card::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--copper); transition: width .35s var(--ease); }
.card:hover { background: var(--bg-soft); }
.card:hover::before { width: 100%; }
.card__num { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.card__icon { margin: 20px 0 22px; }
.card__icon svg { width: 38px; height: 38px; stroke: var(--copper); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.28rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ---------- Trust-Streifen ---------- */
.trust { background: var(--bg-paper); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; flex-direction: column; gap: .3rem; padding: 34px 8px 34px 0; }
.trust__item + .trust__item { padding-left: 36px; border-left: 1px solid var(--line); }
.trust__item strong { font-size: 1.08rem; }
.trust__item span { color: var(--muted); font-size: .9rem; }

/* ---------- Checklist ---------- */
.checklist { margin: 0 0 1.6rem; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 6px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 4vw, 64px); align-items: start; }
.contact__cards { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 20px; align-items: center;
  padding: 26px 4px; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: padding-left .25s var(--ease), color .25s;
}
a.contact-card:hover { padding-left: 14px; }
.contact-card__icon { grid-row: 1 / 3; }
.contact-card__icon svg { width: 26px; height: 26px; stroke: var(--copper); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-card__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #8b949a; }
.contact-card__value { font-size: 1.16rem; color: #fff; font-weight: 500; }

.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: .45rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #aab2b7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; text-transform: none; letter-spacing: normal; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: .85em 1em; width: 100%;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--copper); background: rgba(255,255,255,.09); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .82rem; color: #8b949a; font-weight: 400; text-transform: none; letter-spacing: normal; }

/* ---------- Footer ---------- */
.footer { background: #0e1214; color: #b5bdc1; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 64px 28px; flex-wrap: wrap; }
.footer__logo { height: 60px; filter: invert(1) brightness(1.7); }
.footer__claim { margin-top: 14px; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; color: #7e878c; }
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__nav a { color: #b5bdc1; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; transition: color .2s; }
.footer__nav a:hover { color: var(--copper); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .84rem; color: #767f84; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(54px, 7vw, 96px) 0; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.3rem; margin: 2.3rem 0 .7rem; }
.legal p, .legal li { color: var(--slate); margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--copper); text-decoration: underline; }
.legal .placeholder { background: #f7ede4; border: 1px dashed var(--copper); border-radius: 3px; padding: .1em .5em; color: var(--copper-dk); font-style: italic; }
.legal .back { display: inline-flex; align-items: center; gap: .5em; margin-bottom: 2rem; color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.legal .back:hover { color: var(--copper); }

/* ---------- Service cards as links ---------- */
a.card { display: block; color: inherit; }
.card__more {
  display: inline-flex; align-items: center; gap: .45em; margin-top: 20px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--copper);
}
.card__more::after { content: "\2192"; transition: transform .25s var(--ease); }
.card:hover .card__more::after { transform: translateX(5px); }

/* ---------- Detail-Seiten Kopf (Subhero) ---------- */
.subhero { background: var(--ink); color: #e7eaec; padding: clamp(36px,6vw,64px) 0 clamp(48px,7vw,80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5em; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8b949a; margin-bottom: 30px; }
.crumbs a { color: #8b949a; transition: color .2s; }
.crumbs a:hover { color: var(--copper); }
.crumbs span { color: #5b6469; }
.subhero__icon svg { width: 56px; height: 56px; stroke: var(--copper); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.subhero__title { font-size: clamp(2rem,4.6vw,3.3rem); margin: 22px 0 1rem; }
.subhero__lead { color: #aab3b8; max-width: 62ch; font-size: 1.14rem; }

/* ---------- Faktenbox ---------- */
.factbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; background: var(--bg); }
.factbox h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.factbox ul { display: grid; gap: .7rem; }
.factbox li { position: relative; padding-left: 1.5rem; color: var(--slate); font-size: .98rem; }
.factbox li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--copper); }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band .section__title { margin-inline: auto; }
.cta-band__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Weitere Leistungen ---------- */
.more__links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 8px; }
.more__links a { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.more__links a::after { content: "\2192"; color: var(--copper); }
.more__links a:hover { background: var(--bg); color: var(--copper); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav {
    position: fixed; inset: 96px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 28px 24px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .cards { grid-template-columns: 1fr 1fr; }
  .more__links { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--reverse > div:first-child { order: 2; }
  .figure { margin-right: 18px; margin-bottom: 18px; }
  .contact { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(even) { padding-left: 36px; border-left: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header__inner { height: 78px; }
  .brand__logo { height: 48px; }
  .nav { inset: 78px 0 auto 0; }
  .cards { grid-template-columns: 1fr; }
  .more__links { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__fact { padding-right: 28px; margin-right: 28px; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
