/* =====================================================================
   Zahnwolke – Auffrischung der Startseite (index.html, body.startseite)
   Wird NACH main.css geladen und überschreibt nur die Optik.
   Aufbau: 1. Grundlagen  2. Praxis-Karten  3. Sprechzeiten-Fenster
           4. Willkommensbox  5. Seitenrahmen  6. Niedrige Bildschirme
           7. Handy  8. Weniger Bewegung
   ===================================================================== */

/* ---------- 1. Grundlagen ---------- */
.startseite {
  --lila: #8548b0;
  --blau: #5068a0;
  --gold: #bd9b60;
  --glas: rgba(255, 255, 255, 0.78);
  --schatten: 0 14px 40px rgba(40, 20, 70, 0.22);
  --schatten-hoch: 0 22px 50px rgba(40, 20, 70, 0.28);
  --sanft: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

.startseite .logo {
  filter: drop-shadow(0 6px 18px rgba(40, 20, 70, 0.25));
}

/* ---------- 2. Praxis-Karten ---------- */
.startseite .outside {
  align-items: stretch;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.startseite .outside .wrap-inside {
  display: flex;
  flex-direction: column;
  flex: 0 0 24rem;
  max-width: calc(50% - 1.25rem);
  margin-right: 0;
  border-radius: var(--radius);
  background-color: var(--glas);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--schatten);
  transition:
    transform 0.6s var(--sanft),
    box-shadow 0.6s var(--sanft),
    border-radius 0.45s var(--sanft);
}

/* farbiger Streifen oben: Lila = Kelheim, Blau = Rottenburg */
.startseite .outside .wrap-inside::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--lila);
}

.startseite .outside .wrap-inside:nth-child(2)::before {
  background: var(--blau);
}

.startseite .outside .wrap-inside:hover,
.startseite .outside .wrap-inside:focus-within {
  z-index: 20;
  transform: translateY(-4px);
  box-shadow: var(--schatten-hoch);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.startseite .outside .card1 {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 1.25rem 1rem 1rem;
}

/* ganzer weißer Bereich führt zur Praxisseite */
.startseite .outside .card1 .header-card__link:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.startseite .outside .heder-card {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.startseite .outside .pargraph-card {
  color: #4a4458;
}

/* Status: geöffnet / Mittagspause / geschlossen (js/oeffnungszeiten.js) */
.startseite .oeffnung {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.7rem auto 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #eeeaf3;
  color: #4a4458;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.startseite .oeffnung::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #8a8496;
}

.startseite .oeffnung[data-status="offen"] {
  background: #e3f4e8;
  color: #1e6b3a;
}

.startseite .oeffnung[data-status="offen"]::before {
  background: #22a352;
  box-shadow: 0 0 0 3px rgba(34, 163, 82, 0.2);
}

.startseite .oeffnung[data-status="pause"] {
  background: #fdf3dc;
  color: #7a5a12;
}

.startseite .oeffnung[data-status="pause"]::before {
  background: #e0a526;
}

/* ---------- 3. Sprechzeiten-Fenster (klappt beim Drüberfahren auf) ---------- */
.startseite .outside .details {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 22rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(40, 20, 70, 0.25);
  color: #ffffff;
  font-weight: 400;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.5s var(--sanft),
    transform 0.6s var(--sanft),
    visibility 0s linear 0.6s;
}

.startseite .outside .wrap-inside:hover .details,
.startseite .outside .wrap-inside:focus-within .details {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.5s var(--sanft) 0.05s,
    transform 0.6s var(--sanft) 0.05s,
    visibility 0s;
}

.startseite .details__titel {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.startseite .zeiten {
  margin: 0;
}

.startseite .zeiten__zeile {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  margin: 0 -0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.startseite .zeiten__zeile + .zeiten__zeile {
  margin-top: 0.15rem;
}

.startseite .zeiten__zeile dt {
  font-weight: 600;
}

.startseite .zeiten__zeile dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* heutiger Tag */
.startseite .zeiten__zeile.ist-heute {
  background: rgba(255, 255, 255, 0.16);
}

.startseite .zeiten__zeile.ist-heute dt::after {
  content: "heute";
  display: block;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: #3b2a55;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
}

.startseite .details__info {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
  text-align: left;
}

.startseite .details__info li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.startseite .details__info li + li {
  margin-top: 0.5rem;
}

.startseite .details__info i {
  flex: none;
  width: 1rem;
  margin-top: 0.2rem;
  text-align: center;
  opacity: 0.85;
}

.startseite .details__titel i {
  margin-right: 0.35rem;
  opacity: 0.85;
}

.startseite .details__btn i {
  margin-right: 0.45rem;
  font-size: 0.85em;
}

.startseite .details__titel,
.startseite .zeiten__zeile dt,
.startseite .zeiten__zeile dd {
  color: #ffffff;
}

/* Buttons: gleiches Aussehen am Computer und auf dem Handy */
.startseite .details__aktionen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.startseite .details__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.startseite .details__btn--tel {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.startseite .details__btn--tel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.startseite .details__btn--kontakt {
  background: #ffffff;
  color: #3b2a55;
}

.startseite .details__btn--kontakt:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ---------- 4. Willkommensbox ---------- */
.startseite .infobox {
  z-index: 5;
  display: block;
  width: auto;
  max-width: 42rem;
  margin: 0;
  padding: 1.75rem 11.5rem 1.75rem 2rem;
  overflow: visible;
  bottom: 4rem;
  right: 6rem;
  border-radius: 24px;
  background-color: var(--glas);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--schatten);
  transition: opacity 0.6s var(--sanft);
}

/* tritt zurück, solange ein Sprechzeiten-Fenster offen ist */
.startseite .outside:hover ~ .infobox,
.startseite .outside:focus-within ~ .infobox {
  opacity: 0;
  pointer-events: none;
}

.startseite .info-content__header {
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* goldener Strich, wie die Krone im Logo */
.startseite .info-content__header::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  background: var(--gold);
}

.startseite .info-content__paragraph {
  margin: 0.85rem 0 0;
  padding: 0;
  color: #3f3a4d;
  font-size: 1.1rem;
  line-height: 1.55;
}

.startseite .info-content__hallo {
  font-weight: 600;
  color: var(--lila);
}

/* Maskottchen, gespiegelt */
.startseite .infobox-img__pic {
  position: absolute;
  right: 1.75rem;
  bottom: 0.75rem;
  width: auto;
  height: 13.5rem;
  transform: scaleX(-1);
  filter: drop-shadow(0 4px 10px rgba(40, 20, 70, 0.15));
}

/* ---------- 5. Seitenrahmen: ein Bildschirm, Fußleiste fest unten ---------- */
.startseite .wrapper {
  height: 100vh;
  height: 100dvh;
}

.startseite footer .footer-fix {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- 6. Niedrige Bildschirme (z. B. Laptop 1280×720) ---------- */
@media (min-width: 761px) and (max-height: 800px) {
  .startseite .outside {
    margin-top: 1.5rem;
  }

  .startseite .outside .card1 {
    min-height: 9rem;
  }

  .startseite .infobox {
    bottom: 2.75rem;
    max-width: 38rem;
    padding: 1.25rem 9.5rem 1.25rem 1.75rem;
  }

  .startseite .info-content__header {
    font-size: 1.15rem;
  }

  .startseite .info-content__header::before {
    margin-bottom: 0.6rem;
  }

  .startseite .info-content__paragraph {
    margin-top: 0.5rem;
    font-size: 0.98rem;
  }

  .startseite .infobox-img__pic {
    height: 10rem;
  }
}

/* ---------- 7. Handy (bis 760 px) ---------- */
@media (max-width: 760px) {
  .startseite .wrapper {
    height: auto;
    min-height: 100dvh;
    padding-bottom: 3.5rem;
    overflow: visible;
  }

  .startseite .logo {
    margin-top: 0.75rem;
  }

  /* Karten untereinander, volle Breite */
  .startseite .outside {
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 1rem 0;
  }

  .startseite .outside .wrap-inside,
  .startseite .outside .wrap-inside:hover,
  .startseite .outside .wrap-inside:focus-within {
    flex: none;
    width: auto;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    transform: none;
  }

  .startseite .outside .card1 {
    min-height: 0;
    padding: 1.4rem 1rem 1rem;
  }

  .startseite .outside .heder-card {
    margin: 0;
    font-size: 1.35rem;
  }

  .startseite .outside .pargraph-card {
    padding: 0.35rem 0 0;
    font-size: 0.95rem;
  }

  .startseite .oeffnung {
    margin-top: 0.6rem;
    font-size: 0.78rem;
  }

  /* Farbleiste mit denselben Buttons, immer sichtbar (kein Hover auf Touch) */
  .startseite .outside .details,
  .startseite .outside .wrap-inside:hover .details,
  .startseite .outside .wrap-inside:focus-within .details {
    position: static;
    min-height: 0;
    padding: 0.9rem 1rem 1rem;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .startseite .details__titel,
  .startseite .zeiten,
  .startseite .details__info {
    display: none;
  }

  .startseite .details__aktionen {
    padding-top: 0;
  }

  /* Willkommensbox normal im Fluss, nie ausblenden */
  .startseite .infobox,
  .startseite .outside:hover ~ .infobox,
  .startseite .outside:focus-within ~ .infobox {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 1.5rem 1rem 1rem;
    padding: 1.25rem;
    opacity: 1;
    pointer-events: auto;
  }

  .startseite .info-content__header {
    padding-right: 5rem;
    font-size: 1.1rem;
  }

  .startseite .info-content__paragraph {
    font-size: 0.95rem;
  }

  /* Maskottchen ganz in der Box, oben rechts */
  .startseite .infobox-img__pic {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    height: 5.5rem;
    filter: none;
  }
}

/* ---------- 8. Weniger Bewegung, wenn im System gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
  .startseite .outside .wrap-inside,
  .startseite .outside .details,
  .startseite .outside .wrap-inside:hover .details,
  .startseite .infobox,
  .startseite .details__btn {
    transition: none;
  }

  .startseite .outside .wrap-inside:hover,
  .startseite .outside .wrap-inside:focus-within {
    transform: none;
  }
}

/* ---------- 9. Fußleiste: größer und barrierefrei (WCAG 2.2) ---------- */
.startseite .footer-fix__wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0 1rem;
}

.startseite .footer-fix__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;            /* Klickfläche für Finger */
  margin: 0;
  padding: 0 1rem;
  border-right: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.startseite .footer-fix__item:hover,
.startseite .footer-fix__item:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* dezente Trenner zwischen den Links */
.startseite .footer-fix__list + .footer-fix__list::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1rem;
  margin-right: 0.25rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.5);
}

.startseite .wrapper {
  padding-bottom: 44px;
}

@media (max-width: 760px) {
  .startseite .footer-fix__wrap {
    justify-content: center;
  }

  .startseite .wrapper {
    padding-bottom: 3.75rem;
  }
}

@media (max-width: 760px) {
  /* Fußleiste: eine Zeile, alle Links gleich hoch */
  .startseite .footer-fix__wrap {
    flex-wrap: nowrap;
    padding: 0 0.25rem;
  }

  .startseite .footer-fix__list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .startseite .footer-fix__item {
    padding: 0 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Buttons in der Farbleiste nebeneinander */
  .startseite .details__aktionen {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .startseite .details__btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
  }
}
