/* =========================================================
   1) LOKALE SCHRIFTEN EINBINDEN
   ---------------------------------------------------------
   Diese Blöcke laden alle Raleway-Schriftdateien vom Server.
   Die Dateien müssen im Ordner
   media/templates/site/cassiopelockia/fonts
   liegen.
   ========================================================= */

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Thin.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-ExtraLight.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Light.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Regular.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Medium.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Bold.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-ExtraBold.woff') format('woff');
}

@font-face {
  font-family: 'RalewayLocal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local(''),
       url('../fonts/Raleway-Heavy.woff') format('woff');
}

/* =========================================================
   2) GRUNDFARBEN DER SEITE
   ---------------------------------------------------------
   Hier werden die wichtigsten Cassiopeia-Farben gesetzt.
   Diese Farben beeinflussen Links, Hover-Farben und Akzente.
   ========================================================= */

:root {
  --cassiopeia-color-primary: #95c154;
  --cassiopeia-color-hover: #95c154;
  --cassiopeia-color-link: #ca9e64;
}

/* =========================================================
   3) ALLGEMEINE SEITENGESTALTUNG
   ---------------------------------------------------------
   Grundschrift, Hintergrundfarbe, Hintergrundbild und
   allgemeine Textfarbe für die ganze Website.
   ========================================================= */

body {
  background-color: #fffdf6;
  background-image: url('/images/design/Hintergrund_Bambus_solo.jpg');
  background-repeat: no-repeat;
  background-position: right top 140px;
  background-size: 340px auto;
  background-attachment: fixed;
  color: #654d2c;
  font-family: 'RalewayLocal', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

/* =========================================================
   4) LINKS
   ---------------------------------------------------------
   Farbe normal und beim Darüberfahren mit der Maus.
   ========================================================= */

a {
  color: #ca9e64;
}

a:hover,
a:focus {
  color: #95c154;
}

/* =========================================================
   5) ÜBERSCHRIFTEN
   ---------------------------------------------------------
   Hier wird die Optik aller Überschriften festgelegt.
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  color: #654d2c;
  font-family: 'RalewayLocal', Arial, sans-serif;
  font-weight: 600;
}

/* =========================================================
   6) HEADER / KOPFBEREICH
   ---------------------------------------------------------
   Grundfarbe des oberen Bereichs der Website.
   ========================================================= */

.container-header {
  background-color: #cfddb0;
  background-image: none;
  box-shadow: none;
}

/* =========================================================
   7) HEADER-ABSTÄNDE
   ---------------------------------------------------------
   Macht den oberen Bereich etwas flacher, damit das Logo
   und das Menü nicht zu viel Höhe einnehmen.
   ========================================================= */

.container-header .grid-child {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* =========================================================
   8) LOGO-KACHEL
   ---------------------------------------------------------
   Das Logo bekommt eine weiche helle Fläche, damit es auf
   dem grünen Header besser sichtbar bleibt.
   Diese Lösung ist bewusst weich und nicht zu kastig.
   ========================================================= */

.container-header .navbar-brand {
  background-color: rgba(255, 253, 246, 0.92);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(101, 77, 44, 0.06);
  margin-right: 2rem;
  display: inline-flex;
  align-items: center;
}

/* =========================================================
   9) LOGO-GRÖSSE
   ---------------------------------------------------------
   Hier wird festgelegt, wie groß das Logo maximal sein darf.
   Wenn es noch zu groß wirkt:
   max-height kleiner setzen, z. B. 55px.
   Wenn es zu klein ist:
   max-height größer setzen, z. B. 70px.
   ========================================================= */

.container-header .navbar-brand img {
  width: auto;
  min-width: 0;
  max-height: 70px;
  display: block;
}

/* =========================================================
   10) HAUPTMENÜ IM HEADER
   ---------------------------------------------------------
   Farbe und Schriftstärke des Menüs im oberen Bereich.
   ========================================================= */

.container-header .mod-menu {
  color: #654d2c;
  font-weight: 600;
}

.container-header .mod-menu a {
  color: #654d2c;
}

.container-header .mod-menu a:hover,
.container-header .mod-menu a:focus,
.container-header .mod-menu .active > a,
.container-header .mod-menu .current > a {
  color: #ca9e64;
}

/* =========================================================
   11) DEKORATIVE ZITATE AUF DER PHILOSOPHIE-SEITE
   ---------------------------------------------------------
   Diese Gestaltung ist für einzelne Zitate gedacht, die
   jeweils in einem eigenen <blockquote> stehen.

   Diese Variante ist kompakter, linksbündig im Inhalt und
   auch als Kasten linksbündig ausgerichtet. Zusätzlich wird
   die Breite auf größeren Bildschirmen begrenzt, damit die
   Zitate auf Laptop- und Desktop-Ansichten nicht über die
   gesamte Seitenbreite laufen.

   Empfohlene HTML-Struktur im Editor:

   <blockquote class="philo-zitat">
     <p>„Gesundheit ist nicht alles, aber ohne Gesundheit
     ist alles nichts.“</p>
     <cite>Arthur Schopenhauer</cite>
   </blockquote>
   ========================================================= */

.philo-zitat {
  margin: 1rem 0;
  padding: 0.85rem 1rem 0.75rem 1rem;
  max-width: 30rem;
  width: 100%;
  text-align: left;
  background-color: rgba(255, 253, 246, 0.88);
  border-left: 3px solid #95c154;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(101, 77, 44, 0.05);
}

.philo-zitat p {
  margin: 0 0 0.3rem 0;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.8rem;
  line-height: 1.3;
  color: #654d2c;
}

.philo-zitat cite {
  display: block;
  font-style: normal;
  font-family: 'RalewayLocal', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #8b6b42;
  text-align: right;
}


/* =========================================================
   12) ZWEISPALTIGER AUFBAU FÜR DIE PHILOSOPHIE-SEITE
   ---------------------------------------------------------
   Dieser Block erzeugt für die Philosophie-Seite einen
   zweispaltigen Aufbau:

   - links: Zitate und gesamter Beitragstext
   - rechts: ein voll sichtbares Bild
   - auf schmalen Displays: Bild ausblenden

   Empfohlene HTML-Struktur im Editor:

   <div class="philosophie-layout">
     <div class="philosophie-text">
       ...
     </div>
     <div class="philosophie-bild">
       <img src="/images/design/philosophie-hintergrund.jpg"
            alt="Philosophie" loading="lazy">
     </div>
   </div>
   ========================================================= */

.philosophie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 2rem;
}

.philosophie-text {
  min-width: 0;
}

.philosophie-bild {
  flex: 0 0 auto;
  text-align: right;
}

.philosophie-bild img {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Auf schmalen Displays wird das Bild ausgeblendet,
   damit der Textbereich ruhig und gut lesbar bleibt. */
@media (max-width: 900px) {
  .philosophie-layout {
    display: block;
  }

  .philosophie-bild {
    display: none;
  }
}


/* ==========================================================================
   13) Leistungen – Tabelle im CI-Stil
   Praxis Melanie Peter
   Farben laut CI:
   - Blattgrün:   #95c154
   - Bambusbraun: #ca9e64
   ========================================================================== */

.praxis-leistungen {
    color: #4e4339;
}

.praxis-leistungen h2 {
    margin-bottom: 1rem;
}

.praxis-leistungen p {
    margin-bottom: 1rem;
}

.praxis-leistungen-hinweis {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f4eee6;
    border: 1px solid #e3d8ca;
    border-left: 4px solid #ca9e64;
    border-radius: 8px;
}

.praxis-leistungen-hinweis p {
    margin-bottom: 0;
}

.praxis-leistungen-tabelle-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.praxis-leistungen-tabelle {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd3c6;
    background: #fffdfa;
}

.praxis-leistungen-tabelle th,
.praxis-leistungen-tabelle td {
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ddd3c6;
}

.praxis-leistungen-tabelle thead th {
    background: #ede4d7;
    color: #4e4339;
    font-weight: 600;
}

.praxis-leistungen-tabelle tbody tr:nth-child(odd) {
    background: #fffdfa;
}

.praxis-leistungen-tabelle tbody tr:nth-child(even) {
    background: #f7f2eb;
}

.praxis-leistungen-tabelle tbody td:first-child {
    width: 42%;
    font-weight: 600;
    color: #4e4339;
}

.praxis-leistungen-tabelle tbody td:last-child {
    color: #6d6258;
}

.praxis-leistungen .status-kasse {
    color: #567b26;
    font-weight: 600;
}

.praxis-leistungen .status-zusatz {
    color: #8b6745;
    font-weight: 600;
}

.praxis-leistungen .status-teilweise {
    color: #8a6c2d;
    font-weight: 600;
}

/* Responsive Anpassung
   ========================================================================== */

@media (max-width: 767.98px) {
    .praxis-leistungen-tabelle th,
    .praxis-leistungen-tabelle td {
        padding: 0.75rem 0.8rem;
    }
}


/* ==========================================================================
   14) Team – Therapeutinnen
   Zweispaltige Darstellung mit Foto und Text
   Bilder bewusst schmaler gehalten, auf kleinen Displays max. 60 % Breite
   Farben angelehnt an das Praxis-CI
   ========================================================================== */

.praxis-team {
    color: #4e4339;
}

.praxis-team > p {
    margin-bottom: 1rem;
}

.praxis-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.praxis-team-person {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fffdfa;
    border: 1px solid #e3d8ca;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(120, 95, 70, 0.05);
}

.praxis-team-bild {
    background: #f4eee6;
    border-bottom: 1px solid #e3d8ca;
    text-align: center;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.praxis-team-bild img {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}

.praxis-team-inhalt {
    padding: 1.5rem;
}

.praxis-team-inhalt h2 {
    margin-bottom: 1rem;
    color: #4e4339;
    font-size: 1.5rem;
    line-height: 1.3;
}

.praxis-team-inhalt p {
    margin-bottom: 1rem;
}

.praxis-team-inhalt p:last-child {
    margin-bottom: 0;
}

.praxis-team-inhalt strong {
    color: #4e4339;
}

.praxis-team-inhalt em {
    color: #8b6745;
    font-style: italic;
}

/* Tablet und kleinere Laptops
   ========================================================================== */

@media (max-width: 1199.98px) {
    .praxis-team-bild img {
        max-width: 240px;
    }
}

/* Schmale Displays: Karten untereinander, Bilder deutlich kleiner
   ========================================================================== */

@media (max-width: 991.98px) {
    .praxis-team-grid {
        grid-template-columns: 1fr;
    }

    .praxis-team-bild img {
        max-width: 60%;
    }
}

/* Sehr kleine Displays
   ========================================================================== */

@media (max-width: 575.98px) {
    .praxis-team-person {
        border-radius: 10px;
    }

    .praxis-team-bild {
        padding: 1rem 1rem 0.25rem 1rem;
    }

    .praxis-team-bild img {
        max-width: 60%;
    }

    .praxis-team-inhalt {
        padding: 1.2rem;
    }
}


/* ==========================================================================
   15) Footer – Rechtliches Menü
   Sehr schlanker Footer für Impressum und Datenschutz
   Dunkleres CI-abgeleitetes Grün im Hintergrund, Höhe bewusst auf ein Minimum reduziert
   ========================================================================== */

.container-footer.footer.full-width {
    background: #5E7F34;
    color: #ffffff;
    padding: 0.35rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.container-footer.footer.full-width .grid-child {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 0;
}

.container-footer.footer.full-width .mod-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.2;
}

.container-footer.footer.full-width .mod-menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.container-footer.footer.full-width .mod-menu a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    opacity: 0.96;
}

.container-footer.footer.full-width .mod-menu a:hover,
.container-footer.footer.full-width .mod-menu a:focus {
    color: #f3f0e8;
    text-decoration: underline;
    opacity: 1;
}


/* Tablet und kleinere Laptops
   ========================================================================== */

@media (max-width: 1199.98px) {
    .container-footer.footer.full-width .mod-menu {
        gap: 1rem;
    }
}


/* Schmale Displays: Links bleiben mittig und dürfen umbrechen
   ========================================================================== */

@media (max-width: 991.98px) {
    .container-footer.footer.full-width {
        padding: 0.35rem 1rem;
    }

    .container-footer.footer.full-width .mod-menu {
        flex-wrap: wrap;
        gap: 0.6rem 0.9rem;
    }
}


/* Sehr kleine Displays
   ========================================================================== */

@media (max-width: 575.98px) {
    .container-footer.footer.full-width {
        padding: 0.3rem 0.8rem;
    }

    .container-footer.footer.full-width .mod-menu a {
        font-size: 0.92rem;
    }
}


/* ==========================================================================
   16) Header – Reihenfolge von Logo, Kontaktzeile und Hauptmenü
   Desktop: Logo links, Kontakt rechts, Hauptmenü darunter
   Mobil: Logo und Kontaktdaten nebeneinander, Hamburger-Menü darunter
   Sehr schmale Geräte: Kontaktzeile ausblenden
   ========================================================================== */

.container-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "brand top"
        "menu menu";
    align-items: center;
    gap: 0;
}


/* Logo-Bereich
   ========================================================================== */

.container-header .navbar-brand {
    grid-area: brand;
    justify-self: start;
    align-self: center;
}


/* Modulbereich oben rechts
   Das Modul „Headerzeile-Kontakt“ befindet sich in der Position topbar.
   ========================================================================== */

.container-header .container-topbar {
    grid-area: top;
    justify-self: end;
    align-self: center;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: right;
}

.container-header .container-topbar .moduletable,
.container-header .container-topbar .module {
    margin: 0;
    padding: 0;
}

.container-header .container-topbar p {
    margin: 0;
}


/* Kontaktdaten – kontraststark auf dem hellen Praxisgrün
   Telefonnummer und E-Mail bleiben sichtbar als Links markiert.
   ========================================================================== */

.container-header .container-topbar,
.container-header .container-topbar p,
.container-header .container-topbar span,
.container-header .container-topbar div {
    color: #654d2c;
}

.container-header .container-topbar a {
    color: #654d2c;
    text-decoration-color: #8b6b42;
    text-underline-offset: 0.12em;
}

.container-header .container-topbar a:hover,
.container-header .container-topbar a:focus {
    color: #8b6b42;
    text-decoration-color: #8b6b42;
}


/* Hauptmenü unterhalb des Logos und der Kontaktzeile
   Das Hauptmenü befindet sich in der Position below-top.
   ========================================================================== */

.container-header .grid-child.container-below-top {
    grid-area: menu;
}


/* Mobile und Tablet
   Logo und Kontaktdaten bleiben möglichst in derselben Zeile.
   Das Hamburger-Menü folgt darunter.
   ========================================================================== */

@media (max-width: 991.98px) {
    .container-header {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        grid-template-areas:
            "brand top"
            "menu menu";
        column-gap: 0.9rem;
        row-gap: 0;
    }

    .container-header .navbar-brand {
        justify-self: start;
        align-self: start;
        margin-right: 0;
    }

    .container-header .container-topbar {
        justify-self: end;
        align-self: center;
        min-width: 0;
        text-align: right;
    }

    .container-header .grid-child.container-below-top {
        justify-self: stretch;
    }
}


/* Sehr schmale Mobilgeräte
   Kontaktzeile wird ausgeblendet, damit der Header ruhig,
   kompakt und auf das Logo sowie das Hamburger-Menü reduziert bleibt.
   ========================================================================== */

@media (max-width: 575.98px) {
    .container-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "menu";
    }

    .container-header .navbar-brand {
        justify-self: start;
    }

    .container-header .container-topbar {
        display: none;
    }

    .container-header .grid-child.container-below-top {
        justify-self: stretch;
    }
}


/* ==========================================================================
   17) Startseite – Willkommensbild mit Text
   Desktop: Bild links, Text fließt rechts daneben
   Schmale Mobilgeräte: Bild oben zentriert, Text darunter über volle Breite
   ========================================================================== */

.startseite-willkommen {
    overflow: hidden;
}

.startseite-praxisbild {
    float: left;
    display: block;
    width: 205px;
    max-width: 42%;
    height: auto;
    margin: 0 1rem 0.8rem 0;
}


/* Schmale Smartphone-Ansicht
   Das Bild erhält eine eigene Zeile, damit keine unlesbar schmale
   Textspalte neben dem hochkantigen Bild entsteht.
   ========================================================================== */

@media (max-width: 575.98px) {
    .startseite-praxisbild {
        float: none;
        width: min(205px, 72vw);
        max-width: 100%;
        margin: 0 auto 1.25rem auto;
    }
}


/* ==========================================================================
   17. Allgemeine Lesbarkeit – größere Grundschrift
   ========================================================================== */

body {
  font-size: 1.125rem;
  line-height: 1.65;
}