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

:root {
  --cream: #faf7f2;
  --cream-dark: #f0ede6;
  --green: #4d6e4d;
  --green-light: #7a9e7a;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ── Hero ───────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.52);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges span {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.85rem 2.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn:hover { background: var(--green-light); transform: translateY(-1px); }

/* ── Navigation ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid #e5e0d8;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }

.nav-inner {
  display: flex;
  white-space: nowrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 0.5rem;
}

nav a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
nav a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* ── Sections ───────────────────────────────────────── */
.section-light { background: var(--cream); }
.section-dark  { background: var(--cream-dark); }

section:not(#hero) {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 0.8rem;
}

/* ── Facts box ──────────────────────────────────────── */
.facts-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: var(--white);
  border-radius: 14px;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  overflow: hidden;
  border: 1px solid #e8e3db;
}

.fact {
  text-align: center;
  padding: 1.25rem 1rem;
  border-right: 1px solid #e8e3db;
}
.fact:last-child { border-right: none; }

.fact-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}

.fact-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  display: block;
}

/* ── Badges ─────────────────────────────────────────── */
.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}

.badge {
  padding: 0.3rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-green  { background: var(--green); color: var(--white); }
.badge-amber  { background: #b8913a; color: var(--white); }
.badge-outline { border: 1.5px solid var(--green); color: var(--green); }
.badge-red    { background: #a84c2c; color: var(--white); }

/* ── Alert boxes ────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert strong { display: block; margin-bottom: 0.2rem; }
.alert-amber { background: #fef8ec; border-left: 4px solid #b8913a; color: #6b5010; }
.alert-red   { background: #fdf0ed; border-left: 4px solid #a84c2c; color: #6b2010; }

/* ── Photo grid ─────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.photo-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  background: #e0dbd4;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.2s;
}

.photo-grid a:hover img {
  transform: scale(1.04);
  opacity: 0.95;
}

/* wide featured image (first child spans 2 cols when grid has 3+ images) */
.photo-grid.featured a:first-child {
  grid-column: span 2;
}
.photo-grid.featured a:first-child img {
  aspect-ratio: 16 / 9;
}

/* ── Lightbox ───────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

#lightbox.active { display: flex; }

#lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}
#lightbox-close:hover { color: var(--white); }

/* ── Kontakt ────────────────────────────────────────── */
#kontakt {
  background: var(--green);
  color: var(--white);
}

#kontakt h2 { color: var(--white); }
#kontakt .section-subtitle { color: rgba(255,255,255,0.65); }
#kontakt p { color: rgba(255,255,255,0.85); max-width: 580px; }

.contact-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.contact-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  min-width: 200px;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  display: block;
  margin-bottom: 0.3rem;
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--cream-dark);
  border-top: 1px solid #e0dbd4;
}

/* ── Responsive adjustments ─────────────────────────── */
@media (max-width: 600px) {
  section:not(#hero) { padding: 2.5rem 1.25rem; }
  .facts-box { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 1px solid #e8e3db; }
}
