/*
 * Basis-Layout und Farbschema für die Hausarztpraxis Grone‑Süd.
 * Das Stylesheet verwendet CSS‑Variablen für konsistente Farben und Abstände
 * und ist mobile‑first aufgebaut. Breakpoints sorgen dafür, dass das Layout
 * auf größeren Bildschirmen in mehrere Spalten wechselt【813751165396261†L40-L48】【813751165396261†L82-L99】.
 */

:root {
  --color-primary: #004d99;
  --color-secondary: #0072ce;
  --color-accent: #e64c3c;
      /* Custom status colors for open/closed indicator */
      --color-open: #28a745;
      --color-closed: #e63946;
  --color-light: #f5f8fb;
  --color-dark: #0a213a;
  --color-text: #333;
  --font-base: 'Inter', sans-serif;
  --max-width: 1140px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: #fff;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.2;
}
.logo span {
  font-weight: 400;
  color: var(--color-secondary);
}

.nav {
  display: none;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav__list a {
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.3s;
}
.nav__list a:hover,
.nav__list a:focus {
  color: var(--color-accent);
}
.nav-toggle {
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-toggle:focus {
  outline: 2px solid var(--color-accent);
}
.nav-toggle--active {
  color: var(--color-accent);
}

    /* The hamburger icon is drawn using a span and pseudo‑elements to avoid
       relying on external icon fonts. Three horizontal lines are stacked
       using absolute positioning and transforms. */
    .nav-toggle__icon {
      position: relative;
      display: block;
      width: 24px;
      height: 3px;
      background-color: var(--color-dark);
      transition: background-color 0.3s ease;
    }
    .nav-toggle__icon::before,
    .nav-toggle__icon::after {
      content: '';
      position: absolute;
      left: 0;
      width: 24px;
      height: 3px;
      background-color: var(--color-dark);
      transition: transform 0.3s ease, opacity 0.3s ease;
    }
    /* Place the top and bottom bars above and below the middle bar */
    .nav-toggle__icon::before {
      transform: translateY(-8px);
    }
    .nav-toggle__icon::after {
      transform: translateY(8px);
    }
    /* When the menu is active, hide the middle bar and rotate the others to form an X */
    .nav-toggle--active .nav-toggle__icon {
      background-color: transparent;
    }
    .nav-toggle--active .nav-toggle__icon::before {
      transform: rotate(45deg);
    }
    .nav-toggle--active .nav-toggle__icon::after {
      transform: rotate(-45deg);
    }

    /* Status indicator for open/closed information */
    .status {
      display: flex;
      align-items: center;
      position: relative;
      margin-left: 1rem;
      cursor: pointer;
    }
    /* Label to show "Geöffnet" or "Geschlossen" with colour coding */
    .status-label {
      display: inline-block;
      padding: 0.15rem 0.6rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      line-height: 1.2;
    }
    .status-open {
      background-color: rgba(40, 167, 69, 0.15);
      color: var(--color-open);
    }
    .status-closed {
      background-color: rgba(230, 57, 70, 0.15);
      color: var(--color-closed);
    }
    .status-tooltip {
      position: absolute;
      top: 140%;
      left: 50%;
      transform: translateX(-50%);
      background-color: #fff;
      color: var(--color-dark);
      border: 1px solid #ccc;
      border-radius: 4px;
      padding: 0.5rem 0.75rem;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      font-size: 0.75rem;
      white-space: nowrap;
      z-index: 100;
    }
    .status-tooltip a {
      color: var(--color-secondary);
    }

    /* Vacation banner displayed when practice is closed for holiday */
    .vacation-banner {
      width: 100%;
      text-align: center;
      background-color: var(--color-accent);
      color: #fff;
      padding: 0.5rem;
      font-weight: 600;
      z-index: 2000;
    }

    /* Admin link in the footer */
    .admin-link {
      color: var(--color-accent);
      font-size: 0.75rem;
      margin-left: 1rem;
    }
    .admin-link:hover,
    .admin-link:focus {
      text-decoration: underline;
    }

    /* Modal overlay and container for admin settings */
    .admin-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 3000;
    }
    .admin-modal {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: #fff;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      z-index: 3001;
      width: 90%;
      max-width: 420px;
      font-size: 0.9rem;
    }
    .admin-modal h2 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
    }
    .admin-modal input[type="date"] {
      width: 100%;
      padding: 0.25rem;
      margin-top: 0.25rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 0.9rem;
    }
    .admin-modal-actions {
      margin-top: 1rem;
      text-align: right;
    }
    .admin-modal-actions .btn {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }

/* Mobile navigation open state */
.nav--open {
  display: block;
  position: absolute;
  top: var(--header-height);
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------
   Reviews Section
   -------------------------------------------------------- */
.reviews {
  background-color: var(--color-light);
  padding: 2rem 0;
}
.reviews h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.reviews__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.25rem;
  font-size: 0.95rem;
  color: var(--color-dark);
}
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.rating__stars i {
  /* Use Google review star color (yellow) instead of the site accent colour. This
     makes the Bewertungen‑Sterne sofort als Bewertungsindikator erkennbar. */
  color: #ffc107;
  margin-right: 0.1rem;
  font-size: 1.2rem;
}
.rating__value {
  font-weight: 600;
  color: var(--color-dark);
}
.rating__count {
  font-size: 0.85rem;
  color: var(--color-dark);
}
.reviews__link {
  display: inline-block;
  margin: 0 auto;
  background-color: var(--color-secondary);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}
.reviews__link:hover,
.reviews__link:focus {
  background-color: var(--color-accent);
  color: #fff;
}
.nav--open .nav__list {
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 4rem 0 2rem;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.hero__content h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero__content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 45ch;
}
.hero__icon i {
  font-size: 6rem;
  opacity: 0.25;
}

/* Override icon styling when using an image instead */
.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
  background-color: #c0392b;
}
.btn--secondary {
  background-color: var(--color-secondary);
  color: #fff;
}
.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--color-primary);
}

/* Services overview */
.services {
  background-color: var(--color-light);
  padding: 3rem 0;
  text-align: center;
}
.services h2 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--color-dark);
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.service {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.service__icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.service h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.service p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Treatment Spectrum */
.spectrum {
  padding: 3rem 0;
}
.spectrum h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-dark);
  font-size: 1.6rem;
}
.spectrum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.spectrum-card {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-left: 5px solid var(--color-secondary);
  border-radius: 4px;
}
.spectrum-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.spectrum-card ul {
  list-style: none;
  padding-left: 0;
}
.spectrum-card li {
  margin-bottom: 0.25rem;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
}
.spectrum-card li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-secondary);
}

/* Team section */
.team {
  background-color: var(--color-light);
  padding: 3rem 0;
}
.team h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-dark);
  font-size: 1.6rem;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}
.team-member {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 300px;
}
.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.team-member h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.team-member p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Contact section */
.contact {
  padding: 3rem 0;
  background-color: #fff;
}
.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  color: var(--color-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.contact-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-item p,
.contact-item li {
  font-size: 0.95rem;
  color: var(--color-text);
}
.no-termine {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

.contact-form {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.contact-form h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--color-dark);
}
.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-row label {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--color-dark);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(0, 114, 206, 0.2);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__nav a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}
.footer__nav a:hover {
  color: var(--color-accent);
}
.footer p {
  font-size: 0.8rem;
  color: #ddd;
}

/* Directions (Anfahrt) section */
.directions {
  padding: 3rem 0;
  background-color: var(--color-light);
  text-align: center;
}
.directions h2 {
  margin-bottom: 1.5rem;
  color: var(--color-dark);
  font-size: 1.6rem;
}
.directions p {
  max-width: 45ch;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: var(--color-text);
}
.map-container {
  margin-top: 1.5rem;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Adjust hero image size on larger screens */
@media (min-width: 768px) {
  .hero__image img {
    max-width: 350px;
  }
}

/* Media Queries */
@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spectrum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav {
    display: block !important;
  }
  .nav-toggle {
    display: none;
  }
  .nav--open {
    position: static;
    box-shadow: none;
  }
  .nav__list {
    flex-direction: row;
  }
  .hero__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
  .hero__content {
    max-width: 50%;
  }
  .hero__icon {
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .hero__icon i {
    font-size: 8rem;
    opacity: 0.15;
  }
  .spectrum-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Enlarge the hero image on larger screens */
  .hero__image img {
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .spectrum-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero__content h1 {
    font-size: 2.4rem;
  }
  .hero__content p {
    font-size: 1.1rem;
  }

  .hero__image img {
    max-width: 450px;
  }
}
/* Bestellungen Section */
.bestellungen {
  padding: 4rem 0;
  background-color: var(--color-light);
}

.bestellungen__intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.bestellungen__hinweise {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-primary);
}

.bestellungen__hinweise h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bestellungen__hinweise ul {
  list-style: none;
  padding: 0;
}

.bestellungen__hinweise li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.bestellungen__hinweise li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Bestellformular */
.bestellungen-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bestellungen-form h3 {
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.form-section-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 77, 153, 0.1);
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .form-row-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Medikamenten-Gruppen */
.medication-group {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.medication-group h5 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Überweisungs-Gruppen */
.referral-group {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.referral-group h5 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Checkbox-Zeile */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-row label {
  margin-bottom: 0;
  font-weight: normal;
  line-height: 1.5;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .bestellungen-form {
    padding: 1.5rem;
  }
  
  .medication-group,
  .referral-group {
    padding: 1rem;
  }
  
  .form-section h4 {
    font-size: 1.1rem;
  }
}

/* Hover-Effekte für bessere UX */
.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: var(--color-secondary);
}

/* Placeholder-Styling */
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* Button-Styling für das Bestellformular */
.bestellungen-form .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .bestellungen-form .btn {
    width: auto;
    min-width: 200px;
  }
}

