@charset "utf-8";
/***********************************************/
/*  Projekt: www.physiotherapie-berki.de       */
/*  Datei: "physiomed_responsive.css"          */
/*  Datum: 20.11.2026   					   */
/*  Comment: responsive                        */
/*  Copyright: Joerg Rossbach, rockx.de        */
/*                       					   */
/***********************************************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px; /* Leicht vergrößert für bessere Lesbarkeit */
  line-height: 1.5;
  color: #666;
  background: #FFF url(../img/bg_body_03_02.gif) repeat-x;
}

h1 { font-size: 16px; font-weight: bold; margin-bottom: 0.8em; }
h2 { font-size: 14px; font-weight: bold; margin-bottom: 0.8em; margin-top: 2px; }
h3 { font-size: 12px; font-weight: bold; margin-bottom: 0em; }
p  { margin-bottom: 0.8em; }

a { color: #666; text-decoration: none; }
a:hover { color: #000; }
a:visited { color: #666; }
a, a img { border: 0; }

/* Hauptcontainer: Auf Desktop exakt 783px breit, auf kleineren Bildschirmen flexibel */
#container {
  margin: 0 auto;
  max-width: 783px;
  width: 100%;
}

/* --- HEADER --- */
#header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

#header #top {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Logo links wie im Original */
  color: #4C7031;
}

#logo img {
    max-width: 228px;
    height: auto;
    display: block;
    margin-top: 0px;
    top: auto;
}

/* Linkes grünes Header-Feld (exakt 242px auf Desktop) */
#header #left {
  width: 30.91%; /* Entspricht 242px von 783px */
  min-height: 300px;
  border-left: #F5FFFA 1px solid;
  border-right: #F5FFFA 1px solid;
  border-bottom: #F5FFFA 1px solid;
  background: #D4E7B1 url(../img/bg_header_02_01.png) no-repeat center center;
  background-size: cover;
}

#header #left #text {
  display: none;
}

/* Rechtes Header-Bild (exakt 540px auf Desktop) */
#header #right {
  width: 69.09%; /* Entspricht 541px von 783px */
  border-right: #F5FFFA 1px solid;
  border-bottom: #F5FFFA 1px solid;
  overflow: hidden;
}

#header #right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- CONTENT (Linke Spalte + Haupttext) --- */
#content {
  display: flex;
  align-items: stretch; /* Beide Spalten sind immer gleich hoch */
  width: 100%;
  min-height: 480px;
}

#lisp {
  width: 30.91%; /* Exakt 242px auf Desktop */
  background: #D4E7B1 url(../img/bg_lisp_02_01.gif);
  border-left: #FFF 1px solid;
  border-right: #FFF 1px solid;
  padding: 25px 0;
}

#menu {
  width: 100%;
}

#menu ul { 
  list-style: none;
  margin: 0 30px 0 0;
  padding: 0;
}

#menu ul li { 
  padding: 0 0 15px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: right;
  color: #4C7031;
}

#menu ul li a {
  text-decoration: none;
  color: #4C7031;
  display: block;
}

#menu ul li a:hover, 
#menu ul li a.aktiv { 
  color: #FFF; 
}

#main {
  width: 69.09%; /* Exakt 541px auf Desktop */
  padding: 25px 20px 30px 30px;
  background-color: #FFF;
}

/* --- FOOTER --- */
#footer {
  width: 100%;
  padding: 25px 20px 30px 30.91%; /* Exakt unter der rechten Spalte ausgerichtet */
  color: #4C7031;
  font-size: 14px;
  text-align: center;
}

#footer a, 
#footer a:hover, 
#footer a:visited { 
  color: #4C7031; 
}

/* ===================================================
   RESPONSIVE ANPASSUNGEN (Smartphones & kleine Tablets)
   =================================================== */
@media (max-width: 768px) {
  
  /* Logo oben zentrieren */
  #header #top {
    justify-content: center;
    height: auto;
    padding: 10px 15px;
  }

  /* Leeres linkes Deko-Bild auf dem Handy ausblenden, damit das Foto sofort sichtbar ist */
  #header #left {
    display: none;
  }

  /* Headerbild auf volle Breite */
  #header #right {
    width: 100%;
    border: none;
  }

  #header #right img {
    height: auto;
  }

  /* Navigation und Text untereinander stapeln */
  #content {
    flex-direction: column;
    min-height: auto;
  }

  /* Grüner Menü-Balken oben unter dem Bild */
  #lisp {
    width: 100%;
    padding: 10px 15px;
    border-left: none;
    border-right: none;
  }

  /* Menüpunkte als saubere, touch-freundliche Navigation nebeneinander */
  #menu ul {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  #menu ul li {
    padding: 4px 0;
    text-align: center;
    font-size: 15px;
  }

  /* Haupttext auf volle Bildschirmbreite mit angenehmem Seitenabstand */
  #main {
    width: 100%;
    padding: 20px 20px 30px 20px;
  }

  /* Footer zentriert auf voller Breite */
  #footer {
    padding: 20px 15px;
    border-top: 1px solid #D4E7B1;
    font-size: 13px;
  }
}
