/* ===== Ferienwohnung Kreidepark — Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
  --color-white: #ffffff;
  --color-bg: #f9f9f9;
  --color-sand: #f5f0e8;
  --color-beige: #e8dfd3;
  --color-green: #5a7a5a;
  --color-green-dark: #3d5c3d;
  --color-green-light: #e8f0e8;
  --color-sky: #6ea7c9;
  --color-sky-light: #e8f2f8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-accent: #1e73be;
  --color-accent-hover: #155a96;
  --color-border: #ddd;
  --max-width: 1100px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent-hover); }

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

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--color-accent); color: #fff;
  padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ===== NAVIGATION ===== */
.site-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--color-green-dark);
  text-decoration: none; padding: 12px 0;
}
.nav-logo img { height: 40px; width: auto; border-radius: 4px; }
.nav-logo:hover { color: var(--color-green); }

.nav-links { display: flex; gap: 2px; list-style: none; flex-wrap: nowrap; white-space: nowrap; }
.nav-links a {
  display: block; padding: 14px 10px;
  color: var(--color-text-light); font-size: 0.9rem; font-weight: 400;
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-green-dark); border-bottom-color: var(--color-green);
}

.nav-lang {
  display: flex; gap: 6px; align-items: center;
  margin-left: 16px;
}
.nav-lang a {
  padding: 4px 10px; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 700;
  color: var(--color-text-light); background: var(--color-bg);
}
.nav-lang a.active, .nav-lang a:hover {
  background: var(--color-green); color: #fff;
}

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--color-text);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: translateZ(0);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  max-width: 700px; padding: 60px 24px;
}
.hero-content h1 {
  font-size: 2.6rem; font-weight: 900;
  margin-bottom: 16px; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.15rem; font-weight: 300;
  margin-bottom: 28px; line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-btn {
  display: inline-block; padding: 14px 32px;
  background: var(--color-green); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; transition: var(--transition);
  text-decoration: none;
}
.hero-btn:hover { background: var(--color-green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 60px 24px;
}
.section-alt { background: var(--color-bg); }
.section-green { background: var(--color-green-light); }
.section-sand { background: var(--color-sand); }
.section-full { max-width: 100%; }

.section-title {
  font-size: 1.8rem; font-weight: 700;
  color: var(--color-green-dark); margin-bottom: 8px;
}
.section-subtitle {
  font-size: 1rem; color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--color-green-dark); }
.card-body p { font-size: 0.95rem; color: var(--color-text-light); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer; position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 1000;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 8px;
  line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 2rem; cursor: pointer; padding: 12px 16px;
  border-radius: var(--radius);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== PRICE TABLE ===== */
.price-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.price-table th {
  background: var(--color-green); color: #fff;
  padding: 14px 20px; text-align: left; font-weight: 700;
}
.price-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--color-border);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-green-light); }

/* ===== FEATURES ===== */
.features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  text-align: center; padding: 32px 20px;
  background: var(--color-white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
}
.feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  color: var(--color-green);
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-green-dark); }
.feature p { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== CONTACT ===== */
.contact-info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.contact-card {
  padding: 32px; background: var(--color-white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.contact-card svg { width: 36px; height: 36px; color: var(--color-green); margin-bottom: 12px; }
.contact-card h3 { margin-bottom: 8px; color: var(--color-green-dark); }
.contact-card p { color: var(--color-text-light); }
.contact-card a { font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-green-dark); color: rgba(255,255,255,0.8);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  color: #fff; font-size: 1rem; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--color-green);
}
.footer-col a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-bottom {
  max-width: var(--max-width); margin: 24px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center; font-size: 0.85rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.4rem; color: var(--color-green-dark); margin: 32px 0 12px; }
.legal-content h3 { font-size: 1.15rem; color: var(--color-text); margin: 24px 0 8px; }
.legal-content p { margin-bottom: 12px; color: var(--color-text-light); }
.legal-content ul { padding-left: 24px; margin-bottom: 12px; }
.legal-content li { margin-bottom: 6px; color: var(--color-text-light); }

/* ===== PAGE HEADER ===== */
.page-header {
  background-color: #3d5c3d;
  background-image: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: #fff; padding: 48px 24px; text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; }
.page-header p { font-size: 1rem; opacity: 0.85; margin-top: 8px; }

/* ===== AMENITIES ===== */
.amenities-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; list-style: none;
}
.amenities-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--color-green-light);
  border-radius: var(--radius); font-size: 0.95rem;
}
.amenities-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-green); }

/* ===== PDF / HOUSE RULES ===== */
.pdf-section {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pdf-card {
  padding: 32px; background: var(--color-white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.pdf-card h3 { margin-bottom: 12px; color: var(--color-green-dark); }
.pdf-card p { margin-bottom: 20px; color: var(--color-text-light); font-size: 0.95rem; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--color-green);
  color: #fff; border-radius: var(--radius); font-weight: 700;
  transition: var(--transition); text-decoration: none;
}
.pdf-btn:hover { background: var(--color-green-dark); color: #fff; }

/* ===== LINKS / LEISURE ===== */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.link-group h3 {
  font-size: 1.1rem; color: var(--color-green-dark);
  margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--color-green-light);
}
.link-group ul { list-style: none; }
.link-group li { margin-bottom: 8px; }
.link-group a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; font-size: 0.95rem;
}
.link-group a::before {
  content: '→'; color: var(--color-green); font-weight: 700;
}

/* ===== HIGHLIGHTS (Startseite) ===== */
.highlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.highlight {
  text-align: center; padding: 40px 24px;
  background: var(--color-white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
}
.highlight:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.highlight svg { width: 44px; height: 44px; color: var(--color-green); margin-bottom: 16px; }
.highlight h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--color-green-dark); }
.highlight p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1240px) {
  .nav-links a { padding: 14px 8px; font-size: 0.85rem; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 8px 0; }
  .nav-links a { padding: 12px 24px; font-size: 0.95rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-lang { margin-left: auto; margin-right: 8px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-lang { margin-left: auto; margin-right: 8px; }
  .hero { min-height: 400px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 1.4rem; }
  .highlights { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-lang a { padding: 4px 8px; font-size: 0.75rem; }
}

/* ===== ANIMATIONS ===== */
.animate-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1; transform: translateY(0);
}
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* Info boxes */
.info-box {
  padding: 20px 24px; background: var(--color-sky-light);
  border-left: 4px solid var(--color-sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0; font-size: 0.95rem;
}

/* Two-column layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Welcome image */
.welcome-img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
