/* =========================================================
   BreMed – Gesundheitszentrum Bremen Süd
   Stylesheet
   ========================================================= */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id] { scroll-margin-top: 80px; }

/* ── Navigation ─────────────────────────────────────────── */
.nav-link {
  transition: color 0.15s, background 0.15s;
}

/* ── Doctor cards (legacy, kept for safety) ─────────────── */
.doctor-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.doctor-card:hover {
  box-shadow: 0 8px 30px rgba(204,0,0,0.12);
  transform: translateY(-2px);
}

/* ── Ärzte Bento Grid ────────────────────────────────────── */
.aerzte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  grid-template-areas: 'tl1 tl2 center tr1 tr2' 'bl bl center br br';
  gap: 14px;
}

.aerzte-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.aerzte-card:hover {
  transform: translateY(-3px);
}

.aerzte-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}

.aerzte-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 88px;
  height: 88px;
  opacity: 0.22;
}
.aerzte-card-icon svg { width: 100%; height: 100%; }

/* KI-Kennzeichnung (offizielles Label oben rechts auf KI-Bildern) */
.ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  height: 22px;
  width: auto;
  pointer-events: none;
}

.aerzte-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  z-index: 2;
}

.aerzte-card-sub {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  margin-top: 3px;
}

.aerzte-center {
  grid-area: center;
  background: #FFF0F0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  text-align: center;
  gap: 20px;
}
.aerzte-center-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.38;
  color: #111;
  margin: 0;
}
.aerzte-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
  transition: background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.aerzte-center-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 1023px) {
  .aerzte-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 'tl1 tl2' 'bl bl' 'center center' 'tr1 tr2' 'br br';
  }
  .aerzte-card { min-height: 160px; }
  .aerzte-center { padding: 28px 24px; }
  .aerzte-center-title { font-size: 18px; }
}

/* ── Weitere Angebote Bento Grid ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  grid-template-areas: 's1 s1 s2' 's3 s4 s4';
  gap: 14px;
}
.service-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.service-tile:hover { transform: translateY(-3px); }
.service-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.14) 58%, transparent 100%);
}
.service-tile-icon {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  opacity: 0.22;
}
.service-tile-icon svg { width: 100%; height: 100%; }
.service-tile-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  color: #fff;
  z-index: 2;
}
.service-tile-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 3px;
}
.service-tile-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
}
.service-tile-desc {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255,255,255,0.70);
  margin: 0;
}
.service-tile-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 's1 s1' 's2 s3' 's4 s4';
  }
  .service-tile { min-height: 200px; }
}
@media (max-width: 479px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 's1' 's2' 's3' 's4';
  }
}

/* ── So funktioniert's (Steps mit Notch-Karten) ──────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step-visual {
  position: relative;
  background: #fff;
  border-radius: 24px;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.step-num {
  font-size: 17px;
  font-weight: 700;
  color: #CC0000;
}
.step-icon {
  width: 96px;
  height: 96px;
}
.step-icon svg { width: 100%; height: 100%; }
.step-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 20px 0 6px;
}
.step-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}
@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .step-visual { min-height: 230px; }
}

/* ── Anfahrt: Akkordeon (Anfahrt / Parkplätze / Öffnungszeiten) ── */
.acc-item { border-top: 1px solid #F0DADA; }
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}
.acc-header > svg:first-child { flex-shrink: 0; }
.acc-title { flex: 1; }
.acc-chevron {
  color: #9CA3AF;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner {
  overflow: hidden;
  padding-left: 32px;
}
.acc-item.open .acc-panel-inner { padding-bottom: 20px; }
.acc-panel-inner p {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 12px;
}
.acc-panel-inner p:last-child { margin-bottom: 0; }

/* ── Form focus styles ───────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #CC0000;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

/* ── Animated send button ────────────────────────────────── */
.btn-send {
  font-family: inherit;
  font-size: 16px;
  background: #CC0000;
  color: white;
  padding: 0.7em 1em 0.7em 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}
.btn-send span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
}
.btn-send svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}
.btn-send:hover { background: #A50000; }
.btn-send:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}
.btn-send:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}
.btn-send:hover span {
  transform: translateX(5em);
}
.btn-send:active { transform: scale(0.95); }

@keyframes fly-1 {
  from { transform: translateY(0.1em); }
  to   { transform: translateY(-0.1em); }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #FFF0F0;
  border-top: 1px solid rgba(204,0,0,0.10);
}
.footer-heading {
  color: #1C1917;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-link {
  color: #57534E;
  font-size: 15px;
  transition: color 0.15s;
}
.footer-link:hover { color: #CC0000; }
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #E7E5E4;
  color: #57534E;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.footer-social:hover {
  background: #CC0000;
  border-color: #CC0000;
  color: #fff;
}

/* ── Kontakt: Schritt-für-Schritt-Formular ───────────────── */
.stepform {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.stepform-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.stepform-progress span {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: #EFEBE9;
  transition: background 0.3s;
}
.stepform-progress span.active { background: #CC0000; }
.stepform-count {
  font-size: 12px;
  font-weight: 600;
  color: #CC0000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stepform-q {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1C1917;
  margin-bottom: 16px;
}
.stepform-field {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #D6D3D1;
  font-size: 16px;
  color: #1C1917;
  background: #fff;
}
.stepform-field::placeholder { color: #A8A29E; }
.stepform-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.step-btn-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #CC0000;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.step-btn-next:hover { background: #A50000; }
.step-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  background: #fff;
  color: #57534E;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #E7E5E4;
  cursor: pointer;
  transition: background 0.15s;
}
.step-btn-back:hover { background: #F5F5F4; }
