/* =========================
   Variablen
   ========================= */
:root {
  --gelb: #fff59d;
  --hell: #ffffff;
  --max-width: 1100px;
  --border-radius: 10px;
}

/* =========================
   Dark-Mode explizit deaktivieren
   ========================= */
@media (prefers-color-scheme: dark) {
  html, body {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  header, main, footer,
  .info-section, .card,
  .gallery-item, .modal-content,
  .header-table, .lightbox {
    background-color: inherit !important;
    color: #000 !important;
  }
}

/* =========================
   Reset / Grundlayout
   ========================= */
* {
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background: #f5f5f5;
}

a {
  color: #000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =========================
   Container
   ========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================
   Header
   ========================= */
header {
  background: var(--hell);
  border-bottom: 3px solid var(--gelb);
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 0 0.4rem;
  text-align: center;
}

.header-top h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
}

.logo-image {
  max-width: 100%;
  height: auto;
  margin: 0.4rem 0 0.8rem;
}

/* =========================
   Tabellarischer Kopfbereich
   (Adresse / Kontakte / Logos / Hausbild)
   ========================= */
.header-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 1.6rem;
  border-collapse: collapse;
  line-height: 1.5;
  color: #000;
  background: transparent;
}

.header-table td {
  border: none;
  padding: 6px 10px;
  vertical-align: top;
}

.header-table .address-cell {
  font-size: 1.05rem;
  padding-bottom: 8px;
}

.header-table .image-cell {
  width: 45%;
  text-align: right;
}

.header-table .image-cell img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.header-table .logo-cell {
  padding-top: 8px;
}

.header-table .logo-cell img {
  height: 60px;
  margin-right: 16px;
  vertical-align: middle;
}

.header-table .info-cell {
  background: var(--gelb);
  padding: 10px 14px;
}

.header-table .info-icon {
  width: 35px;
  vertical-align: middle;
  margin-right: 10px;
}

/* auf mobilen Geräten: Bild unter den Text schieben */
@media (max-width: 820px) {
  .header-table,
  .header-table tr,
  .header-table td {
    display: block;
    width: 100%;
  }

  .header-table .image-cell {
    text-align: center;
    margin-top: 0.8rem;
  }

  .header-table .image-cell img {
    max-width: 100%;
  }
}

/* =========================
   Hero (falls du zusätzlich noch das Grid verwendest)
   ========================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.2rem 0 1.8rem;
  align-items: center;
}

.hero-text p {
  margin: 0.3rem 0;
  font-size: 0.98rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Kontakt zweispaltig (Label / Wert) */
.hero-contact {
  display: grid;
  gap: 0.25rem 0;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px auto;
  align-items: start;
}

.contact-label {
  font-weight: 700;
  padding-right: 0.5rem;
  white-space: nowrap;
}
.contact-value a {
  text-decoration: none;
}
.contact-value a:hover {
  text-decoration: underline;
}

/* =========================
   Badges / Hinweise (Icon + Text)
   ========================= */
.badge-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0 0 1.3rem;
  font-size: 0.95rem;
}

.badge-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-logos img {
  height: 70px;
  width: auto;
}

/* 2-Spalten-Infobox (z.B. „Ruhige Toplage…“) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.25rem 0 0.8rem;
  border: 1px solid #999;
  background: #fff;
}

.info-td-icon {
  width: 60px;
  padding: 0.6rem;
  border-right: 1px solid #999;
  text-align: center;
  vertical-align: middle;
}

.info-td-text {
  padding: 0.8rem 1.5rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

/* =========================
   Hauptbereich
   ========================= */
main {
  background: var(--gelb);
  padding: 2rem 0 3rem;
}

.section-title {
  text-align: center;
  margin: 1.0rem 1;
  font-size: 2.2rem !important;         /* groß und dominant */
  font-weight: 700 !important;          /* richtig kräftig */
  color: #000 !important;               /* schwarz */
  letter-spacing: 0.5px;
}

.section-title span {
  font-size: inherit !important;        /* span übernimmt H1-Größe */
  font-weight: inherit !important;
}

/* Karten / Appartements */
.appartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--hell);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.card-subtitle {
  font-size: 0.9rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
  text-align: justify;
}

.card-prices {
  margin-top: 0.7rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.5rem;
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-row span:first-child {
  font-weight: 500;
}

/* Bilder + Button innerhalb Karte */
.card-media {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5rem;
  object-fit: cover;
  cursor: pointer;
}

.gallery-button {
  margin-top: 0.6rem;
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.85rem;
  cursor: pointer;
}

.gallery-button:hover {
  background: #f0f0f0;
}

/* Info-Blöcke */
.info-section {
  background: var(--hell);
  border-radius: var(--border-radius);
  padding: 1.3rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 0.95rem;
}

.info-section h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.info-section p {
  margin: 0.2rem 0;
  text-align: justify;
}

.info-section ul {
  margin: 0.3rem 0 0.2rem;
  padding-left: 1.1rem;
}

.info-section li {
  margin-bottom: 0.15rem;
}

/* Laufband / Ticker */
.ticker {
  margin: 1.5rem 0 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  background: var(--gelb);
  border-radius: 999px;
  padding: 0.5rem 0;
}

.ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
  font-weight: 600;
  font-size: 0.95rem;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* =========================
   Galerie (Umgebung)
   ========================= */
.gallery {
  margin-top: 2rem;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.gallery-item {
  text-align: center;
  font-size: 0.85rem;
}

.gallery-item img {
  width: 100%;
  height: 180px;         /* ← einheitliche Höhe */
  object-fit: cover;     /* ← Bild füllt Rahmen sauber */
  border-radius: 8px;
  margin-bottom: 0.4rem;
  display: block;
}

.gallery-row-large .gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

/* =========================
   FAQ-Bereich
   ========================= */
#faq {
  background: #fffde7;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem 1.5rem 2rem;
  margin-top: 2rem;
  font-size: 0.96rem;
}

#faq h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

#faq .faq-list {
  margin: 0;
  padding: 0;
}

#faq .faq-list dt {
  font-weight: 700;
  margin: 1rem 0 0.25rem;
  line-height: 1.45;
  color: #000;
}

#faq .faq-list dd {
  margin: 0 0 0.25rem 2rem;
  padding: 0;
  line-height: 1.5;
  color: #000;
}

#faq .faq-list dd + dd {
  margin-top: 0.15rem;
}

#faq .faq-list dd + dt,
#faq .faq-list dt + dt {
  margin-top: 1rem;
}

/* =========================
   Footer
   ========================= */
footer {
  background: #212121;
  color: #fff;
  font-size: 0.9rem;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links a,
.footer-link {
  color: #f1f1f1;
  text-decoration: none;
  cursor: pointer;
  margin-right: 1rem;
}

.footer-links a:last-child {
  margin-right: 0;
}

.footer-links a:hover,
.footer-link:hover {
  text-decoration: underline;
  color: #ffeb3b;
}

/* =========================
   Lightbox (Bilder-Galerie)
   ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

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

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: -15px;
  right: -15px;
  transform: none;
  font-size: 1.2rem;
}

.lightbox-prev {
  left: -45px;
}

.lightbox-next {
  right: -45px;
}

.lightbox-caption {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
}

/* =========================
   Modals (Impressum / Datenschutz)
   ========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.modal.open {
  display: flex;
  animation: fadeInModal 0.25s ease-in-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 2rem;
  max-width: 650px;
  width: 90%;
  line-height: 1.55;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow-y: auto;
  max-height: 85vh;
  font-size: 0.95rem;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.modal-content h3 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
}

.modal-close:hover {
  color: red;
}

/* =========================
   Responsive Feintuning
   ========================= */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .ticker-inner {
    animation-duration: 35s;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}

@media (max-width: 600px) {
  #faq {
    padding: 1rem 1rem 1.5rem;
  }

  #faq .faq-list dd {
    margin-left: 1.2rem;
  }
}


.sterne {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.sterne img {
  height: 17px;  /* Größe anpassen */
  width: auto;
}

/* ============================================
   INFO-TABLE1 (dezente, runde Info-Box)
   ============================================ */
.info-table1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0;
  background: #fffde7; /* sanftes hellgelb */
  border: 1px solid #e0d68a;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.96rem;
}

/* Linke Icon-Spalte */
.info-table1 .icon-cell {
  width: 70px;
  padding: 0.9rem;
  text-align: center;
  background: #fffbd0;
  border-right: 1px solid #e0d68a;
  vertical-align: middle;
}

.info-table1 .icon-cell img {
  max-width: 48px;
  height: auto;
}

/* Text-Spalte */
.info-table1 .text-cell {
  padding: 1rem 1.4rem;
  line-height: 1.55;
}

.info-table1 .text-cell strong {
  font-size: 1.02rem;
  color: #000;
}

/* Responsive für Smartphone */
@media (max-width: 700px) {

  .info-table1,
  .info-table1 tr,
  .info-table1 td {
    display: block;
    width: 100%;
  }

  .info-table1 .icon-cell {
    border-right: none;
    border-bottom: 1px solid #e0d68a;
    text-align: left;
    padding: 1rem;
  }
}


/* ============================================
   INFO-TABLE2 (moderner, runde Ecken, schöner)
   ============================================ */
.info-table2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: #fff; /* weiß wie Karten */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 1rem;
}

/* Linke Icon-Spalte */
.info-table2 .icon-cell {
  width: 85px;
  background: #fff8c7; /* sanftes Gelb */
  text-align: center;
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border-right: 1px solid #e6d98f;
}

.info-table2 .icon-cell img {
  max-width: 55px;
  height: auto;
}

/* Rechte Text-Spalte */
.info-table2 .text-cell {
  padding: 1rem 1.5rem;
  line-height: 1.55;
  color: #333;
}

.info-table2 .text-cell strong {
  font-size: 1.05rem;
  color: #000;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .info-table2,
  .info-table2 tr,
  .info-table2 td {
    display: block;
    width: 100%;
  }

  .info-table2 .icon-cell {
    border-right: none;
    border-bottom: 1px solid #e6d98f;
    padding: 1rem;
    text-align: left;
  }
}

