/* =========================================================================
   Ferienhaus Mainzerhaus – Wohnen auf Zeit
   Helles, freundliches Erscheinungsbild. Mobile-First.
   Bewusst durchgehend hell gehalten (kein Dunkelmodus), damit die Seite
   auf jedem Gerät einladend und leicht wirkt.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Grundflächen – hell und luftig */
  --page:        #ffffff;
  --soft:        #f2f8fb;   /* zartes Himmelblau als Wechselfläche */
  --sand:        #fdf8ef;   /* warmer Sandton */
  --card:        #ffffff;

  /* Schrift */
  --ink:         #234450;   /* freundliches Tiefblau statt Schwarz */
  --ink-soft:    #5c7784;
  --line:        #dde8ee;

  /* Akzente */
  --sea:         #2b7fa4;   /* Wasser/Himmel – Hauptfarbe */
  --sea-dark:    #1f6183;
  --sea-pale:    #e4f1f7;
  --sun:         #e5a133;   /* Sonne / gelbe Markise – Akzent */
  --sun-pale:    #fdf1dc;

  --good:        #3f8b5f;
  --good-pale:   #e3f3e8;
  --busy:        #c06033;
  --busy-pale:   #fbeadf;

  --radius:   16px;
  --radius-s: 10px;
  --shadow:   0 18px 40px -26px rgba(35, 68, 80, 0.42);
  --shadow-s: 0 6px 18px -12px rgba(35, 68, 80, 0.45);

  --maxw: 1120px;
  --measure: 38rem;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
  font-weight: 600;
  margin: 0;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin: 0; }
a { color: var(--sea-dark); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.7rem;
}

.lead {
  font-size: clamp(1.05rem, 2.1vw, 1.18rem);
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------- Sektionen ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--soft); }
.section-sand { background: var(--sand); }

.section-head { max-width: var(--measure); margin-bottom: 2.25rem; }
.section-head p { margin-top: 0.7rem; color: var(--ink-soft); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--sun-pale);
  flex: 0 0 auto;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.1rem 1.35rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--sea-dark); border-color: var(--sun); }
.nav-desktop { display: none; }
@media (min-width: 780px) { .nav-desktop { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--sea-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sun { background: var(--sun); color: #3d2a08; }
.btn-sun:hover { background: #d3912a; }

.btn-quiet {
  background: #fff;
  color: var(--sea-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-quiet:hover { background: var(--sea-pale); }

.btn-block { width: 100%; }

/* ---------- Hero: Haus groß im Vordergrund, Text daneben ---------- */
.hero {
  background: linear-gradient(to bottom, var(--soft), #fff);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-bild {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-bild img {
  width: 100%;
  height: clamp(240px, 42vw, 430px);
  object-fit: cover;
}

.hero-text h1 { margin-bottom: 0.8rem; }
.hero-text .lead { margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-badges span {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--sea-pale);
  color: var(--sea-dark);
  font-weight: 500;
}

/* ---------- Beschreibung ---------- */
.beschreibung-text p { color: var(--ink); max-width: var(--measure); }
.beschreibung-text p + p { margin-top: 1.1rem; }

/* ---------- Fotos ---------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.galerie-grid figure {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-s);
  position: relative;
}
.galerie-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.galerie-grid figure:hover img { transform: scale(1.05); }
.galerie-grid figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fff;
}
@media (min-width: 760px) {
  .galerie-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
  .galerie-grid figure:first-child img { height: calc(100% - 42px); min-height: 300px; }
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(28, 52, 62, 0.88);
  display: none; align-items: center; justify-content: center;
  z-index: 120; padding: 1.5rem;
}
.lightbox.aktiv { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-s); }
.lightbox-schliessen {
  position: absolute; top: 1rem; right: 1.25rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: #fff; border: none; border-radius: 50%;
  color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Überblick / Ausstattung ---------- */
.ausstattung-liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ausstattung-liste li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: 0.97rem;
}
.ausstattung-liste li::before {
  content: "✓";
  position: absolute;
  left: 0.95rem; top: 0.75rem;
  color: var(--good);
  font-weight: 700;
}

/* ---------- Preise ---------- */
.preis-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 34rem;
}
.kosten-zeile {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.kosten-zeile .posten { font-size: 0.98rem; flex: 1 1 auto; min-width: 0; }
.kosten-zeile .wert {
  flex: 0 0 auto; font-size: 1rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.kosten-summe {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-top: 1.3rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-s);
  background: var(--sea-pale);
}
.kosten-summe .label {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--sea-dark); font-weight: 700;
}
.kosten-summe .betrag {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 600; color: var(--sea-dark);
  font-variant-numeric: tabular-nums;
}
.kosten-meta {
  margin-top: 1.2rem; font-size: .87rem; color: var(--ink-soft);
  display: grid; gap: .3rem;
}
.kosten-meta strong { color: var(--ink); }

.personen-hinweis {
  margin-top: 1.2rem;
  background: var(--sun-pale);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius-s);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: var(--ink);
}

/* Verfügbarkeits-Streifen innerhalb der Preise */
.verfuegbarkeit-status {
  display: flex; align-items: center; gap: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--good);
  border-radius: var(--radius-s);
  padding: 1rem 1.25rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
}
.verfuegbarkeit-status:has(.status-punkt.belegt) { border-left-color: var(--busy); }
.status-punkt {
  width: .8rem; height: .8rem; border-radius: 50%;
  flex: 0 0 auto; background: var(--ink-soft);
}
.status-punkt.frei  { background: var(--good); box-shadow: 0 0 0 5px var(--good-pale); }
.status-punkt.belegt { background: var(--busy); box-shadow: 0 0 0 5px var(--busy-pale); }

/* ---------- Buchungsanfrage / Bewerbermappe ---------- */
.anfrage-intro { max-width: var(--measure); margin-bottom: 2rem; }
.anfrage-intro .willkommen {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--sea-dark);
  margin-bottom: .6rem;
}

.formular {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  max-width: 46rem;
}

.form-block { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.form-block:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.form-block > h3 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 1.1rem;
}

.feld { margin-bottom: 1.1rem; }
.feld > label, .frage > .frage-text {
  display: block;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.feld input, .feld textarea, .feld select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px var(--sea-pale);
}
.feld textarea { resize: vertical; min-height: 6rem; }

.felder-2 { display: grid; gap: 0 1.1rem; }
@media (min-width: 560px) { .felder-2 { grid-template-columns: 1fr 1fr; } }
.felder-3 { display: grid; gap: 0 1.1rem; }
@media (min-width: 560px) { .felder-3 { grid-template-columns: 1fr 2fr; } }

/* Ja/Nein-Fragen */
.frage {
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
}
.frage:last-child { border-bottom: none; }
.frage-text { font-size: .95rem; }
.optionen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.optionen label {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
  cursor: pointer;
  background: #fff;
}
.optionen label:hover { border-color: var(--sea); background: var(--sea-pale); }
.optionen input { accent-color: var(--sea); }
.optionen input:checked + span { font-weight: 600; color: var(--sea-dark); }

.zustimmung {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--soft);
  border-radius: var(--radius-s);
  padding: 1rem 1.15rem;
  font-size: .88rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.zustimmung input { margin-top: .28rem; accent-color: var(--sea); flex: 0 0 auto; }

.form-status {
  font-size: .93rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-s);
  display: none;
  margin-top: 1rem;
}
.form-status.erfolg { display: block; background: var(--good-pale); color: var(--good); }
.form-status.fehler { display: block; background: var(--busy-pale); color: var(--busy); }

.kontakt-direkt {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.kontakt-direkt strong { color: var(--ink); }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--sea-dark);
  color: rgba(255,255,255,.88);
  padding: 2.5rem 0 2rem;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.site-footer .brand { color: #fff; }
.site-footer .brand::before { box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Rechtsseiten ---------- */
.legal-page main { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { margin-bottom: 1.25rem; }
.legal-page h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.legal-page p { margin-top: .4rem; }

.platzhalter-hinweis {
  background: var(--sun-pale);
  border: 1px solid #f0d9ab;
  border-radius: var(--radius-s);
  padding: 1rem 1.15rem;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.block-hinweis {
  font-size: .88rem;
  color: var(--sea-dark);
  background: var(--sea-pale);
  border-radius: var(--radius-s);
  padding: .6rem .9rem;
  margin-bottom: 1.1rem;
}

/* ---------- Probewohnen ---------- */
.probewohnen-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) {
  .probewohnen-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
}
.probewohnen-text p { color: var(--ink); max-width: var(--measure); }
.probewohnen-text p + p { margin-top: 1rem; }

.probewohnen-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--sun);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  text-align: center;
}
.pw-preis {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--sea-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pw-einheit {
  display: block;
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: .35rem;
}
.pw-gutschrift {
  margin: 1.25rem 0;
  padding: .9rem 1rem;
  background: var(--sun-pale);
  border-radius: var(--radius-s);
  font-size: .87rem;
  color: var(--ink);
  text-align: left;
}

.vorlauf-hinweis {
  margin-top: .7rem;
  font-size: .87rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
