/* ==============================
   GLOBALE GRUNDEINSTELLUNGEN
   ============================== */

body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ==============================
   ÜBERSCHRIFTEN
   ============================== */

h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  color: #222;
}

h1 {
  font-size: 2em;
  margin-top: .5em;
  margin-bottom: 1em;
  margin-left: 15px;
}

h2 {
  font-size: 1.7em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 15px;
}

h3 {
  margin-top: 4em;
  margin-bottom: 1.5em;
  margin-left: 9px;
  font-size: 1.2em;
  font-weight: 400;
}

h4 {
  margin-top: 2em;
  margin-bottom: 1em;
  margin-left: 0;
  font-size: 1.1em;
  font-weight: 600;
}

/* ==============================
   LINKS
   ============================== */

a {
  text-decoration: none;
  color: #766845;
}

a:hover {
  color: #708090;
  text-decoration: underline;
}

/* ==============================
   ABSÄTZE
   ============================== */

p {
  margin: 0;
  padding: 0;
}

/* ==============================
   LAYOUT
   ============================== */

#wrapper {
  margin: 0 auto;
  position: relative;
  min-height: 100%;
}

#header {
  background-image: url(../images/headerk.jpg);
  background-repeat: no-repeat;
  background-position: center right;
  margin-right: 100px;
  min-height: 139px;
  height: 139px;
  position: relative;
}

#header_text {
  display: block;
  font-size: 2em;
  color: #333;
  padding-top: .9em;
  margin-left: 25px;
}

#slogan_shadow {
  font-size: 1em;
  color: #FFFFFF;
  margin-top: 1.3em;
  clear: both;
  margin-left: 25px;
  line-height: 1em;
}

#slogan {
  color: #666;
  position: relative;
  top: -20px;
  left: 1px;
}

#content_wrapper {
  clear: both;
  float: left;
  background: #e9e3de;
  width: 100%;
  border-top: 5px solid #666;
  min-height: 100vh;
  position: relative;
}

#content_block {
  width: 800px;
  margin: 0 auto;
  position: relative;
}

#side_bar {
  float: left;
  width: 180px;
  margin-top: 57px;
}

#content {
  margin-left: 190px;
  padding-top: 10px;
  padding-bottom: 80px;
}

#content_block::after {
  content: "";
  display: table;
  clear: both;
}

/* ==============================
   SIDEBAR MENÜ
   ============================== */

.sidemenu {
  list-style: none;
  margin: 1.3em 0 1em 0;
  padding: 0;
}

.sidemenu li {
  margin-bottom: 8px;
}

.sidemenu a {
  display: block;
  width: 180px;
  line-height: 1.6em;
  font-size: 1.1em;
  text-transform: uppercase;
  padding-left: 10px;
  background: #e9e3de;
  border-bottom: 1px solid #ccc;
  color: #666;
}

#side_bar .sidemenu a:hover {
  background: #F0E3DA;
  border-right: 3px solid #708090;
  border-bottom: 1px solid #ccc;
  color: #708090;
  text-decoration: none;
}

#side_bar .active_sidemenu {
  border-right: 3px solid #708090;
  border-bottom: 1px solid #708090;
  font-weight: bold;
}

/* ==============================
   INHALT: ABSÄTZE & LISTEN
   ============================== */

#content p {
  text-align: left;
  line-height: 1.3em;
  margin-bottom: 1em;
  padding: 0 10px;
}

/* Eingerückte Liste – Bullet links, Text bündig – mit Unicode */
#content ul.therapie-liste {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 16px 20px;
  font-size: 0.9em;
  line-height: 1.4;
}

#content ul.therapie-liste li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 1.2em;
}

#content ul.therapie-liste li::before {
  content: "\2022";  /* ← Unicode für • */
  position: absolute;
  left: 0;
  color: #333;
}

/* ==============================
   TABELLEN – MIT WRAPPER FÜR KORREKTE POSITION
   ============================== */

#content .table-wrapper {
  overflow: hidden;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

#content table {
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
}

#content table td {
  padding: 4px 0;
  vertical-align: top;
}

/* ==============================
   BILDER
   ============================== */

#content img#ohneueber,
#content img#rechts,
#content img#bildkontakt,
#content img#leistungen-bild {
  float: right;
  width: 320px;
  height: auto;
  margin: 3.6em 10px 0 10px;
}

/* Spezielles Bild für person.html */
#content img#bs {
  float: right;
  width: 320px;
  height: auto;
  margin: 3.6em 10px 0 10px;
}

/* ==============================
   LEISTUNGSÜBERSICHT
   ============================== */

#content .leistungsliste {
  font-size: 1.1em;
  line-height: 1.6;
}

#content .leistungsliste a {
  display: block;
  color: #333;
  text-decoration: underline;
  margin-bottom: 0.4em;
}

#content .leistungsliste a:hover {
  color: #708090;
  text-decoration: none;
}

.leistungsliste-container {
  display: flex;
  align-items: center;
  height: 213px;
  margin: 1em 0 1.5em 0;
}

/* ==============================
   FOOTER
   ============================== */

#footer {
  position: fixed;
  padding: 10px;
  bottom: 0;
  left: 0;
  right: 0;
  background: #666;
  color: #e9e3de;
  text-align: center;
  font-size: 0.9em;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#footer a {
  color: #e9e3de;
}

#footer a:hover {
  color: #708090;
  text-decoration: none;
}

/* ==============================
   RESPONSIVE DESIGN FÜR SMARTPHONES
   ============================== */

@media screen and (max-width: 800px) {
  /* Header-Text noch kleiner */
  #header_text {
    font-size: 1.3em;
    padding-top: 0.4em;
    margin-left: 10px;
  }

  #slogan_shadow {
    font-size: 0.8em;
    margin-top: 0.6em;
  }

  #slogan {
    top: -12px;
    font-size: 0.8em;
  }

  /* Header-Bild ausblenden */
  #header {
    background-image: none;
    min-height: 80px;
    height: auto;
    margin-right: 0;
  }

  #content_block {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  #side_bar {
    float: none;
    width: 100%;
    margin: 15px 0 20px 0;
    text-align: center;
  }

  .sidemenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .sidemenu li {
    list-style: none;
    margin: 0;
  }

  /* Menü-Buttons kleiner und kompakter */
  .sidemenu a {
    width: auto;
    padding: 6px 10px;
    font-size: 0.95em;
    text-transform: none;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  /* 🔥 ANPASSUNG: Alle Menüpunkte auf Mobilgeräten – kein Zeilenumbruch */
  .sidemenu a {
    white-space: nowrap;
    font-size: 0.95em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #content {
    margin-left: 0;
    padding-top: 0;
    padding-bottom: 30px;
  }

  h3, h4 {
    margin-left: 0;
    font-size: 1.3em;
  }

  /* 🔥 ALLE BILDER AUSBLNDEN (außer #bs) */
  #content img {
    display: none;
  }

  /* 🔥 AUSNAHME: #bs-BILD (person.html) wird angezeigt, halb so groß */
  #content img#bs {
    display: block;            /* ← Bild wird wieder eingeblendet */
    width: 45%;                /* ← halbe Breite */
    max-width: 160px;          /* ← maximale Größe */
    height: auto;
    float: none;               /* ← kein Float auf Mobil */
    margin: 1em auto;          /* ← zentriert */
  }

  .leistungsliste-container {
    height: auto;
    display: block;
    text-align: center;
  }

  #content .table-wrapper {
    margin-top: 0.8em;
    text-align: center;
  }

  #content table {
    width: 100%;
    font-size: 0.95em;
  }

  #footer {
    position: static;
    padding: 12px;
  }

  #content p {
    padding-left: 0;
    padding-right: 0;
  }

  #content ul.therapie-liste {
    margin-left: 15px;
    font-size: 0.95em;
  }
}
