/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', Georgia, serif;
  transition: background-color 1.5s ease;
}

a { text-decoration: none; }
body.night a         { color: #7ab0f8; }
body.night a:visited { color: #c4a0f0; }
body.night a:hover   { color: #aed4ff; }

/* ── NAV ──────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.8s, border-color 0.8s;
}
body.day  #main-nav { background: rgba(245,240,232,0.88); border-bottom: 1px solid rgba(0,0,0,0.07); }
body.night #main-nav { background: rgba(5,13,26,0.82);   border-bottom: 1px solid rgba(255,255,255,0.06); }

.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo  { width: 36px; height: 36px; object-fit: contain; display: block; }
.nav-title {
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  transition: color 0.8s;
}
body.day  .nav-title { color: #1a3a1a; }
body.night .nav-title { color: #e8f0ff; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 13px; font-family: system-ui, sans-serif;
  transition: color 0.8s;
}
body.day  .nav-links a { color: #4a6a4a; }
body.night .nav-links a { color: rgba(200,220,255,0.65); }
.nav-links a:hover { opacity: 1; }
body.day  .nav-links a:hover { color: #1a3a1a; }
body.night .nav-links a:hover { color: #fff; }

.mode-btn {
  background: none; border: 1px solid transparent; border-radius: 20px;
  padding: 4px 10px; font-size: 16px; cursor: pointer;
  transition: all 0.3s; line-height: 1;
}
body.day  .mode-btn { border-color: rgba(42,90,26,0.2);       background: rgba(255,255,255,0.6); }
body.night .mode-btn { border-color: rgba(200,220,255,0.15);  background: rgba(255,255,255,0.07); }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: background 2s ease;
  padding-bottom: 160px;
}
body.day .hero {
  background: linear-gradient(180deg,
    #b8d4ee 0%, #cde3f5 15%, #daedf5 30%,
    #e5f2e0 48%, #c0dc90 70%, #8aba50 85%, #6aa030 100%);
}
body.night .hero {
  background: linear-gradient(180deg,
    #01050f 0%, #020a1e 20%, #050f2a 40%,
    #071530 55%, #0a1f20 72%, #081a10 85%, #061208 100%);
}

/* Sun */
.sun-wrap {
  position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
  pointer-events: none; transition: opacity 1.5s, transform 1.5s;
  z-index: 1;
}
body.day   .sun-wrap { opacity: 1; transform: translateX(-50%) translateY(0); }
body.night .sun-wrap { opacity: 0; transform: translateX(-50%) translateY(-40px); }

.sun {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 45% 42%, #fff9c0, #ffe050 40%, #ffb800);
  box-shadow:
    0 0 0 10px rgba(255,210,50,0.12),
    0 0 60px 20px rgba(255,190,30,0.2),
    0 0 130px 50px rgba(255,180,0,0.1);
  animation: sunpulse 6s ease-in-out infinite;
}
@keyframes sunpulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255,210,50,0.12), 0 0 60px 20px rgba(255,190,30,0.2), 0 0 130px 50px rgba(255,180,0,0.1); }
  50%       { box-shadow: 0 0 0 16px rgba(255,210,50,0.15), 0 0 80px 28px rgba(255,190,30,0.25), 0 0 160px 60px rgba(255,180,0,0.12); }
}

/* Moon */
.moon-wrap {
  position: absolute; top: 55px; right: 160px;
  pointer-events: none; transition: opacity 1.5s, transform 1.5s;
  z-index: 1;
}
body.day   .moon-wrap { opacity: 0; transform: translateY(-30px); }
body.night .moon-wrap { opacity: 1; transform: translateY(0); }

.moon {
  width: 68px; height: 68px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff9e0, #f0d080 40%, #c8a830);
  box-shadow:
    0 0 20px 8px rgba(240,208,80,0.35),
    0 0 60px 20px rgba(240,208,80,0.18),
    0 0 120px 40px rgba(240,208,80,0.08);
  animation: moonpulse 6s ease-in-out infinite;
  position: relative;
}
.moon::after {
  content: ''; position: absolute; top: 18px; left: 22px;
  width: 14px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,0.08);
  box-shadow: 12px 14px 0 6px rgba(0,0,0,0.05), -8px 20px 0 4px rgba(0,0,0,0.04);
}
@keyframes moonpulse {
  0%, 100% { box-shadow: 0 0 20px 8px rgba(240,208,80,0.35), 0 0 60px 20px rgba(240,208,80,0.18), 0 0 120px 40px rgba(240,208,80,0.08); }
  50%       { box-shadow: 0 0 28px 12px rgba(240,208,80,0.45), 0 0 80px 28px rgba(240,208,80,0.22), 0 0 150px 50px rgba(240,208,80,0.1); }
}

/* Stars canvas */
#stars {
  position: absolute; inset: 0; pointer-events: none;
  transition: opacity 1.5s;
}
body.day  #stars { opacity: 0; }
body.night #stars { opacity: 1; }

/* Milky way hint */
.milkyway {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 40% at 60% 25%, rgba(120,140,200,0.07) 0%, transparent 60%);
  transition: opacity 1.5s;
}
body.day .milkyway { opacity: 0; }

/* Hills SVG */
.hills { position: absolute; bottom: 0; left: 0; right: 0; }

/* ── HERO CONTENT ─────────────────────────────────────────────────── */
.hero-inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 110px 20px 40px; max-width: 720px;
}

.hero-logo {
  width: 170px; height: 170px; object-fit: contain; margin-bottom: 24px;
  transition: filter 1.5s;
}
body.day   .hero-logo { filter: drop-shadow(0 6px 24px rgba(0,0,0,0.2)); }
body.night .hero-logo { filter: drop-shadow(0 6px 30px rgba(240,208,80,0.4)) drop-shadow(0 0 12px rgba(255,255,255,0.15)); }

.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px; font-family: system-ui, sans-serif; font-weight: 600;
  transition: color 0.8s;
}
body.day   .eyebrow { color: #4a6a2a; }
body.night .eyebrow { color: rgba(200,220,160,0.7); }

.hero h1 {
  font-size: clamp(36px, 6vw, 62px); font-weight: 700; line-height: 1.1;
  margin-bottom: 14px; transition: color 0.8s, text-shadow 0.8s;
}
body.day   .hero h1 { color: #1a3a1a; text-shadow: 0 2px 14px rgba(255,255,255,0.7); }
body.night .hero h1 { color: #e8f0ff; text-shadow: 0 2px 20px rgba(100,140,255,0.3); }

.hero .tagline {
  font-size: 18px; font-style: italic; margin-bottom: 34px; line-height: 1.6;
  transition: color 0.8s;
}
body.day   .hero .tagline { color: #3a5a2a; }
body.night .hero .tagline { color: rgba(200,220,180,0.7); }

/* CTA Buttons */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }

.btn-primary {
  padding: 13px 28px; border-radius: 6px; font-weight: 700;
  font-size: 14px; font-family: system-ui, sans-serif;
  transition: background 0.8s, color 0.8s, box-shadow 0.8s, transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); }
body.day   .btn-primary { background: #2a5a1a; color: #fff; box-shadow: 0 4px 16px rgba(42,90,26,0.3); }
body.night .btn-primary {
  background: linear-gradient(135deg, #1a4a30, #2a6a40); color: #c8f0a0;
  border: 1px solid rgba(100,200,100,0.2); box-shadow: 0 4px 20px rgba(40,120,60,0.3);
}

.btn-ghost {
  padding: 13px 28px; border-radius: 6px; font-size: 14px;
  font-family: system-ui, sans-serif; font-weight: 600;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: all 0.8s;
}
body.day   .btn-ghost { background: rgba(255,255,255,0.6); border: 1.5px solid rgba(42,90,26,0.3); color: #2a5a1a; }
body.night .btn-ghost { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(200,220,255,0.2); color: rgba(200,220,255,0.85); }

/* Stats strip */
.stats-strip {
  display: flex; align-items: center; border-radius: 14px; padding: 14px 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.8s, border-color 0.8s, box-shadow 0.8s;
}
body.day   .stats-strip { background: rgba(255,255,255,0.65); border: 1px solid rgba(42,90,26,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
body.night .stats-strip { background: rgba(255,255,255,0.05); border: 1px solid rgba(200,220,255,0.1); }

.stat { text-align: center; padding: 0 20px; }
.stat-value { font-size: 22px; font-weight: 700; font-family: system-ui, sans-serif; transition: color 0.8s; }
body.day   .stat-value { color: #2a5a1a; }
body.night .stat-value { color: #a8d8f0; }

.stat-label {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  margin-top: 2px; font-family: system-ui, sans-serif; transition: color 0.8s;
}
body.day   .stat-label { color: #6a8a6a; }
body.night .stat-label { color: rgba(200,220,255,0.4); }

.stat-divider { width: 1px; height: 36px; transition: background 0.8s; }
body.day   .stat-divider { background: rgba(42,90,26,0.15); }
body.night .stat-divider { background: rgba(200,220,255,0.1); }

/* Ticker */
.ticker {
  margin-top: 14px; border-radius: 20px; padding: 8px 20px;
  font-size: 12px; font-style: italic; font-family: system-ui, sans-serif;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  min-height: 34px; transition: background 0.8s, border-color 0.8s, color 0.8s;
}
body.day   .ticker { background: rgba(255,255,255,0.5); color: #4a6a4a; border: none; }
body.night .ticker { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,220,255,0.08); color: rgba(200,220,180,0.6); }

/* ── CRITTERS ─────────────────────────────────────────────────────── */
.critter-layer {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh;
  pointer-events: none; overflow: hidden; z-index: 5;
}
.critter {
  position: absolute; z-index: 5; white-space: nowrap;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.day-critter, .night-critter { transition: opacity 2s; }
body.day   .night-critter { opacity: 0; pointer-events: none; }
body.night .day-critter   { opacity: 0; pointer-events: none; }

/* Day */
.car1    { font-size: 26px; bottom: 36px; animation: go-right 12s  linear infinite;        }
.car2    { font-size: 22px; bottom: 30px; animation: go-left  16s  linear infinite; animation-delay: -6s;  }
.bike    { font-size: 20px; bottom: 34px; animation: go-right 20s  linear infinite; animation-delay: -4s;  }
.walker  { font-size: 22px; bottom: 30px; animation: go-right 28s  linear infinite; animation-delay: -10s; }
.farmer  { font-size: 22px; bottom: 32px; animation: go-left  24s  linear infinite; animation-delay: -8s;  }
.tractor { font-size: 28px; bottom: 30px; animation: go-right 35s  linear infinite; animation-delay: -18s; }

/* Night */
.fox    { font-size: 22px; bottom: 28px; animation: go-right 18s  linear infinite; animation-delay: -2s;  }
.deer   { font-size: 28px; bottom: 34px; animation: go-right 24s  linear infinite; animation-delay: -9s;  }
.rabbit { font-size: 16px; bottom: 22px; animation: go-left  14s  linear infinite; animation-delay: -4s;  }
.owl    { font-size: 20px; bottom: 95px; animation: go-left  30s  linear infinite; animation-delay: -14s; }
.bat    { font-size: 16px; bottom: 120px;animation: go-right 22s  linear infinite; animation-delay: -7s;  }

@keyframes go-right {
  0%   { transform: translateX(-120px) scaleX(1);             opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { transform: translateX(calc(100vw + 120px)) scaleX(1); opacity: 0; }
}
@keyframes go-left {
  0%   { transform: translateX(calc(100vw + 100px)) scaleX(-1); opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { transform: translateX(-100px) scaleX(-1);              opacity: 0; }
}

/* ── SECTIONS ─────────────────────────────────────────────────────── */
.section-title {
  text-align: center; font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 36px; font-family: system-ui, sans-serif; transition: color 0.8s;
}
body.day   .section-title { color: #8a9a7a; }
body.night .section-title { color: rgba(200,220,255,0.3); }

/* Newsletter section */
.section-newsletter {
  padding: 80px 40px; transition: background 0.8s; text-align: center;
}
body.day   .section-newsletter { background: #eaf0e5; }
body.night .section-newsletter { background: #070f0a; }

.newsletter-inner {
  max-width: 560px; margin: 0 auto;
}
.newsletter-icon {
  font-size: 40px; margin-bottom: 16px;
}
.newsletter-inner h2 {
  font-size: 24px; font-weight: 700; margin: 0 0 16px; transition: color 0.8s;
}
body.day   .newsletter-inner h2 { color: #1a3a1a; }
body.night .newsletter-inner h2 { color: #c8d8f8; }

.newsletter-inner p {
  font-size: 16px; line-height: 1.7; margin: 0 0 28px; transition: color 0.8s;
}
body.day   .newsletter-inner p { color: #3a4a3a; }
body.night .newsletter-inner p { color: rgba(200,220,255,0.75); }

.newsletter-fields {
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}
.newsletter-fields input[type="email"],
.newsletter-fields input[type="text"] {
  padding: 13px 18px; border-radius: 8px; font-size: 15px;
  border: 1.5px solid transparent; outline: none; transition: border-color 0.2s, background 0.8s, color 0.8s;
  width: 100%; box-sizing: border-box;
}
body.day .newsletter-fields input[type="email"],
body.day .newsletter-fields input[type="text"] {
  background: #fff; color: #1a2a1a; border-color: #c8d8b8;
}
body.night .newsletter-fields input[type="email"],
body.night .newsletter-fields input[type="text"] {
  background: #0d1f12; color: #c8d8f8; border-color: #2a4a2a;
}
.newsletter-fields input:focus {
  border-color: #5a9a30;
}
.newsletter-fields button {
  padding: 13px 28px; border: none; border-radius: 8px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}
body.day   .newsletter-fields button { background: #2a5a1a; color: #fff; box-shadow: 0 4px 16px rgba(42,90,26,0.25); }
body.night .newsletter-fields button { background: #4a8a28; color: #fff; box-shadow: 0 4px 16px rgba(74,138,40,0.3); }
.newsletter-fields button:hover { transform: translateY(-2px); }
body.day   .newsletter-fields button:hover { background: #1e4a12; }
body.night .newsletter-fields button:hover { background: #3a7a20; }

/* Gallery section */
.section-gallery {
  padding: 80px 40px; transition: background 0.8s;
}
body.day   .section-gallery { background: #f0ece0; }
body.night .section-gallery { background: #060e18; }

/* Carousel */
.carousel {
  position: relative; max-width: 900px; margin: 0 auto;
  overflow: hidden; border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.carousel-track {
  display: flex; transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%; position: relative;
}
.carousel-slide img {
  width: 100%; height: 480px; object-fit: cover; display: block;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.65); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s;
}
.carousel-dot.active { background: #fff; }
.carousel-empty {
  text-align: center; padding: 60px; font-family: system-ui, sans-serif;
  font-size: 14px; font-style: italic; transition: color 0.8s;
}
body.day   .carousel-empty { color: #8a9a7a; }
body.night .carousel-empty { color: rgba(200,220,255,0.35); }

/* Für Hankenfelder section */
.section-fuer-euch {
  padding: 80px 40px; transition: background 0.8s; text-align: center;
}
body.day   .section-fuer-euch { background: #edf4e8; }
body.night .section-fuer-euch { background: #07110a; }

.fuer-euch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.fuer-euch-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: 12px;
  transition: background 0.8s, box-shadow 0.3s;
}
body.day   .fuer-euch-card { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
body.night .fuer-euch-card { background: #0e1f10; box-shadow: 0 2px 16px rgba(0,0,0,0.4); }

.fuer-euch-icon {
  font-size: 48px; margin-bottom: 16px;
}

.section-fuer-euch h2 {
  font-size: clamp(20px, 2.8vw, 28px); margin-bottom: 20px; transition: color 0.8s;
}
body.day   .section-fuer-euch h2 { color: #1a3a1a; }
body.night .section-fuer-euch h2 { color: #c8d8f8; }

.fuer-euch-email {
  white-space: nowrap;
}
body.day   .fuer-euch-email { color: #4a7a28; }
body.night .fuer-euch-email { color: #7ab84e; }

.section-fuer-euch p {
  font-size: 16px; line-height: 1.7; margin-bottom: 12px; transition: color 0.8s;
}
body.day   .section-fuer-euch p { color: #3a4a3a; }
body.night .section-fuer-euch p { color: rgba(200,220,255,0.75); }

.fuer-euch-sub {
  font-size: 15px; margin-top: 24px;
}
.fuer-euch-sub a {
  font-weight: 600; transition: color 0.8s;
}
body.day   .fuer-euch-sub a { color: #4a7a28; }
body.night .fuer-euch-sub a { color: #7ab84e; }

/* Immobilien section */
.section-immobilien {
  padding: 80px 40px; text-align: center; transition: background 0.8s;
}
body.day   .section-immobilien { background: #f4f0e8; }
body.night .section-immobilien { background: #0a0e05; }

.immobilien-inner {
  max-width: 640px; margin: 0 auto;
}

.immobilien-icon {
  font-size: 48px; margin-bottom: 16px;
}

.section-immobilien h2 {
  font-size: clamp(22px, 3.5vw, 32px); margin-bottom: 20px; transition: color 0.8s;
}
body.day   .section-immobilien h2 { color: #1a3a1a; }
body.night .section-immobilien h2 { color: #c8d8f8; }

.section-immobilien p {
  font-size: 16px; line-height: 1.7; margin-bottom: 28px; transition: color 0.8s;
}
body.day   .section-immobilien p { color: #3a4a3a; }
body.night .section-immobilien p { color: rgba(200,220,255,0.75); }

.immobilien-btn {
  display: inline-block; text-decoration: none;
}

.immobilien-empty {
  font-size: 15px; transition: color 0.8s;
}
body.day   .immobilien-empty { color: #8a9a7a; }
body.night .immobilien-empty { color: rgba(200,220,255,0.4); }

.immobilien-list {
  list-style: none; padding: 0; margin: 24px 0 0; text-align: left;
}

.immobilien-item {
  border-radius: 8px; margin-bottom: 12px; transition: background 0.8s;
}
body.day   .immobilien-item { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,0.07); }
body.night .immobilien-item { background: #0e1f10; box-shadow: 0 1px 8px rgba(0,0,0,0.35); }

@keyframes hankenfeld-glow-day {
  0%, 100% { box-shadow: 0 0 5px 2px rgba(90,154,48,0.35), 0 1px 8px rgba(0,0,0,0.07); }
  50%       { box-shadow: 0 0 10px 4px rgba(90,154,48,0.55), 0 1px 8px rgba(0,0,0,0.07); }
}
@keyframes hankenfeld-glow-night {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(122,184,78,0.30), 0 1px 8px rgba(0,0,0,0.35); }
  50%       { box-shadow: 0 0 12px 5px rgba(122,184,78,0.50), 0 1px 8px rgba(0,0,0,0.35); }
}
body.day   .immobilien-item--hankenfeld {
  animation: hankenfeld-glow-day 2.8s ease-in-out infinite;
}
body.night .immobilien-item--hankenfeld {
  animation: hankenfeld-glow-night 2.8s ease-in-out infinite;
}

.immobilien-link {
  display: block; padding: 16px 20px; text-decoration: none; border-radius: 8px;
  transition: background 0.2s;
}
.immobilien-link--has-img {
  display: flex; gap: 16px; align-items: flex-start; padding: 12px 16px;
}
body.day   .immobilien-link:hover { background: #f0f6ea; }
body.night .immobilien-link:hover { background: #162818; }

.immobilien-thumb {
  width: 100px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}

.immobilien-body {
  flex: 1; min-width: 0;
}

.immobilien-title {
  font-size: 15px; font-weight: 600; margin-bottom: 8px; transition: color 0.8s;
}
body.day   .immobilien-title { color: #1a3a1a; }
body.night .immobilien-title { color: #c8d8f8; }

.immobilien-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}

.immobilien-price {
  font-size: 14px; font-weight: 700; transition: color 0.8s;
}
body.day   .immobilien-price { color: #4a7a28; }
body.night .immobilien-price { color: #7ab84e; }

.immobilien-pill {
  font-size: 12px; padding: 2px 8px; border-radius: 20px; transition: background 0.8s, color 0.8s;
}
body.day   .immobilien-pill { background: #edf4e8; color: #3a4a3a; }
body.night .immobilien-pill { background: #1a2e1a; color: rgba(200,220,255,0.7); }

.immobilien-source {
  font-size: 12px; margin-top: 16px; transition: color 0.8s;
}
body.day   .immobilien-source { color: #8a9a7a; }
body.night .immobilien-source { color: rgba(200,220,255,0.35); }
body.day   .immobilien-source a { color: #4a7a28; }
body.night .immobilien-source a { color: #7ab84e; }

/* Was ist los section */
.section-waslos {
  padding: 80px 40px; transition: background 0.8s;
}
body.day   .section-waslos { background: #f8f4ec; }
body.night .section-waslos { background: #050b14; }

.waslos-gemeinde-header {
  max-width: 700px; margin: 1.5rem auto 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  transition: color 0.8s;
}

#wuermla-events {
  max-width: 700px; margin: 0 auto;
}
body.day   .waslos-gemeinde-header { color: #5a8a28; }
body.night .waslos-gemeinde-header { color: #7aaa3a; }

.wuermla-empty {
  font-size: 14px; font-style: italic; transition: color 0.8s;
}
body.day   .wuermla-empty { color: #8a9a7a; }
body.night .wuermla-empty { color: rgba(200,220,255,0.35); }

.section-waslos h2 {
  font-size: clamp(24px, 4vw, 36px); margin-bottom: 8px; text-align: center;
  transition: color 0.8s;
}
body.day   .section-waslos h2 { color: #1a3a1a; }
body.night .section-waslos h2 { color: #c8d8f8; }

.waslos-subtitle {
  text-align: center; font-style: italic; font-size: 14px;
  margin-bottom: 32px; font-family: system-ui, sans-serif; transition: color 0.8s;
}
body.day   .waslos-subtitle { color: #6a8a6a; }
body.night .waslos-subtitle { color: rgba(200,220,180,0.5); }

#waslos-entries {
  max-width: 700px; margin: 0 auto;
}

/* Entry items */
.waslos-entry {
  padding: 12px 0; border-bottom: 1px solid transparent;
  font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.6;
  animation: fadeInDown 0.4s ease;
  transition: border-color 0.8s, color 0.8s;
}
body.day   .waslos-entry { border-color: rgba(0,0,0,0.06); color: #333; }
body.night .waslos-entry { border-color: rgba(255,255,255,0.06); color: rgba(220,235,220,0.85); }
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Name/cat classes — day/night variants for readability */
.uhrzeit        { font-size: 12px; margin-right: 6px; }
.einfrauenname  { font-weight: 600; }
.einmaennername { font-weight: 600; }
.akatz          { font-weight: 600; }

body.day   .uhrzeit        { color: #8B4513; }
body.night .uhrzeit        { color: #c8906a; }
body.day   .einfrauenname  { color: blueviolet; }
body.night .einfrauenname  { color: #c4a0f0; }
body.day   .einmaennername { color: mediumblue; }
body.night .einmaennername { color: #7ab0f8; }
body.day   .akatz          { color: #8B4513; }
body.night .akatz          { color: #c8906a; }

/* ── FOOTER ───────────────────────────────────────────────────────── */
#site-footer {
  padding: 48px 40px 24px; transition: background 0.8s, border-top-color 0.8s;
}
body.day   #site-footer { background: #e8e4d8; border-top: 1px solid rgba(0,0,0,0.07); }
body.night #site-footer { background: #030810; border-top: 1px solid rgba(255,255,255,0.04); }

.footer-inner {
  display: flex; align-items: center; gap: 24px; max-width: 900px; margin: 0 auto;
  flex-wrap: wrap; padding-bottom: 24px;
  border-bottom: 1px solid transparent; transition: border-color 0.8s;
}
body.day   .footer-inner { border-color: rgba(0,0,0,0.07); }
body.night .footer-inner { border-color: rgba(255,255,255,0.05); }

.footer-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.footer-host-logo { height: 1.1em; width: auto; vertical-align: -0.2em; }

.footer-text { flex: 1; }
.footer-hosted {
  font-size: 14px; font-family: system-ui, sans-serif; font-weight: 600;
  transition: color 0.8s;
}
body.day   .footer-hosted { color: #2a5a1a; }
body.night .footer-hosted { color: #a8c8a0; }

.footer-disclaimer {
  font-size: 12px; font-family: system-ui, sans-serif; margin-top: 4px;
  font-style: italic; transition: color 0.8s;
}
body.day   .footer-disclaimer { color: #8a9a7a; }
body.night .footer-disclaimer { color: rgba(200,220,200,0.4); }

.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a {
  font-size: 12px; font-family: system-ui, sans-serif; transition: color 0.8s;
}
body.day   .footer-links a { color: #4a6a4a; }
body.night .footer-links a { color: rgba(200,220,255,0.5); }
.footer-links a:hover { opacity: 0.8; }

.footer-copy {
  text-align: center; font-size: 11px; font-family: system-ui, sans-serif;
  margin-top: 20px; max-width: 900px; margin-left: auto; margin-right: auto;
  transition: color 0.8s;
}
body.day   .footer-copy { color: #aaa; }
body.night .footer-copy { color: rgba(255,255,255,0.15); }

/* Ticker wraps a waslos-entry div — flatten it so it reads inline */
.ticker .waslos-entry {
  display: inline;
  padding: 0;
  border: none;
  animation: none;
  color: inherit;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #main-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero-inner { padding: 90px 16px 40px; }
  .stats-strip { padding: 12px 16px; }
  .stat { padding: 0 12px; }
  .section-gallery, .section-fuer-euch, .section-immobilien, .section-waslos, .section-newsletter { padding: 60px 20px; }
  .carousel-slide img { height: 240px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: row; justify-content: center; }
  .village-scene {
    transform: scale(3);
    transform-box: fill-box;
    transform-origin: center bottom;
  }
}

/* ── MÜLLABFUHR ───────────────────────────────────────────────── */
.section-muell {
  padding: 60px 24px;
  transition: background 0.8s, color 0.8s;
}
body.day   .section-muell { background: #f8f4ec; color: #2a3a2a; }
body.night .section-muell { background: #050b14; color: #d0e0ff; }

.muell-inner { max-width: 720px; margin: 0 auto; margin-top: 24px; }

.muell-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}

.muell-entry {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px; border-radius: 8px;
  font-family: system-ui, sans-serif; font-size: 15px;
}
body.day   .muell-entry { background: rgba(0,0,0,0.04); }
body.night .muell-entry { background: rgba(255,255,255,0.06); }

.muell-entry.muell-today {
  border-left: 4px solid #e07800;
}
body.day   .muell-entry.muell-today { background: rgba(255,170,0,0.12); }
body.night .muell-entry.muell-today { background: rgba(255,160,0,0.15); }

.muell-day      { font-weight: 700; min-width: 80px; }
.muell-type     { flex: 1; }
.muell-audience { font-size: 12px; opacity: 0.65; }

.muell-empty {
  font-family: system-ui, sans-serif;
  opacity: 0.6; padding: 8px 0;
}

.muell-source {
  font-size: 12px; opacity: 0.45;
  font-family: system-ui, sans-serif;
  margin-top: 12px;
}
body.day  .muell-source a { color: #4a6a4a; }
body.night .muell-source a { color: #7ab0f8; }

/* Hero banner — shown on collection days */
.muell-hero-banner {
  margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}

.muell-hero-line {
  background: rgba(224,120,0,0.85);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
body.night .muell-hero-line {
  background: rgba(255,140,0,0.7);
}
