/* ==========================================================
   Christliche Lebensberatung & Therapie – Jane Hauck
   Eine einzige Stylesheet-Datei, Werte aus dem Kadence-Theme
   ========================================================== */

/* Schrift lokal einbinden (DSGVO: kein Abruf bei Google).
   Dateien siehe fonts/README.txt. Fehlen sie, wird eine Systemschrift genutzt. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Open Sans"), local("OpenSans-Regular"),
       url("../fonts/open-sans-v44-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Open Sans Bold"), local("OpenSans-Bold"),
       url("../fonts/open-sans-v44-latin_latin-ext-700.woff2") format("woff2");
}

:root {
  --text: #2f2d2a;
  --text-soft: #6f6a63;
  --page-bg: rgba(172, 236, 188, 0.18);
  --box-bg: rgba(172, 236, 188, 0.15);
  --header-bg: rgba(153, 199, 165, 0.25);
  --header-bg-mobile: rgba(172, 236, 188, 0.3);
  --menu-bg: rgba(216, 224, 207, 0.84);
  --menu-bg-hover: #d8e0cf;
  --menu-current: #13612e;
  --container: 1290px;
  --edge: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--text-soft); }
a:hover, a:focus-visible { color: #6d7b5f; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* ---------- Kopfbereich ---------- */
.site-header { background: var(--header-bg); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.site-title {
  font-family: "Optima", "URW Classico", "Segoe UI", sans-serif;
  font-size: clamp(30px, 2.9vw + 4px, 38px);
  font-weight: 400;
  font-variant: small-caps;
  line-height: 1.9;
  letter-spacing: 5px;
  color: #000;
}
.site-tagline {
  font-family: "Optima", "URW Classico", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 400;
  font-variant: small-caps;
  line-height: 2.2;
  letter-spacing: 4px;
  color: #777;
}
.site-logo img { display: block; width: 180px; }

/* Menü-Knopf (nur auf kleinen Bildschirmen sichtbar) */
.menu-toggle {
  display: none;
  align-items: center;
  gap: .4em;
  margin-left: auto;
  padding: .4em .6em;
  background: none;
  border: 0;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible { color: #6d7b5f; }

/* ---------- Hauptbereich ---------- */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(170px, 13%) 1fr;
  align-items: start;
}

.main-nav {
  position: sticky;           /* bleibt beim Scrollen sichtbar */
  top: 20px;
  padding: 1rem 1.5rem 1rem 0;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .3em 0;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #6d7b5f; }
.main-nav a[aria-current="page"] { color: var(--menu-current); }
.main-nav .flag { width: 18px; height: 12px; display: block; }

.content-box {
  background: var(--box-bg);
  padding: 2rem;
  box-shadow: 0 15px 15px -10px rgba(0, 0, 0, 0.05);
  margin: 0 0 0 0;
}

h1, h2, h3 { color: var(--text); font-weight: 400; line-height: 1.5; margin: 0 0 .6em; }
h1, h2 { font-size: 30px; }
h3 { font-size: 24px; font-weight: 500; }
.content-box h1:not(:first-child),
.content-box h2:not(:first-child) { margin-top: 1.2em; }

p { margin: 0 0 1.5em; }
.center { text-align: center; }

figure { margin: 0 0 1.5em; }
figure.center { text-align: center; }
figure img { display: inline-block; vertical-align: top; }
figure + figure { margin-top: 1.5em; }

ul { margin: 0 0 1.5em; padding-left: 1.5em; }
li { margin-bottom: .6em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Fußbereich ---------- */
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 15px;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-footer a {
  display: block;
  padding: .3em .6em;
  color: var(--text-soft);
  text-decoration: none;
}
.site-footer a:hover, .site-footer a:focus-visible { color: #6d7b5f; }
.site-footer a[aria-current="page"] { color: var(--text); }

/* ---------- Tablet und Smartphone ---------- */
@media (max-width: 1024px) {
  .site-header { background: var(--header-bg); }

  .site-header .container {
    flex-wrap: wrap;
    min-height: 0;
  }
  .site-title   { font-size: 20px; line-height: 1.5; letter-spacing: 2px; }
  .site-tagline { font-size: 16px; line-height: 2.2; letter-spacing: 2px; }
  .site-logo img { width: 117px; }

  .menu-toggle { display: inline-flex; flex-basis: 100%; justify-content: flex-end; margin-left: 0; }

  .layout { display: block; }
  .content-box { margin-top: 3rem; }

  /* Menü ist eingeklappt, bis der Knopf gedrückt wird */
  .main-nav {
    position: static;
    display: none;
    padding: 0;
    margin: 0 calc(-1 * var(--edge));
    background: var(--header-bg);
  }
  .main-nav.open { display: block; }
  .main-nav a {
    padding: .7em 1.5rem;
    font-size: 14px;
    background: var(--menu-bg);
    color: rgba(0, 0, 0, .68);
  }
  .main-nav a:hover { background: var(--menu-bg-hover); color: #000; }
  .main-nav a[aria-current="page"] { background: var(--menu-bg-hover); color: var(--menu-current); }
}

@media (max-width: 767px) {
  .site-header { background: var(--header-bg-mobile); }
  .site-logo img { width: 90px; }
  .content-box { margin-top: 2rem; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }


/* ---------- Larger side menu ---------- */
.layout { grid-template-columns: minmax(185px, 15%) 1fr; }
.main-nav a { font-size: 17px; }

/* ---------- Smartphone menu as a floating panel ---------- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    right: 12px;
    z-index: 100;
    width: min(260px, 75vw);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    margin: 0;
    padding: .5rem 0;
    background: #e3ebe0;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
  }
  .main-nav.open { display: block; }

  .main-nav a {
    padding: 1em 1.4em;
    font-size: 17px;
    background: none;
    color: var(--text);
  }
  .main-nav a:hover,
  .main-nav a:focus-visible { background: #d8e0cf; color: #000; }
  .main-nav a[aria-current="page"] { background: #d8e0cf; color: var(--menu-current); }
}

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: rgba(216, 224, 207, .95);
  color: var(--text-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
}
.to-top:hover,
.to-top:focus-visible { background: #d8e0cf; color: #000; }
.to-top[hidden] { display: none; }

