/*
Theme Name:  Weserapotheke
Theme URI:   https://weserapotheke.de
Author:      Weserapotheke
Description: Offizielles Theme der Weserapotheke – Ihre Apotheke vor Ort in Bremen.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weserapotheke
*/

/* ============================================================
   Weserapotheke – Haupt-Stylesheet  v1.0.0
   Primär: #E31B1C (Logo-Rot)  |  Akzent: #0035B3 (Logo-Blau)
   ============================================================ */

/* ── Reset & Basis ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rot:         #E31B1C;
  --rot-dunkel:  #C01010;
  --rot-hell:    #f03232;
  --blau:        #0035B3;
  --blau-dunkel: #002899;
  --weiss:       #ffffff;
  --grau-hell:   #f7f7f7;
  --grau-rand:   #e8e8e8;
  --grau-text:   #222222;
  --grau-mittel: #555555;
  --schatten:    0 2px 16px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--grau-text);
  background: var(--weiss);
  line-height: 1.7;
}

a { color: var(--rot); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rot-dunkel); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Wrapper ────────────────────────────────────────────────── */
.wap-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.wap-header {
  background: var(--weiss);
  color: var(--grau-text);
  border-bottom: 3px solid var(--rot);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.wap-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

/* Logo */
.wap-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

/* Navigation im Banner */
.wap-nav { display: flex; align-items: center; gap: 4px; }

.wap-nav a {
  color: var(--grau-text);
  font-size: .95rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  text-decoration: none !important;
  letter-spacing: .2px;
}

.wap-nav a:hover,
.wap-nav a.aktiv {
  background: var(--grau-hell);
  color: var(--rot);
}

/* Hamburger-Button */
.wap-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.wap-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--grau-text);
  border-radius: 2px;
  transition: all .3s;
}

/* ════════════════════════════════════════════════════════════
   HERO-BEREICH
   ════════════════════════════════════════════════════════════ */
.wap-hero {
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-rand);
  padding: 80px 24px 90px;   /* ← Höhe anpassen: größer = mehr Bild sichtbar */
  min-height: 420px;          /* ← Mindesthöhe des Hero-Bereichs              */
  text-align: center;
  position: relative;
}

.wap-hero-inner { max-width: 740px; margin: 0 auto; position: relative; }

.wap-hero h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 18px;
  line-height: 1.2;
}

.wap-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--grau-mittel);
  max-width: 580px;
  margin: 0 auto 34px;
}

/* Hero mit Hintergrundbild */
.wap-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,92,56,0.80) 0%, rgba(0,53,179,0.55) 100%);
}

.wap-hero--has-image .wap-hero-inner h2 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.wap-hero--has-image .wap-hero-inner p {
  color: rgba(255,255,255,0.92);
}

.wap-hero--has-image .wap-btn {
  background: #ffffff;
  color: var(--rot-dunkel);
  border-color: #ffffff;
}
.wap-hero--has-image .wap-btn:hover {
  background: var(--grau-hell);
}

.wap-hero--has-image .wap-btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.8);
}
.wap-hero--has-image .wap-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* Buttons */
.wap-btn {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  font-size: .97rem;
  padding: 13px 32px;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(227,27,28,.3);
  transition: background .2s, transform .18s, box-shadow .18s;
  text-decoration: none !important;
}

.wap-btn:hover {
  background: var(--rot-dunkel);
  color: var(--weiss);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227,27,28,.35);
}

.wap-btn-outline {
  background: var(--weiss);
  color: var(--rot);
  border: 2px solid var(--rot);
  box-shadow: none;
  margin-left: 12px;
}

.wap-btn-outline:hover {
  background: var(--rot);
  color: var(--weiss);
  box-shadow: 0 6px 20px rgba(227,27,28,.3);
}

/* ════════════════════════════════════════════════════════════
   PAGE-HERO (Unterseiten)
   ════════════════════════════════════════════════════════════ */
.wap-page-hero {
  background: var(--grau-hell);
  border-bottom: 3px solid var(--blau);
  text-align: center;
  padding: 52px 24px 58px;
}

.wap-page-hero h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 10px;
}

.wap-page-hero p {
  font-size: 1.05rem;
  color: var(--grau-mittel);
  max-width: 520px;
  margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   SECTIONS (allgemein)
   ════════════════════════════════════════════════════════════ */
.wap-section { padding: 72px 24px; background: var(--weiss); }
.wap-section.grau { background: var(--grau-hell); }
.wap-section-inner { max-width: 1200px; margin: 0 auto; }

.wap-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--rot);
  text-align: center;
  margin-bottom: 10px;
}

.wap-section-subtitle {
  text-align: center;
  color: var(--grau-mittel);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.wap-divider {
  width: 52px;
  height: 3px;
  background: var(--blau);
  margin: 10px auto 18px;
  border-radius: 2px;
}

/* ── Karten ─────────────────────────────────────────────────── */
.wap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.wap-card {
  background: var(--weiss);
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: var(--schatten);
  border: 1px solid var(--grau-rand);
  border-top: 3px solid var(--rot);
  transition: transform .22s, box-shadow .22s;
}

.wap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.wap-card-icon {
  width: 50px;
  height: 50px;
  background: var(--blau);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.wap-card-icon svg { width: 26px; height: 26px; fill: var(--weiss); }

.wap-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; color: var(--grau-text); }
.wap-card p  { color: var(--grau-mittel); font-size: .93rem; line-height: 1.65; }

/* ── Team ───────────────────────────────────────────────────── */
.wap-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.wap-team-card {
  background: var(--weiss);
  border: 1px solid var(--grau-rand);
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--schatten);
}

.wap-team-avatar {
  width: 72px;
  height: 72px;
  background: var(--grau-hell);
  border: 2px solid var(--rot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.8rem;
}

.wap-team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #222222; }
.wap-team-card p  { color: #555555; font-size: .86rem; }

/* ── USP-Liste ──────────────────────────────────────────────── */
.wap-usp-list { list-style: none; margin-top: 20px; }

.wap-usp-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grau-rand);
}
.wap-usp-list li:last-child { border-bottom: none; }

.wap-usp-icon {
  width: 30px;
  height: 30px;
  background: var(--rot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.wap-usp-icon svg { width: 15px; height: 15px; fill: var(--weiss); }

/* ── Öffnungszeiten-Banner (Startseite) ─────────────────────── */
.wap-oeffnung-banner {
  background: var(--grau-hell);
  border-top: 1px solid var(--grau-rand);
  border-bottom: 1px solid var(--grau-rand);
  padding: 36px 24px;
  text-align: center;
}

.wap-oeffnung-banner h3 {
  font-size: 1.05rem;
  color: var(--rot);
  font-weight: 700;
  margin-bottom: 16px;
}

.wap-oeffnung-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}

.wap-oeffnung-item { font-size: .92rem; color: var(--grau-text); }
.wap-oeffnung-item strong { display: block; color: var(--rot); font-weight: 700; margin-bottom: 2px; }

/* ── Kontakt-Grid ───────────────────────────────────────────── */
.wap-kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.wap-info-box {
  background: var(--grau-hell);
  border: 1px solid var(--grau-rand);
  border-radius: 10px;
  padding: 28px;
}

.wap-info-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grau-rand);
}

.wap-info-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.wap-info-item-icon {
  width: 36px;
  height: 36px;
  background: var(--rot);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wap-info-item-icon svg { width: 17px; height: 17px; fill: var(--weiss); }

.wap-info-item strong { display: block; font-size: .82rem; color: var(--grau-mittel); margin-bottom: 1px; }
.wap-info-item p { font-size: .96rem; line-height: 1.5; }

/* Öffnungszeiten-Tabelle */
.wap-oeffnung { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.wap-oeffnung tr { border-bottom: 1px solid var(--grau-rand); }
.wap-oeffnung td { padding: 8px 2px; }
.wap-oeffnung td:last-child { text-align: right; font-weight: 600; color: var(--grau-text); }
.wap-oeffnung tr:last-child td:last-child { color: var(--rot); }

/* Formular */
.wap-form { display: flex; flex-direction: column; gap: 16px; }

.wap-form label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--grau-text);
  margin-bottom: 4px;
  display: block;
}

.wap-form input,
.wap-form textarea,
.wap-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: 7px;
  font-size: .97rem;
  font-family: inherit;
  background: var(--weiss);
  transition: border-color .2s, box-shadow .2s;
  color: var(--grau-text);
}

.wap-form input:focus,
.wap-form textarea:focus,
.wap-form select:focus {
  outline: none;
  border-color: var(--rot);
  box-shadow: 0 0 0 3px rgba(227,27,28,.12);
}

.wap-form textarea { resize: vertical; min-height: 130px; }

.wap-form-btn {
  background: var(--rot);
  color: var(--weiss);
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .18s;
  align-self: flex-start;
}
.wap-form-btn:hover { background: var(--rot-dunkel); transform: translateY(-1px); }

.wap-success {
  display: none;
  background: #f0faf0;
  border: 1px solid #81c784;
  border-radius: 7px;
  padding: 14px 18px;
  color: #2e7d32;
  font-size: .94rem;
}

/* ── Impressum / AGB / Rechtliche Seiten ────────────────────── */
.wap-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.wap-legal h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rot);
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--grau-rand);
}

.wap-legal h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grau-text);
  margin: 20px 0 6px;
}

.wap-legal p { color: var(--grau-mittel); margin-bottom: 10px; line-height: 1.75; font-size: .97rem; }
.wap-legal ul { padding-left: 22px; color: var(--grau-mittel); margin-bottom: 12px; }
.wap-legal ul li { margin-bottom: 6px; font-size: .97rem; line-height: 1.65; }
.wap-legal a { color: var(--rot); }

.wap-legal-meta {
  background: var(--grau-hell);
  border: 1px solid var(--grau-rand);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: .91rem;
  color: var(--grau-mittel);
}

/* ── Flyer-Bereich ──────────────────────────────────────────── */
.wap-flyer {
  background: linear-gradient(135deg, var(--rot) 0%, var(--rot-dunkel) 100%);
  border-top: 4px solid var(--blau);
  border-bottom: 4px solid var(--blau);
  padding: 44px 24px;
  text-align: center;
}

.wap-flyer-inner { max-width: 860px; margin: 0 auto; }

.wap-flyer h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--weiss);
  margin-bottom: 8px;
  letter-spacing: .3px;
}

.wap-flyer .wap-divider {
  background: var(--weiss);
  opacity: .6;
  margin-bottom: 24px;
}

.wap-flyer img {
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  margin: 0 auto;
  max-width: 580px;
  width: 100%;
  border: 3px solid rgba(255,255,255,.25);
}

/* ── Footer ─────────────────────────────────────────────────── */
.wap-footer {
  background: #1c1c1c;
  color: #aaa;
  padding: 44px 24px 22px;
  margin-top: auto;
}

.wap-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
}

.wap-footer h4 { color: var(--weiss); font-size: .92rem; margin-bottom: 12px; letter-spacing: .5px; text-transform: uppercase; }

.wap-footer p,
.wap-footer a { font-size: .86rem; color: #aaa; line-height: 2.1; text-decoration: none; }
.wap-footer a:hover { color: var(--weiss); text-decoration: underline; }

.wap-footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: #777;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wap-kontakt-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .wap-hamburger { display: flex; }

  .wap-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110px;
    left: 0; right: 0;
    background: var(--rot);
    padding: 10px 0 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 999;
  }
  .wap-nav.offen { display: flex; }
  .wap-nav a { padding: 12px 22px; border-radius: 0; color: var(--weiss); }
  .wap-nav a:hover { background: var(--rot-dunkel); color: var(--weiss); }

  .wap-header-inner { position: relative; }

  .wap-btn-outline { margin-left: 0; margin-top: 10px; display: inline-block; }

  .wap-hero { padding: 56px 20px 64px; }

  .wap-flyer img { max-width: 100%; }
}
