/* ============================================================
   Landarztpraxis Dr. Valentin – Stylesheet
   CI-Farbe: #174A40 (forest green)
   ============================================================ */

:root {
  --primary:    #174A40;
  --primary-dk: #0f3028;
  --primary-lt: #e8f3f0;
  --accent:     #2e8b6e;
  --light:      #f2f7f5;
  --text:       #1a2e28;
  --muted:      #5a7268;
  --border:     #d0ddd9;
  --white:      #ffffff;
  --warn-bg:    #fff8e1;
  --warn-bdr:   #f59e0b;
  --danger:     #e74c3c;
  --wood:       #c8a96e;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(23,74,64,.08);
  --shadow-md:  0 4px 24px rgba(23,74,64,.14);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5rem; }
h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: .4rem; }
p  { margin-bottom: .8rem; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section:nth-child(even) { background: var(--light); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo – einfach nach Höhe skaliert, kein Clip nötig nach Illustrator-Export */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

nav ul { list-style: none; display: flex; gap: .25rem; flex-wrap: wrap; }
nav a {
  display: block; padding: .45rem .8rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: var(--primary); color: white; text-decoration: none;
}

.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   HINWEIS-BANNER (stapelbar für mehrere aktuelle Meldungen)
   ============================================================ */
.banner-hinweis {
  background: var(--warn-bg);
  border-bottom: 3px solid var(--warn-bdr);
  padding: .75rem 0;
  text-align: center;
}
.banner-hinweis + .banner-hinweis { border-top: 1px solid rgba(0,0,0,.06); }
.banner-hinweis p { margin: 0; font-size: .92rem; }
.banner-hinweis strong { color: #92400e; }

/* ============================================================
   HERO
   ============================================================ */
#start {
  background: linear-gradient(150deg, var(--primary-dk) 0%, var(--primary) 100%);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
}
#start h1 { color: white; margin-bottom: .5rem; }
#start .subtitle { font-size: 1.15rem; opacity: .88; margin-bottom: 2rem; }

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.hero-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
}
.hero-card .icon { font-size: 1.8rem; margin-bottom: .5rem; }
.hero-card h3 { color: white; font-size: .95rem; margin-bottom: .25rem; }
.hero-card p { font-size: .88rem; opacity: .85; margin: 0; }

/* ============================================================
   NOTICE
   ============================================================ */
.notice {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-bdr);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.1rem;
  margin-bottom: 1.4rem;
}
.notice strong { color: #92400e; }

/* ============================================================
   ÖFFNUNGSSTATUS-BADGE
   ============================================================ */
.oeffnung-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.oeffnung-badge.open {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}
.oeffnung-badge.closed {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}
.oeffnung-badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.oeffnung-badge.open .dot {
  background: #10b981;
  animation: blink 2s ease-in-out infinite;
}
.oeffnung-badge.closed .dot {
  background: #ef4444;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ============================================================
   SPRECHZEITEN-TABELLE
   ============================================================ */
.sprechzeiten-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.sz-table { width: 100%; border-collapse: collapse; }
.sz-table th {
  text-align: left;
  padding: .6rem .9rem;
  background: var(--primary);
  color: white;
  font-size: .88rem;
  letter-spacing: .04em;
}
.sz-table td {
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.sz-table tr:last-child td { border-bottom: none; }
.sz-table tr:nth-child(even) td { background: var(--light); }
.sz-table .closed { color: var(--muted); font-style: italic; }

/* Heutiger Tag */
.sz-table tr.today td {
  background: var(--primary-lt) !important;
  font-weight: 600;
  color: var(--primary-dk);
}
.sz-table tr.today td:first-child {
  border-left: 4px solid var(--primary);
  padding-left: calc(.9rem - 4px);
}

/* ============================================================
   KONTAKTKARTE
   ============================================================ */
.kontakt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.kontakt-card h3 { margin-bottom: 1rem; }
.kontakt-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .7rem;
  font-size: .95rem;
}
.kontakt-row .ki { width: 22px; text-align: center; flex-shrink: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: white;
  padding: .6rem 1.2rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.btn:hover { background: var(--primary-dk); text-decoration: none; color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ============================================================
   GOOGLE MAPS – 2-CLICK-BOX
   ============================================================ */
.maps-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 200px;
  gap: .8rem;
}
.maps-placeholder p { color: var(--muted); font-size: .9rem; margin: 0; }
.maps-placeholder a { font-size: .82rem; }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.leistung-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.leistung-card .icon { font-size: 2rem; margin-bottom: .8rem; }
.leistung-card ul { list-style: none; margin-top: .6rem; }
.leistung-card ul li {
  padding: .25rem 0 .25rem 1.3rem;
  font-size: .92rem;
  position: relative;
}
.leistung-card ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* ============================================================
   TERMIN & REZEPT
   ============================================================ */
.termin-rezept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.card h2 { margin-bottom: .4rem; }
.card .lead { color: var(--muted); margin-bottom: 1.2rem; font-size: .95rem; }

.t2med-frame { width: 100%; min-height: 450px; border: none; border-radius: var(--radius); }
.t2med-placeholder {
  min-height: 260px; background: var(--light);
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); text-align: center; padding: 2rem; gap: .5rem;
}
.t2med-placeholder span { font-size: 2.5rem; }

/* Formular */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: .3rem; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23,74,64,.1);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.consent-box {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem;
}
.consent-box label {
  display: flex; align-items: flex-start; gap: .6rem;
  cursor: pointer; font-weight: 400; font-size: .88rem;
}
.consent-box input[type=checkbox] {
  width: auto; margin-top: 3px; flex-shrink: 0;
  accent-color: var(--primary);
}
.btn-submit {
  background: var(--accent); width: 100%;
  font-size: 1rem; padding: .75rem;
}
.btn-submit:hover { background: #226b54; }

/* ============================================================
   NOTFALLNUMMERN
   ============================================================ */
.notfall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.notfall-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1rem;
  text-align: center; box-shadow: var(--shadow);
}
.notfall-card.emergency { border-color: var(--danger); background: #fff5f5; }
.notfall-card .nf-icon { font-size: 2rem; margin-bottom: .4rem; }
.notfall-card .nf-label { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.notfall-card .nf-number {
  font-size: 1.7rem; font-weight: 800; color: var(--primary); letter-spacing: .02em;
}

/* ============================================================
   KLINIKEN-LINKS
   ============================================================ */
.kliniken { margin-top: 2rem; }
.kliniken h3 { margin-bottom: .75rem; }
.klinik-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.klinik-link {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .5rem 1rem;
  font-size: .9rem; font-weight: 500; color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.klinik-link:hover {
  background: var(--primary-lt); border-color: var(--primary);
  text-decoration: none; color: var(--primary-dk);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
}
footer h4 { color: white; margin-bottom: .75rem; font-size: .95rem; letter-spacing: .04em; }
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: white; }
footer p { font-size: .88rem; line-height: 1.6; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: white; }

/* ============================================================
   GALERIE-SLIDER  (.gs-*)
   Alle Klassen haben gs- Prefix → kein Konflikt mit globalem CSS
   ============================================================ */

/* Äußere Hülle: position:relative für absolute Kinder (Pfeile) */
.gs-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  background: #1a2e28;
}

/* Slide: standardmäßig unsichtbar */
.gs-slide {
  display: none;
  position: relative;   /* für Caption */
  line-height: 0;       /* kein Leerzeichen unter img */
}

/* Aktives Slide: eingeblendet mit Fade-Animation */
.gs-slide.gs-active {
  display: block;
  animation: gsFadeIn .7s ease;
}
@keyframes gsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Bild: explizite Höhe – KEIN height:100% */
.gs-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;    /* kein inline-gap */
}

/* Caption über dem Bild */
.gs-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(23, 74, 64, .78);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .02em;
  padding: .55rem 1rem;
  line-height: 1.4;
}

/* Pfeil-Buttons */
.gs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 74, 64, .8);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 44px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  z-index: 20;
  transition: background .2s;
}
.gs-btn:hover { background: #174A40; }
.gs-prev { left:  .8rem; }
.gs-next { right: .8rem; }

/* Dots */
.gs-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: .7rem 0 .5rem;
  background: var(--white);
}
.gs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.gs-dot.gs-dot-on {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .gs-slide img { height: 240px; }
  .gs-btn { width: 36px; height: 36px; font-size: 1.4rem; line-height: 36px; }
}

.anfahrt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow);
}
.anfahrt-info { display: flex; align-items: center; gap: 1rem; }
.anfahrt-icon { font-size: 2rem; flex-shrink: 0; }
.anfahrt-info strong { font-size: 1.05rem; display: block; margin-bottom: .2rem; }
.anfahrt-info p { font-size: .88rem; color: var(--muted); margin: 0; }
.btn-route { font-size: 1rem; padding: .75rem 1.8rem; white-space: nowrap; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sprechzeiten-grid,
  .termin-rezept-grid,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-cards { grid-template-columns: 1fr 1fr; }
  /* Slider-Responsive via eigener @media in der Slider-Sektion */
  .anfahrt-box { flex-direction: column; align-items: flex-start; }
  .btn-route { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }

  .hamburger { display: flex; }
  #main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1rem .75rem; }
  #main-nav ul li a { padding: .6rem .8rem; display: block; }
}

@media (max-width: 420px) {
  .hero-cards { grid-template-columns: 1fr; }
}
