:root{
  --bg: #d4d4d4;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #a0ff00;
  --secondary: #6b8e23;
}

body.dark{
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --text: #e5e5e5;
  --muted: #aaa;
  --accent: #a0ff00;
  --secondary: #556b2f;
}

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

html{
  scroll-behavior: smooth;
}

body{
  margin:0;
  padding-top: 140px; /* Platz für den fixed header */
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  background-color: var(--bg);
  /* Dezente Tiefe im Hintergrund, ausschliesslich mit den bestehenden Farben --
     kein neuer Farbwert, nur ein sehr leichter Verlauf aus --accent/--secondary. */
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -5%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    radial-gradient(ellipse 700px 500px at 100% 20%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  transition: background-color 0.25s, color 0.25s;
}

/* Sichtbarer Fokus-Rahmen fuer Tastatur-Navigation (nur bei Tab, nicht bei Mausklick) --
   nutzt die bestehende Akzentfarbe, keine neue Farbe. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sticky-header-wrapper{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
}

.header-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 1.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #1a1a1a;
  box-shadow:0 4px 12px rgba(160,255,0,0.2);
}

.mobile-menu-toggle{
  display:none;
  background:rgba(0,0,0,0.1);
  border:none;
  padding:0.6rem;
  cursor:pointer;
  border-radius:8px;
  font-size:1.5rem;
}

.mobile-sidebar{
  position:fixed;
  top:0;
  left:-300px;
  width:280px;
  height:100vh;
  background:var(--card);
  box-shadow:2px 0 20px rgba(0,0,0,0.3);
  transition:left 0.3s ease;
  z-index:1000;
  overflow-y:auto;
}

.mobile-sidebar.active{
  left:0;
}

.mobile-sidebar-header{
  padding:1.5rem;
  background:linear-gradient(135deg, var(--secondary), var(--accent));
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.mobile-sidebar-close{
  background:rgba(0,0,0,0.2);
  border:none;
  padding:0.5rem 0.8rem;
  cursor:pointer;
  border-radius:8px;
  font-size:1.5rem;
}

.mobile-sidebar nav{
  display:flex;
  flex-direction:column;
  padding:0;
  background:transparent;
}

.mobile-sidebar nav a{
  padding:1rem 1.5rem;
  border-bottom:1px solid var(--bg);
  color:var(--text);
  border-radius:0;
}

.mobile-sidebar nav a.active,
.mobile-sidebar nav a:hover{
  background:var(--accent);
  color:#1a1a1a;
}

.sidebar-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  display:none;
  z-index:999;
}

.sidebar-overlay.active{
  display:block;
}

.brand h1{margin:0;font-size:1.2rem}
.controls{
  display:flex;
  gap:0.5rem;
  align-items:center;
}

.controls .toggle-btn{
  background:rgba(0,0,0,0.15);
  color: #1a1a1a;
  padding:0.5rem 0.8rem;
  border:2px solid rgba(0,0,0,0.2);
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  transition:all 0.3s ease;
}

.controls .toggle-btn:hover{
  background:rgba(0,0,0,0.25);
  border-color:rgba(0,0,0,0.35);
  transform:scale(1.05);
}

body.dark .controls .toggle-btn{
  background:rgba(255,255,255,0.15);
  color:#fff;
  border-color:rgba(255,255,255,0.3);
}

body.dark .controls .toggle-btn:hover{
  background:rgba(255,255,255,0.25);
  border-color:rgba(255,255,255,0.45);
}

nav{
  display:flex;
  justify-content:center;
  gap:0.8rem;
  flex-wrap:wrap;
  background: var(--secondary);
  padding:0.8rem;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

nav a{
  color: #1a1a1a;
  text-decoration:none;
  padding:0.7rem 1.2rem;
  border-radius:12px;
  font-weight:600;
  background:rgba(160,255,0,0.1);
  transition:all 0.3s ease;
  border:2px solid transparent;
}

nav a:hover{
  background:var(--accent);
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(160,255,0,0.3);
}

nav a.active{
  background:var(--accent);
  color:#1a1a1a;
  border-color:var(--accent);
}

.card{
  background: var(--card);
  border-radius:20px;
  padding:2.25rem;
  max-width:900px;
  margin:2rem auto;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  border:1px solid rgba(160,255,0,0.1);
  transition:transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s cubic-bezier(.2,.8,.2,1);
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 40px rgba(160,255,0,0.18);
}

#kontakt-section{
  position:relative;
  overflow:hidden;
}

#kontakt-section{
  background:#1a1a1a;
  color:#e5e5e5;
}

#kontakt-section::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-image:url('bilder/hintergrund/facebook_1763197953898_7395388230826472434.jpg');
  background-size:cover;
  background-position:center;
  opacity:0.50;
  z-index:0;
  pointer-events:none;
  filter:brightness(0.9);
}

#kontakt-section > *{
  position:relative;
  z-index:1;
}

#kontakt-section label,
#kontakt-section h2,
#kontakt-section p{
  color:#e5e5e5;
}

#kontakt-section input,
#kontakt-section textarea{
  background:#2a2a2a;
  color:#e5e5e5;
  border-color:#444;
}

#welcome-card{
  position:relative;
  overflow:hidden;
  background:#1a1a1a;
  color:#e5e5e5;
}

#welcome-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-image:url('bilder/hintergrund/facebook_1763198020059_7395388508327840417.jpg');
  background-size:cover;
  background-position:center;
  opacity:0.50;
  z-index:0;
  pointer-events:none;
  filter:brightness(0.9);
}

#welcome-card > *{
  position:relative;
  z-index:1;
}

.card h2{margin-top:0;font-size:1.9rem;letter-spacing:-0.01em;line-height:1.25}
.card h3{margin-top:1.5rem;font-size:1.2rem;letter-spacing:-0.005em}
.card p{line-height:1.65;margin:0.5rem 0}

.card a{color: var(--secondary); text-decoration:none;}
.card a:hover{text-decoration:underline;color: var(--accent);}

.contact-form{
  margin-top:1.5rem;
}

.form-group{
  margin-bottom:1rem;
}

.form-group label{
  display:block;
  margin-bottom:0.3rem;
  font-weight:600;
}

.form-group input,
.form-group textarea{
  width:100%;
  padding:0.6rem;
  border:1px solid var(--muted);
  border-radius:8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size:1rem;
  box-sizing:border-box;
}

.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color: var(--accent);
}

.submit-btn{
  background: var(--accent);
  color: #1a1a1a;
  padding:0.8rem 2rem;
  border:2px solid var(--accent);
  border-radius:12px;
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  transition: all 0.3s ease;
  box-shadow:0 4px 12px rgba(160,255,0,0.3);
}

.submit-btn:hover{
  background:var(--secondary);
  border-color:var(--secondary);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(160,255,0,0.4);
}

.submit-btn:disabled{
  opacity:0.6;
  cursor:not-allowed;
  transform:none;
}

.form-message{
  margin-top:1rem;
  padding:0.7rem;
  border-radius:8px;
  display:none;
}

.form-message.success{
  display:block;
  background:#d4edda;
  color:#155724;
  border:1px solid #c3e6cb;
}

.form-message.error{
  display:block;
  background:#f8d7da;
  color:#721c24;
  border:1px solid #f5c6cb;
}

.footer{
  text-align:center;
  padding:1.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #1a1a1a;
  font-size:0.9rem;
  margin-top:2rem;
  font-weight:600;
}

/* Dezenter Zugang zum Admin-Login -- bewusst unauffaellig, aber gut antippbar. */
.footer-admin-link{
  display:inline-block;
  color:#1a1a1a;
  opacity:0.35;
  text-decoration:none;
  padding:0.5rem 0.8rem;
  margin-left:0.2rem;
  font-weight:700;
  transition:opacity 0.2s ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible{
  opacity:0.9;
}

.back-to-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:55px;
  height:55px;
  background:var(--accent);
  color:#1a1a1a;
  border:none;
  border-radius:50%;
  font-size:1.5rem;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 16px rgba(160,255,0,0.4);
  transition:all 0.3s ease;
  z-index:500;
  font-weight:bold;
}

.back-to-top.visible{
  display:flex;
}

.back-to-top:hover{
  background:var(--secondary);
  transform:translateY(-5px);
  box-shadow:0 8px 24px rgba(160,255,0,0.5);
}

.social-buttons{
  display:flex;
  justify-content:center;
  margin-top:1.5rem;
}

.facebook-btn{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  background:var(--accent);
  color:#1a1a1a;
  padding:0.8rem 1.5rem;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  transition:all 0.3s ease;
  border:2px solid var(--accent);
  box-shadow:0 4px 12px rgba(160,255,0,0.3);
}

.facebook-btn:hover{
  background:var(--secondary);
  border-color:var(--secondary);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(160,255,0,0.4);
}

.facebook-btn svg{
  flex-shrink:0;
}

/* Hero-Card mit Hintergrundbild -- verallgemeinerte Version der bisherigen
   #welcome-card/#kontakt-section ::before-Technik, nutzbar von jedem Block-basierten
   "hero"-Block (siehe admin/lib/blocks/hero.php). */
.hero-card{
  position:relative;
  overflow:hidden;
  background:#1a1a1a;
  color:#e5e5e5;
}

.hero-card-bg{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-size:cover;
  background-position:center;
  opacity:0.50;
  z-index:0;
  pointer-events:none;
  filter:brightness(0.9);
}

.hero-card > *:not(.hero-card-bg){
  position:relative;
  z-index:1;
}

.hero-card h2,
.hero-card p,
.hero-card label{
  color:#e5e5e5;
}

/* Vorlagen-Layouts */
.content-grid-2col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:start;
}

.image-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem;
  margin-top:1rem;
}

.image-grid-3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:1rem;
  margin-top:1rem;
}

.img-placeholder{
  width:100%;
}

.img-placeholder img{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
}

.img-center{
  text-align:center;
  margin:1.5rem 0;
}

.img-caption{
  text-align:center;
  font-size:0.9rem;
  color:var(--muted);
  margin-top:0.5rem;
}

/* Bildergalerie Slider */
.animal-gallery{
  position:relative;
  width:100%;
  max-width:800px;
  margin:1.5rem auto;
  overflow:hidden;
  border-radius:12px;
}

.gallery-container{
  position:relative;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.gallery-wrapper{
  position:relative;
  width:100%;
  height:500px;
  overflow:hidden;
}

.gallery-slide{
  position:absolute;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 0.5s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}

.gallery-slide.active{
  opacity:1;
}

.gallery-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
}

.gallery-slide video{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:12px;
  background:#000;
  position:relative;
  z-index:10;
}

.gallery-slide img{
  pointer-events:none;
}

.gallery-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.6);
  color:white;
  border:none;
  padding:1rem;
  cursor:pointer;
  font-size:1.5rem;
  z-index:15;
  transition:all 0.3s ease;
  border-radius:8px;
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
}

.gallery-btn:hover{
  background:var(--accent);
  color:#1a1a1a;
}

.gallery-btn.prev{
  left:10px;
}

.gallery-btn.next{
  right:10px;
}

.gallery-indicators{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  padding:10px 0;
}

.gallery-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--muted);
  cursor:pointer;
  transition:all 0.3s ease;
  border:2px solid var(--secondary);
  pointer-events:auto;
}

.gallery-dot.active{
  background:var(--accent);
  transform:scale(1.2);
}

/* Pflanzen-Style Social Links */
.plant-social-btn{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:0.5rem;
  padding:1rem 1.5rem;
  background:linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius:20px;
  text-decoration:none;
  color:#1a1a1a;
  transition:all 0.3s ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  position:relative;
  overflow:hidden;
}

.plant-social-btn::before{
  content:'';
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity:0;
  transition:opacity 0.3s ease;
}

.plant-social-btn:hover::before{
  opacity:1;
}

.plant-social-btn:hover{
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 8px 24px rgba(160,255,0,0.4);
}

.plant-icon{
  font-size:2.5rem;
  display:block;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.plant-name{
  font-weight:600;
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

body.dark .plant-social-btn{
  color:#1a1a1a;
}

@media(max-width:768px){
  .gallery-wrapper{
    height:350px;
  }
  
  .gallery-btn{
    padding:0.6rem;
    font-size:1.2rem;
    width:40px;
    height:40px;
  }
  
  .gallery-btn.prev{
    left:5px;
  }
  
  .gallery-btn.next{
    right:5px;
  }
}

@media(max-width:768px){
  .content-grid-2col,
  .image-grid-2,
  .image-grid-3{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .mobile-menu-toggle{
    display:block;
  }
  
  nav{
    display:none;
  }
  
  .header-row{
    padding:1rem;
  }
  
  .card{
    margin:1rem;
    padding:1.5rem;
  }
  
  .back-to-top{
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
  }
}

@media(max-width:480px){
  .header-row h1{
    font-size:1rem;
  }

  .card{
    padding:1rem;
    margin:1rem 0.5rem;
  }

  .content-grid-2col,
  .image-grid-2,
  .image-grid-3{
    grid-template-columns:1fr;
  }
}

/* Cookie-Consent-Banner */
.cookie-consent-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:2000;
  display:none;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:1rem;
  padding:1.1rem 1.5rem;
  background:var(--card);
  color:var(--text);
  border-top:2px solid var(--accent);
  box-shadow:0 -8px 30px rgba(0,0,0,0.2);
}

.cookie-consent-banner.visible{
  display:flex;
}

.cookie-consent-banner p{
  margin:0;
  max-width:640px;
  font-size:0.9rem;
  color:var(--muted);
}

.cookie-consent-banner a{
  color:var(--secondary);
  font-weight:700;
}

.cookie-consent-actions{
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
}

.cookie-consent-accept,
.cookie-consent-decline{
  border-radius:12px;
  padding:0.7rem 1.4rem;
  font-weight:700;
  cursor:pointer;
  transition:all 0.3s ease;
  font-size:0.9rem;
}

.cookie-consent-accept{
  background:var(--accent);
  color:#1a1a1a;
  border:2px solid var(--accent);
  box-shadow:0 4px 12px rgba(160,255,0,0.3);
}

.cookie-consent-accept:hover{
  background:var(--secondary);
  border-color:var(--secondary);
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(160,255,0,0.4);
}

.cookie-consent-decline{
  background:transparent;
  color:var(--text);
  border:2px solid var(--muted);
}

.cookie-consent-decline:hover{
  border-color:var(--text);
}

@media(max-width:600px){
  .cookie-consent-banner{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }
  .cookie-consent-actions{
    justify-content:center;
  }
}

/* Footer-Rechtszeile (Impressum/Datenschutz/Cookie-Einstellungen) */
.footer-legal-links{
  display:flex;
  justify-content:center;
  gap:0.6rem;
  flex-wrap:wrap;
  margin-top:0.4rem;
  font-size:0.85rem;
}

.footer-legal-links a,
.footer-legal-links button{
  background:none;
  border:none;
  padding:0;
  font:inherit;
  color:var(--muted);
  text-decoration:underline;
  cursor:pointer;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover{
  color:var(--secondary);
}
