/* ═══════════════════════════════════════════════════════════════════════════
   RUH-Bau GmbH — statischer Neubau 09/2026
   Ersetzt WordPress 4.7.37 mit X Theme, Cornerstone, revslider und Ninja Forms
   durch reines HTML. Kein CMS, keine Plugins, nichts von Dritten geladen —
   deshalb auch kein Einwilligungsbanner.

   Farben stammen aus der alten Seite: Anthrazit #272727, Rot #d80f0f.
   Mobil zuerst gebaut: Ein Bauunternehmen wird vom Handy aus gesucht, oft
   unterwegs, oft mit einer Hand.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --tinte:      #272727;
  --tinte-weich:#4a4a4a;
  --rot:        #d80f0f;
  --rot-tief:   #a80b0b;
  --papier:     #ffffff;
  --papier-warm:#f5f4f2;
  --linie:      #e3e0dc;
  --grau:       #6a6663;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rand: 1.15rem;
  --max: min(72rem, 100% - 2 * var(--rand));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot-tief); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .55em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.2rem); }
h3 { font-size: clamp(1.08rem, 2.6vw, 1.25rem); font-weight: 600; }
p  { margin: 0 0 1.05em; text-wrap: pretty; }

.huelle { width: var(--max); margin-inline: auto; }
.schmal { max-width: 44rem; }
.marke {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rot); margin: 0 0 .9rem;
}

/* ─── Kopfzeile ────────────────────────────────────────────────────────────
   Auf dem Handy scrollt die Navigation waagerecht statt hinter einem
   Hamburger zu verschwinden: fünf Punkte sind sichtbar besser als ein Menü,
   das man erst öffnen muss. */
.kontaktleiste {
  background: var(--tinte); color: #d8d4d0;
  font-size: .8rem; padding: .5rem 0;
}
.kontaktleiste .huelle { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; }
.kontaktleiste a { color: #d8d4d0; text-decoration: none; }
.kontaktleiste a:hover { color: #fff; }

.kopf {
  position: sticky; top: 0; z-index: 30;
  /* Deckend weiss, nicht durchscheinend: Das Hauszeichen ist ein Foto mit
     weissem Grund — auf einem halbtransparenten Kopf wuerde es als heller
     Block ueber dem durchscheinenden Inhalt stehen. */
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; }
.logo {
  display: flex; align-items: center; gap: .55rem;
  color: var(--tinte); text-decoration: none; white-space: nowrap;
  /* Darf nicht schrumpfen: Der Schriftzug bricht nicht um und wuerde sonst
     unter der danebenliegenden Navigation verschwinden. */
  flex: none;
}
.logo img {
  /* Hoehe fuehrt, Breite folgt — sonst verzerrt das width/height-Attribut.
     Auf dem Handy kleiner: Zeichen und Schriftzug teilen sich die Kopfzeile
     mit der Navigation, die daneben scrollt. */
  height: 2.05rem; width: auto; display: block; flex: none;
}
.logo-wort { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.logo-wort span { color: var(--rot); }
@media (min-width: 40rem) {
  .logo img { height: 2.6rem; }
  .logo-wort { font-size: 1.15rem; }
}

.nav {
  display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none;
  /* min-width: 0 erlaubt dem Flex-Element, schmaler als sein Inhalt zu werden —
     erst dadurch scrollt die Navigation wirklich, statt ueberzulaufen. */
  flex: 0 1 auto; min-width: 0;
  -webkit-overflow-scrolling: touch; margin-right: calc(-1 * var(--rand)); padding-right: var(--rand);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--tinte-weich); text-decoration: none; white-space: nowrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .55rem .6rem; border-radius: 2px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rot); }
@media (min-width: 52rem) { .nav { gap: .4rem; margin-right: 0; padding-right: 0; } .nav a { font-size: .8rem; padding: .55rem .75rem; } }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 3rem; padding: 0 1.4rem;
  background: var(--rot); color: #fff; text-decoration: none;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 0; border-radius: 3px; cursor: pointer; transition: background .2s;
}
.knopf:hover { background: var(--rot-tief); }
/* Der helle Knopf steht mal auf dunklem, mal auf hellem Grund — ohne Rahmen
   verschwindet er auf weiss spurlos (im Kontaktteil passiert, 30.09.2026). */
.knopf--hell { background: #fff; color: var(--tinte); border: 2px solid var(--tinte); }
.knopf--hell:hover { background: var(--tinte); color: #fff; }
.buehne .knopf--hell { border-color: #fff; }
.buehne .knopf--hell:hover { background: var(--papier-warm); color: var(--tinte); border-color: var(--papier-warm); }

/* ─── Bühne ───────────────────────────────────────────────────────────────── */
.buehne { position: relative; background: var(--tinte); color: #fff; overflow: hidden; }
.buehne-bild { position: absolute; inset: 0; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; }
.buehne-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(39,39,39,.90) 0%, rgba(39,39,39,.84) 55%, rgba(39,39,39,.76) 100%);
}
@media (min-width: 44rem) {
  .buehne-bild::after { background: linear-gradient(100deg, rgba(39,39,39,.94) 0%, rgba(39,39,39,.80) 45%, rgba(39,39,39,.30) 100%); }
}
.buehne .huelle { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.buehne h1 { color: #fff; max-width: 17ch; }
.buehne h1 em { font-style: normal; color: #ff5a4a; }
.buehne p { color: #d6d2ce; max-width: 46ch; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ─── Abschnitte ──────────────────────────────────────────────────────────── */
.teil { padding: clamp(2.8rem, 7vw, 5.5rem) 0; }
.teil--warm { background: var(--papier-warm); }
.teil--dunkel { background: var(--tinte); color: #d6d2ce; }
.teil--dunkel h2, .teil--dunkel h3 { color: #fff; }

.gitter { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
@media (min-width: 46rem) { .gitter--2 { grid-template-columns: 1fr 1fr; } .gitter--3 { grid-template-columns: repeat(3, 1fr); } }

.zahlen { display: grid; gap: 1.4rem; }
@media (min-width: 38rem) { .zahlen { grid-template-columns: repeat(3, 1fr); } }
.zahl b { display: block; font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--rot); }
.zahl span { display: block; margin-top: .4rem; font-size: .92rem; color: var(--grau); }

/* Leistungsliste — Haken statt Aufzählungspunkten, zweispaltig ab Tablet */
.leistungen { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 46rem) { .leistungen { grid-template-columns: 1fr 1fr; gap: .6rem 2rem; } }
.leistungen li { position: relative; padding-left: 1.7rem; }
.leistungen li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .7rem; height: .38rem; border-left: 2px solid var(--rot); border-bottom: 2px solid var(--rot);
  transform: rotate(-45deg);
}
.leistungen strong { display: block; }
.leistungen small { color: var(--grau); font-size: .93rem; line-height: 1.5; display: block; }

.karte { border-top: 3px solid var(--rot); padding-top: 1rem; }
.karte h3 { margin-bottom: .35rem; }
.karte p { color: var(--grau); font-size: .97rem; margin-bottom: .8rem; }

/* ─── Galerie ─────────────────────────────────────────────────────────────── */
.galerie { display: grid; gap: .55rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .galerie { grid-template-columns: repeat(3, 1fr); gap: .7rem; } }
@media (min-width: 62rem) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie figure { margin: 0; overflow: hidden; background: var(--papier-warm); border-radius: 2px; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .45s cubic-bezier(.22,.7,.3,1); }
.galerie figure:hover img { transform: scale(1.05); }

/* ─── Kontakt ─────────────────────────────────────────────────────────────── */
.kontakt { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .kontakt { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.kontaktdaten { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.kontaktdaten li { display: grid; grid-template-columns: 5rem 1fr; gap: .7rem; align-items: baseline; }
.kontaktdaten .art { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rot); }
.kontaktdaten a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
/* Auf dem Handy sind Telefon und Mail die wichtigsten Knöpfe der ganzen Seite. */
.rufknoepfe { display: grid; gap: .6rem; margin-top: 1.4rem; }
@media (min-width: 30rem) { .rufknoepfe { grid-auto-flow: column; justify-content: start; } }

/* ─── Rechtsseiten ────────────────────────────────────────────────────────── */
.rechtstext { max-width: 46rem; }
.rechtstext h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-top: 2.2rem; }
.rechtstext h3 { font-size: 1.03rem; margin-top: 1.5rem; }
.rechtstext ul { padding-left: 1.15rem; }
.rechtstext li { margin-bottom: .3rem; }
.rechtstext p { font-size: .98rem; }

/* ─── Fuß ─────────────────────────────────────────────────────────────────── */
.fuss { background: var(--tinte); color: #a5a09c; padding: 2.8rem 0 2rem; font-size: .9rem; }
.fuss a { color: #d6d2ce; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-gitter { display: grid; gap: 1.8rem; }
@media (min-width: 46rem) { .fuss-gitter { grid-template-columns: 1.5fr 1fr 1fr; } }
.fuss h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rot); margin: 0 0 .8rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.fuss-unten { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
