/* Bombach-Immobilien — Design 2026
   Farbwelt: Signalrot #F40909 auf Weiß #FFFFFF (+ neutrale Grautöne für Text) */

:root {
  --red: #F40909;
  --red-dark: #c00707;
  --red-deep: #8c0505;
  --red-tint: #fdf2f2;
  --white: #ffffff;
  --ink: #16181a;
  --ink-soft: #5f666c;
  --line: #e6e7e9;
  --grey-bg: #f7f7f8;
  --dark: #17181a;
  --radius: 4px;
  --wrap: 1140px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.14; margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-family: var(--sans); font-weight: 600; letter-spacing: .01em; }

p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.13rem; color: var(--ink-soft); }

.rule { width: 56px; height: 3px; background: var(--red); border: 0; margin: 0 0 1.8rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 78px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: .87rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--red);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */

/* Hero: Bildausschnitt wie zuvor, Text steht auf schwarzem Verlauf von unten */
.hero {
  position: relative;
  min-height: 800px;
  display: flex;
  align-items: center;
  /* Bildausschnitt nach rechts verschieben:
     --hero-x erhöhen = Haus wandert weiter nach rechts (z. B. 90px, 130px, 200px).
     Die zweite, mittig liegende Bildebene füllt dabei den Rand links auf,
     damit links kein dunkler Streifen entsteht. */
  --hero-x: 130px;
  background-color: #0c0d0e;
  background-image: url("herod.png"), url("hero.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: var(--hero-x) center, center center;
  background-size: cover, cover;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    /* nur noch der durchgehende Verlauf von links nach rechts,
       der weiche Schatten hinter dem Textblock ist entfernt */
    linear-gradient(to right,
      rgba(0,0,0,.78) 0%,
      rgba(0,0,0,.66) 22%,
      rgba(0,0,0,.42) 44%,
      rgba(0,0,0,.28) 66%,
      rgba(0,0,0,.06) 86%,
      rgba(0,0,0,0) 100%);
}
/* Textblock linksbündig in der Inhaltsspalte */
.hero-inner { position: relative; z-index: 2; width: 100%; margin: 0 auto; padding: 60px 28px; }
.hero-inner > * { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 1px 3px rgba(0,0,0,.5), 0 4px 30px rgba(0,0,0,.55); }
.hero .lead { color: #fff; font-size: 1.2rem; max-width: 56ch; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.5); }
.hero .eyebrow { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

.page-hero { padding: 88px 0 72px; background: var(--grey-bg); border-bottom: 3px solid var(--red); }
.page-hero h1 { margin-bottom: 0; }
.page-hero .crumb { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }

/* Unterseiten-Kopf mit Hintergrundbild.
   Verwendung im HTML:
   <section class="page-hero page-hero--image" style="--hero-bg:url('bild.jpg')">
   Pro Seite einfach ein anderes Bild eintragen. */
.page-hero--image {
  position: relative;
  padding: 130px 0 110px;
  background-color: var(--dark);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.page-hero--image::before {
  content: "";
  position: absolute; inset: 0;
  /* gleicher schwarzer Verlauf von links nach rechts wie auf der Startseite */
  background:
    linear-gradient(to right,
      rgba(0,0,0,.78) 0%,
      rgba(0,0,0,.66) 22%,
      rgba(0,0,0,.42) 44%,
      rgba(0,0,0,.28) 66%,
      rgba(0,0,0,.06) 86%,
      rgba(0,0,0,0) 100%);
}
.page-hero--image .wrap { position: relative; z-index: 2; }
.page-hero--image h1 { color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.3); }
.page-hero--image .crumb { color: rgba(255,255,255,.82); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-sand { background: var(--grey-bg); }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: start; }

/* ---------- Kontaktkarte ---------- */

.contact-card {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  position: sticky;
  top: 118px;
  box-shadow: 0 18px 46px rgba(244,9,9,.18);
}
.contact-card h2 { color: #fff; font-size: 1.9rem; }
.contact-card .eyebrow { color: rgba(255,255,255,.85); }
.contact-card .rule { background: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); display: block; margin-bottom: 2px; }
.contact-list a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); }
.contact-list a:hover { color: #fff; border-color: #fff; }
.contact-list .icon { flex: 0 0 20px; margin-top: 4px; color: #fff; }

/* ---------- Leistungs-Karten ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(244,9,9,.12); }
.card .num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--red); display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.45; }

/* Karte mit Foto: <article class="card card-photo">
   → <div class="card-media"><img ...></div><div class="card-body">…</div> */
.card-photo { padding: 0; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-bg); }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card-photo:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 26px 28px; }
.card-body .num { margin-bottom: 8px; }

@supports not (aspect-ratio: 4 / 3) {
  .card-media { height: 220px; }
}

/* ---------- Formular ---------- */

.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 48px 44px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 22px 60px rgba(0,0,0,.06);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244,9,9,.12);
}
.field textarea { min-height: 158px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin: 6px 0 28px; line-height: 1.6; }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--red); flex: 0 0 auto; }

.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: 18px; text-align: center; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: .93rem; }
.form-status.ok { background: #f1f7f2; color: #22603a; border: 1px solid #cfe4d6; }
.form-status.err { background: var(--red-tint); color: var(--red-deep); border: 1px solid #f6cccc; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 2em; font-size: 1.02rem; color: var(--ink); }
.legal p, .legal li { color: #3d4348; font-size: .97rem; line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .5em; }
.legal .quiet { font-size: .9rem; color: var(--ink-soft); }

.legal-block { background: var(--red-tint); border-left: 3px solid var(--red); padding: 26px 30px; border-radius: var(--radius); margin: 0 0 34px; }
.legal-block p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 72px 0 32px; font-size: .93rem; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.site-footer h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--red); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-logo { height: 62px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.65); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  /* auf schmalen Screens bleibt der Ausschnitt mittig */
  .hero { min-height: 620px; background-position: center center, center center; }
  .hero-inner { padding: 48px 28px; }
  /* auf schmalen Screens deckt ein Verlauf von links nicht mehr ab */
  .hero::before,
  .page-hero--image::before {
    background: linear-gradient(115deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 45%, rgba(0,0,0,.5) 75%, rgba(0,0,0,.35) 100%);
  }
  .section { padding: 68px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 112px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 3px solid var(--red);
    padding: 8px 28px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-shell { padding: 32px 22px; }
  .contact-card { padding: 34px 26px; }
  .header-inner { min-height: 86px; }
  .brand img { height: 56px; }
  .nav { top: 86px; }
}
