html {
 scroll-behavior: smooth;
 }
 body {
  font-family: sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
  padding: 1rem;
  background-color: #F5F5DC;
  color:black;
  font-size: 0.875rem;

}


 h1 {
 letter-spacing: 3px;
 color:  black;
 font-weight: normal;
 line-height: 1.5em;
 font-size: clamp(1.8rem, 4vw, 2.8rem);
 font-family: Arial, Helvetica, sans-serif;
 text-align: center;
 padding-top: 5px;
 background-color: green;
 border-radius: 8px;
 }
 h2 {
    letter-spacing: 3px;
 color:  black;
 font-weight: normal;
 line-height: 1.5em;
 font-size: clamp(1.8rem, 4vw, 2.8rem);
 font-family: Arial, Helvetica, sans-serif;
 text-align: center;
 padding-top: 2px; 
 background-color: green;
 border-radius: 8px;
 }
 h3 {
    letter-spacing: 3px;
 color:  black;
 font-weight: normal;
 line-height: 1.5em;
 font-size: clamp(1.8rem, 4vw, 2.8rem);
 font-family: Arial, Helvetica, sans-serif;
 text-align: center;
 padding-top: 2px; 
 background-color: #008000;
 border-radius: 8px;
 }
 h4 {
 letter-spacing: 3px;
 color:  black;
 font-weight: normal;
 line-height: 1.5em;
font-size: clamp(1.8rem, 4vw, 2.8rem);
 font-family: Arial, Helvetica, sans-serif;
 text-align: center;
 padding-top: 2px; 
 background-color: green;
 border-radius: 8px;
 }
 
 
   p {
 line-height: 1.5em;
 font-weight: 500;
 font-size: 1.3em;
 font-family: Arial, Helvetica, sans-serif;
 text-align: justify;
 color:  black;
 }
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}



@media (max-width: 600px) {
  nav a {
    display: block;
  }
}
a,
a:visited {
  color: black;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #222;
  text-decoration: underline;
}
.impressum-link {
  display: block;        /* wichtig! */
  text-align: center;
  margin: 2rem auto;
  color: black;
  text-decoration: underline;
  font-size: 1.1rem;
   line-height: 1.5em;
   font-weight: normal;
}




.icon-link:hover img {
  transform: scale(1.1);     /* kleiner Hover-Effekt */
}
@media (max-width: 600px) {
  .icon-link img {
    width: 60px;
    height: 60px;
  }
}

.links-row {
  display: flex;
  justify-content: center;
  gap: 2rem;        /* Abstand zwischen den Icons */
  flex-wrap: wrap;   /* auf kleinen Bildschirmen umbrechen */
  margin: 2rem 0;
}

.icon-link img {
  width: 120px;
  height: 120px;
  border: 2px solid #008000;   /* grüner Rahmen */
  border-radius: 12px;         /* abgerundete Ecken */
  padding: 10px;               /* Abstand zwischen Bild und Rahmen */
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.icon-link img:hover {
  transform: scale(1.1);       /* kleiner Hover-Effekt */
  border-color: #004d00;       /* dunkleres Grün beim Hover */
}

@media (max-width: 600px) {
  .links-row {
    flex-direction: column;    /* untereinander auf kleineren Bildschirmen */
    align-items: center;
  }
}

.mag-video {
  margin: 3rem 0;
}

.mag-video video {
  width: 100%;
  border-radius: 12px;
}

.mag-video figcaption {
  font-size: 0.9rem;
  color: black;
  margin-top: 0.4rem;
  text-align: right;
}

/*************************************************************
  YouTube
**************************************************************/

.youtube {
    position: relative; 
    padding-bottom: 56.25%;  /* ratio 16x9 */
    height: 0;
    overflow: hidden; 
    width: 100%;
    height: auto;
}

.youtube iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    border: 0;
}
