: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
========================= */
a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #1f3f42;
}

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;
  flex-direction: column;
  gap: 0.5rem;
}

/* obere Zeile */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Praxisname */
.praxis-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary);
}

.praxis-name span {
  line-height: 1.25;
}

/* Logo */
.logo {
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

/* Name Varianten */
.desktop-name { display: inline; }
.mobile-name { display: none; }

/* Navigation */
.nav-links {
  display: flex;
  gap: 1.5rem;
  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; }

/* Menübutton */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* Sprache */
.language-switch {
  font-size: 0.9rem;
  white-space: nowrap;
}

.language-switch a {
  text-decoration: none;
  color: var(--primary);
}

.language-switch a[aria-current="true"] {
  font-weight: 700;
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {

  .desktop-name { display: none; }
  .mobile-name { display: inline; }

  .praxis-name span {
    font-size: 0.9rem;
  }

  .logo {
    width: 26px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-links.show {
    display: flex;
  }

  .language-switch {
    margin-top: 0.5rem;
  }
}

/* =========================
   Layout
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

h1, h2 {
  color: var(--primary);
  line-height: 1.3;
  margin-top: 0;
}

/* =========================
   Bilder
========================= */
.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; /* bleibt weiß */
  text-decoration: underline;
}

footer a:hover {
  color: #fff; /* Hover bleibt sichtbar */
}

/* =========================
   Cookie
========================= */
.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;
}

/* =========================
   Text
========================= */
.blocksatz {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 1rem;
}

/* =========================
   Overlay
========================= */
#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;
}

#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;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

body.overlay-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  #legal-overlay .overlay-content {
    width: 95%;
    height: 95%;
    margin: 0 auto;
    border-radius: 0;
  }
}
