/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-light: rgba(200, 230, 201, 0.55);
  --green-mid:   rgba(129, 199, 132, 0.65);
  --green-dark:  #388e3c;
  --green-solid: #4caf50;
  --green-deep:  #2e7d32;
  --glass-bg:    rgba(232, 245, 233, 0.72);
  --glass-border:rgba(129, 199, 132, 0.45);
  --text-dark:   #1b3a1f;
  --text-mid:    #3a5c3e;
  --text-light:  #6a8f6e;
  --white:       #ffffff;
  --shadow:      0 8px 32px rgba(56, 142, 60, 0.15);
  --radius:      16px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #f1f8f2;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== GRAIN TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: 9999; width: calc(100% - 3rem); max-width: 820px;
  background: rgba(10, 28, 12, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(129, 199, 132, 0.35);
  border-top: 1px solid rgba(160, 220, 165, 0.5);
  border-radius: 18px;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  opacity: 0;
  pointer-events: none;
  /* Nur beim Ausblenden animieren */
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
  /* Einblenden mit Feder-Effekt */
  animation: cookieIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cookieIn {
  from { transform: translateX(-50%) translateY(120px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.cookie-inner {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-inner p {
  flex: 1; font-size: 0.88rem; color: rgba(200,230,205,0.9);
  min-width: 200px; line-height: 1.5;
}
.cookie-inner p strong { color: #e8f5e9; }
.cookie-buttons { display: flex; gap: 0.6rem; flex-shrink: 0; flex-wrap: wrap; }
.btn-accept {
  background: linear-gradient(135deg, #66bb6a, #2e7d32);
  color: white; border: none; border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  cursor: pointer; letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(76,175,80,0.4);
  transition: all 0.2s;
}
.btn-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(76,175,80,0.5); }
.btn-more {
  background: transparent; color: rgba(180,230,185,0.85);
  border: 1px solid rgba(129,199,132,0.4); border-radius: 50px;
  padding: 0.6rem 1.1rem; font-size: 0.85rem; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-more:hover { background: rgba(129,199,132,0.12); border-color: rgba(129,199,132,0.7); color: #e8f5e9; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 30, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(100, 180, 110, 0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-heading); font-size: 1.1rem; color: #c8e6c9;
}
.logo-icon { font-size: 1.8rem; }
.logo-text { line-height: 1.2; color: rgba(200,230,201,0.85); }
.logo-text strong { display: block; font-size: 1.3rem; color: #e8f5e9; }
.nav-links { list-style: none; display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.88rem; font-weight: 700; color: rgba(200,230,201,0.8);
  letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1.5px; background: #81c784; border-radius: 2px;
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: #e8f5e9; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #c8e6c9; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-top: 80px;
}
.mountain-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  display: block;
}
/* Grün-getönter Dunkel-Overlay für Lesbarkeit */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 20, 6, 0.55) 0%,
    rgba(10, 40, 12, 0.45) 40%,
    rgba(15, 55, 18, 0.55) 70%,
    rgba(5, 25, 7, 0.7) 100%
  );
}

/* Nebel-Schicht am Boden */
.mountain-mist {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  height: 18%;
  background: linear-gradient(
    to top,
    rgba(180, 220, 185, 0.28) 0%,
    rgba(150, 200, 160, 0.12) 50%,
    transparent 100%
  );
  filter: blur(10px);
  pointer-events: none;
}

/* Foto-Credit unten rechts */
.photo-credit {
  position: absolute; bottom: 1rem; right: 1.2rem; z-index: 5;
  font-size: 0.7rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.photo-credit a { color: rgba(255,255,255,0.6); text-decoration: underline; }

.hero-content {
  position: relative; z-index: 4;
  background: rgba(8, 28, 10, 0.52);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(120, 200, 130, 0.28);
  border-top: 1px solid rgba(160, 220, 165, 0.4);
  border-radius: 24px;
  padding: 3rem 4rem;
  max-width: 660px; margin: 0 1.5rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: fadeInUp 1s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(180,230,185,0.75); margin-bottom: 0.6rem;
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; color: #f1f8f2; line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-desc { font-size: 1rem; color: rgba(200,235,205,0.82); margin-bottom: 2rem; line-height: 1.7; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%);
  color: white;
  padding: 0.9rem 2.4rem; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em;
  box-shadow: 0 4px 22px rgba(76,175,80,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: all 0.3s; text-transform: uppercase;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #81c784 0%, #1b5e20 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(56,142,60,0.55);
}

/* ===== LOGO SVG ===== */
.logo-svg {
  width: 46px; height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}
.logo:hover .logo-svg { transform: scale(1.08) rotate(-2deg); }

/* ===== MAIN CONTENT ===== */
.main-content { max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem 3rem; }

.section-label {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-dark); font-weight: 700; margin-bottom: 1.5rem;
}

/* ===== FEATURED CARD ===== */
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}
.gallery-main {
  position: relative; cursor: pointer;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-main:hover img { transform: scale(1.04); }
.img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.45); color: white;
  font-size: 0.75rem; text-align: center; padding: 0.4rem;
  opacity: 0; transition: opacity 0.2s;
}
.gallery-main:hover .img-overlay { opacity: 1; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
.gallery-thumbs .thumb {
  width: 70px; height: 55px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
  transition: all 0.2s;
}
.gallery-thumbs .thumb:hover, .gallery-thumbs .thumb.active { border-color: var(--green-solid); opacity: 1; }

.featured-info { display: flex; flex-direction: column; gap: 1rem; }
.meta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.tag-date, .tag-ort {
  background: rgba(200,230,201,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 0.25rem 0.8rem;
  font-size: 0.82rem; color: var(--text-mid); font-weight: 600;
}
.featured-info h2 {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green-deep); line-height: 1.2;
}
.beschreibung { font-size: 0.97rem; line-height: 1.75; color: var(--text-mid); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 1.5rem; right: 2rem; color: white; font-size: 2rem; cursor: pointer; }
.lb-nav { position: absolute; bottom: 2rem; display: flex; gap: 1rem; }
.lb-nav button {
  background: rgba(255,255,255,0.2); color: white; border: none;
  font-size: 2rem; width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; transition: background 0.2s;
}
.lb-nav button:hover { background: rgba(255,255,255,0.4); }

/* ===== WEITERE ABENTEUER ===== */
.weitere-section h3 {
  font-family: var(--font-heading); font-size: 1.8rem;
  color: var(--green-deep); margin-bottom: 1.5rem;
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem; margin-bottom: 2rem;
}
.mini-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(56,142,60,0.08);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-img { aspect-ratio: 16/10; overflow: hidden; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mini-card:hover .mini-img img { transform: scale(1.06); }
.mini-img.no-img {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); font-size: 2.5rem;
}
.mini-info { padding: 1rem 1.2rem 1.2rem; }
.mini-date { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.mini-info h4 {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--green-deep); margin: 0.3rem 0 0.4rem;
}
.mini-ort { font-size: 0.8rem; color: var(--text-light); }
.center { text-align: center; margin-top: 1rem; }
.btn-secondary {
  display: inline-block;
  border: 2px solid var(--green-solid); color: var(--green-deep);
  padding: 0.7rem 2rem; border-radius: 50px;
  font-weight: 700; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--green-solid); color: white; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h2 { font-family: var(--font-heading); color: var(--green-deep); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); }

/* ===== ALLE ABENTEUER PAGE ===== */
.page-hero {
  background: linear-gradient(160deg, #0d1f0e 0%, #163d1a 40%, #2e7d32 100%);
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.6) 0%, transparent 100%);
}
.page-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2rem,4vw,3rem);
  color: #e8f5e9; position: relative;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.page-hero p { color: rgba(200,230,201,0.75); margin-top: 0.5rem; position: relative; }
.alle-grid {
  max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem;
}

/* ===== SINGLE ABENTEUER PAGE ===== */
.single-hero {
  width: 100%; max-height: 520px; overflow: hidden;
  margin-top: 68px;
}
.single-hero img { width: 100%; height: 520px; object-fit: cover; }
.single-content {
  max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem;
}
.single-content h1 {
  font-family: var(--font-heading); font-size: clamp(1.8rem,4vw,2.8rem);
  color: var(--green-deep); margin-bottom: 1rem;
}
.single-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin: 2rem 0; }
.single-gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: transform 0.3s; }
.single-gallery img:hover { transform: scale(1.03); }
.single-text { font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--green-dark); font-weight: 600; margin-bottom: 1.5rem; }
.back-link:hover { text-decoration: underline; }

/* ===== IMPRESSUM / DATENSCHUTZ ===== */
.text-page {
  max-width: 820px; margin: 0 auto; padding: 6rem 1.5rem 3rem;
}
.text-page h1 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--green-deep); margin-bottom: 2rem; }
.text-page h2 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--green-dark); margin: 2rem 0 0.5rem; }
.text-page p, .text-page li { color: var(--text-mid); line-height: 1.75; margin-bottom: 0.5rem; }
.text-page ul { padding-left: 1.5rem; }

/* ===== ADMIN ===== */
.admin-wrap {
  max-width: 860px; margin: 0 auto; padding: 5rem 1.5rem 3rem;
}
.admin-wrap h1 { font-family: var(--font-heading); color: var(--green-deep); margin-bottom: 0.3rem; font-size: 2rem; }
.admin-wrap .sub { color: var(--text-light); margin-bottom: 2rem; }
.admin-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem; margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--text-mid); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.75);
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text-dark); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green-solid); }
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input[type="file"] { font-family: var(--font-body); font-size: 0.9rem; }
.btn-save {
  background: var(--green-solid); color: white;
  border: none; border-radius: 10px;
  padding: 0.85rem 2.5rem; font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: all 0.25s; box-shadow: 0 4px 16px rgba(76,175,80,0.35);
}
.btn-save:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-delete {
  background: #ef5350; color: white; border: none;
  border-radius: 8px; padding: 0.4rem 1rem;
  font-size: 0.82rem; cursor: pointer; transition: background 0.2s;
}
.btn-delete:hover { background: #c62828; }
.alert-success {
  background: rgba(200,230,201,0.8); border: 1.5px solid var(--glass-border);
  color: var(--green-deep); border-radius: 10px; padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem; font-weight: 600;
}
.alert-error {
  background: rgba(255,205,210,0.8); border: 1.5px solid #ef9a9a;
  color: #b71c1c; border-radius: 10px; padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem; font-weight: 600;
}
.admin-list { list-style: none; }
.admin-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0; border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}
.admin-list li:last-child { border-bottom: none; }
.admin-list .entry-title { font-weight: 600; color: var(--text-dark); }
.admin-list .entry-date { font-size: 0.82rem; color: var(--text-light); }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(200,230,201,0.5);
  border-top: 1px solid var(--glass-border);
  text-align: center; padding: 1.5rem;
  font-size: 0.85rem; color: var(--text-light);
}
.site-footer a { color: var(--green-dark); }
.site-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(232,245,233,0.97); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-content { padding: 2rem 1.5rem; }
  .featured-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}
