/* ─────────────────────────────────────────────────────────────
   Bree Franz Sanierungsbau, Aachen-Brand
   Designrichtung: RASTER UND FUGE. Das Layout ist selbst ein
   Verlegeraster: alle Felder liegen mit 1 px Fuge nebeneinander.
   Schrift: Archivo Narrow (Display, schmale Grotesk) + IBM Plex Sans.
   Beide lokal als woff2, OFL, kein CDN.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Narrow"; src: url("display.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url("body.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --ink: #101418;
  --ink-2: #4d5761;
  --paper: #ffffff;
  --bg: #e8eaec;
  --fuge: #ccd1d5;
  --fuge-dark: #2b3238;
  --cell-dark: #161b20;
  --accent: #1a4fa0;
  --accent-lite: #7ba3e0;
  --accent-soft: #e7edf7;
  --display: "Narrow", "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --sans: "Plex", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pad: clamp(18px, 2.3vw, 30px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Demo-Banner (bei Live-Schaltung entfernen) ── */
.demo-banner {
  background: var(--ink); color: #d7dde3;
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 9px 16px; line-height: 1.5;
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
}
.db-dot { width: 6px; height: 6px; background: var(--accent-lite); flex: none; }

/* ── Kopf ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fuge);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; flex: none; }
.brand-1 { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-2 { font-family: var(--display); font-weight: 400; font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--ink); border-color: var(--accent); }
.btn-call {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--accent); color: #fff; padding: 11px 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  transition: background .2s;
}
.btn-call:hover { background: #143f83; }
.btn-call svg { width: 16px; height: 16px; flex: none; }

/* ── Das Raster: 1 px Fuge zwischen allen Feldern ── */
.raster {
  display: grid; gap: 1px;
  background: var(--fuge); border: 1px solid var(--fuge);
}
.cell { background: var(--paper); padding: var(--pad); position: relative; min-width: 0; }

/* Fugenkreuz an den Kreuzungspunkten, wie die Verlegekreuze auf dem Bau */
.cross::before {
  content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--accent), var(--accent)) center/100% 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/1.5px 100% no-repeat;
}

/* ── Hero ── */
.hero { padding: clamp(26px, 4vw, 54px) 0 clamp(20px, 3vw, 34px); }
.raster-hero {
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "k k k k k k k p p p p p"
    "h h h h h h h p p p p p"
    "s s s s s s s p p p p p"
    "t t t t a a a p p p p p";
}
.cell-kicker { grid-area: k; padding-top: 16px; padding-bottom: 16px; }
.cell-head   { grid-area: h; padding-top: clamp(14px, 1.6vw, 22px); }
.cell-sub    { grid-area: s; }
.cell-tel    { grid-area: t; text-decoration: none; display: block; transition: background .2s; }
.cell-adr    { grid-area: a; }
.cell-pic    { grid-area: p; padding: 0; overflow: hidden; min-height: 340px; }

.kicker {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 12px; font-weight: 600; color: var(--accent);
}
.hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(29px, 4.3vw, 52px); line-height: 1.0; letter-spacing: 0.005em;
  overflow-wrap: break-word; hyphens: manual;
}
.hero h1 .ort { color: var(--accent); }
.ort { overflow-wrap: break-word; hyphens: manual; }
.cell-sub p { color: var(--ink-2); font-size: clamp(15px, 1.15vw, 16.5px); max-width: 54ch; }

.lbl {
  display: block; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 11px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px;
}
.tel-num {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(21px, 2.5vw, 30px); letter-spacing: 0.01em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cell-tel:hover { background: var(--accent-soft); }
.cell-tel:hover .tel-num { color: var(--accent); }
.adr { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.lnk {
  display: inline-block; margin-top: 10px; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.cell-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 45%; }
.cell-pic figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: rgba(16,20,24,0.78); color: #fff;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 10.5px; padding: 7px 12px;
}

/* ── Abschnitte ── */
.section { padding: clamp(44px, 6vw, 86px) 0; }
.sec-head { max-width: 62ch; margin-bottom: clamp(20px, 2.6vw, 34px); }
.sec-head h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.02; letter-spacing: 0.01em; margin-bottom: 12px;
}
.sec-head p { color: var(--ink-2); font-size: clamp(15px, 1.1vw, 16.5px); }

.raster-4 { grid-template-columns: repeat(4, 1fr); }
.svc .num {
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.svc h3, .pat h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 17px; letter-spacing: 0.07em; margin-bottom: 9px;
}
.svc p, .pat p { font-size: 14.5px; color: var(--ink-2); line-height: 1.58; }
.svc { transition: background .2s; }
.svc:hover { background: #fbfcfd; }

/* ── Dunkles Band: die vier Verlegeraster ── */
.band { background: var(--ink); color: #e6eaee; }
.band .sec-head h2 { color: #fff; }
.band .sec-head p { color: #98a3ad; }
.band .raster { background: var(--fuge-dark); border-color: var(--fuge-dark); }
.band .cell { background: var(--cell-dark); }
.band .cross::before { background:
    linear-gradient(var(--accent-lite), var(--accent-lite)) center/100% 1.5px no-repeat,
    linear-gradient(var(--accent-lite), var(--accent-lite)) center/1.5px 100% no-repeat; }
.band h3 { color: #fff; }
.band .pat p { color: #97a2ac; }
.pat { color: rgba(255,255,255,0.42); transition: color .25s, background .25s; }
.pat:hover { color: var(--accent-lite); background: #1b232b; }
.pat-svg { width: 100%; aspect-ratio: 1 / 1; display: block; margin-bottom: 18px; background: #10151a; }
.pat-svg .pl path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.band-note {
  margin-top: 26px; color: #98a3ad; font-size: 15px; max-width: 60ch;
  border-left: 2px solid var(--accent-lite); padding-left: 16px;
}

/* ── Beispielfotos ── */
.raster-pics { grid-template-columns: repeat(4, 1fr); }
.pic { padding: 0; display: flex; flex-direction: column; }
.pic img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.pic figcaption { margin-top: auto; }
.pic figcaption {
  padding: 11px 14px; font-size: 12px; color: var(--ink-2);
  border-top: 1px solid var(--fuge); letter-spacing: 0.01em;
}

/* ── Kontakt ── */
.raster-kontakt { grid-template-columns: 1.15fr 1fr 1fr; }
.k-tel { text-decoration: none; display: block; transition: background .2s; }
.k-tel:hover { background: var(--accent-soft); }
.tel-num.big { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 14px; }
.k-note p { font-size: 14.5px; color: var(--ink-2); }

/* ── Fuß ── */
.site-footer { border-top: 1px solid var(--fuge); background: var(--paper); padding: 40px 0 34px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-end; }
.foot-brand p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.foot-brand a { color: var(--ink-2); }
.foot-nav { display: flex; gap: 20px; margin-left: auto; }
.foot-nav a, .credit a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  border-bottom: 1px solid var(--fuge); padding-bottom: 2px;
}
.foot-nav a:hover, .credit a:hover { color: var(--accent); border-color: var(--accent); }
.credit { width: 100%; padding-top: 20px; border-top: 1px solid var(--fuge); }

/* ── Mobiler Anruf-Balken ── */
.sticky-call { display: none; }

/* ── Bewegung ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.js .raster-hero .cell { animation: setzen .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
@keyframes setzen { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .raster-hero .cell { animation: none; }
}

/* ── Schmalere Fenster ── */
@media (max-width: 1000px) {
  .main-nav { display: none; }
  .btn-call { margin-left: auto; }
  .raster-4 { grid-template-columns: repeat(2, 1fr); }
  .raster-kontakt { grid-template-columns: 1fr 1fr; }
  .k-note { grid-column: span 2; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  body { padding-bottom: 62px; }
  .raster-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "k" "h" "p" "s" "t" "a";
  }
  .cell-pic { min-height: 0; aspect-ratio: 4 / 3; }
  .site-header { position: static; }
  .head-inner { min-height: 60px; }
  .sticky-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 62px;
    background: var(--accent); color: #fff; text-decoration: none;
    font-family: var(--display); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; font-size: 15px;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.15);
  }
  .sticky-call svg { width: 18px; height: 18px; flex: none; }
}

@media (max-width: 560px) {
  .btn-call span { display: none; }
  .db-dot { display: none; }
  .btn-call { padding: 11px 13px; }
  .raster-4 { grid-template-columns: 1fr; }
  .raster-pics { grid-template-columns: repeat(2, 1fr); }
  .raster-kontakt { grid-template-columns: 1fr; }
  .k-note { grid-column: auto; }
  .pat-svg { margin-bottom: 14px; max-width: 190px; }
  .pic figcaption { padding: 9px 11px; font-size: 11.5px; }
  .foot-nav { margin-left: 0; }
}

/* Rechtstexte (impressum/datenschutz) */
.narrow { max-width: 720px; }
.narrow h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 5vw, 44px); letter-spacing: 0.01em; margin-bottom: 18px; }
.narrow h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; }
.narrow p { margin-bottom: 12px; color: var(--ink-2); }
.narrow a { color: var(--accent); }

/* ── Die eine Haupt-Aktion: eine blaue Fliese im Raster ── */
.cell-tel, .k-tel { background: var(--accent); color: #fff; }
.cell-tel .lbl, .k-tel .lbl { color: rgba(255,255,255,0.72); }
.cell-tel .tel-num, .k-tel .tel-num { color: #fff; }
.cell-tel .lnk, .k-tel .lnk { color: #fff; border-color: rgba(255,255,255,0.6); }
.cell-tel:hover, .k-tel:hover { background: #143f83; }
.cell-tel:hover .tel-num, .k-tel:hover .tel-num { color: #fff; }
.cell-tel.cross::before, .k-tel.cross::before {
  background:
    linear-gradient(#fff, #fff) center/100% 1.5px no-repeat,
    linear-gradient(#fff, #fff) center/1.5px 100% no-repeat;
}
