/* ============================================
   CSS-DATEI: screen.css
   BESCHREIBUNG: Haupt-Stylesheet für HP Praxis Flecken Website
   VERSION: 1.0
   LETZTE ÄNDERUNG: 30.09.2025
   ============================================ */

/* ============================================
   1. BASE STYLES (Grundlegende Basis-Styles)
   ============================================ */

/* Body und globale Einstellungen */
body {
  background-color: #ffb442;
  font-size: 62.5%; /* 1em = 10px für einfachere Berechnungen */
  font-family: "Trebuchet MS", Verdana, Helvetica, sans-serif;
  color: #564b47;
  padding: 0;
  margin: 0;
  padding-bottom: 3em; /* Abstand zum Viewport-Bottom */
}

/* ============================================
   1.1 TYPOGRAPHY (Schriftarten und Text-Stile)
   ============================================ */

h1 {
  color: #cc3a00; /* Orange-Rot */
  font-size: 2.5em;
  margin: 0;
  font-weight: bold;
}

h2 {
  color: #cc3a00; /* Orange-Rot */
  font-size: 2em;
  font-weight: normal;
  margin: 0;
}

h3 {
  color: #000000; /* Schwarz */
  font-size: 1.6em;
  font-weight: normal;
  margin: 0;
}

h4 {
  color: #000000; /* Schwarz */
  font-size: 1.3em;
  font-weight: bold;
  margin: 0.5em 0;
}

p,
pre {
  font-size: 1.4em;
  color: #000000; /* Schwarz */
  padding: 5px 0;
  margin: 0;
  line-height: 1.4;
}

/* Horizontale Linien */
hr {
  color: #cc3a00; /* Orange-Rot */
  border: none;
  height: 2px;
  background-color: #cc3a00;
}

/* ============================================
   1.2 LINKS (Link-Stile)
   ============================================ */

a {
  color: #cc3a00; /* Orange-Rot */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:visited {
  color: #cc3a00; /* Orange-Rot */
}

a:hover {
  color: #564b47; /* Dunkelbraun */
}

a:active {
  color: #000000; /* Schwarz */
}

/* ============================================
   1.3 UTILITY CLASSES (Hilfsklassen)
   ============================================ */

.left {
  float: left;
}

.right {
  float: right;
}

/* Standard-Span für Formulare */
span {
  width: 10em;
  display: block;
  float: left;
}

/* Footer-Counter für originales chCounter-Script */
.footer-left span#visitorCount,
.footer-left #visitorCount {
  display: inline !important;
  float: none !important;
  width: auto !important;
  margin-left: 1em;
  opacity: 0.8;
  font-size: 1em;
}

/* ============================================
   2. LAYOUT STYLES (Hauptlayout-Struktur)
   ============================================ */

/* ============================================
   2.1 HEADER LAYOUT (Kopfzeile)
   ============================================ */

header#header {
  background: #ffdb7b; /* Hellgelb */
}

/* Obere Linie mit Hintergrundbild */
#titelline {
  background: url(../images/top_bg.gif) repeat-x;
  height: 1.5em;
}

/* Flexbox-Container für Header-Inhalte */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
}

/* Linker Bereich mit Titel und Untertitel */
#titelleft {
  flex: 1;
}

/* Rechter Bereich mit Logo */
#titelright {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  margin: 0;
  padding: 0;
  background: url(../images/logo.png) no-repeat center center;
}

/* Banner-Bereich mit Hintergrundbild */
#banner {
  border-top: 1px solid #feefe2;
  margin: 0;
  width: 75em;
  height: 10.7em;
  overflow: hidden;
  background: url(../images/header_img.jpg) no-repeat center center;
  background-size: cover;
}

/* ============================================
   2.2 CONTAINER LAYOUT (Hauptcontainer)
   ============================================ */

/* Zentraler Container für gesamten Inhalt */
#container {
  width: 75em;
  border: 1px solid #feefe2;
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25em;
  background-color: #ffffff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
  padding-bottom: 2em;
  box-sizing: border-box; /* Stabile Container-Breite */
}

/* ============================================
   2.3 CONTENT LAYOUT (Inhaltsbereich)
   ============================================ */

/* Hauptinhaltsbereich */
#content {
  background-color: #ffffff;
  padding: 2em;
  min-height: 29em;
  height: auto !important;
  margin-left: 15.7em; /* Platz für Sidebar */
  margin-right: 0;
}

/* Bilder im Content-Bereich */
#content img {
  border: 0;
}

/* Spezielle Positionierung für bestimmte Bilder */
#content img.bottompusher,
#content img.bottomfloater {
  float: right;
  clear: right;
}

#content img.bottomfloater {
  margin: 20px 0 0 20px;
}

#content img.bottompusher {
  background: none;
}

/* ============================================
   2.4 SIDEBAR LAYOUT (Seitenleiste)
   ============================================ */

/* Navigation Sidebar */
#left {
  float: left;
  width: 15.7em;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Stabile Navigation */
}

/* ============================================
   2.5 FOOTER LAYOUT (Fußzeile)
   ============================================ */

/* Footer-Container */
#footer {
  color: #feefe2;
  width: 75em;
  margin-top: 1.25em;
  margin-bottom: 1.5em;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding: 0;
  overflow: hidden; /* Clearfix für Float-Elemente */
}

#footer a {
  color: #feefe2;
}

/* Footer-Elemente Positionierung */
.footer-left {
  float: left;
  margin-right: 2em; /* Abstand zwischen den Footer-Blöcken */
}

.footer-left a {
  display: inline;
}

.footer-left span {
  display: inline;
  margin-left: 1em !important;
}

.footer-right {
  float: right;
  margin-left: 2em; /* Abstand zwischen den Footer-Blöcken */
}

/* Footer-Counter für Besucherzähler */
.footer-counter {
  clear: both;
  text-align: center;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #feefe2;
  font-size: 1.2em;
  color: #feefe2;
  font-weight: bold;
}

/* ============================================
   3. NAVIGATION STYLES (Navigationsstile)
   ============================================ */

/* ============================================
   3.1 HAUPTNAVIGATION (Hauptmenü)
   ============================================ */

/* Grundlegende Listen-Stile */
ul {
  font-size: 1.4em;
}

/* Hauptmenü-Container */
ul#menue {
  width: 15.6em;
  font-size: 1em;
  list-style-type: none;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box; /* Box-Sizing für genaue Breite */
}

/* Listenelemente des Hauptmenüs */
ul#menue li {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box; /* Box-Sizing für Listenelemente */
}

/* Links im Hauptmenü */
ul#menue li a {
  margin-top: 1px;
  padding-left: 1.2em;
  height: 2em;
  line-height: 2em;
  letter-spacing: 0.08em;
  text-align: left;
  background: #ff851b; /* Orange */
  display: block;
  color: #feefe2; /* Hellbeige */
  font-size: 1.35em;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 0; /* Kein unterer Abstand */
  padding-right: 0; /* Kein rechter Abstand */
  transition: background-color 0.3s ease;
}

/* Hover-Effekt für Hauptmenü-Links */
ul#menue li a:hover {
  background: #cc3a00; /* Dunkelrot */
}

/* Aktiver Zustand für Hauptmenü-Links */
ul#menue li a:active {
  background: #cc3a00; /* Dunkelrot */
}

/* Aktives Navigations-Element */
ul#menue li a.active {
  background-color: #cc3a00; /* Dunkelrot */
}

/* ============================================
   4. COMPONENT STYLES (Komponenten-Stile)
   ============================================ */

/* ============================================
   4.1 IMAGE COMPONENTS (Bild-Komponenten)
   ============================================ */

/* Team Images Container - Zentrierte Team-Bild-Galerie */
.team-images-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2%;
  width: 100%;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Team Images - Responsive Team-Bilder */
.team-img {
  width: 30%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  margin-bottom: 2%;
}

/* Hover-Effekt für Team-Bilder */
.team-img:hover {
  transform: scale(1.05);
}

/* ============================================
   4.1.1 MOBILE OPTIMIERUNG
   ============================================ */

/* Mobile-First: Sofortige Anzeige ohne Übergänge */
@media (hover: none) and (pointer: coarse) {
  .team-img,
  .content-img,
  .hero-img,
  .low-quality-img {
    filter: none !important;
    opacity: 1 !important;
  }
}

/* Content Images - Standard-Inhaltsbilder mit Schatten */
.content-img {
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
}

/* Full Width Images - Bilder mit voller Breite */
.full-width-img {
  width: 100% !important;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Images - Profilbilder wie Hildegard Flecken */
.hero-img {
  width: 176px;
  height: auto;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
  margin: 15px;
  float: right;
  clear: right;
}

/* Low Quality Images - Bilder mit geringer Qualität */
.low-quality-img {
  height: auto;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.3);
}

/* Rechts ausgerichtete Content-Bilder */
.right.content-img {
  margin: 20px; /* Ursprünglicher Margin für rechts ausgerichtete Bilder */
}

/* ============================================
   4.2 SUBMENÜ COMPONENTS (Untermenü-Komponenten)
   ============================================ */

/* Submenü-Container (versteckt bei Seitenladung) */
ul#menue li a + ul.submenue {
  background: #ffdb7b; /* Hellgelb */
  display: none;
}

/* Submenü wird sichtbar bei Focus */
ul#menue li a:focus + ul.submenue {
  display: block;
}

/* Submenü-Links */
ul#submenue1 li a,
ul#submenue2 li a,
ul#submenue3 li a,
ul#submenue4 li a,
ul#submenue5 li a {
  border-bottom: 1px solid #ffffff;
  padding-left: 2em;
  color: #ff851b; /* Orange */
  cursor: pointer;
  font-size: 1.08em;
  background: none;
}

/* Aktives Submenü */
ul#active li a {
  background: #000000; /* Schwarz */
}

/* ============================================
   4.3 SITEMAP COMPONENTS (Sitemap-Komponenten)
   ============================================ */

/* Sitemap-Baum Struktur */
#sitemap-baum ul {
  list-style-type: none;
  margin: 0 30px 0 45px;
  padding: 0;
  border-left: 1px dotted #cc3a00; /* Orange-Rot */
}

#sitemap-baum ul li {
  margin: 8px 0 0 0;
  padding: 0;
}

#sitemap-baum ul ul {
  list-style-type: none;
  border-left: 1px dotted #9c6a2e; /* Braun */
  margin: 0 0 0 30px;
  padding: 0;
}

#sitemap-baum ul ul li {
  margin: 0;
  margin: 3px 0 0 0;
  padding: 0;
  font-size: 100%;
}

/* Sitemap-Links */
#sitemap-baum ul a {
  margin: 0;
  padding: 0 10px;
  font-size: 105%;
  text-decoration: none;
  font-weight: bold;
  color: #450000; /* Dunkelbraun */
  border-bottom: 1px dotted #9c6a2e; /* Braun */
}

#sitemap-baum ul a:visited {
  background-color: #f5ebd8; /* Beige */
  color: #850;
  padding-right: 15px;
}

#sitemap-baum ul a:hover,
#sitemap-baum ul a:active,
#sitemap-baum ul a:focus {
  color: #a00; /* Rot */
}

#sitemap-baum ul ul a {
  font-variant: normal;
  font-weight: normal;
}

#sitemap-baum ul ul a.lev2 {
  font-weight: normal;
}

#sitemap-baum ul span.sm-aktiv {
  padding-left: 10px;
  font-weight: bold;
}
/* ============================================
   5. RESPONSIVE STYLES (Responsive Design)
   ============================================ */

/* ============================================
   5.1 TABLET RESPONSIVE (768px und kleiner)
   ============================================ */

/* Responsive Design für Tablets und kleinere Bildschirme */
@media screen and (max-width: 768px) {
  /* Header-Anpassungen für Tablets */
  #titelleft {
    padding-top: 0.5em;
    height: auto;
    min-height: 5em;
  }

  /* Logo verkleinern statt ausblenden */
  #titelright {
    width: 120px; /* Kleinere Logo-Größe */
    height: 75px;
    flex-shrink: 0;
  }

  #titelleft h1 {
    font-size: 2em;
    line-height: 1.2;
    margin-bottom: 0.2em;
  }

  #titelleft h2 {
    font-size: 1.6em;
    line-height: 1.1;
    margin-bottom: 0.5em;
  }

  /* Container-Anpassungen für Mobile */
  #container {
    width: 95%;
    margin: 1em auto;
    margin-bottom: 1.25em;
    max-width: 75em;
  }

  #banner {
    width: 100%;
    height: 10.7em;
  }

  #content {
    margin-left: 0; /* Sidebar wird über Content gelegt */
    padding: 1em;
  }

  #left {
    width: 100%;
    float: none;
  }

  /* Mobile Navigation - Flexbox-Layout */
  ul#menue {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  ul#menue li {
    flex: 1 1 calc(25% - 0.4em);
    min-width: calc(25% - 0.4em);
    margin: 0.05em;
    box-sizing: border-box;
  }

  ul#menue li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 0.5em;
    font-size: 1.35em;
    text-align: center;
    height: 2em;
    box-sizing: border-box;
    line-height: 2em;
    text-decoration: none;
    margin-top: 1px;
  }

  /* Mobile Footer - Zentriert und kompakt */
  #footer {
    width: 100%;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    padding: 0 1em;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-left,
  .footer-right {
    float: none !important;
    display: block;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
  }
}

/* ============================================
   5.2 EXTRA SMALL TABLET RESPONSIVE (575px und kleiner)
   ============================================ */

/* Logo ausblenden bei sehr kleinen Tablets */
@media screen and (max-width: 575px) {
  #titelright {
    display: none; /* Logo wird bei 575px ausgeblendet */
  }
}

/* ============================================
   5.3 MOBILE RESPONSIVE (480px und kleiner)
   ============================================ */

/* Extra Small Mobile - Besonders kleine Bildschirme */
@media screen and (max-width: 480px) {
  ul#menue li {
    flex: 1 1 calc(50% - 0.4em); /* 2 Spalten statt 4 */
    min-width: calc(50% - 0.4em);
  }

  ul#menue li a {
    font-size: 1.35em;
    padding: 0.6em 0.3em;
    height: 2em;
    line-height: 2em;
    margin-top: 1px;
  }
}

/* ============================================
   6. CONTENT STYLES (Inhaltsspezifische Layouts)
   ============================================ */

/* ============================================
   6.1 CONTENT SECTIONS (Standard-Inhaltsbereiche)
   ============================================ */

/* Basis-Layout für Content-Sektionen */
.content-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 2em;
  width: 100%;
}

/* Text-Bereich in Content-Sektionen */
.content-section .text-content {
  flex: 1;
  max-width: 350px;
  padding-right: 2em;
}

/* Bild-Bereich in Content-Sektionen */
.content-section .image-content {
  flex-shrink: 0;
  width: 400px;
  height: 300px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-section .image-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Jugendliche Section - Bild links, Text rechts */
.content-section.jugendliche {
  flex-direction: row-reverse;
}

.content-section.jugendliche .text-content {
  padding-left: 10px;
}

/* Erwachsene Section - Text links, Bild rechts */
.content-section.erwachsene {
  flex-direction: row;
}

.content-section.erwachsene .text-content {
  padding-right: 10px;
}

/* ============================================
   6.2 ANIMAL SECTIONS (Tier-spezifische Bereiche)
   ============================================ */

/* Basis-Layout für Tier-Sektionen */
.animal-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
  margin-bottom: 3em;
}

/* Text-Bereich in Tier-Sektionen */
.animal-section .animal-text {
  flex: 1;
  order: 1;
  padding-right: 10px;
}

/* Bild-Bereich in Tier-Sektionen */
.animal-section .content-image {
  flex-shrink: 0;
  width: 250px;
  text-align: center;
  order: 2;
}

.animal-section .content-image img {
  max-width: 100%;
  height: auto;
}

/* Becky Section - Bild links, Text rechts */
.animal-section.reverse {
  flex-direction: row-reverse;
}

.animal-section.reverse .animal-text {
  padding-left: 10px;
  padding-right: 0;
}

/* Text-Only Sections - Ohne Bilder */
.animal-section.text-only {
  justify-content: flex-start;
}

.animal-section.text-only .animal-text {
  padding-right: 0;
  text-align: left;
}

/* ============================================
   6.3 RESPONSIVE CONTENT (Responsive Inhaltsanpassungen)
   ============================================ */

/* Responsive Anpassungen für Content-Sektionen */
@media screen and (max-width: 900px) {
  .content-section,
  .content-section.jugendliche,
  .content-section.erwachsene,
  .animal-section,
  .animal-section.reverse,
  .animal-section.text-only {
    flex-direction: column !important;
    align-items: center;
  }

  /* Bedingte Width für Content-Images bei Umbruch */
  .content-img {
    width: 75% !important;
  }

  /* Low Quality Images bekommen 60% Breite nur bei responsive Layout */
  .low-quality-img {
    width: 60% !important;
  }

  .content-section .text-content,
  .content-section.jugendliche .text-content,
  .content-section.erwachsene .text-content,
  .animal-section .animal-text,
  .animal-section.reverse .animal-text,
  .animal-section.text-only .animal-text {
    order: 1;
    padding: 0;
    margin-bottom: 1em;
    width: 100%;
    text-align: left;
  }

  .content-section .image-content,
  .content-section.jugendliche .image-content,
  .content-section.erwachsene .image-content,
  .animal-section .content-image,
  .animal-section.reverse .content-image {
    order: 2;
    width: 90% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  /* Schwerpunkte spezielle Responsive-Größe */
  @media screen and (max-width: 768px) {
    .animal-section .content-image {
      width: 80% !important;
      margin: 0 auto !important;
    }
  }

  .animal-section.text-only .content-image {
    display: none;
  }

  .content-section .text-content ul,
  .content-section.jugendliche .text-content ul,
  .content-section.erwachsene .text-content ul {
    text-align: left;
    list-style-position: inside;
  }
}
