/* ==========================
   Basis
========================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
}

/* ==========================
   Header
========================== */
header {
  display: block; /* sicherstellen, dass er sichtbar ist */
  background-color: #fff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 100px;
}

/* ==========================
   Navigation
========================== */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #0a3d62;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Hide nav by default */
  .main-nav {
    position: fixed;
    top: 60px;
    right: 0px;
    background-color: #fff;
    flex-direction: column;
    padding: 0px 20px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 999;
    
  }
  .logo img {
    height:80px;
  }

  /* Show nav when active */
  .main-nav.active {
    transform: translateX(0);
    
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
  }
}

.main-nav a {
  text-decoration: none;
  color: #0a3d62;
  font-weight: 700;
  font-size: 20px;
  transition: color 0.3s, background-color 0.3s;
}

.main-nav a:hover {
  color: white;
  background-color: #0a3d62;
}

/* ==========================
   Hero
========================== */
.hero {
  padding: 2rem 1rem;
  font-size: 28px;
  background: #0a3d62;
  color: white;
  text-align: center;
}

.hero h2 {
  margin-top: 0;
  color: white;
}

/* ==========================
   Container / Sections
========================== */
.container {
  padding: 1rem;
  max-width: 1000px;
  margin: auto;
}

/* ==========================
   Cards
========================== */
.cards-container {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom:1em;
}

.card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1em;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 200px;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card-top-icon {
  width: 30%;
  max-width:200px;
  display: block;
  margin: 0 auto 15px;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.card-top-icon:hover {
  filter: grayscale(0%);
  opacity: 0.9;
}

.card h3 {
  margin: 0 0 0.5em 0;
  color: #0a3d62;
}

.card p {
  margin: 0 0 1em 0;
  flex-grow: 1;
}

.card a.read-more {
  margin-top: auto;
  margin-left: auto;
  text-decoration: none;
  color: #0a3d62;
  font-weight: bold;
}

.card a.read-more:hover {
  color: white;
  background-color: #0a3d62;
}

/* ==========================
   Sections Icons / Header
========================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.section-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), filter 0.5s cubic-bezier(0.25,1,0.5,1);
}

.section-icon:hover {
  transform: scale(1.2);
  opacity: 0.9;
  filter: grayscale(0%);
}

/* ==========================
   Footer
========================== */
.footer-container {




  position: fixed;
  bottom: 0;
  left: 0;
  right:20px;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: #0a3d62;
  color: #fff;
  font-size: 0.9em;
  flex: 0 0 auto;
}

.footer-left, .footer-right {
  display: flex;
  flex-wrap: wrap;
  margin-right:20px;
}

.footer-right a {
  color: white;
  text-decoration: none;
  margin-right: 5px;
  margin-left:5px;
}

.footer-right a:hover {
  color: lightgray;
}

/* ==========================
   Carousel
========================== */
.carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: nowrap;
  will-change: transform;
}

.carousel-track a {
  flex: 0 0 auto;
}

.carousel-track img {
  height: 80px;
  display: block;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-track img {
    height: 45px;
  }

  .carousel-track {
    gap: 20px;
  }
}



/* ==========================
   Modals
========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow: auto;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.close:hover { color: #000; }

@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* ==========================
   Animations / Reveal
========================== */
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: translateX(0);
}

.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
  .header-container { align-items: flex-start; }
  .main-nav { flex-direction: column; gap:0px;}
  .main-nav a { display: block; margin: 5px 0; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .cards-container { flex-direction: column; }
  .card { width: 100%; }
}

.cookie-btn {
  position: fixed;
  bottom: 60px;           /* etwas hÃ¶her positioniert */
  right: 10px;
  z-index: 9999;

  display: flex;
  align-items: center;

  width: 50px;             /* Start: nur der Kreis sichtbar */
  height: 50px;
  background: #0a3d62;
  border: none;
  cursor: pointer;
  border-radius:28px;
  overflow: visible;       /* Text darf sichtbar sein */
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* Icon-Kreis: groÃŸ und zentriert */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;

  font-size: 32px;          /* grÃ¶ÃŸer als vorher */
  flex-shrink: 0;
  transition: background 0.3s ease;
}

/* Text rechts daneben, unsichtbar am Anfang */
.text-container {
  opacity: 0;
  color:white;
  white-space: nowrap;
  margin-left: 12px;
  font-size: 16px;
  transition: opacity 0.3s ease;
}
.icon-container{
  font-size:28px;
}

/* Hover: Button erweitert sich nach rechts */
.cookie-btn:hover {
  width: 240px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Hover: Text einblenden */
.cookie-btn:hover .text-container {
  opacity: 1;
}

.btn {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

/* Alle akzeptieren (Hauptbutton) */
.btn-all {
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
}

.btn-all:hover {
  background-color: #256628;
}

/* Nur essentielle */
.btn-essential {
  background-color: #e0e0e0;
  color: #333;
}

.btn-essential:hover {
  background-color: #d5d5d5;
}

/* Auswahl speichern */
.btn-save {
  background-color: transparent;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-save:hover {
  background-color: #2e7d32;
  color: white;
}

.toggle {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
  cursor: pointer;
}

/* Checkbox verstecken */
.toggle input {
  display: none;
}

/* Slider links */
.slider {
  position: relative;
  width: 46px;
  height: 24px;
  background-color: #ccc;
  border-radius: 50px;
  transition: 0.3s;
  flex-shrink: 0; /* verhindert ZusammendrÃ¼cken */
}

/* Kreis */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* Aktiv */
.toggle input:checked + .slider {
  background-color: #2e7d32;
}

.toggle input:checked + .slider::before {
  transform: translateX(22px);
}

/* Text rechts daneben mit Abstand */
.label-text {
  margin-left: 12px;
}

/* Deaktiviert */
.toggle input:disabled + .slider {
  background-color: #999;
  opacity: 0.6;
}