body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
    font-size: 14px;
    
    /* NEU: Verhindert, dass Elemente die Seite nach rechts weiten */
    max-width: 100%;
    overflow-x: hidden; 
}
#container {
    width: 100%;          /* Nutzt auf Handys die volle Breite... */
    max-width: 480px;     /* ...wird aber niemals breiter als 480px! */
    height: auto;
    border: 2px solid grey;
    background-color: #FFF;
    text-align: center;
    margin: 0 auto;       /* Zentriert das Ganze auf größeren Bildschirmen */
    box-sizing: border-box; /* Verhindert, dass der Rahmen (Border) die Box verbreitert */
}

header {
    background: #222;
    padding: 16px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;          /* Nimmt exakt die Breite des Containers an */
    box-sizing: border-box;
}


header img {
    /* Flexibel auf dem Handy, aber exakt begrenzt */
    width: 100%;
    max-width: 476px;       /* Deine Wunschbreite als absolute Obergrenze */
    height: auto;           /* Verhindert Verzerrungen auf kleineren Displays */
    aspect-ratio: 476 / 314; /* Erzwingt das exakte Seitenverhältnis deiner Maße */
    
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Ab Tablet/Desktop-Größe, wenn genug Platz ist */
@media (min-width: 520px) {
    header img {
        width: 476px;       /* Exakt deine Wunschbreite */
        height: 314px;      /* Exakt deine Wunschhöhe */
    }
}

.Copy {
    width: 475px;
margin: 10px 60px 6px 2px;
    background:#efefef;
    text-align:center;
    padding: 0 auto 0 auto;
border-top: 2px solid grey;
border-bottom: 2px solid grey; 
}

footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 0.75rem;
}

footer a {
    color: #ccc;
}

.facebook_mobile {
position: absolute;
top: 425px;
left: 13px;
overflow:hidden;
 width:193px;
 height:68px;
margin: 0 auto;
text-align: center;
padding: auto;
border: 1px solid black;
}

.Fotogalerie_gross {
    width: 100%;            /* Nutzt auf Handys die volle verfügbare Breite */
    max-width: 476px;       /* Wird auf großen Bildschirmen maximal 476px breit */
    height: auto;           /* 'auto' statt '160px', damit der Inhalt bei schmalen Bildschirmen nicht unten herausquillt */
    min-height: 160px;      /* Behält deine Wunschhöhe von 160px als Mindestmaß */
    padding: 10px;
    background-color: #eee;
    border: 1px solid black;
    text-align: center;
    box-sizing: border-box; /* Garantiert, dass Padding & Border die Box nicht heimlich verbreitern */
    margin: 10px auto;      /* Zentriert die Galerie schön im Container */
}

.Fotogalerie_klein {
	width: 77px;
	height: 74px;
	padding: 10px;
background-color: #eee;
border: 1px solid black;
text-align: center;
}

.Fotogalerie_klein1 {
height: 160px;
width: 240px;
padding: 10px;
background-color: #eee;
border: 1px solid black;
text-align: center;
margin: 0 auto;
}

/* Haupt-Container des Sliders */
.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Der scrollbare Bereich */
.slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

/* Einzelner Slide */
.slide {
  min-width: 100%;
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 3 / 2; /* Perfekt für Zug-Fotos */
  overflow: hidden;
}

/* Lightbox-Verlinkung füllt den gesamten Slide aus */
.slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in; /* Zeigt eine Lupe als Mauszeiger */
  -webkit-tap-highlight-color: transparent;
}

/* Die Fotos */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

/* Dezenter Vergrößern-Hinweis oben rechts */
.zoom-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Klick geht durch */
}

/* Zeigt die Lupe beim Hovern (nur PC/Desktop) */
@media (hover: hover) {
  .slide:hover .zoom-indicator {
    opacity: 1;
  }
}

/* Die Bildbeschreibung als edles Overlay am unteren Rand */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 45%);
  color: #ffffff;
  padding: 50px 20px 20px 20px;
  font-size: 13px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  /* Genialer Kniff: Klicks gehen durch den Text hindurch auf den Link im Hintergrund */
  pointer-events: none; 
}

/* Die Pfeil-Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.9);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Mobil-Optimierung für Smartphones */
@media (pointer: coarse) {
  .slider-btn {
    display: none; /* Keine Pfeile auf echten Touchscreens nötig */
  }
  .slide-caption {
    font-size: 11px;
    padding: 35px 12px 12px 12px;
  }
  /* Auf Handys zeigen wir den Vergrößern-Hinweis dauerhaft leicht transparent an */
  .zoom-indicator {
    opacity: 0.75;
    font-size: 9px;
    padding: 4px 8px;
    top: 10px;
    right: 10px;
  }
}

#zeit {
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.social_mobile {
    background: #efefef;
    border: 2px solid grey;
    
    /* Absolute Positionierung wie gehabt */
    position: absolute;
    left: 13px;
    top: 360px;
    width: 120px;
    
    /* NEU: Höhe angepasst auf 38px, damit die 24px-Bilder Platz haben */
    height: 38px; 
    box-sizing: border-box;
    
    /* NEU: Flexbox zentriert die Icons absolut perfekt horizontal & vertikal */
    display: flex;
    justify-content: center; /* Zentriert die Icons waagerecht */
    align-items: center;     /* Zentriert die Icons senkrecht */
    gap: 10px;               /* Erzeugt einen sauberen Abstand zwischen FB und YouTube */
}

.social1 {
    display: flex; /* Verhindert ungewollte Abstände unter dem Link-Element */
}

.social1:hover {
    filter: grayscale(100%);
}

.social1 img {
    width: 24px;
    height: 24px;
    display: block; /* Verhindert den typischen HTML-Text-Abstand nach unten */
}

span.social2_mobile {
    padding: 1px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #FF6600;
    
    position: absolute;
    left: 17px;
    width: 120px;
    height: 26px;
    top: 343px;
    box-sizing: border-box;
}

:root {
    --slides: 4;
    --primary-color: #68B022; 
    --transition-speed: 0.6s;  
    --text-color: #ffffff;
    --highlight-color: #00fa9a; /* Dein frisches Grün */
}

nav {
    background: #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    /* 🌟 GEÄNDERT: Auf 'visible' gesetzt, damit das Dropdown nicht abgeschnitten wird */
    overflow: visible; 
}

nav li {
    flex: 1;
    min-width: 80px;
    border-right: 1px solid #444;
    /* 🌟 NEU: Wichtig, damit sich das Dropdown an diesem Element ausrichtet */
    position: relative; 
}

nav li:last-child {
    border-right: none;
}

nav a {
    display: block;
    padding: 12px 6px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover- & Active-Styles aus deinem Code */
nav a:hover, nav a:focus {
    background: #444; 
    color: var(--highlight-color);   
    outline: none;
}

nav a.active {
    background: #222; 
    color: var(--highlight-color);   
    font-weight: bold; 
    box-shadow: inset 0 -3px 0 var(--highlight-color); 
}

/* ==========================================================
   🌟 NEU: Dropdown (Popdown) Styling
   ========================================================== */

/* Die versteckte Box des Untermenüs */
.dropdown-content {
    display: none;       /* Standardmäßig unsichtbar */
    position: absolute;  /* Schwebend über dem Inhalt */
    top: 100%;           /* Erscheint exakt unterhalb der Navigationsleiste */
    left: 0;
    background: #333;    /* Gleiche dunkle Farbe */
    min-width: 140px;    /* Mindestbreite für die Unterpunkte */
    box-shadow: 0px 8px 16px rgba(0,0,0,0.4); /* Eleganter Schatten nach unten */
    z-index: 1001;
    padding: 0;
    margin: 0;
    list-style: none;
    border: 1px solid #444;
}

/* Die Unterpunkte untereinander statt nebeneinander anzeigen */
.dropdown-content li {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #444; /* Trennlinie zwischen den Bundesländern/Ländern */
}

.dropdown-content li:last-child {
    border-bottom: none;
}

/* Textausrichtung im Untermenü (linksbündig sieht hier schicker aus) */
.dropdown-content a {
    text-align: left;
    padding: 10px 15px;
}

/* 🌟 DER EFFEKT: Beim Hovern auf das Haupt-li öffnet sich das Untermenü */
nav li.dropdown:hover .dropdown-content {
    display: block;
}


    p {
	text-align: center;
}


.kleinsachen {
width:20px;
height:20px;	
}

span.pflichtfeld {
font-size: 12px;
color: Red;
}

span.hilfetext {
font-size: 10px;
font-style: Oblique;
}

    div.table { 
      display: block;
      border: 1px solid black;
           margin-left: auto;
    margin-right: auto;
      width:210px; 
height:155px;
text-align: center;
    }
    div.tr { 
      display: block;
      text-align: center;
    }
    div.td { 
    display: block;
      border: 1px solid black;
      padding:5px;
      text-align: center;
    }
	
#test1 {
  display: none;
}
button {
  width: 200px;
  height: 50px;
  border: 1px solid red;
  display: inline-block;
  
}
button:active,
button:focus,
button: hover {
background-color: #ccc;
}
button:active + #test1,
button:focus + #test1,
button:hover + #test1 {
  display: block;
}

main {
    padding: 8px;
}

.welcome {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: center;
}

.welcome h1,
.welcome h2 {
    margin-top: 0;
    font-size: 1.2rem;
}





/* Extra kleine Smartphones */
@media (max-width: 480px) {

    body {
        font-size: 13px;
    }

    nav a {
        font-size: 0.7rem;
        padding: 10px 4px;
    }

    .welcome {
        padding: 10px;
    }

    .welcome h1,
    .welcome h2 {
        font-size: 1rem;
    }

    #zeit {
        font-size: 0.8rem;
    }

    footer {
        font-size: 0.7rem;
    }
}