/* Umland Immobilien – Landingpage
   Farbwerte gemäß CD-Handbuch 2017:
   Grün #009D44 (Pantone 354C) · Gelb #FEEB00 (102C) · Rot #CF2720 (7626C)
   Hellgrau #EBECEC (427C) · Grau #C5C6C6 (429C)
   Schrift: Linux Libertine Slanted (Web: Libertinus Serif kursiv) für Überschriften,
   Arial für Fließtext, Freestyle Script nur für das Motto (als Bilddatei eingebunden) */

:root {
  --ui-gruen: #009D44;
  --ui-gruen-dunkel: #007433;
  --ui-gelb: #FEEB00;
  --ui-rot: #CF2720;
  --ui-hellgrau: #EBECEC;
  --ui-grau: #C5C6C6;
  --ui-text: #3a3a38;
  --ui-text-hell: #5F5E5A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.demo-hinweis {
  background: #444441;
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.demo-hinweis strong { color: var(--ui-gelb); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ui-text);
  line-height: 1.65;
  background: #ffffff;
}

h1, h2, h3 {
  font-family: "Libertinus Serif", "Linux Libertine", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  line-height: 1.25;
  color: #2c2c2a;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.35em; }

p { margin-bottom: 1em; }

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

a { color: var(--ui-gruen-dunkel); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ui-gruen);
  outline-offset: 2px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* Diagonales Gelb-Grün-Band – Signaturelement aus dem CD-Handbuch */
.band {
  height: 10px;
  background: linear-gradient(100deg, var(--ui-gelb) 0%, var(--ui-gelb) 55%, var(--ui-gruen) 55%, var(--ui-gruen) 100%);
}

/* Kopfbereich */
header.site {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--ui-hellgrau);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span {
  font-family: "Libertinus Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #444441;
  white-space: nowrap;
}
.nav ul { display: flex; gap: 1.4rem; list-style: none; }
.nav ul a { text-decoration: none; color: var(--ui-text); font-size: 0.95rem; }
.nav ul a:hover { color: var(--ui-gruen-dunkel); text-decoration: underline; }
.nav ul a[aria-current="page"] { color: var(--ui-gruen-dunkel); font-weight: bold; }
.nav .cta { margin-left: auto; }

.btn {
  display: inline-block;
  background: var(--ui-gruen);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--ui-gruen-dunkel); }
.btn.gelb { background: var(--ui-gelb); color: #2c2c2a; }
.btn.gelb:hover { background: #e8d600; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ui-grau);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero { padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero .slogan { width: min(320px, 70%); margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero .region { font-size: 0.9rem; color: var(--ui-text-hell); margin-bottom: 1.6rem; }
.hero .logohaus { width: min(340px, 80%); margin: 0 auto; }
.hero .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Abschnitte */
section { padding: 3.5rem 0; }
section.grau { background: var(--ui-hellgrau); }
.eyebrow {
  display: inline-block;
  background: var(--ui-gelb);
  color: #2c2c2a;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* Warum Umland */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }

/* Ablauf */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.schritt {
  background: #ffffff;
  border: 1px solid var(--ui-hellgrau);
  border-top: 6px solid var(--ui-gruen);
  padding: 1.4rem 1.3rem;
}
.schritt .nr {
  width: 34px; height: 34px;
  background: var(--ui-gelb);
  color: #2c2c2a;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  margin-bottom: 0.8rem;
}
.schritt p { font-size: 0.95rem; margin: 0; }

/* Karten (Experten, Partner) */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.karte {
  background: #ffffff;
  border: 1px solid var(--ui-grau);
  padding: 1.5rem 1.4rem;
}
.karte.akzent { border-top: 6px solid var(--ui-gelb); }
.karte ul { margin: 0.6rem 0 1rem 1.1rem; font-size: 0.95rem; }
.karte li { margin-bottom: 0.35rem; }

/* Vertrauen */
.vertrauen { border-left: 6px solid var(--ui-gruen); background: #ffffff; padding: 1.4rem 1.5rem; margin-top: 1rem; }
.vertrauen p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.vertrauen p:last-child { margin-bottom: 0; }

/* FAQ */
details {
  background: #ffffff;
  border: 1px solid var(--ui-hellgrau);
  margin-bottom: 0.7rem;
  padding: 0;
}
summary {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-weight: bold;
  font-size: 0.98rem;
  list-style-position: inside;
}
summary:hover { background: var(--ui-hellgrau); }
details p { padding: 0 1.2rem 1rem; font-size: 0.95rem; margin: 0; }

/* Kontakt */
form { display: grid; gap: 0.9rem; max-width: 520px; }
label { font-size: 0.9rem; font-weight: bold; }
input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ui-grau);
  border-radius: 4px;
}
textarea { min-height: 110px; resize: vertical; }
.hinweis { font-size: 0.82rem; color: var(--ui-text-hell); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.adresse p { margin-bottom: 0.4rem; }

/* Fußbereich */
footer.site {
  background: #444441;
  color: var(--ui-hellgrau);
  padding: 2.2rem 0 1.6rem;
  font-size: 0.9rem;
}
footer.site a { color: #ffffff; }
footer.site .zeilen { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
footer.site img { width: 40px; }

/* Angebote – Portalstil-Karten */
.angebote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.angebot-karte {
  background: #ffffff;
  border: 1px solid var(--ui-grau);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  font: inherit;
  text-align: left;
  padding: 0;
}
.angebot-karte:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); transform: translateY(-2px); }
.angebot-bild {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--ui-gruen) 0%, var(--ui-gruen-dunkel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.angebot-bild svg { width: 46%; height: 46%; opacity: 0.9; }
.angebot-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 3px;
}
.angebot-status.reserviert { background: var(--ui-gelb); }
.angebot-status.verkauft { background: var(--ui-grau); color: #ffffff; }
.angebot-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.angebot-preis { font-family: "Libertinus Serif", Georgia, serif; font-style: italic; font-size: 1.35rem; color: #2c2c2a; }
.angebot-ort { font-size: 0.85rem; color: var(--ui-text-hell); }
.angebot-titel { font-size: 1.02rem; font-weight: bold; margin: 0; }
.angebot-eckdaten { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--ui-text-hell); margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--ui-hellgrau); }
.angebot-eckdaten span { white-space: nowrap; }

.energie-chip { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: bold; padding: 0.2rem 0.55rem; border-radius: 3px; color: #ffffff; }

.angebote-teaser-cta { margin-top: 2rem; text-align: center; }

/* Angebot-Detail */
.angebot-detail { border: 1px solid var(--ui-grau); background: #ffffff; margin-top: 2rem; padding: 2rem; }
.angebot-detail-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.angebot-detail-eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.3rem 0; padding: 1.2rem; background: var(--ui-hellgrau); }
.angebot-detail-eckdaten label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ui-text-hell); margin-bottom: 2px; }
.angebot-detail-eckdaten span { font-weight: bold; }
.angebot-schliessen { background: none; border: 1px solid var(--ui-grau); border-radius: 4px; padding: 0.5rem 0.9rem; cursor: pointer; font: inherit; font-size: 0.85rem; }

/* Ansprechpartner-Auswahl */
.kontakt-auswahl { display: grid; gap: 0.7rem; margin: 1rem 0 1.5rem; }
.kontakt-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--ui-grau);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  background: #ffffff;
  text-align: left;
  font: inherit;
}
.kontakt-option:hover { border-color: var(--ui-gruen); }
.kontakt-option.aktiv { border-color: var(--ui-gruen); background: #f2faf4; box-shadow: inset 3px 0 0 var(--ui-gruen); }
.kontakt-option .rolle { font-size: 0.76rem; color: var(--ui-gruen-dunkel); font-weight: bold; text-transform: uppercase; letter-spacing: 0.03em; }
.kontakt-option .kname { font-weight: bold; }
.kontakt-option .kurzprofil { font-size: 0.85rem; color: var(--ui-text-hell); }
.kontakt-option.kein-kontakt .kname { font-style: italic; }

.direktkontakt-panel { border-left: 6px solid var(--ui-gruen); background: #ffffff; padding: 1.3rem 1.4rem; margin-top: 0.5rem; }
.direktkontakt-panel .btn { margin-top: 0.8rem; margin-right: 0.6rem; }

select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ui-grau);
  border-radius: 4px;
  background: #ffffff;
}

/* Responsiv */
@media (max-width: 820px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--ui-hellgrau);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav ul.offen { display: flex; }
  .nav ul li { padding: 0.55rem 0; }
  .menu-toggle { display: block; }
  .nav .cta { display: none; }
  .hero .wrap, .zwei-spalten, .kontakt-grid { grid-template-columns: 1fr; }
  .hero .logohaus { order: -1; width: min(220px, 55%); }
  .schritte { grid-template-columns: 1fr; }
}
