/* =========================================================
   Ayurveda Freiburg - responsive CSS
   Voraussetzung:
   1. In allen HTML-Dateien ist vorhanden:
      <meta name="viewport" content="width=device-width, initial-scale=1" />
   2. Die aeussere Tabelle wurde von width="950" auf width="100%" geaendert.
   ========================================================= */


/* ---------------------------------------------------------
   Grundlayout
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
td,
th {
  font-family: Garamond, "Times New Roman", Times, Georgia, Cambria, serif;
  font-size: 18px;
}

body {
  margin: 0;
  color: #333;
  background-color: #fffadd;
  background-image: url("bilder/grafiken/Ayurveda-Neuer-Look-2018a-BG-Kachel.jpg");
  background-repeat: repeat-x;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

sup {
  line-height: 0;
}


/* ---------------------------------------------------------
   Aeussere alte Zentriertabelle als modernen Seitencontainer nutzen
   --------------------------------------------------------- */

body > table {
  width: min(100%, 950px) !important;
  max-width: 950px;
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

body > table,
body > table > tbody,
body > table > tbody > tr,
body > table > tbody > tr > td {
  max-width: 100%;
}

body > table > tbody > tr > td {
  padding: 0;
}

.hintergrundbild {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 370px) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "nav  content"
    "addr end";
  column-gap: 2rem;
  row-gap: 1rem;
  align-items: start;
  background-color: #fff;
  background-image: url("bilder/grafiken/back-2026-06.gif");
  background-repeat: repeat-y;
}

.hintergrundbild > a[name="seitenanfang"] {
  position: absolute;
  top: 0;
  left: 0;
}


/* ---------------------------------------------------------
   Kopfbereich
   --------------------------------------------------------- */

#head {
  grid-area: head;
  position: relative;
  width: 100%;
  min-height: 141px;
  color: #c54040;
  font-weight: bold;
  background-image: url("bilder/grafiken/head-2026-06.jpg");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 950px 141px;
  z-index: 1;
}

#logo {
  position: absolute;
  left: 26px;
  top: 0px;
  width: 250px;
  max-width: calc(100% - 52px);
  height: auto;
  z-index: 3;
}

#logo img {
  display: block;
  width: 100%;
  height: 100px;
}


.kopfnavigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 0.9rem;
  margin: 0;
  padding: 10px 1rem 0 475px;
}

.kopfnavigation li {
  display: block;
  list-style: none;
  padding: 0;
}

.kopfnavigation a:link,
.kopfnavigation a:visited {
  color: #E8E7B0;
  text-decoration: none;
}

.kopfnavigation a:hover,
.kopfnavigation a:active,
.kopfnavigation a:focus {
  color: #FF6600;
  background-color: #1B2F13;
  text-decoration: underline;
}


/* ---------------------------------------------------------
   Hauptnavigation
   --------------------------------------------------------- */

#navigation {
  grid-area: nav;
  width: 100%;
  color: #F3A310;
  z-index: 2;
  padding: 0 0 1rem 0;
}

#navigation .bereich1 {
  margin: 0px 0 10px 15px;
  padding: 5px 5px 0 0;
  background-image: url("bilder/grafiken/trans-back-titel.png");
  background-repeat: repeat-x;
  border-bottom: 1px solid #FCD245;
}

#navigation .bereich1.institut {
  background-image: url("bilder/grafiken/trans-back-titel-b.png");
}

#navigation .bereich1:hover {
  background-image: url("bilder/grafiken/trans-back-titel2.gif");
}

#navigation .bereich2 {
  margin: 5px 0 15px 0;
  padding: 0 8px;
}

#navigation ul {
  margin: 0;
  padding-left: 1.3rem;
}

#navigation li {
  list-style: none;
  color: #933;
  font-size: 101%;
  font-weight: bold;
  letter-spacing: 0.4pt;
  text-transform: uppercase;
  padding: 0 0 5px;
}

#navigation .bereich1 li li {
  color: #933;
  font-size: 98%;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.15;
  padding: 0 0 2px;
  margin-top: 10px;
  text-transform: none;
  margin-left: -10px;
}

#navigation .bereich1 li li li {
  font-size: 100%;
  font-weight: bold;
  padding: 0 0 5px;
  margin-top: 2px;
  list-style-type: none;
  list-style-image: url("bilder/grafiken/pfeil-orange.gif");
}

#navigation .bereich1 li li li li {
  list-style-type: square;
  list-style-image: none;
}

#navigation .bereich1 li a:link,
#navigation .bereich1 li a:visited {
  color: #D28C0B;
  text-decoration: none;
  font-weight: normal;
}

#navigation .bereich1 li li a:link,
#navigation .bereich1 li li a:visited {
  color: #007130;
  text-decoration: none;
  font-weight: bold;
}

#navigation .bereich1 li li li a:link,
#navigation .bereich1 li li li a:visited {
  font-weight: normal;
}

#navigation a:hover,
#navigation a:active,
#navigation a:focus {
  color: #FF6600;
  text-decoration: underline;
}


/* ---------------------------------------------------------
   Inhaltsbereich
   --------------------------------------------------------- */

#text,
#sitemap {
  grid-area: content;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 2rem 2rem 2.7rem;
  line-height: 1.5;
  z-index: 3;
  background-color: #FFFEF9;
}

#text p {
  margin: 0 0 15px;
  line-height: 1.5;
}

#sitemap p {
  margin: 0 0 0.5rem;
}

#text h1,
#sitemap h1 {
  margin: 0.3rem 0.6rem 0.25rem;
  text-align: right;
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 2pt;
  color: #ffcc33;
  line-height: 1.2;
}

#text h1 {
  font-size: 145%;
}

#sitemap h1 {
  font-size: 24px;
}

#text h2 {
  font-size: 125%;
  color: #933;
  margin: 15px 0 0.6rem;
  line-height: 1.3;
}

#sitemap h2 {
  font-size: 16px;
  color: #933;
  margin: 15px 0 0.5rem;
}

#text h3 {
  font-size: 110%;
  color: #933;
  margin: 10px 0 8px;
  font-variant: small-caps;
}

#sitemap h3 {
  font-size: 13px;
  color: #933;
  margin: 10px 0 8px;
}

#text h4 {
  font-size: 105%;
  color: #6C2424;
  margin: 10px 0 6px;
  border-bottom: 1px solid #E8D5A8;
}

#text h5 {
  font-size: 100%;
  color: #6C2424;
  margin: 15px 0 5px;
}

#text ul,
#text ol {
  padding-left: 1.5rem;
}

#text ol li {
  padding: 0 0 8px;
  list-style-image: none;
  list-style-type: decimal;
}

#text li {
  list-style-type: square;
  list-style-image: url("bilder/grafiken/om10px.gif");
  padding: 0 0 8px;
}

#text ul.ListeEng li {
  padding: 0;
}

#text li li {
  list-style-type: square;
  list-style-image: none;
  padding: 0;
}

#sitemap ul {
  padding-left: 1.3rem;
}

#sitemap li {
  list-style-type: square;
  list-style-image: url("bilder/grafiken/list_dir.gif");
  padding: 0;
}


/* ---------------------------------------------------------
   Textlinks und allgemeine Links
   --------------------------------------------------------- */

a:link,
a:visited {
  color: #007130;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: #FF6600;
  text-decoration: underline;
}

#text a:link,
#text a:visited {
  padding-bottom: 2px;
  text-decoration: none;
  border-bottom: 1px dashed #B8BEA3;
}

#text a:hover,
#text a:active,
#text a:focus {
  padding-bottom: 2px;
  text-decoration: none;
  border-bottom: 1px solid #FF6600;
}

#text a:hover img,
#text a:active img,
#text a:focus img {
  opacity: 0.6;
}


/* ---------------------------------------------------------
   Bilder und kleine Layout-Hilfen im Inhalt
   --------------------------------------------------------- */

.imgleft {
  float: left;
  margin: 3px 8px 5px 0;
  padding-top: 6px;
}

.imgright {
  float: right;
  margin: 3px 0 5px 12px;
  padding-top: 6px;
}

#bildspalte {
  float: right;
  margin-left: 8px;
}

.BildAbstandRechts {
  margin-right: 15px;
}

.seitenanfang {
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  text-align: right;
  padding-top: 20px;
  margin-bottom: 0;
}

.stichwort {
  font-style: italic;
  font-weight: bold;
}

.Kommentar {
  color: #8D7B50;
  font-size: 16px;
}

.inArbeit {
  font-weight: bold;
  color: #FF0000;
  margin-left: 50px;
  margin-right: 50px;
}

.Preis {
  float: right;
  font-weight: bold;
  margin-left: 1rem;
}

.enger {
  font-size: 90%;
  letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   Spezielle Inhaltsklassen
   --------------------------------------------------------- */

.listeheadline {
  font-variant: small-caps;
  letter-spacing: 6pt;
  font-size: 11px;
  color: #C09758;
}

.preislisteunten {
  color: #734E16;
  line-height: 1.4;
}

.angebot {
  color: #933;
  font-weight: bold;
  font-size: 16px;
}

.button a:link,
.button a:visited {
  display: inline-block;
  background-color: #FFE1A4;
  padding: 0 50px;
}

.button a:hover,
.button a:active,
.button a:focus {
  background-color: #933;
  padding: 0 50px;
}

.zitat {
  background-color: #FEFAE7;
  font-style: italic;
  padding: 20px 20px 1px;
  margin: 20px 0;
  border-bottom: 1px solid #E28C00;
  color: #933;
  font-weight: normal;
}

.zitatAutor {
  color: #C58836;
  text-align: right;
}

.bewertungKopfzeile {
  color: #C58836;
  text-align: right;
  padding-top: 50px;
}

.bewertung {
  font-style: italic;
  font-weight: normal;
}

.bewertungAutor {
  color: #C58836;
  text-align: right;
  border-bottom: 1px solid #C58836;
}

.hinweis {
  font-style: italic;
  margin: 20px 0;
  font-weight: bold;
  border: 1px solid #E28C00;
  padding: 20px;
  color: #933;
  background-color: #F8E092;
}


/* ---------------------------------------------------------
   Adresse und Seitenabschluss
   --------------------------------------------------------- */

#adresse {
  grid-area: addr;
  width: auto;
  min-width: 0;
  padding: 0 1rem 1.5rem 30px;
  font-weight: normal;
  color: #BF8F00;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

#seitenabschluss {
  grid-area: end;
  width: auto;
  min-width: 0;
  padding: 5.2rem 10rem 0 0;
  text-align: right;
}

#seitenabschluss img {
  max-width: 251px;
  width: auto;
}


/* ---------------------------------------------------------
   Nach-oben-Link
   --------------------------------------------------------- */

#nachOben {
  position: fixed;
  right: max(0.75rem, calc((100vw - 1200px) / 2));
  bottom: 0.75rem;
  z-index: 10;
  opacity: 0.9;
}

#nachOben a:link,
#nachOben a:visited {
  display: block;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  background-color: #FEFBEE;
  background-image: url("bilder/grafiken/nach-oben-pfeil.png");
  background-repeat: no-repeat;
  background-position: center 6px;
  border: 1px solid #FCD245;
  color: #D1971F;
  padding: 20px 15px 10px;
}

#nachOben a:active,
#nachOben a:hover,
#nachOben a:focus {
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  background-color: #FFDE91;
  background-image: url("bilder/grafiken/nach-oben-pfeil-hover.png");
  background-repeat: no-repeat;
  background-position: center 6px;
  border: 1px solid #FF6600;
  padding: 20px 15px 10px;
}


/* ---------------------------------------------------------
   Formularbutton / Button-ID
   --------------------------------------------------------- */

#button {
  background-color: #fff;
  color: #007130;
  border-top-style: none;
  border-right-style: none;
  border-bottom: 1px dashed #B8BEA3;
  border-left-style: none;
  padding-bottom: 2px;
  margin-top: 3px;
}

#button:hover {
  background-color: #FFFADD;
  color: #C60;
  border-top-style: none;
  border-right-style: none;
  border-bottom: 1px solid #C60;
  border-left-style: none;
}

#button:focus,
#button:active {
  background-color: #933;
  color: #C60;
  border-top-style: none;
  border-right-style: none;
  border-bottom: 1px solid #C60;
  border-left-style: none;
}


/* ---------------------------------------------------------
   Footer
   Hinweis: In der Beispiel-HTML-Datei steht <footer> nach <script src="navigation-details-responsive.js"></script>
</body>.
   Browser korrigieren das meist, sauberer waere es innerhalb von <body>.
   --------------------------------------------------------- */

footer {
  width: 100%;
  margin-top: auto;
  background-color: #007130;
  padding-bottom: 5px;
  border-top: 1px solid #FCD245;
}

.fussnavigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin: 5px;
  padding: 0;
  text-align: center;
}

.fussnavigation li {
  display: block;
  list-style: none;
  padding: 0;
}

.fussnavigation a:link,
.fussnavigation a:visited {
  color: #F8E092;
}

.fussnavigation a:hover,
.fussnavigation a:active,
.fussnavigation a:focus {
  color: #FF6600;
}


/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 900px) {
  body > table {
    width: 100% !important;
  }

  .hintergrundbild {
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    column-gap: 1.25rem;
  }

  #head {
    background-size: cover;
  }

  .kopfnavigation {
    padding-left: min(42vw, 420px);
    padding-right: 1rem;
  }

  #text,
  #sitemap {
    padding-right: 1rem;
  }

  #adresse {
    padding-left: 1rem;
  }

/*  #seitenabschluss {
    padding-right: 1rem;
  } */
}


/* =========================================================
   Kleine Tablets und grosse Smartphones (ehemals 760px)
   ========================================================= */

@media screen and (max-width: 560px) {
  body,
  td,
  th {
    font-size: 17px;
  }

  .hintergrundbild {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "nav"
      "content"
      "addr"
      "end";
    background-repeat: repeat-y;
    padding: 0 0.9rem 0;
  }

  #head {
    min-height: 126px;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    width: calc(100% + 1.8rem);
    background-size: auto 126px;
    background-position: left top;
  }

  #logo {
    left: 1rem;
    top: 1rem;
    width: 211px;
  }

  .kopfnavigation {
    justify-content: flex-end;
    padding: 0.75rem 1rem 0 260px;
    gap: 0.25rem 0.8rem;
  }

  #navigation {
    padding-top: 0.5rem;
  }

  #navigation .bereich1,
  #navigation .bereich2 {
    margin: 0 0 1rem 0;
    padding: 0.65rem 0.8rem;
  }

  #navigation ul {
    padding-left: 1rem;
  }

  #text,
  #sitemap {
    padding: 0.5rem 0.8rem 1.5rem;
  }

  #text h1,
  #sitemap h1 {
    text-align: left;
    color: #933;
  }

  #adresse {
    padding: 1rem 0 0;
  }

  #seitenabschluss {
    padding: 1rem 0 0;
    text-align: center;
  }

  #seitenabschluss img {
    width: min(251px, 100%);
  }

  .inArbeit {
    margin-left: 0;
    margin-right: 0;
  }
}


/* =========================================================
   Smartphones
   ========================================================= */

@media screen and (max-width: 560px) {
  body,
  td,
  th {
    font-size: 1rem;
  }

  .hintergrundbild {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #head {
    min-height: 150px;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
    background-size: auto 150px;
  }

  #logo {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    width: min(250px, 75vw);
    margin: 0 auto 0;
  }
  
  .kopfnavigation a:link,
  .kopfnavigation a:visited {
  color: #007130;
  }

  .kopfnavigation {
    justify-content: center;
    padding: 0 0.75rem 0;
    gap: 0.25rem 0.7rem;
	margin-top: 1.75rem;
  }

  .kopfnavigation a:link,
  .kopfnavigation a:visited {
    display: block;
    padding: 0.15rem 0.1rem;
  }
  
  .kopfnavigation a:hover,
  .kopfnavigation a:active,
  .kopfnavigation a:focus {
    color: #FF6600;
    background-color: inherit;
  }

  
  #navigation ul {
  margin: -0.4rem 0 0 0;
  }

  #navigation li {
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0;
  }

  #navigation .bereich1 li li {
    font-size: 1rem;
    line-height: 1;
  }
  
  #navigation .bereich1 li ul {
  margin: 0;
  }
  
  .hintergrundbild {
    padding: 0 0.9rem 0;
  }
  
  /* #text {
	padding: 0.5rem 0.8rem 1.5rem;
  } */

  #text h1,
  #sitemap h1 {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
  }

  #text h2 {
    font-size: 1.15rem;
  }

  #text h4 {
    line-height: 1.35;
  }

  .imgleft,
  .imgright,
  #bildspalte {
    float: none;
    display: block;
    margin: 0.75rem auto;
  }

  .BildAbstandRechts {
    margin-right: 0;
  }

  .Preis {
    float: none;
    display: block;
    margin-left: 0;
    margin-bottom: 0.15rem;
  }

  .button a:link,
  .button a:visited,
  .button a:hover,
  .button a:active,
  .button a:focus {
    display: block;
    padding: 0.45rem 1rem;
    text-align: center;
  }

  .zitat,
  .hinweis {
    padding: 1rem;
  }

  .listeheadline {
    letter-spacing: 0.2em;
  }

  #nachOben {
    display: none;
  }
}


/* =========================================================
   Sehr kleine Smartphones
   ========================================================= */

@media screen and (max-width: 380px) {
  body,
  td,
  th {
    font-size: 15.5px;
  }

  .hintergrundbild {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  #head {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    width: calc(100% + 1.2rem);
  }

  .kopfnavigation {
    font-size: 0.95rem;
  }

  #navigation .bereich1,
  #navigation .bereich2 {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

/* =========================================================
   Korrektur 05: Details-/Summary-Hamburgermenue
   Ziel:
   - ab 761px: Summary unsichtbar, Navigation sichtbar/offen
   - bis 760px: Summary sichtbar, Navigation initial geschlossen

   Wichtig:
   CSS kann das open-Attribut eines <details>-Elements nicht
   automatisch je nach Viewport setzen oder entfernen. Fuer den
   initial geschlossenen mobilen Zustand und den dauerhaft offenen
   Desktop-Zustand ist der kleine Script-Block noetig, der zusammen
   mit dieser CSS-Datei verwendet wird.
   ========================================================= */

/* Grundzustand fuer Desktop und Tablets */
#navigation {
  grid-area: nav;
}

#navigation > summary {
  display: none;
}

/* Absicherung: oberhalb der mobilen Breite muss die Navigation sichtbar sein. */
@media screen and (min-width: 561px) {
  #navigation > summary {
    display: none !important;
  }

  #navigation > .bereich1,
  #navigation > .bereich2,
  #navigation[open] > .bereich1,
  #navigation[open] > .bereich2,
  #navigation:not([open]) > .bereich1,
  #navigation:not([open]) > .bereich2 {
    display: block !important;
  }
}

/* Mobilansicht: Hamburger-Schalter sichtbar, Navigation per Details auf-/zuklappbar. */
@media screen and (max-width: 560px) {
  #navigation {
    padding-top: 0.75rem;
  }

  #navigation > summary.menue-schalter,
  #navigation > summary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3rem;
    margin: 0 0 0.85rem 0;
    padding: 0.7rem 1rem;
    color: #007131;
    background-color: #FFFADD;
    border: 1px solid #007131;
    cursor: pointer;
    list-style: none;
    user-select: none;
    touch-action: manipulation;
    font-family: Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
  }

  #navigation > summary:hover,
  #navigation > summary:active,
  #navigation > summary:focus {
    color: #FF6600;
    background-color: #007130;
    outline: 2px solid #FCD245;
    outline-offset: 2px;
  }

  #navigation > summary::-webkit-details-marker {
    display: none;
  }

  #navigation > summary::marker {
    content: "";
  }

  .hamburger-symbol {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.1rem;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }

  .hamburger-symbol::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px solid currentColor;
    transform: translateY(-50%);
  }

  .hamburger-symbol::after {
    content: none;
  }

  #navigation[open] .hamburger-symbol {
    height: 1.55rem;
    border-top: 0;
    border-bottom: 0;
  }

  #navigation[open] .hamburger-symbol::before,
  #navigation[open] .hamburger-symbol::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px solid currentColor;
  }

  #navigation[open] .hamburger-symbol::before {
    transform: rotate(45deg);
  }

  #navigation[open] .hamburger-symbol::after {
    transform: rotate(-45deg);
  }

  #navigation:not([open]) > .bereich1,
  #navigation:not([open]) > .bereich2 {
    display: none !important;
  }

  #navigation[open] > .bereich1,
  #navigation[open] > .bereich2 {
    display: block !important;
  }
}
