/* ============================================
   Rathaus Apotheke – Gemeinsames Stylesheet
   Farben: Rot #C0272D | Schwarz #1a1a1a | Weiß #fff
   ============================================ */

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

:root {
  --rot: #C0272D;
  --rot-dunkel: #9a1f24;
  --rot-hell: #e8363d;
  --schwarz: #1a1a1a;
  --grau-dunkel: #333;
  --grau: #666;
  --grau-hell: #f5f5f5;
  --weiss: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --radius: 8px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--schwarz); background: var(--weiss); line-height: 1.7; font-size: 16px; }
a { color: var(--rot); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rot-dunkel); }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
header { background: var(--weiss); border-bottom: 3px solid var(--rot); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 75px; }
.logo-wrap { display: flex; align-items: center; gap: 14px; }
.logo-wrap img { height: 55px; width: auto; }
.logo-text .name { font-size: 1.15rem; font-weight: 700; color: var(--schwarz); }
.logo-text .tagline { font-size: 0.75rem; color: var(--grau); }
nav ul { list-style: none; display: flex; gap: 4px; }
nav ul li a { display: block; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; color: var(--schwarz); transition: background 0.2s, color 0.2s; }
nav ul li a:hover, nav ul li a.aktiv { background: var(--rot); color: var(--weiss); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--schwarz); border-radius: 2px; }

/* HERO */
.hero { position: relative; height: 480px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(192,39,45,0.82) 0%, rgba(26,26,26,0.65) 100%); }
.hero-content { position: relative; z-index: 1; text-align: center; color: var(--weiss); padding: 20px; max-width: 700px; }
.hero-content h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 28px; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 50px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; letter-spacing: 0.03em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-weiss { background: var(--weiss); color: var(--rot); }
.btn-rot { background: var(--rot); color: var(--weiss); }
.btn-outline { background: transparent; color: var(--weiss); border: 2px solid var(--weiss); }
.btn-gruppe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* STANDORT-BANNER */
.standort-banner { background: var(--schwarz); color: var(--weiss); padding: 12px 20px; font-size: 0.83rem; }
.standort-banner-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; }
.standort-pill { display: flex; align-items: center; gap: 6px; }
.standort-sep { color: var(--rot); font-size: 1.2rem; }

/* SECTIONS */
.section { padding: 70px 20px; }
.section-gray { background: var(--grau-hell); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--schwarz); margin-bottom: 10px; position: relative; padding-bottom: 16px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 55px; height: 4px; background: var(--rot); border-radius: 2px; }
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }
.section-sub { font-size: 1.05rem; color: var(--grau); margin-bottom: 45px; }
.section-sub.centered { text-align: center; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; transition: transform 0.25s; border-top: 4px solid var(--rot); }
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--grau); font-size: 0.93rem; line-height: 1.6; }

/* STANDORTE */
.standorte-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.standort-card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.standort-card-header { background: var(--rot); color: var(--weiss); padding: 20px 28px; }
.standort-card-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.standort-card-header p { font-size: 0.85rem; opacity: 0.9; }
.standort-card-body { padding: 24px 28px; }
.oz-tabelle { width: 100%; border-collapse: collapse; }
.oz-tabelle tr { border-bottom: 1px solid var(--border); }
.oz-tabelle tr:last-child { border-bottom: none; }
.oz-tabelle td { padding: 8px 4px; font-size: 0.9rem; }
.oz-tabelle td:first-child { font-weight: 600; width: 45%; }
.oz-tabelle td:last-child { color: var(--grau-dunkel); }
.k-liste { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.k-liste li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--grau-dunkel); }

/* LEISTUNGEN */
.leistungen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.leistung-card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s; }
.leistung-card:hover { transform: translateY(-4px); }
.leistung-card-top { background: var(--rot); padding: 22px; display: flex; align-items: center; gap: 14px; }
.leistung-icon { font-size: 2rem; }
.leistung-card-top h3 { font-size: 1.1rem; font-weight: 700; color: var(--weiss); }
.leistung-card-body { padding: 20px 22px; }
.leistung-card-body p { color: var(--grau-dunkel); font-size: 0.93rem; line-height: 1.65; }
.leistung-tag { display: inline-block; background: #fff0f0; color: var(--rot); border: 1px solid #f0c0c0; border-radius: 20px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; margin-top: 10px; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.team-card { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; transition: transform 0.25s; }
.team-card:hover { transform: translateY(-4px); }
.team-avatar { background: linear-gradient(135deg, var(--rot) 0%, var(--rot-dunkel) 100%); height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.team-card-body { padding: 20px 16px; }
.team-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body .rolle { font-size: 0.83rem; color: var(--rot); font-weight: 600; margin-bottom: 5px; }
.team-card-body .standort-badge { display: inline-block; background: var(--grau-hell); color: var(--grau); border-radius: 20px; font-size: 0.75rem; padding: 2px 10px; margin-top: 6px; }

/* KONTAKT */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.kontakt-box { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.kontakt-box-header { background: var(--rot); color: var(--weiss); padding: 16px 24px; font-size: 1.05rem; font-weight: 700; }
.kontakt-box-body { padding: 22px; }
.k-zeile { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.k-icon { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.k-text { color: var(--grau-dunkel); font-size: 0.88rem; line-height: 1.5; }
.k-text strong { display: block; color: var(--schwarz); font-weight: 600; font-size: 0.83rem; margin-bottom: 1px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 30px; }
.map-wrap iframe { display: block; width: 100%; border: none; }

/* INFO-BANNER */
.info-banner { background: linear-gradient(135deg, var(--rot) 0%, var(--rot-dunkel) 100%); color: var(--weiss); padding: 55px 20px; text-align: center; }
.info-banner h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.info-banner p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--rot) 0%, var(--rot-dunkel) 100%); color: var(--weiss); padding: 55px 20px; text-align: center; }
.page-header h1 { font-size: 2.3rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { font-size: 1.05rem; opacity: 0.9; }

/* FOOTER */
footer { background: var(--schwarz); color: rgba(255,255,255,0.75); padding: 45px 20px 20px; }
.footer-grid { max-width: 1100px; margin: 0 auto 35px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer-col h4 { color: var(--weiss); font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--rot); }
.footer-col p, .footer-col a { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.9; display: block; }
.footer-col a:hover { color: var(--rot-hell); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.80rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.80rem; }
.footer-bottom a:hover { color: var(--rot-hell); }
.footer-logo { height: 40px; width: auto; opacity: 0.7; }

/* WHATSAPP FLOATING BUTTON */
.wa-btn { position: fixed; bottom: 24px; right: 24px; background: #25D366; color: #fff !important; border-radius: 50px; padding: 13px 20px; text-decoration: none; font-weight: 700; font-size: 0.88rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 998; display: flex; align-items: center; gap: 9px; transition: transform 0.2s, box-shadow 0.2s; }
.wa-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,0.5); color: #fff !important; }
.wa-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* E-REZEPT & REZEPTBESTELLUNG */
.erezept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.erezept-box { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; border-left: 5px solid var(--rot); }
.erezept-box .erezept-icon { font-size: 2.4rem; margin-bottom: 14px; }
.erezept-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--schwarz); }
.erezept-box p { color: var(--grau-dunkel); font-size: 0.93rem; line-height: 1.65; margin-bottom: 16px; }
.rezept-kontakt { display: flex; flex-direction: column; gap: 8px; }
.rezept-kontakt a { display: inline-flex; align-items: center; gap: 8px; background: var(--grau-hell); border-radius: var(--radius); padding: 9px 14px; font-size: 0.85rem; font-weight: 600; color: var(--schwarz); transition: background 0.2s; }
.rezept-kontakt a:hover { background: #ffe0e0; color: var(--rot); }

/* NOTDIENST */
.notdienst-box { max-width: 680px; margin: 0 auto; text-align: center; }
.notdienst-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff3cd; border: 2px solid #ffc107; border-radius: var(--radius); padding: 14px 22px; font-size: 0.9rem; color: #664d03; margin-bottom: 28px; font-weight: 600; }
.notdienst-hinweis { font-size: 0.78rem; color: var(--grau); max-width: 700px; margin: 24px auto 0; line-height: 1.6; text-align: center; }
.notdienst-hinweis a { color: var(--grau); text-decoration: underline; }
.notdienst-hinweis a:hover { color: var(--rot); }

/* STELLENANGEBOTE */
.stellen-box { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; display: flex; align-items: center; gap: 28px; border-left: 5px solid var(--rot); }
.stellen-icon { font-size: 3rem; flex-shrink: 0; }
.stellen-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.stellen-box p { color: var(--grau-dunkel); font-size: 0.93rem; margin-bottom: 14px; }

/* GOOGLE MAPS NAVIGATION */
.maps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 10px; }
.maps-box { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.maps-box-header { background: var(--rot); color: var(--weiss); padding: 14px 20px; font-weight: 700; font-size: 1rem; }
.maps-box-body { padding: 20px; }
.maps-box-body p { font-size: 0.9rem; color: var(--grau-dunkel); margin-bottom: 16px; line-height: 1.6; }
.maps-btn { display: flex; align-items: center; gap: 10px; background: #4285F4; color: #fff !important; border-radius: var(--radius); padding: 13px 20px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.2s, transform 0.2s; justify-content: center; }
.maps-btn:hover { background: #3367D6; transform: translateY(-2px); color: #fff !important; }
.maps-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Navigation */
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 75px; left: 0; right: 0; background: var(--weiss); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 16px 20px; z-index: 999; }
  nav.offen { display: block; }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul li a { padding: 10px 14px; font-size: 1rem; }
  /* Hero */
  .hero { height: 340px; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content p { font-size: 0.95rem; }
  .btn { padding: 11px 22px; font-size: 0.88rem; }
  .btn-gruppe { gap: 10px; }
  /* Standort-Banner */
  .standort-banner-inner { flex-direction: column; gap: 6px; text-align: center; }
  .standort-sep { display: none; }
  /* Sections */
  .section { padding: 40px 16px; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.95rem; margin-bottom: 30px; }
  /* Cards */
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px 18px; }
  /* Standorte */
  .standorte-grid { grid-template-columns: 1fr; }
  /* E-Rezept */
  .erezept-grid { grid-template-columns: 1fr; gap: 16px; }
  .erezept-box { padding: 22px 18px; }
  /* Notdienst */
  .notdienst-badge { font-size: 0.82rem; padding: 10px 14px; }
  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; }
  /* Leistungen */
  .leistungen-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* Maps */
  .maps-grid { grid-template-columns: 1fr; }
  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  /* WhatsApp Button */
  .wa-btn { padding: 11px 16px; font-size: 0.82rem; bottom: 16px; right: 16px; }
  /* Info-Banner */
  .info-banner h2 { font-size: 1.5rem; }
  .info-banner p { font-size: 0.95rem; }
  /* Stellen-Box */
  .stellen-box { flex-direction: column; padding: 22px 18px; }
}

@media (max-width: 480px) {
  .hero { height: 280px; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.88rem; margin-bottom: 18px; }
  .section-title { font-size: 1.3rem; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-btn span { display: none; }
  .wa-btn { border-radius: 50%; padding: 14px; }
  .btn-gruppe { flex-direction: column; align-items: center; }
  .standort-card-header h3 { font-size: 1rem; }
  .oz-tabelle td { font-size: 0.82rem; }
}
