/* ============================================
   EVENT-LANDHAUS-THEME.CSS
   Landhaus-Style – Vor-Ort-Besichtigungs-LPs für Mieter/Bewohner
   Eng angelehnt an https://www.landhaus-seniorenwohngemeinschaft.de/
   -----------------------------------------------
   Zielgruppe: zukünftige Mieter und deren Angehörige (QR-Code vom
   Plakat/Flyer → LP → Anmeldung zum konkreten Besichtigungstermin).
   Mobile-first, knappe Inhalte, Wohnqualität statt Investment.

   Diese Datei wird NUR in Kombination mit dem Template event-landhaus.njk
   geladen (theme: "landhaus" im Event-YAML). Nicht für Investor-LPs.

   Design-DNA:
     • Typo: Cormorant Garamond italic Headlines + Ubuntu Body
       (Ersatz für lizensiertes Minion Pro der Original-Site)
     • Farben: Primary #66533f, Off-White #e4dfdb (Logo-Kachel),
       Body reinweiß, Footer #675340 (medium-brown wie Original)
     • Layout: kein Hero-Overlay, Logo in Kachel oben links auf Bild,
       großes Fassadenbild zwischen Content und Footer.
   ============================================ */

/* ── Font-Import: Ubuntu (Body) + Cormorant Garamond (Headlines) ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
  /* ── Font-Stack Overrides (greifen site-weit über var()) ── */
  --font-body: 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Minion Pro', Georgia, serif;

  /* ── Primary: Landhaus-Brand ── */
  --color-primary: #66533f;
  --color-primary-hover: #4d3e2f;
  --color-primary-light: rgba(102, 83, 63, 0.12);

  /* ── Footer heller als Brown-Theme (matches Landhaus-Original #675340) ── */
  --color-navy: #66533f;
  --color-navy-dark: #66533f;

  /* ── Beige-Töne ── */
  --color-beige: #ede9e6;
  --color-beige-light: #f5f2ef;
  --color-off-white: #f9f7f5;

  /* ── Landhaus-spezifisch ── */
  --color-logo-tile-bg: #e4dfdb;     /* Off-White der Header-Kachel */
  --color-footer-bg: #675340;        /* Footer wie Landhaus-Original */
  --color-headline: #66533f;
  --color-body-text: #666666;
}

/* ── Body: weiß, Ubuntu ── */
body {
  font-family: var(--font-body);
  color: var(--color-body-text);
  background-color: #ffffff;
}

/* ───────────────────────────────────────────────────────────
   TYPOGRAPHIE: editorial, italic Serif für Headlines
   ─────────────────────────────────────────────────────────── */
h1, h2,
.hero__title,
.section-title,
.lp-section__title,
.schedule__intro h2,
.investment-info__header h2,
.family-section__content h2,
.location-section__header h2 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--color-headline);
  letter-spacing: -0.005em;
  line-height: 1.15;
}

h3, h4,
.section__subtitle,
.lp-section__subtitle {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  color: var(--color-headline);
  letter-spacing: 0;
}

/* ───────────────────────────────────────────────────────────
   HERO: full-bleed Bild ohne Farb-Overlay, Logo-Kachel oben
   ─────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 65vh, 720px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
}

/* Dunkles Gradient von unten – nur für Textlesbarkeit,
   KEIN Braun-Overlay wie Brown-Theme.
   Muss stark genug sein, um weiße Headlines über hellen Fassadenbildern
   (z. B. Holzverschalung in der Sonne) lesbar zu halten. */
.lp-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.6) 35%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.1) 85%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Logo-Kachel oben links.
   Kompakt auf Mobile (kein Overlap mit H1), größer ab Tablet. */
.lp-hero__logo-tile {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--color-logo-tile-bg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
}
.lp-hero__logo-tile img {
  display: block;
  width: 100%;
  max-width: 4.5rem;
  height: auto;
}

@media (min-width: 640px) {
  .lp-hero__logo-tile {
    padding: 1.5rem 1.75rem;
    min-width: 9rem;
    min-height: 9rem;
  }
  .lp-hero__logo-tile img {
    max-width: 6.5rem;
  }
}

@media (min-width: 768px) {
  .lp-hero__logo-tile {
    padding: 2.25rem 2.5rem;
    min-width: 11rem;
    min-height: 11rem;
  }
  .lp-hero__logo-tile img {
    max-width: 9rem;
  }
}

/* Hero-Content unten im Bild.
   Text-Shadow als zweite Lesbarkeits-Absicherung, falls Gradient bei sehr
   hellen Fassadenbildern (z. B. weißer Putz in voller Sonne) nicht reicht. */
.lp-hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.25rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55),
               0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .lp-hero__content {
    padding: 3rem 2.5rem 3.5rem;
  }
}

.lp-hero__eyebrow {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  /* Mindestabstand links, damit der Text nicht hinter der Logo-Kachel (ca. 7rem
     breit auf Mobile) verschwindet. Ab 640px wächst die Kachel nach rechts,
     aber der Eyebrow startet dann schon weit unterhalb – kein Overlap mehr. */
  padding-left: 7.5rem;
}

@media (min-width: 640px) {
  .lp-hero__eyebrow {
    padding-left: 0;
  }
}

.lp-hero__title {
  color: #ffffff !important;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.lp-hero__subline {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 40rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.lp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}
.lp-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.lp-hero__meta-item svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #ffffff;
  fill: none;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────────────────
   CTA-BUTTONS
   ─────────────────────────────────────────────────────────── */
.lp-btn,
.lp-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  min-height: 3rem;
}
.lp-btn--primary:hover,
.lp-btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
}
.lp-btn--full {
  width: 100%;
}

/* ───────────────────────────────────────────────────────────
   INHALTS-SEKTIONEN (Wohnqualität, Ablauf, Formular)
   ─────────────────────────────────────────────────────────── */
.lp-section {
  padding: 3rem 1.25rem;
}
@media (min-width: 768px) {
  .lp-section {
    padding: 4.5rem 2rem;
  }
}

.lp-section__inner {
  max-width: 56rem;
  margin: 0 auto;
}
.lp-section--wide .lp-section__inner {
  max-width: 72rem;
}

.lp-section__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.lp-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}
.lp-section__lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-body-text);
  max-width: 42rem;
  margin-bottom: 2rem;
}

.lp-section--alt {
  background-color: #f9f7f5;
}

/* Feature-Grid (3–4 Kacheln Wohnqualität) */
.lp-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .lp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .lp-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.lp-feature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lp-feature__icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.lp-feature__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-headline);
  margin-bottom: 0.25rem;
}
.lp-feature__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-body-text);
}

/* Agenda / Ablauf */
.lp-agenda {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: agenda-counter;
}
.lp-agenda__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(102, 83, 63, 0.15);
  counter-increment: agenda-counter;
}
.lp-agenda__item:last-child {
  border-bottom: 1px solid rgba(102, 83, 63, 0.15);
}
.lp-agenda__item::before {
  content: counter(agenda-counter);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1;
  min-width: 2.25rem;
}
.lp-agenda__item-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-headline);
  margin-bottom: 0.25rem;
}
.lp-agenda__item-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-body-text);
}

/* ───────────────────────────────────────────────────────────
   ANMELDE-FORMULAR (einstufig, mobile-optimiert)
   ─────────────────────────────────────────────────────────── */
.lp-form {
  background: #ffffff;
  border: 1px solid rgba(102, 83, 63, 0.18);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  max-width: 36rem;
  /* linksbündig an lp-section__title ausrichten statt zentriert */
  margin: 2rem 0 0;
}
@media (min-width: 640px) {
  .lp-form {
    padding: 2rem;
  }
}
.lp-form__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--color-headline);
  margin-bottom: 0.5rem;
}
.lp-form__lead {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-body-text);
  margin-bottom: 1.5rem;
}
.lp-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .lp-form__row--split {
    grid-template-columns: 1fr 1fr;
  }
}
.lp-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lp-form__label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-headline);
}
.lp-form__label-required {
  color: #b5493a;
  margin-left: 0.15rem;
}
.lp-form__input,
.lp-form__select,
.lp-form__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(102, 83, 63, 0.3);
  border-radius: 2px;
  background: #ffffff;
  color: #222;
  transition: border-color 0.15s ease;
}
.lp-form__input:focus,
.lp-form__select:focus,
.lp-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.lp-form__textarea {
  min-height: 5rem;
  resize: vertical;
}

.lp-form__timeslots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .lp-form__timeslots {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lp-form__timeslot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(102, 83, 63, 0.3);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.lp-form__timeslot:hover {
  background: rgba(102, 83, 63, 0.04);
  border-color: var(--color-primary);
}
.lp-form__timeslot input[type="radio"] {
  accent-color: var(--color-primary);
}
.lp-form__timeslot input[type="radio"]:checked + span {
  font-weight: 500;
}
.lp-form__timeslot:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.lp-form__checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-body-text);
  margin-bottom: 1rem;
}
.lp-form__checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.lp-form__checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

.lp-form__submit {
  width: 100%;
  margin-top: 0.75rem;
}

.lp-form__status {
  display: none;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.lp-form__status--success {
  background: #eef7ee;
  border: 1px solid #9dc89d;
  color: #2e6b2e;
}
.lp-form__status--error {
  background: #fdecea;
  border: 1px solid #e5b4ab;
  color: #a63a2a;
}

/* Honeypot (unsichtbar) */
.lp-form__honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ───────────────────────────────────────────────────────────
   FASSADENBILD über dem Footer (wie Landhaus-Original)
   ─────────────────────────────────────────────────────────── */
.lp-facility-image {
  width: 100%;
  height: clamp(280px, 42vh, 520px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ───────────────────────────────────────────────────────────
   FOOTER heller (#675340 statt #3d2e1f)
   ─────────────────────────────────────────────────────────── */
.lp-footer {
  background-color: var(--color-footer-bg);
  color: #ffffff;
  font-family: var(--font-body);
  padding: 2.5rem 1.25rem;
}
.lp-footer__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.lp-footer__logo {
  max-width: 7rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.lp-footer__contact {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.lp-footer__contact a {
  color: #ffffff;
  text-decoration: none;
}
.lp-footer__contact a:hover {
  text-decoration: underline;
}
.lp-footer__legal {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lp-footer__legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.lp-footer__legal a:hover {
  text-decoration: underline;
  color: #ffffff;
}

@media (min-width: 768px) {
  .lp-footer {
    padding: 3.5rem 2rem;
  }
  .lp-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
}

/* ───────────────────────────────────────────────────────────
   Override: Brown-Theme-Klassen dürfen nicht durchblitzen
   (falls jemand .hero__overlay trotzdem nutzt)
   ─────────────────────────────────────────────────────────── */
.hero__overlay {
  background: transparent !important;
}
.testimonial-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(102, 83, 63, 0.3) 0%,
    rgba(102, 83, 63, 0.85) 60%,
    rgba(102, 83, 63, 0.95) 100%
  );
}

/* ── Link-Hover, Checkbox-Link ── */
a:hover {
  color: var(--color-primary);
}
