@CHARSET "UTF-8";

* {
  box-sizing: border-box;
}

body { 
  background-color: white; 
  margin: 0; 
  padding: 0; 
}

/* KORREKTUR: Das störende 'margin: auto' wurde hier restlos gelöscht! */
div { 
  padding: 0; 
  background-color: white; 
  margin: 0; 
  font-family: "Calibri", "Arial", "Helvetica", sans-serif; 
  width: 100%; 
  max-width: 1200px; 
}

/* REPARATUR: Zentriert die Trennlinie sauber auf dem Bildschirm */
#line { 
  border-top: 1px dotted gray; 
  margin: 20px auto 0 auto; 
  padding-top: 0px;    
  width: 100%; 
  max-width: 1000px; 
  min-height: 10px;     
}

#nr7 { 
  border-bottom: 1px dotted gray; 
  padding-top: 0; 
  width: 100%; 
  max-width: 800px; 
  min-height: 30px; 
  margin: 40px auto 0 auto;
}

h1 {
  font-family: "Calibri", "Arial", "Helvetica", sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.75rem); 
  text-align: center; 
  font-weight: bold;
  color: gray;
  padding: 0 15px;
  margin-bottom: 40px;
}

h2 {
  font-family: "Calibri", "Arial", "Helvetica", sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.15rem);  
  text-align: left; 
  font-weight: bold;
  color: gray;
  padding: 0 15px;
}


#Element5 { font-size: clamp(0.85rem, 2vw, 1rem); float: left; word-spacing: 0; }
#Element8 { font-size: clamp(0.75rem, 1.5vw, 0.8rem); float: left; word-spacing: 0; }

p { 
  font-family: "Arial", sans-serif; 
  font-size: clamp(0.8rem, 2.2vw, 0.95rem);  line-height: 1.5; 
  padding: 0 15px;
}

#Element9 { font-size: clamp(0.8rem, 1.2vw, 0.95rem); color: #7F7F7F; text-align: right; }

#InfoBox {
  visibility: hidden; 
  position: absolute; 
  top: 10px; 
  right: 10px; 
  z-index: 1;
  width: 100%;
  max-width: 155px; 
  background-color: #FDFEFF; 
  border: 1px solid gray;
}

#BoxInnen { padding: 5px; }
#BoxInhalte { font-family: "Arial", sans-serif; font-size: 0.8rem; }

/* REPARATUR: Zentriert das Sprachmenü auf dem Bildschirm */
#head-lang { 
  width: 100%;
  max-width: 1200px;
  min-height: 25px; 
  font-size: 0.8rem;
  text-align: right;
  word-spacing: 0;
  padding: 10px 15px;
  margin: 0 auto;
}

#head-lang a,
#head-lang a:visited {
  text-decoration: none;
  color: gray;
}

#head-lang a:hover {
  font-weight: normal; 
  text-shadow: 0.25px 0 0 rgb(47, 46, 46), -0.25px 0 0 rgb(47, 46, 46); 
}

#head-lang a.active {
  color: gray;
  font-weight: normal; 
  text-shadow: 0.25px 0 0 rgb(47, 46, 46), -0.25px 0 0 rgb(47, 46, 46); 
}
	
#head-nav {
  max-width: 1000px;
  width: 100%;
  margin: 10px auto 2rem auto; /* Saubere Zentrierung */
  display: flex;
  flex-wrap: wrap;
  align-items: center; 
  justify-content: space-between; 
  padding: 10px 20px; 
  font-size: 1rem;
  gap: 30px;
}

.nav-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-top: -2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  gap: 40px; 
  margin-top: 0;
}

.nav-links a,
.nav-links a:visited,
.text-link,
.text-link:visited {
  color: gray;
  text-decoration: none;
  white-space: nowrap; 
}

.nav-links a:hover, 
.nav-links a:active, 
.nav-links a:focus,
.text-link:hover, 
.text-link:active, 
.text-link:focus {
  font-weight: normal; 
  text-shadow: 0.25px 0 0 rgb(47, 46, 46), -0.25px 0 0 rgb(47, 46, 46); 
}

.nav-links a.active,
.text-link.active { 
  color: gray;
  font-weight: normal; 
  text-shadow: 0.25px 0 0 rgb(47, 46, 46), -0.25px 0 0 rgb(47, 46, 46); 
}

.search-form input {
  visibility: hidden;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 100%; 
}

/* REPARATUR: Zentriert den Inhaltsbereich sauber */
#content {
  position: relative;
  padding: 20px 15px; 
  width: 100%;
  max-width: 1000px;
  min-height: 300px;
  margin: 2rem auto;
}

/* ==================================================================
   MEDIEN-ANPASSUNG FÜR SMARTPHONES 
   ================================================================== */
@media (max-width: 600px) {
  #head-nav {
    flex-direction: column; 
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
  #Element3, #Element5, #Element6, #Element8 {
    float: none; 
    display: block;
  }
} 


/* ==================================================================
   TABELLEN-ANPASSUNGEN (JETZT EXAKT RESEVIERT)
   ================================================================== */

.teaser-table-container {
  max-width: 1000px;
  width: 100%;
  padding: 0 15px;
  margin: 20px auto 30px auto; 
}

.teaser-table {
  width: 100%;
  border-collapse: collapse;
}

.col-image {
  width: 300px;
  vertical-align: top;
  padding-right: 40px; 
}

.col-image img {
  width: 300px;     
  height: auto;
  display: block;
}

.col-content {
  vertical-align: top; 
  padding-top: 15px;   
  padding-bottom: 20px;
}


/* ==================================================================
   SMARTPHONE-UMBRUCH FÜR DIE TABELLE
   ================================================================== */
@media (max-width: 768px) {
  .teaser-table, 
  .teaser-table tr, 
  .teaser-table td {
    display: block;
    width: 100%;
  }
  
  .col-image {
    padding-right: 0;  
    margin-bottom: 20px; 
    text-align: center; 
  }

  .col-image img {
    max-width: 100%;   
    margin: 0 auto;
  }
}

/* ==================== ULTRA-HELLER GRAUER FOOTER ==================== */

/* 1. Äußere Box: Sehr helles, sauberes Grau über 100% Breite */
footer.full-width-footer {
  width: 100% !important;
  max-width: 100% !important;       
  background-color: #e6e6e6 !important; 
  margin: 60px 0 0 0 !important;    
  padding: 25px 0 !important;       
  display: block !important;

/* 2. Innere Box: Flexbox mit strikter Oberkanten-Ausrichtung */
.footer-inner {
  width: 100% !important;
  max-width: 1000px !important;     
  margin: 0 auto !important;        
  padding: 0 15px !important;       
  background-color: transparent !important; 
  
  display: flex !important;        
  justify-content: space-between !important;  
  align-items: flex-start !important; /* Zwingt beide Boxen an die absolute Oberkante */
  flex-wrap: nowrap !important;       /* KORREKTUR: Verhindert das Umbrechen im Vollbildmodus vollständig */
  gap: 20px !important;                       
}

/* 3. Symmetrie-Garantie: Bereinigt die Absatz-Abstände im Footer komplett */
.footer-contact p,
.footer-links p {
  margin: 0 !important;             
  padding: 0 !important;
  line-height: 1.5 !important;      
  background-color: transparent !important;
  display: inline-block !important; /* KORREKTUR: Hebt das Block-Verhalten der Absätze auf */
  font-size: clamp(0.75rem, 1.8vw, 0.85rem) !important; 
  color: gray;
}

/* Linker Text (Kontakt) */
.footer-contact {
  background-color: transparent !important; 
  color: #333333 !important;        
  text-align: left !important;
  flex: 1 !important;               /* Gibt dem Kontakt flexiblen Raum */
}

/* Rechter Text (Impressum Container) */
.footer-links {
  background-color: transparent !important; 
  text-align: right !important;
  flex: 1 !important;               /* Gibt dem Impressum flexiblen Raum */
}

/* Der Impressums-Link */
footer-links a,
.footer-links a:visited,
.footer-links a.text-link,
.footer-links a.text-link:visited {
  color: gray !important;             /* Ändert die Farbe von Dunkelgrau auf Ihr Standard-Link-Grau */
  text-decoration: none !important;   /* Entfernt die Unterstreichung im Normalzustand */
  white-space: nowrap !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* Der passende Hover-Effekt für Ihre Text-Links im Footer */
.footer-links a:hover,
.footer-links a.text-link:hover {
  font-weight: normal !important; 
  color: gray !important;             /* Bleibt beim Hovern grau */
  text-decoration: none !important;   /* Verhindert die standardmäßige Unterstreichung */
  text-shadow: 0.25px 0 0 rgb(47, 46, 46), -0.25px 0 0 rgb(47, 46, 46) !important; /* Simuliert den Fett-Effekt der anderen Text-Links */
}
}

/* ==================================================================
   SMARTPHONE-UMBRUCH (NUR FÜR BILDSCHIRME UNTER 768px WIDTH)
   ================================================================== */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column !important; /* Erst auf dem Handy untereinander stapeln */
    flex-wrap: wrap !important;
    align-items: center !important; 
    text-align: center !important;
  }
  .footer-contact,
  .footer-links {
    text-align: center !important;
    width: 100% !important;
  }
  .footer-contact p,
  .footer-links p {
    display: block !important; /* Auf dem Handy wieder als normaler Block */
  }
}

