/* =========================================================
   Donau-Heimstätte – Landingpage
   Markenfarben aus dem Logo:
   - Dunkel/Schrift:  #1A1A1A
   - Grau (Häuser):   #6E6E6E
   - Blau (Welle):    #1F9CEC
   ========================================================= */

/* ---------- Inter – selbst gehostet (DSGVO-konform) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-dark: #1a1a1a;
  --color-text: #2c2c2c;
  --color-muted: #6e6e6e;
  --color-blue: #1f9cec;
  --color-blue-dark: #1580c7;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8fb;
  --color-border: #e6ebf0;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 26, 26, 0.1);
  --radius: 14px;
  --max-width: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}

.section {
  padding: 84px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__lead {
  max-width: 720px;
  color: var(--color-muted);
  font-size: 1.08rem;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-blue);
  color: var(--color-blue-dark);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.header__logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--color-blue-dark);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
  padding: 90px 0 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--color-blue);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: #dfe8f0 url("assets/hero.jpg") center/cover no-repeat;
}

/* Welle als Markenelement unter dem Hero */
.wave {
  display: block;
  width: 100%;
  margin-top: 56px;
  line-height: 0;
}

.wave svg {
  width: 100%;
  height: auto;
}

/* ---------- Feature-/Karten-Grid ---------- */
.grid {
  display: grid;
  gap: 26px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Zentrierter Call-to-Action */
.cta-center {
  text-align: center;
  margin-top: 48px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.12rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(31, 156, 236, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-blue);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* ---------- Ablauf (Schritte) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 16px;
}

.step__num {
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step__num::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Vergleichstabelle ---------- */
.compare {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare__table th,
.compare__table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.98rem;
}

.compare__table thead th {
  font-weight: 700;
  color: var(--color-dark);
  background: var(--color-bg-alt);
}

.compare__table tbody td:first-child {
  font-weight: 600;
  color: var(--color-dark);
}

.compare__table tr:last-child td {
  border-bottom: 0;
}

.compare__us {
  background: rgba(31, 156, 236, 0.06);
  border-left: 2px solid var(--color-blue);
  border-right: 2px solid var(--color-blue);
}

thead .compare__us {
  color: var(--color-blue-dark);
}

.compare .yes,
.compare .no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare .yes::before {
  content: "✓";
  color: #1f9c5a;
  font-weight: 800;
}

.compare .no::before {
  content: "×";
  color: #c0392b;
  font-weight: 800;
  font-size: 1.1em;
}

/* ---------- Modal (Warteliste-Hinweis) ---------- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 38, 0.55);
  backdrop-filter: blur(2px);
}

.modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 38px 34px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(31, 156, 236, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal__icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-blue);
}

.modal__box h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.modal__box p {
  color: var(--color-muted);
  margin-bottom: 14px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--color-dark);
}

/* ---------- Kontakt ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact__details {
  list-style: none;
  margin-top: 28px;
}

.contact__details li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact__details svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact__details a {
  color: var(--color-text);
  font-weight: 500;
}

.contact__details a:hover {
  color: var(--color-blue-dark);
}

.form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form__row {
  margin-bottom: 18px;
}

.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(31, 156, 236, 0.15);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form__hint {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: #c9cfd6;
  padding: 48px 0 28px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer a {
  color: #c9cfd6;
  font-size: 0.95rem;
}

.footer a:hover {
  color: #fff;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #8a929b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Brücken-Abschnitt (Mieter → Verkäufer) ---------- */
.section--bridge {
  background: rgba(31, 156, 236, 0.04);
  border-top: 1px solid rgba(31, 156, 236, 0.15);
  border-bottom: 1px solid rgba(31, 156, 236, 0.15);
  padding: 64px 0;
}

.bridge {
  max-width: 820px;
  padding-left: 28px;
  border-left: 4px solid var(--color-blue);
}

.bridge p {
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-top: 10px;
}

/* ---------- DSGVO-Checkbox im Formular ---------- */
.form__row--check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form__row--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.form__row--check label {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 0;
  cursor: pointer;
}

/* ---------- Rechtsseiten (Impressum/Datenschutz) ---------- */
.legal {
  padding: 64px 0;
  max-width: 800px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal p {
  margin-bottom: 14px;
  color: var(--color-text);
}

.legal ul {
  margin: 0 0 16px 20px;
  color: var(--color-text);
}

.legal ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.placeholder {
  background: #fff7e6;
  border: 1px dashed #e0b341;
  border-radius: 8px;
  padding: 4px 8px;
  color: #8a6400;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .grid--3,
  .grid--4,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__image {
    order: -1;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 60px 0;
  }
  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav .btn {
    margin-top: 12px;
    width: 100%;
  }
  .nav__toggle {
    display: block;
  }
  .grid--3,
  .grid--2,
  .grid--4,
  .steps {
    grid-template-columns: 1fr;
  }
}
