/* ==========================================================================
   Beispielseite: Muster Bedachungen AG (fiktiv)
   Schiefergrau + Ziegelrot, kräftige Condensed-Schrift
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --slate: #1e2329;
  --slate-2: #282e36;
  --slate-3: #39414b;
  --tile: #c2462b;
  --tile-dark: #a13a22;
  --tile-soft: #f6e3dd;
  --paper: #f4f1ec;
  --white: #ffffff;
  --text: #1e2329;
  --muted: #5b626b;
  --line: #dcd5cb;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
a { color: var(--tile-dark); }
:focus-visible { outline: 3px solid #e9a23b; outline-offset: 3px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.5rem; line-height: 1.1; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.sec { padding-block: clamp(60px, 9vw, 104px); }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--slate); color: #c9cfd6; }
.sec--dark h2, .sec--dark h3 { color: var(--white); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--head); font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tile);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.sec--dark .kicker, .hero .kicker, .page-hero .kicker { color: #ef8a6f; }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.sec-head p { font-size: 1.125rem; color: var(--muted); }
.sec--dark .sec-head p { color: #b5bcc4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .75em 1.4em;
  border: 2px solid transparent; border-radius: 3px;
  font-family: var(--head); font-size: 1.1875rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; line-height: 1.1;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--tile { background: var(--tile); color: var(--white); }
.btn--tile:hover { background: var(--tile-dark); color: var(--white); }
.btn--outline { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--dark { background: var(--slate); color: var(--white); }
.btn--dark:hover { background: var(--slate-3); color: var(--white); }
.btn--white { background: var(--white); color: var(--slate); }
.btn--white:hover { background: var(--paper); color: var(--slate); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--head); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.logo-text span { margin-top: 3px; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; margin-right: -8px;
  border: 0; background: transparent; color: var(--slate); cursor: pointer;
}
.site-nav ul { list-style: none; }
.site-nav a { text-decoration: none; }
.nav-phone { display: none; }

@media (max-width: 899.98px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 18px; }
  .site-nav li a {
    display: block; padding: 14px 2px; border-bottom: 1px solid var(--line);
    font-family: var(--head); font-size: 1.375rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--slate);
  }
  .site-nav li a[aria-current="page"] { color: var(--tile); }
  .site-nav .btn { width: 100%; margin-top: 16px; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 34px; }
  .site-nav ul { display: flex; gap: 30px; }
  .site-nav li a {
    position: relative; padding: 6px 0;
    font-family: var(--head); font-size: 1.1875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate);
  }
  .site-nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--tile); transform: scaleX(0); transition: transform .2s; }
  .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--slate); color: #c9cfd6; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--tile) 0 14px, var(--tile-dark) 14px 28px);
}
.hero-grid { display: grid; gap: 36px; align-items: center; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px); }
.hero h1 { color: var(--white); font-size: clamp(3rem, 11vw, 5.5rem); line-height: .95; margin-bottom: 22px; }
.hero h1 span { color: #ef8a6f; }
.hero-lead { max-width: 33em; font-size: clamp(1.0625rem, 2.3vw, 1.25rem); color: #d3d8de; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #e7eaee; }
.hero-facts .icon { width: 22px; height: 22px; color: #ef8a6f; }
.hero-art { width: 100%; max-width: 560px; margin-inline: auto; }

@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }

/* Notfall-Leiste */
.alert-strip { background: var(--tile); color: var(--white); }
.alert-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 16px; font-weight: 500; }
.alert-inner .icon { width: 28px; height: 28px; }
.alert-inner p { margin: 0; flex: 1 1 260px; font-size: 1.0625rem; }
.alert-inner strong { font-weight: 600; }
.alert-inner a { color: var(--white); font-family: var(--head); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.alert-inner a:hover { text-decoration: underline; }

/* ---------- Leistungen (Karten) ---------- */
.services { display: grid; gap: 2px; list-style: none; background: var(--line); border: 2px solid var(--line); }
.service {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 26px 28px; background: var(--white);
  transition: background-color .2s;
}
.service:hover { background: #fffaf8; }
.service-num { position: absolute; top: 24px; right: 24px; font-family: var(--head); font-size: 1.125rem; font-weight: 600; color: #b9b1a6; }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; background: var(--tile-soft); color: var(--tile); }
.service-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.service h3 { margin: 0; color: var(--slate); }
.service p { color: var(--muted); }
.service a.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 700; font-size: 1.0625rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--tile-dark); }
.service a.more .icon { width: 18px; height: 18px; transition: transform .2s; }
.service a.more:hover .icon { transform: translateX(3px); }

@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Dachaufbau ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.panel-dark { margin: 0; padding: clamp(20px, 4vw, 36px); background: var(--slate); }
.panel-dark figcaption { margin-top: 12px; font-size: .875rem; color: #9aa3ad; }
.split h2 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.split .lead { font-size: 1.125rem; color: var(--muted); }

.checks { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { width: 24px; height: 24px; color: var(--tile); margin-top: 1px; }

@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: 28px; list-style: none; counter-reset: s; }
.steps li { position: relative; padding-top: 18px; border-top: 3px solid var(--slate-3); }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  display: block; margin-bottom: 8px;
  font-family: var(--head); font-size: 3.5rem; font-weight: 700; line-height: 1; color: var(--tile);
}
.steps h3 { color: var(--white); margin-bottom: 8px; }
.steps p { color: #b5bcc4; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* ---------- Über uns ---------- */
.values { list-style: none; display: grid; gap: 16px; }
.value { display: flex; gap: 16px; padding: 22px; background: var(--white); border-left: 4px solid var(--tile); }
.value .icon { width: 28px; height: 28px; color: var(--tile); }
.value h3 { font-size: 1.375rem; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: 1rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--tile); color: var(--white); }
.cta-inner { display: grid; gap: 24px; align-items: center; padding-block: clamp(44px, 7vw, 72px); }
.cta-inner h2 { color: var(--white); font-size: clamp(2.125rem, 5.5vw, 3.25rem); margin-bottom: 8px; }
.cta-inner p { font-size: 1.125rem; color: #fde9e3; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { background: var(--slate); color: #c9cfd6; position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--tile) 0 12px, var(--tile-dark) 12px 24px); }
.page-hero .wrap { padding-block: clamp(40px, 7vw, 76px); }
.crumbs { display: flex; gap: 8px; list-style: none; margin-bottom: 18px; font-size: .9375rem; color: #9aa3ad; }
.crumbs a { color: #d3d8de; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #6b7480; }
.page-hero h1 { color: var(--white); font-size: clamp(3rem, 10vw, 5rem); line-height: .95; margin-bottom: 16px; }
.page-hero p { max-width: 38em; font-size: 1.1875rem; color: #d3d8de; }

/* Sprungmarken */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 26px; }
.chips a {
  display: inline-block; padding: 7px 14px; border: 1px solid #4a535e;
  font-family: var(--head); font-size: 1.0625rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: #e7eaee; text-decoration: none;
}
.chips a:hover { border-color: var(--tile); background: var(--tile); color: var(--white); }

/* Leistungsdetails */
.detail { display: grid; gap: 24px; padding-block: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.detail:first-child { padding-top: 0; }
.detail:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-icon { display: grid; place-items: center; width: 88px; height: 88px; background: var(--slate); color: #ef8a6f; }
.detail-icon .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.detail h2 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 10px; }
.detail p { color: var(--muted); max-width: 40em; }
.detail .checks { margin: 18px 0 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .detail .checks { grid-template-columns: 1fr 1fr; gap: 10px 28px; } }
@media (min-width: 900px) { .detail { grid-template-columns: 120px 1fr; gap: 36px; } .detail-icon { width: 120px; height: 120px; } .detail-icon .icon { width: 58px; height: 58px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--head); font-size: 1.375rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.75rem; line-height: 1; color: var(--tile); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info-cards { display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); }
.info-card { display: flex; gap: 16px; padding: 22px; background: var(--white); }
.info-card > div { flex: 1; }
.info-card .icon { width: 28px; height: 28px; color: var(--tile); margin-top: 2px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.info-card p, .info-card address { margin: 0; font-style: normal; color: var(--muted); }
.info-card a { font-weight: 600; color: var(--slate); }
.info-card--alert { background: var(--slate); color: #c9cfd6; }
.info-card--alert h3 { color: var(--white); }
.info-card--alert p { color: #c9cfd6; }
.info-card--alert a { color: var(--white); font-family: var(--head); font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; }
.info-card--alert .icon { color: #ef8a6f; }

.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours td { padding: 3px 0; color: var(--muted); }
.hours td:last-child { white-space: nowrap; padding-left: 12px; }
.hours td:last-child { text-align: right; color: var(--slate); font-weight: 500; }

.form { padding: clamp(22px, 4vw, 36px); background: var(--paper); border-top: 4px solid var(--tile); }
.form h2 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9688rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cbc3b7; border-radius: 2px;
  background: var(--white); font: inherit; color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tile); box-shadow: 0 0 0 3px rgba(194, 70, 43, .18); }
.field-row { display: grid; gap: 0 14px; }
.form-hint { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.form .btn { width: 100%; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; } }

.map-placeholder { margin-top: 48px; height: clamp(240px, 44vw, 480px); border: 2px solid var(--line); }
.map-caption { margin-top: 10px; font-size: .875rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #15191e; color: #9aa3ad; font-size: .9688rem; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 40px; }
.site-footer h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 12px; letter-spacing: .06em; }
.site-footer a { color: #e7eaee; text-decoration: none; }
.site-footer a:hover { color: #ef8a6f; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer .logo-text span { color: #9aa3ad; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid #2c333b; font-size: .875rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Anrufleiste (Farben) ---------- */
.callbar { background: var(--slate); }
.callbar .btn { min-height: 50px; font-size: 1.125rem; }
