/* =========================================
   1) FONTS: Sofia Sans (lokal aus /fonts)
   ========================================= */
/* Hinweis:
   - Wir definieren mehrere @font-face Einträge, damit du per
     font-weight + font-style die Schriftschnitte zuweisen kannst.
   - So sind Schnitt, Größe, Farbe überall per CSS steuerbar.
*/

@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-ThinItalic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-ExtraLightItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-SemiBoldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-ExtraBoldItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("fonts/SofiaSans-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
}

/* =========================================
   SCHMUCKFONT: Leafs (nur für dekoratives "M")
   ========================================= */
@font-face {
  font-family: "Leafs";
  src: url("fonts/Leafs.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* =========================================
   2) CSS VARIABLEN: Farben, Typo, Abstände
   (hier kannst du später alles zentral ändern)
   ========================================= */
:root {
  /* Farben */
  --bg: #f2f2f2;
  --text: #000000;
  --heading: #364925;
  --menu: #678a46;
  --menuText: #ffffff;
	
  /* Schmuckfont */
  --ornament-color: #86927c;
  --ornament-size: 1.4em;
	
  /* Menü halbtransparent:
     - Nutzt rgba, damit NUR der Hintergrund transparent ist,
       nicht die Schrift.
     - 0.85 = 85% sichtbar (15% transparent). */
  --menuAlpha: 1.00;

  /* Typografie: überall änderbar */
  --font-base: "Sofia Sans", Arial, sans-serif;

  --font-size-base: 22px;
  --font-size-nav: 20px;
  --font-size-h1: 40px;

  --weight-text: 400;      /* Regular */
  --weight-nav: 600;       /* SemiBold */
  --weight-headings: 700;  /* Bold */

  /* Layout */
  --content-side-padding: 16%; /* ca. 20% Rand links/rechts */
  --nav-max-width: 1200px;

  /* Floating Button */
  --btn-radius: 999px;
}

/* =========================================
   3) BASIS: Body, Texte, Überschriften
   ========================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--weight-text);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================================
   LINKS – globales Styling
   ========================================= */
a {
  text-decoration: none;          /* keine Unterstreichung */
  font-weight: 700;               /* etwas fetter (SemiBold) */
  color: #364925;                 /* inherit übernimmt Textfarbe des Umfelds */
  transition: color 0.2s ease;    /* sanfter Hover-Effekt */
}

a:hover {
  color: rgba(0, 0, 0, 0.7);       /* etwas heller beim Hover */
}

/* Überschriften global formatierbar */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: var(--weight-headings);
  margin: 0 0 0.6em 0;
}

/* Konkrete Größen (kannst du frei anpassen) */
h1 { font-size: var(--font-size-h1); }

.ornament-m {
  font-family: "Leafs", serif;
  color: var(--ornament-color);
  font-size: 1.25em; /* etwas kleiner */
  line-height: 1;
  display: inline-block;

  transform: translateY(10%); /* nach unten gerückt */
}

/* Aufzählung mit Schmuck-M */
ul.ornament-list {
  list-style: none;
  padding-left: 1.5em;
}

ul.ornament-list li::marker {
  content: "M ";
  font-family: "Leafs", serif;
  color: var(--ornament-color);
  font-size: 1.2em;
}


/* Nur in .detail-list */
.detail-list h3 {
  margin-bottom: -0.2em; /* kleiner Abstand zur Unterzeile */
}

.detail-list .subline {
  margin-top: 0;
  margin-bottom: 0;
}

.detail-list li {
  margin-bottom: 1.2em; /* Abstand zum nächsten Punkt */
}

/* Ornament-M nur in dieser Liste */
.detail-list {
  list-style: none;
  padding-left: 1.6em;
}

.detail-list li::marker {
  content: "M ";
  font-family: "Leafs", serif;
  color: var(--ornament-color);
  font-size: 1.15em;
  transform: translateY(10%);
}



/* =========================================
   TEXT + BILD nebeneinander (Unterseiten)
   ========================================= */
.text-image {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
}

/* Text nimmt den verfügbaren Platz ein */
.text-image .text {
  flex: 1;
}

/* Bild rechts */
.side-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* optional, wirkt weich */
}

/* Mobile: Bild unter Überschrift / über Text */
@media (max-width: 900px) {
  .text-image {
    flex-direction: column;
  }

  .side-image {
    order: -1; /* Bild nach oben ziehen */
    align-self: center;
  }

  .side-image img {
    max-width: 70%;
  }
}

/* =========================================
   4) HERO-BILD (Headerbild oben)
   - skaliert responsiv
   - wird rechts/links beschnitten bei schmalem Fenster (cover)
   - bei sehr schmal: zeigt mehr vom unteren Bildbereich
   ========================================= */
.hero {
  width: 100%;
  height: 38vh; /* oberes Drittel */
  min-height: 220px;

  background-image: url("pics/ikv-therapie_header.jpg");
  background-size: cover;
  background-repeat: no-repeat;

  /* Standard: Bild zentriert */
  background-position: center center;
}

/* Sehr schmal: mehr vom unteren Teil zeigen */
@media (max-width: 520px) {
  .hero {
    /* weiter nach unten schieben: 70% zeigt mehr unteren Bereich */
    background-position: center 70%;
    height: 38vh; /* optional etwas mehr Höhe auf klein */
  }
}

/* =========================================
   5) NAVIGATION (halbtransparent + responsiv)
   ========================================= */
.site-nav {
  /* Halbtransparent nur im Hintergrund */
  background-color: rgba(103, 138, 70, var(--menuAlpha));

  /* Damit man das Bild darunter sieht:
     - nav liegt direkt unter hero (nicht überlagert)
     - dennoch wirkt Transparenz durch Hintergrund sichtbar, falls
       nav über hero gelegt werden soll, bräuchten wir position:absolute/sticky etc.
     - so wie hier: Transparenz ist trotzdem erkennbar, wenn dahinter ein
       anderer Hintergrund liegt (z.B. hero bei sticky/overlay).
  */
  backdrop-filter: blur(2px); /* optional, wirkt hübsch wenn unterstützt */
}

.nav-container {
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 6px 20px;

  display: flex;
  align-items: center;
  justify-content: center; /* Menü nach rechts; auf Wunsch flex-end */
  gap: 12px;

  position: relative; /* für das mobile dropdown */
}

/* Menülinks (Desktop) */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.menu a {
  color: var(--menuText);
  text-decoration: none;

  font-size: var(--font-size-nav);
  font-weight: var(--weight-nav);

  padding: 6px 12px;
  border-radius: 8px;

  /* Hover-Animation */
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* =========================================
   6) BURGER BUTTON (nur mobil sichtbar)
   ========================================= */
.burger {
  display: none; /* Desktop: aus */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--menuText);
  margin: 5px 0;
  border-radius: 999px;
}

/* Mobile Verhalten */
@media (max-width: 900px) {
  .burger {
    display: inline-flex;
    flex-direction: column;
  }

  .nav-container {
    justify-content: space-between;
  }

  /* Dropdown-Menü */
  .menu {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 56px;

    display: none;
    flex-direction: column;
    gap: 6px;

    padding: 10px;
    border-radius: 14px;

    /* halbtransparentes Panel */
    background-color: rgba(103, 138, 70, 0.95);

    /* Animation: weich einblenden */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .menu.active {
    display: flex;
    pointer-events: auto;

    /* Animation an */
    animation: menuDrop 220ms ease forwards;
  }

  .menu a {
    padding: 12px 12px;
  }
}

/* Animation fürs Mobile-Menü */
@keyframes menuDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   7) INHALT (Textbreite mit ~20% Rand)
   ========================================= */
.content {
  padding: 40px var(--content-side-padding);
}

/* Auf kleineren Screens weniger Rand, damit es nicht zu eng wird */
@media (max-width: 900px) {
  .content {
    padding-left: 10%;
    padding-right: 10%;
  }
}
@media (max-width: 520px) {
  .content {
    padding-left: 6%;
    padding-right: 6%;
  }

  h1 {
    font-size: 30px;
  }
}

/* =========================================
   8) FLOATING BUTTON (schiebt sich unten rechts rein)
   - gleiche Farbe wie Menü
   - mobil kleiner
   ========================================= */
.floating-btn {
  position: fixed;
  right: 20px;

  /* Start außerhalb des Sichtbereichs */
  bottom: -80px;

  background-color: var(--menu);
  color: var(--menuText);

  text-decoration: none;
  font-weight: var(--weight-nav);

  padding: 12px 18px;
  border-radius: var(--btn-radius);

  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 2000;

  /* Animation beim Laden */
  animation: slideInBtn 800ms ease forwards 900ms;

  /* kleine Interaktion */
  transition: transform 0.15s ease, filter 0.2s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Button-Animation: reinfahren */
@keyframes slideInBtn {
  to { bottom: 20px; }
}

/* Mobile: Button kleiner, weniger Abstand */
@media (max-width: 600px) {
  .floating-btn {
    right: 14px;
    padding: 9px 12px;
    font-size: 14px;
    animation: slideInBtnMobile 800ms ease forwards 900ms;
  }

  @keyframes slideInBtnMobile {
    to { bottom: 14px; }
  }
}
