/* =========================================
   STANDORT – Leistungen Grid & Cards
   (nur für Standortseiten gedacht)
========================================= */

.services-grid--standort {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (min-width: 1200px) {
  .services-grid--standort {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.services-grid--standort .service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.8);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-grid--standort .service-card:hover {
  transform: translateY(-3px);
}

.services-grid--standort .service-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: rgba(195, 228, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-grid--standort .service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-grid--standort .service-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--cyan-navy);
}

/* =========================================
   STANDORT – Google Map
========================================= */

.map-embed {
  max-width: 1200px;
  margin: 2rem auto;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* =========================================
   STANDORT – Team Grid Logik
========================================= */

.team-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.team-card {
  width: 220px;
  max-width: 220px;
  margin: 0;
}

/* 1 Karte */
.team-grid.team-grid--1-center {
  grid-template-columns: 220px;
  justify-content: center;
  justify-items: center;
}

/* 2 Karten */
.team-grid.team-grid--2-center {
  grid-template-columns: repeat(2, 220px);
  justify-content: center;
  justify-items: center;
}

/* genau 3 Karten */
.team-grid.team-grid--3-only-center {
  grid-template-columns: repeat(3, 220px);
  justify-content: center;
  justify-items: center;
}

/* genau 4 Karten */
.team-grid.team-grid--4-center {
  grid-template-columns: repeat(4, 220px);
  justify-content: center;
  justify-items: center;
}

/* 5, 6, 9 Karten: 3er Raster mittig */
.team-grid.team-grid--3-center {
  grid-template-columns: repeat(3, 220px);
  justify-content: center;
  justify-items: center;
}

/* ab 7 außer 9: 4er Raster links */
.team-grid.team-grid--4-left {
  grid-template-columns: repeat(4, 220px);
  justify-content: center;
  justify-items: center;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1024px) {
  .team-grid.team-grid--1-center,
  .team-grid.team-grid--2-center,
  .team-grid.team-grid--3-only-center,
  .team-grid.team-grid--4-center,
  .team-grid.team-grid--3-center,
  .team-grid.team-grid--4-left {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    justify-content: stretch;
    justify-items: stretch;
  }

  .team-card {
    width: 100%;
    max-width: none;
  }
}

/* =========================================
   Mobile
========================================= */

/* =========================================
   Mobile
========================================= */

@media (max-width: 640px) {

  .team-grid.team-grid--1-center,
  .team-grid.team-grid--2-center,
  .team-grid.team-grid--3-only-center,
  .team-grid.team-grid--4-center,
  .team-grid.team-grid--3-center,
  .team-grid.team-grid--4-left {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-content: center;
  }

  .team-card {
    width: 100%;
    max-width: none;
    padding: 12px;
  }

  /* Avatar kleiner */
  .team-avatar {
    width: 70px;
    height: 70px;
  }

  .team-avatar img {
    width: 70px;
    height: 70px;
    object-fit: cover;
  }

  /* Name kleiner */
  .team-card h3 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  /* Funktion kleiner */
  .team-card p {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .services-grid--standort {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .services-grid--standort .service-card {
    padding: 1.2rem 0.8rem;
  }

  .services-grid--standort .service-icon {
    width: 55px;
    height: 55px;
  }

  .services-grid--standort .service-card h3 {
    font-size: 0.9rem;
  }

  .map-embed iframe {
    height: 320px;
  }
}

/* =========================================
   EVAG Kompakte Abfahrtstafel
========================================= */

.pyc-evag-widget {
    background: #0b2b33;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    font-family: "Source Sans 3", system-ui, sans-serif;
}

/* HEADER */

.pyc-evag-widget::before {
    content: "LIVE ABFAHRTEN";
    display: block;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 1px;
    font-size: 16px;
    margin-bottom: 8px;
    color: #FFC75F;
}

/* LIST */

.pyc-evag-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ROW */

.pyc-evag-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LINE */

.pyc-evag-line {
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-align: center;
}

/* DESTINATION */

.pyc-evag-target {
    font-size: 14px;
    font-weight: 600;
}

.pyc-evag-meta {
    font-size: 10px;
    opacity: 0.6;
}

/* TIME */

.pyc-evag-timebox {
    text-align: right;
}

.pyc-evag-time {
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    color: #C3E4E9;
}

.pyc-evag-time--now {
    color: #FFC75F;
    animation: pycBlink 1s infinite;
}

@keyframes pycBlink {
    0% {opacity:1;}
    50% {opacity:.4;}
    100% {opacity:1;}
}

/* Linienfarben */

.line-1 { color:#FF6B6B; }
.line-2 { color:#00C853; }
.line-3 { color:#FFC400; }
.line-4 { color:#29B6F6; }
.line-5 { color:#FF4081; }
.line-6 { color:#8E24AA; }

/* Hinweis */

.pyc-evag-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    font-size: 11px;
}

/* Loading */

.pyc-evag-loading {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    opacity: 0.7;
}

/* =========================================
EVAG Widget Breite begrenzen
========================================= */

.pyc-evag-widget {

    max-width: 420px;   /* maximale Breite */
    width: 100%;
    margin: 0 auto;     /* zentriert */

}