/* ================================
   RESET & BASIS
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* DARK MODE */
body.dark-mode {
  background: #1e1e1e;
  color: #eaeaea;
}

a {
  color: #0055a5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================================
   HEADER
   ================================ */
header {
  background: #0055a5;
  color: #fff;
  padding: 0.8rem 0;
}

header .logo {
  font-size: 1.4rem;
  font-weight: bold;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
}

.nav-links a.active {
  text-decoration: underline;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px; /* kleiner Abstand zwischen Logo und Text */
}

.logo-picture {
  max-height: 80px; /* Höhe anpassen, z. B. 60-100px */
  width: auto;
}

/* --- Basis für das Menü --- */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  margin-left: auto;
}

/* --- Mobile Darstellung ab 768px und kleiner --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav ul.nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 70px; /* Höhe vom Header */
    left: 0;
    right: 0;
    padding: 15px;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  nav ul.nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero Bild anpassen */
  .hero img {
    max-width: 100%;
    height: auto;
  }
/* Standard: Desktop-Menü sichtbar */
.nav-links {
  display: flex;
  gap: 15px;
}

/* Hamburger nur am Handy */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Ab 768px runter: Menü verstecken */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* unter dem Header */
    left: 0;
    width: 100%;
    background: white; /* oder dein Blau */
    padding: 10px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    margin-top: 80px; /* Abstand, damit das Menü nicht überlappt */
  }
}
  /* Kontakt-Seiten Inhalte stapeln */
  .contact-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-icon {
    margin-bottom: 10px;
  }
}



/* ================================
   HERO
   ================================ */
.hero {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 85, 165, 0.8);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 90%;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  background: #0055a5;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #003f7d;
}




/* ================================
   TEASER / LEISTUNGEN
   ================================ */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.teaser {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

body.dark-mode .teaser {
  background: #2b2b2b;
}

.teaser img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.teaser h4 {
  margin: 0.8rem 0;
  color: #0055a5;
}

.teaser p {
  padding: 0 0.8rem 0.8rem;
}

.teaser:hover {
  transform: translateY(-5px);
}

/* ================================
   KONTAKTSEITE
   ================================ */
.contact-section {
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

body.dark-mode .contact-section {
  border-color: #444;
}

.contact-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-icon img {
  max-width: 100px;
  height: auto;
  opacity: 0.9;
}

.tables-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.opening-hours,
.contact-table {
  border-collapse: collapse;
  min-width: 250px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

body.dark-mode .opening-hours,
body.dark-mode .contact-table {
  background: #2b2b2b;
}

.opening-hours caption,
.contact-table caption {
  font-weight: bold;
  padding: 0.6rem;
  background: #0055a5;
  color: #fff;
  text-align: left;
}

.opening-hours td,
.contact-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #ddd;
}

.opening-hours td:first-child,
.contact-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
}

.contact-content a {
  color: #0055a5;
  font-weight: 500;
}

body.dark-mode .contact-content a {
  color: #66aaff;
}

.contact-flex {
  display: flex;
  align-items: flex-start; /* Icon oben ausrichten, auch wenn Text mehrzeilig */
  gap: 12px; /* Abstand zwischen Icon und Text */
  margin-bottom: 20px;
}

.contact-icon img {
  width: 80px;   /* Einheitliche Icon-Größe */
  height: auto;
  margin-top: 4px; /* leichte optische Korrektur, damit es mittig wirkt */
}

.contact-content {
  flex: 1; /* nimmt den verbleibenden Platz ein */
}

.contact-content h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

/* ================================
   TEAMSEITE
   ================================ */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.team-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

body.dark-mode .team-item {
  background: #2b2b2b;
}

.team-photo {
  width: 160px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.team-text h3 {
  margin-bottom: 0.5rem;
  color: #0055a5;
}

@media (max-width: 768px) {
  .team-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-photo {
    width: 70%;
  }
}



/* ================================
   FOOTER
   ================================ */
footer {
  background: #0055a5;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

footer a {
  color: #fff;
}

.font-controls {
  margin-top: 0.5rem;
}

.font-controls button {
  margin: 0 0.3rem;
  padding: 0.3rem 0.6rem;
  border: none;
  background: #003f7d;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.font-controls button:hover {
  background: #002a52;
  transform: scale(1.05);
}

.about,
.aktuelles {
  padding: 1rem 0;
  text-align: center;   /* <== wieder eingefügt */
  margin-bottom: 2rem;
}



/* Leistungsblöcke */
.leistung-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 2rem;
}

.leistung-block.reverse {
  flex-direction: row-reverse; /* Bild links, Text rechts */
}

.leistung-text {
  flex: 1;
}

.leistung-text h3 {
  margin-bottom: 0.8rem;
  color: #0055a5;
}

.leistung-text ul {
  list-style: none;
  padding-left: 0;
}

.leistung-text li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.leistung-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0055a5;
  font-weight: bold;
}

/* Bilder */
.leistung-bild {
  flex: 0 0 150px;
  text-align: center;
}

.leistung-bild img {
  width: 120px;
  height: auto;
  max-width: 100%;
}

/* Responsiv */
@media (max-width: 768px) {
  .leistung-block,
  .leistung-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .leistung-bild {
    margin-top: 1rem;
  }

  .leistung-text li {
    text-align: left; /* Damit Häkchen nicht mitten im Text sitzen */
  }
}

.quick-contact {
  background: #e9f3fc;
  padding: 1rem;
  text-align: center;
  margin: 0 auto 2rem;
  border-radius: 10px;
  max-width: 600px;
}

body.dark-mode .quick-contact {
  background: #2b2b2b; /* Box im Darkmode dunkel */
  color: #eaeaea;      /* Schrift hell */
}

body.dark-mode .quick-contact a {
  color: #66aaff;      /* Linkfarbe anpassen */
}

/****************************
 * 
 * Ambulanzen-Seite
 * 
 **************************** */

/* Hinweisbox oben auf der Seite */
.notice-box {
  background: #e9f3fc;
  border-left: 6px solid #0055a5;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  border-radius: 8px;
  max-width: 900px;
  text-align: center;
  font-size: 1rem;
}

.notice-box strong {
  color: #0055a5;
}

.notice-box a {
  color: #0055a5;
  font-weight: 600;
}

.notice-box a:hover {
  text-decoration: underline;
}

/* Dark Mode */
body.dark-mode .notice-box {
  background: #2b2b2b;
  border-left-color: #66aaff;
}

body.dark-mode .notice-box strong {
  color: #66aaff;
}

body.dark-mode .notice-box a {
  color: #66aaff;
}

/****************************
 * 
 * Niesky-Seite
 * 
 **************************** */

.ny-contact-content {
  flex: 3 1 400px;
  max-width: 650px;   /* Textblock begrenzen */
  margin-left: 1rem;  /* kurzer Abstand zum Symbolbild */
}

@media (max-width: 768px) {
  .ny-contact-content {
    margin-left: 0;   /* auf kleinen Bildschirmen zentrieren */
    max-width: 100%;
  }
}


/****************************
 * 
 * Niesky-Seite
 * 
 **************************** */
 
.leistung-block details {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.leistung-block details[open] {
  background-color: #eef6ff;
  border-color: #0066cc;
}

.leistung-block summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leistung-block summary::after {
  content: "▸";
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.leistung-block details[open] summary::after {
  transform: rotate(90deg);
}

.leistung-block details ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.leistung-block details ul li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Dark Mode Anpassung */
body.dark-mode .leistung-block details {
  background-color: #1e2a38;
  border-color: #444;
  color: #e6e6e6;
}

body.dark-mode .leistung-block details[open] {
  background-color: #243447;
  border-color: #66aaff;
}

body.dark-mode .leistung-block summary::after {
  color: #e6e6e6;
}

/****************************
 * 
 * Datenschutz-Seite
 * 
 **************************** */

.privacy-text {
  line-height: 1.6;
  font-size: 1rem;
}

.privacy-text h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #004080;
}

.privacy-text h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #0066cc;
}

.privacy-text p,
.privacy-text ul {
  margin-bottom: 1rem;
}

/****************************
 * 
 * Impressum-Seite
 * 
 **************************** */

.impressum-text {
  line-height: 1.6;
  font-size: 1rem;
}

.impressum-text h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #004080;
}

.impressum-text p {
  margin-bottom: 1rem;
}
