/* ============================================================
   DUK42.com - Stylesheet
   Mobile-first, ein File, keine Frameworks.
   Aenderungen direkt hier; keine Build-Pipeline noetig.
   ============================================================ */

/* ---- Reset & Basics ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1c1c1c;
  background: #ffffff;
}
a { color: #2a5d8f; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #19405f; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

/* ---- Layout-Container ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 1.25rem;
}

/* ---- Header & Navigation ---- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #1c1c1c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Grosses Logo im Hero (Index-Seiten) */
.hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
@media (min-width: 720px) {
  .hero-logo {
    max-width: 220px;
    margin: 0 0 1.5rem;
  }
}
.nav-toggle {
  display: inline-block;
  background: transparent;
  border: 1px solid #c5c5c5;
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}
.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  gap: 1rem;
}
.nav-list.is-open { display: flex; flex-direction: column; }
.nav-list a {
  color: #1c1c1c;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
}
.nav-list a:hover { color: #2a5d8f; }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    border: none;
    gap: 1.5rem;
  }
}

/* ---- Hero ---- */
.hero {
  background: #f6f1ea;
  padding: 4rem 0 3.5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 2rem;
  max-width: 38rem;
}

/* 2-Spalten-Layout im Hero (Desktop): Text links, Slideshow rechts */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-content .hero-logo { margin: 0 0 1.5rem; }
  .hero-content .hero-sub { max-width: none; }
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e5e5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.slide.is-active {
  opacity: 1;
}
.slideshow-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.15s;
}
.dot:hover { transform: scale(1.2); }
.dot.is-active {
  background: #ffffff;
}
.btn-primary {
  display: inline-block;
  background: #1c1c1c;
  color: #ffffff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.btn-primary:hover { background: #333; color: #ffffff; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #1c1c1c;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #1c1c1c;
}
.btn-secondary:hover { background: #1c1c1c; color: #ffffff; }

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2a5d8f;
  text-decoration: none;
  font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-cta {
  background: #1c1c1c;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

/* ---- Apartment-Cluster (zwei Karten) ---- */
.apartment-cluster {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.cluster-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.75rem;
}
.cluster-meta {
  color: #555;
  font-size: 0.95rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .apartment-cluster {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Amenities (Liste in Sektion Ausstattung) ---- */
.amenities-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.amenities-grid li {
  padding-left: 1.5rem;
  position: relative;
}
.amenities-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a5d8f;
  font-weight: 700;
}
@media (min-width: 600px) {
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-small {
  color: #555;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ---- Distance-Grid (Lage) ---- */
.distance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.distance-item {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.distance-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1c1c;
}
.distance-label {
  color: #555;
  font-size: 0.95rem;
}
@media (min-width: 720px) {
  .distance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Sections ---- */
.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: #fafafa;
}
.lead {
  font-size: 1.1rem;
  max-width: 50rem;
  margin-top: 0;
}

/* ---- Apartment-Features (Liste) ---- */
.apartment-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.apartment-features li {
  padding-left: 1.5rem;
  position: relative;
}
.apartment-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a5d8f;
  font-weight: 700;
}
@media (min-width: 600px) {
  .apartment-features {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Features-Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.feature {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5rem;
}
.feature p { margin: 0; }
@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Kontakt-Grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.contact-block {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5rem;
}
.contact-block p, .contact-block address {
  margin: 0;
  font-style: normal;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Footer ---- */
.site-footer {
  background: #1c1c1c;
  color: #d8d8d8;
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.footer-inner p { margin: 0; }
.footer-inner a {
  color: #d8d8d8;
  text-decoration: underline;
  margin-right: 1.25rem;
}
.footer-inner a:hover { color: #ffffff; }
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---- Sprach-Umschalter ---- */
.lang-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: 0.5rem;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.55;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity 0.15s, background 0.15s;
}
.lang-switcher a:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}
.lang-switcher a.lang-current {
  opacity: 1;
  background: rgba(0, 0, 0, 0.07);
  cursor: default;
}
.lang-switcher .lang-flag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  line-height: 1;
  min-width: 1.4em;
  text-align: center;
}
.lang-switcher .lang-tip {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1c;
  color: #ffffff;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-family: inherit;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
.lang-switcher a:hover .lang-tip,
.lang-switcher a:focus .lang-tip {
  opacity: 1;
}

@media (max-width: 720px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .lang-switcher a {
    padding: 0.3rem 0.35rem;
    font-size: 1rem;
  }
}

/* ---- Rechtliche Seiten (Impressum / Datenschutz) ---- */
.legal-page {
  padding: 3rem 0;
  max-width: 50rem;
}
.legal-page h2 {
  margin-top: 2rem;
}
.legal-page address {
  font-style: normal;
  margin: 0.5rem 0;
}

/* ---- TBD-Platzhalter (Hausordnung & andere Seiten) ---- */
/* Visuell hervorgehobener Hinweis fuer noch nachzuliefernde Apartment-spezifische Daten */
.tbd {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-style: italic;
  font-size: 0.92em;
  border: 1px dashed #ffd966;
}
.legal-page h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

