@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500&display=swap');

/* ----------------------------------------
   Basis
----------------------------------------- */

:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0f766e;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
  gap: 12px;
}

.center {
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

/* flex container im Header */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo + Wortmarke */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 30px;
  width: auto;
  margin-bottom: -2px;
}

/* "hardtstay" + "Apartment Tostedt" */
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: "Quicksand", system-ui, sans-serif;
  white-space: nowrap;
}

/* hardt + stay: ein Wort, 2 Gewichte */
.brand-text .marke {
  display: inline-flex;
}

.brand-text .hardt,
.brand-text .stay {
  font-size: 22px;
}

.brand-text .hardt {
  font-weight: 300;     /* light */
}

.brand-text .stay {
  font-weight: 500;     /* medium */
}

/* "Apartment Tostedt" */
.subline {
  font-size: 16px;
  font-weight: 400;
  color: #475569;
}

/* Navigation Desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 60px;    /* Abstand nach "Apartment Tostedt" */
}

.nav a {
  font-size: 15px;
  white-space: nowrap;
}

/* Anfrage-Button im Header */
.nav .btn-outline {
  padding: 8px 18px;
  border-radius: 999px;
  border-width: 2px;
}

/* ----------------------------------------
   Header – Mobile
----------------------------------------- */

@media (max-width: 768px) {

  .site-header {
    padding: 6px 0;
  }

  /* Header: 2 Zeilen
     1: Logo + Text
     2: Navigation (inkl. Anfrage rechts)
  */
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    height: 26px;
    margin-bottom: -2px;
  }

  .brand-text .hardt,
  .brand-text .stay {
    font-size: 20px;
  }

  .subline {
    font-size: 14px;
  }

  /* Navigation nimmt die ganze Breite darunter ein */
  .nav {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
    justify-content: flex-start;
  }

  .nav a {
    padding: 0;
  }

  /* Anfrage-Button am rechten Rand in derselben Zeile
     wie die anderen Nav-Links (wenn Platz),
     sonst sauber in die nächste Zeile.
  */
  .nav .btn-outline {
    margin-left: auto;
  }
}

/* ----------------------------------------
   Typografie & Buttons
----------------------------------------- */

h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

@media (min-width: 900px) {
  h1 { font-size: 38px; }
}

.section h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.lead {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
  font-size: 15px;
}

.meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ecfeff;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
  background: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.5);
}

.btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
}

.btn-ghost:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #0f172a;
  border-color: var(--accent);
}

.btn-outline:hover {
  background: rgba(15, 118, 110, 0.06);
  transform: translateY(-1px);
}

.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

/* Auf Handy: Buttons in .actions untereinander, volle Breite */

.actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
    font-size: 15px;
    padding: 11px 18px;
  }
}

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

.hero {
  padding: 110px 0 90px;
  color: var(--fg);
}

.hero-image {
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.18)),
    url("assets/wohnen1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .grid2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.hero-layout {
  align-items: center;
}

/* Hero-Panel (linke Karte) */

.hero-panel {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  max-width: 480px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-bullets {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Hero-Card rechts */

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

/* Kurzüberblick im Hero */

.hero-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 14px;
  color: #334155;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-features svg {
  width: 20px;
  height: 20px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fineprint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

/* ----------------------------------------
   Kurzüberblick-Box (unter Hero)
----------------------------------------- */

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-top: 12px;
}

.kv-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 18px;
  height: 18px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 1.6;
}

.kv-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kv-main {
  font-size: 14px;
  font-weight: 600;
}

.kv-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ----------------------------------------
   Sections, Karten, Grids
----------------------------------------- */

.section {
  padding: 60px 0;
}

.section.alt {
  background: #f8fafc;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.card.small {
  padding: 16px;
}

.card h3 {
  margin-top: 0;
  font-size: 18px;
}

.bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  color: #475569;
}

.bullets li + li {
  margin-top: 4px;
}

.quote {
  font-size: 14px;
  color: #475569;
  margin: 8px 0 0;
}

/* ----------------------------------------
   Galerie
----------------------------------------- */

.gallery,
.highlight-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.highlight-gallery {
  margin-top: 24px;
  margin-bottom: 12px;
}

.gallery a,
.highlight-gallery a {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.gallery img,
.highlight-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery a:hover img,
.highlight-gallery a:hover img {
  transform: scale(1.03);
}

.gallery .label,
.highlight-gallery .label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 12px;
}

/* Versteckte Galerie für Lightbox */
.gallery-hidden {
  display: none;
}

/* ----------------------------------------
   Ausstattung / Amenities
----------------------------------------- */

.amenities {
  margin-top: 28px;
}

.amenities h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  margin-top: 10px;
}

.amenity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}

.amenity-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.amenity-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
}

.amenity-label {
  font-size: 14px;
  color: #475569;
}

/* ----------------------------------------
   Kalender / Preisblock / Formular
----------------------------------------- */

.calendar-header {
  margin-top: 16px;
  margin-bottom: 8px;
}

.cal-label {
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.calendar-grid button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 0;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.calendar-grid button.past {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.calendar-grid button.booked {
  background: #fecaca;
  color: #7f1d1d;
  border-color: #fca5a5;
  cursor: not-allowed;
}

.calendar-grid button.selected-start,
.calendar-grid button.selected-end {
  background: var(--accent);
  color: #ecfeff;
}

.calendar-grid button.selected-range {
  background: #ccfbf1;
  color: #0f766e;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}

.address-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 8px;
}

@media (max-width: 600px) {
  .address-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-row label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.error-text {
  min-height: 16px;
  margin: 2px 0 0;
  font-size: 12px;
  color: #b91c1c;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #b91c1c;
  background-color: #fef2f2;
}

.field.has-error label {
  color: #b91c1c;
}

.price-line {
  margin-top: 12px;
  font-size: 14px;
  color: #0f172a;
}

/* Datenschutz / Hausregeln Boxen */

#field-privacy,
#field-rules {
  margin-top: 14px !important;
  padding: 12px 16px !important;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

#field-privacy label,
#field-rules label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.form-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.form-link:hover {
  color: #0b4f4a;
}

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

.site-footer {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
  color: #64748b;
}

/* ----------------------------------------
   Lightbox
----------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.lb-close { top: 8px; right: 8px; }
.lb-prev  { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 8px; top: 50%; transform: translateY(-50%); }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* ----------------------------------------
   Hausregeln-Modal
----------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  max-width: 640px;
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  padding: 20px 22px;
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 20px;
  margin: 0;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-body p {
  font-size: 14px;
  color: var(--muted);
}

.modal-body h3 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 15px;
}

.modal-body ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 14px;
  color: #475569;
}

.modal-body li + li {
  margin-top: 3px;
}

/* ----------------------------------------
   Responsives Feintuning
----------------------------------------- */

@media (max-width: 700px) {
  h1 { font-size: 30px; }
  .hero { padding: 60px 0; }
  .calendar-grid button { padding: 8px 0; }
}

@media (max-width: 600px) {
  .gallery img,
  .highlight-gallery img {
    height: 150px;
  }

  .gallery,
  .highlight-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 92vw;
  }

  .calendar-grid button {
    font-size: 12px;
  }
}

/* =========================================
   NAVI-LINKS: Button-Optik (nur Desktop)
   ========================================= */
@media (min-width: 769px) {
  /* Alle Navi-Links außer dem Anfrage-Button */
  .nav a:not(.btn-outline) {
    position: relative;
    padding: 6px 10px;             /* etwas „Button-Padding“ */
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
      background 0.15s ease,
      color 0.15s ease,
      box-shadow 0.15s ease,
      border-color 0.15s ease;
  }

  .nav a:not(.btn-outline):hover {
    background: rgba(15, 118, 110, 0.06);  /* leicht petrol hinterlegt */
    border-color: rgba(148, 163, 184, 0.8);/* feiner Rahmen */
    box-shadow: 0 0 0 1px rgba(241, 245, 249, 0.9);
    color: #0f172a;
  }
}

/* =========================================
   KURZÜBERBLICK – Transparent wie Hero-Panel
   ========================================= */
.section.alt {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(2px);
  border-radius: 24px;
  padding: 50px 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* einzelne Icons + Text im Kurzüberblick ebenfalls leicht transparent */
.kv-grid {
  background: transparent;
}

/* =========================================
   Kurzüberblick-Karte wie "Ferienwohnung"-Panel
   ========================================= */
.hero-card {
  background: rgba(255, 255, 255, 0.86);   /* gleiche Transparenz wie .hero-panel */
  border-radius: 24px;
  padding: 24px 24px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  border: 1px solid transparent;          /* Rand optisch zurücknehmen */
}
