/* Brinkmann Bau — Header, Hero, Sektionen */

/* ---------- Header ---------- */
.topbar {
  background: var(--anthracite);
  color: var(--chalk-soft);
  font-size: 0.8rem;
}

.topbar .shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.4rem;
}

.topbar a {
  color: var(--chalk);
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Kein backdrop-filter (Containing-Block-Falle fürs Mobile-Menü) */
  background: var(--concrete);
  border-bottom: 2px solid var(--anthracite);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-content: center;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 1.5rem;
  border-radius: var(--radius);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-word {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.1rem);
}

.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  padding-block: 0.4rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  white-space: nowrap;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem 0.2rem;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--anthracite);
  transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-fast);
}

@media (max-width: 56rem) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-content: center;
    background: var(--anthracite);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease, visibility 0s linear var(--duration-normal);
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.3rem;
    text-align: center;
  }

  .main-nav a {
    font-family: var(--display);
    font-size: 2.2rem;
    text-transform: uppercase;
    color: var(--chalk);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 110;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--chalk);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--chalk);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0;
}

.hero h1 {
  font-size: var(--text-h1);
  max-width: 9em;
  margin-top: 0.8rem;
}

.hero-row {
  display: grid;
  gap: var(--space-block);
  margin-top: 1.6rem;
  align-items: end;
}

@media (min-width: 56rem) {
  .hero-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
}

.hero-facts strong {
  color: var(--ink);
}

/* Hero-Bild als Schalungstafel */
.hero-board {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  position: relative;
}

.hero-board .img-frame {
  aspect-ratio: 21 / 9;
  border: 2px solid var(--anthracite);
}

@media (max-width: 40rem) {
  .hero-board .img-frame {
    aspect-ratio: 16 / 10;
  }
}

.img-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--concrete-2);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.js .img-frame[data-reveal-img] img {
  transform: scale(1.1);
}

.hero-board-tag {
  position: absolute;
  top: -1rem;
  right: clamp(1rem, 4vw, 3rem);
  padding: 0.6rem 1.1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: rotate(2deg);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--anthracite);
}

/* ---------- Sektionskopf ---------- */
.sec-head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: var(--space-block);
}

.sec-head h2 {
  font-size: var(--text-h2);
  max-width: 16em;
}

@media (min-width: 56rem) {
  .sec-head--split {
    grid-template-columns: minmax(0, 1.6fr) auto;
    align-items: end;
  }
}

/* ---------- Leistungen (dunkel) ---------- */
.services-grid {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

@media (min-width: 42rem) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 62rem) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-cell {
  background: var(--anthracite);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
  transition: background var(--duration-normal) ease;
}

.service-cell:hover {
  background: var(--anthracite-2);
}

.service-cell .s-num {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--red);
}

.service-cell h3 {
  font-size: var(--text-h3);
}

.service-cell p {
  font-size: 0.92rem;
  color: var(--chalk-soft);
}

/* ---------- Referenz-Kacheln ---------- */
.ref-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
}

@media (min-width: 42rem) {
  .ref-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 62rem) {
  .ref-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ref-card {
  border: 2px solid var(--anthracite);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) ease;
}

.ref-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--red);
}

.ref-card .img-frame {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border-bottom: 2px solid var(--anthracite);
}

.ref-card img {
  transition: transform 600ms var(--ease-out);
}

.ref-card:hover img {
  transform: scale(1.06);
}

.ref-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.ref-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.ref-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.ref-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Zahlen ---------- */
.stats {
  background: var(--concrete-2);
  border-block: 2px solid var(--anthracite);
}

.stats .shell {
  display: grid;
}

@media (min-width: 56rem) {
  .stats .shell {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 56rem) {
  .stat-item {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-inline: clamp(1.2rem, 2vw, 2.2rem);
  }

  .stat-item:first-child {
    padding-left: 0;
  }

  .stat-item:last-child {
    border-right: 0;
  }
}

.stat-item:last-child {
  border-bottom: 0;
}

.stat-num {
  font-family: var(--display);
  font-size: var(--text-stat);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.stat-num sup {
  font-size: 0.4em;
  color: var(--steel);
}

.stat-label {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 26ch;
}

/* ---------- Feature-Duo (Alles aus einer Hand / 3D) ---------- */
.feature-duo {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

@media (min-width: 48rem) {
  .feature-duo {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  border: 2px solid var(--anthracite);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1.6rem, 1.3rem + 1.5vw, 2.6rem);
  position: relative;
  overflow: clip;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--hazard);
}

.feature-card h3 {
  font-size: var(--text-h3);
  margin-block: 0.6rem;
}

.feature-card p {
  color: var(--ink-soft);
}

.feature-card .f-note {
  margin-top: 1rem;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  gap: var(--space-block);
}

@media (min-width: 56rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.about-copy h2 {
  font-size: var(--text-h2);
  margin-block: 0.8rem 1.2rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-copy strong {
  color: var(--ink);
}

.about-media .img-frame {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--anthracite);
}

.about-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}

.about-list li::before {
  content: "▪";
  color: var(--red);
  flex: 0 0 auto;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-block);
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

.contact h2 {
  font-size: var(--text-h2);
  margin-block: 0.8rem 1rem;
}

.contact-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--anthracite-2);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  font-size: 0.98rem;
}

.contact-card .c-label {
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  margin-bottom: 0.15rem;
}

.contact-card a {
  color: #ff6b6b;
  font-weight: 700;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--anthracite-2);
  color: var(--chalk-soft);
  overflow: clip;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-block);
  border-bottom: 1px solid var(--line-dark);
}

.footer-word {
  font-family: var(--display);
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--chalk);
  line-height: 1;
}

.footer-word em {
  color: var(--red);
  font-style: normal;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.8rem;
  font-size: 0.92rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--chalk);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--chalk);
}

/* Referenz-Teaser (Startseite): nur Bild + Titel */
.ref-card--teaser .ref-body h3 span {
  color: var(--red);
  transition: transform var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.ref-card--teaser:hover .ref-body h3 span {
  transform: translateX(4px);
}

/* Schlanker Leistungs-Verweis */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border: 2px solid var(--anthracite);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem) clamp(1.3rem, 1.1rem + 1.2vw, 2.2rem);
}

.feature-strip p {
  max-width: 56ch;
  font-size: 0.98rem;
}
