/* ===== Base / Tokens ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand: #0a6cff;
  --brand-2: #00d4ff;
  --ink: #0d1b2a;
  --muted: #475569;
  --bg: #f8fafc;
  --surface: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(2, 12, 27, .08);
  --wrap: 1100px;
  --gutter: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

/* Typography */
h1,
h2,
h3 {
  margin: 0 0 .4em;
  line-height: 1.2;
  letter-spacing: .2px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: .5em 0 0;
  color: var(--muted);
}

.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 72px 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ zentriert vertikal */
  align-items: center;     /* ✅ zentriert horizontal */
  text-align: center;
  color: #fff;
  background: radial-gradient(120% 100% at 50% 70%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 60%),
    linear-gradient(0deg, rgba(10, 108, 255, .25), rgba(10, 108, 255, .25));
  padding: 0 24px;
}

.logo {
  width: 180px;
  margin-bottom: 20px; /* Etwas mehr Abstand, damit’s harmonisch aussieht */
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
}

.hero-text {
  margin: 0; /* Entfernt eventuelle unnötige Abstände */
}

.hero-text h1,
.hero-text p {
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}


.cta-chip {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease, box-shadow .18s;
}

.cta-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}


.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, 8px);
  }

  60% {
    transform: translate(-50%, 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down {
    animation: none;
  }
}

/* ===== Über uns ===== */
/* --- About Section --- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-text h2 {
  color: #003366;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    order: -1; /* Bild oben auf Mobile */
  }

  .about-text {
    text-align: center;
  }

  .about-text p {
    text-align: left;
  }
}


/* ===== Service (Cards) ===== */
#board-service {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

#board-service h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}

.service-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;      /* ⬅︎ zentriert auch die letzte Reihe */
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
    flex: 1 1 260px;              /* Basisbreite */
  max-width: 320px;             /* Obergrenze je Karte */
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(2, 12, 27, .12);
}

.service-card h3 {
  margin: 2px 0 20px;
  font-size: 1.08rem;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  color: #475569;
  font-size: .98rem;
}

.price-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 6px 10px;
  border-radius: 999px;
}

/* ===== Leasing ===== */
#leasing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #003366;
  text-align: center;
  margin-bottom: 28px;
}

.leasing-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.subhead {
  margin: 0 0 10px;
  font-size: 1.1rem;
}


/* Desktop-Tabellen */
.leasing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 1rem;
}

.leasing-table th,
.leasing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.leasing-table th {
  color: var(--muted);
  font-weight: 600;
}

/* Mobile-Cards */
.lease-cards {
  display: none;
}

/* ===== Leasing Tabellen-Ausrichtung fix ===== */

/* Spalten gleichmäßig verteilen */
.leasing-table th:nth-child(2),
.leasing-table td:nth-child(2),
.leasing-table th:nth-child(3),
.leasing-table td:nth-child(3) {
  text-align: center;
}

/* Mittelspalte etwas schmaler, damit sie optisch mittig sitzt */
.leasing-table th:nth-child(2),
.leasing-table td:nth-child(2) {
  width: 33%;
}

/* Erste Spalte leicht breiter für Textausgleich */
.leasing-table th:first-child,
.leasing-table td:first-child {
  width: 34%;
}

/* Untere Tabelle (Saisonmiete) ebenfalls ausbalancieren */
#leasing .leasing-wrap:last-of-type th:nth-child(2),
#leasing .leasing-wrap:last-of-type td:nth-child(2) {
  text-align: center;
  width: 33%;
}

/* Saisonmiete-Titel zentrieren */
#leasing .subhead {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-weight: 600;
}

@media (max-width:700px) {
  .leasing-table {
    display: none;
  }

  .lease-cards {
    display: grid;
    gap: 12px;
  }

  .lease-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .lease-card .head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
  }

  .lease-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    margin-top: 6px;
  }
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Kontakt Section ===== */
#contact {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 80px 0;
}

#contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  margin-top: 0px;
}

#contact p, #contact a {
color: #fff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Karte */
.contact-map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Textbereich */
.contact-info h2 {
  color: #003366;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 18px;
}

.contact-info p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.contact-info a {
  color: #0a6cff;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Adresse links, Telefon+Mail rechts */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.contact-left,
.contact-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-hours {
  margin-top: 10px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-map {
    order: -1; /* Map zuerst auf Mobile */
    height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-info p {
    text-align: left;
  }
}

.contact-hours {
  margin-top: 10px;
}

.contact-hours h3 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.contact-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-hours .day {
  font-weight: 600;
  color: #fff;
  width: 200px;
}

.contact-hours .time {
  color: #fff;
  text-align: right;
  flex: 1;
}




/* ===== Footer ===== */
footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  gap: 8px;
  text-align: center;
}

.footer-inner a {
  color: #93c5fd;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Focus sichtbar */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Reduce Motion Parallax guard */
@media (prefers-reduced-motion: reduce) {
  .hero-img {
    transform: none !important;
  }
}

/* ===== Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #ffffff;
  padding: 28px 36px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popupFadeIn 0.5s ease;
}

.popup-box h2 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 14px;
}

.popup-box p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.5;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #000;
}

@keyframes popupFadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .popup-box {
    padding: 24px;
  }
}

    body {
      background: #f8fafc;
      color: #0d1b2a;
      font-family: "Poppins", sans-serif;
      margin: 0;
    }

    .legal-container {
      max-width: 900px;
      margin: 100px auto;
      padding: 0 20px;
      line-height: 1.6;
    }

    h1 {
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      color: #003366;
      margin-bottom: 20px;
      text-align: center;
    }

    h2 {
      font-size: 1.2rem;
      color: #0d1b2a;
      margin-top: 36px;
    }

    p {
      color: #475569;
      margin-top: 6px;
    }

    a {
      color: #0a6cff;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    