:root {
  --primary: #2f5d62;
  --secondary: #f4f7f6;
  --text: #333;
  --footer-bg: #1f3f42;
}

/* =========================
   Basis
========================= */
* {
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  background: var(--secondary);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   Links & Barrierefreiheit
========================= */
a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: #1f3f42; }
a:visited { color: var(--primary); }
a:focus { outline: 2px solid #6ba8a9; outline-offset: 2px; }

/* =========================
   Header & Navigation
========================= */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.praxis-name {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  max-width: 60%;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover { text-decoration: underline; }
nav a.active { text-decoration: underline; font-weight: 700; }

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary);
}

/* =========================
   Sprachumschalter
========================= */
.language-switch {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.language-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.language-switch a[aria-current="true"] {
  font-weight: 700;
  text-decoration: underline;
}

/* =========================
   Responsive Navigation
========================= */
@media (max-width: 768px) {
  nav { flex-direction: column; align-items: flex-start; }
  .praxis-name { white-space: normal; margin-bottom: 0.5rem; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-links { width: 100%; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; display: none; }
  .nav-links.show { display: flex; }
  .language-switch { margin-left: 0; margin-top: 0.5rem; }
}

/* =========================
   Container
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

h1, h2 {
  color: var(--primary);
  line-height: 1.3;
  margin-top: 0;
}

/* =========================
   Bilder global
========================= */
.container img {
  display: block;
  margin: 2.5rem auto;
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* =========================
   Footer
========================= */
footer {
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
}

footer a { color: #fff; text-decoration: underline; }

/* =========================
   Cookie-Hinweis
========================= */
.cookie {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* =========================
   Buttons
========================= */
button {
  background: #6ba8a9;
  border: none;
  padding: 0.5rem 1.1rem;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

button:hover { background: #558f90; }

/* =========================
   Blocksatz
========================= */
.blocksatz {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1rem;
}

/* =========================
   Zitate kursiv
========================= */
.blocksatz[style*="font-style:italic"] {
  margin-top: 2rem;
  font-style: italic;
  line-height: 1.5;
}

/* =========================
   Zur Person – Einleitung
   Text linksbündig, Bild zentriert darunter
========================= */
.person-intro {
  display: block;
  margin-bottom: 3rem;
}

.person-intro .person-text {
  max-width: 700px;
  margin-bottom: 1.5rem;
  text-align: left; /* Text linksbündig */
}

.person-intro .person-image {
  text-align: center; /* Bild zentriert unter dem Text */
}

.person-intro .person-image img {
  display: inline-block;
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* =========================
   Overlay – Impressum & Datenschutz
========================= */
#legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

#legal-overlay.active {
  display: block;
}

#legal-overlay .overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

#legal-overlay .overlay-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 900px;
  height: 90%;
  margin: 5vh auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

#legal-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#legal-overlay .overlay-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

#legal-overlay .overlay-close:hover { color: #1f3f42; }

body.overlay-open { overflow: hidden; }

@media (max-width: 768px) {
  #legal-overlay .overlay-content {
    width: 95%;
    height: 95%;
    margin: 0 auto;
    border-radius: 0;
  }
}

