.anfahrt-zeiten {
  display: flex;
  justify-content: center;
  padding: clamp(40px, 8vh, 80px) 20px;
}

.zeiten-glassbox {
  padding: clamp(24px, 4vh, 40px);

  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px) saturate(130%);
  -webkit-backdrop-filter: blur(5px) saturate(130%);

  border-radius: 22px;
  border: 2px solid rgba(209, 182, 98, .85);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);

  text-align: center;
}

.zeiten-glassbox h2 {
  margin-bottom: 24px;
}

.zeiten-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zeiten-liste li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(209, 182, 98, .4);
  color: rgba(255,255,255,1);
  text-shadow: 0 0 10px rgba(100, 73, 0, 0.3), 0 0 5px rgba(54, 40, 0, 0.2), 0 0 5px rgba(54, 40, 0, 0.2) !important;
}

.zeiten-meta p {
   color: rgba(255,255,255,1);
  text-shadow: 0 0 10px rgba(100, 73, 0, 0.3), 0 0 5px rgba(54, 40, 0, 0.2), 0 0 5px rgba(54, 40, 0, 0.2) !important;
 
}

.zeiten-liste li:last-child {
  border-bottom: none;
}

.zeiten-hinweis {
  margin-top: 20px;
  font-size: 0.95rem;
  opacity: 0.85;
  text-shadow: 0 0 6px rgb(161, 127, 22), 0 0 12px rgb(209, 181, 98);
}

#main {
  padding-bottom: 100px;
}

@media (min-width: 1251px) {
  .anfahrt-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 3vw, 80px);
    align-items: center;
    width: 100%;
    margin: 0 auto;
    margin-left: 250px;
    padding: 80px 0;
    max-width: calc(100vw - var(--header-w));
    box-sizing: border-box;
  }

  .anfahrt-zeiten {
    padding: 0;
  }

  .anfahrt-map {
    padding: 0;
  }
}

.map-container {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px) saturate(130%);
  -webkit-backdrop-filter: blur(5px) saturate(130%);
  border: 2px solid rgba(209, 182, 98, .85);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 40vh, 480px);
  border: none;
}

.route-button,
.route-button--apple {
  position: absolute;
  bottom: 16px;
  right: 16px;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(209, 182, 98, 1);
  color: #111;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}



@media (min-width: 1251px) {
  .anfahrt-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 3vw, 80px);
    align-items: center;

    width: min(1200px, calc(100vw - var(--header-w)));
    margin-left: calc(
      var(--header-w) +
      (100vw - var(--header-w) - min(1200px, 100vw - var(--header-w))) / 2
    );

    padding: 80px 50px;
    box-sizing: border-box;
  }
}

@media (min-width: 1251px) {
  .anfahrt-wrapper {
    min-height: calc(100vh - 120px);
    display: grid;
    align-content: center;
  }
}

.zeiten-glassbox {
  padding: clamp(16px, 3vh, 28px);
}
.zeiten-liste li {
  padding: clamp(6px, 1.2vh, 10px) 0;
}
.zeiten-glassbox h2, 
.anfahrt-map-title {
  margin-bottom: clamp(12px, 2vh, 20px);
  font-family: 'Pacifico';
  font-size: 1.8rem;
  color: rgba(255,255,255,1);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.99), 0 0 10px rgba(209, 182, 98, 0.99), 0 0 15px rgba(209, 182, 98, 0.88), 0 0 20px rgba(209, 182, 98, 0.77) !important;
  
}

.zeiten-hinweis {
  margin-top: clamp(10px, 2vh, 16px);
  font-size: clamp(0.85rem, 1.6vh, 0.95rem);
  color: rgba(255,255,255,1);
}

@media (min-width: 1251px) and (max-height: 700px) {
  .anfahrt-wrapper {
    transform: translateY(-40px);
  }
}

@media (min-width: 1251px) and (max-height: 650px) {
  .anfahrt-wrapper {
    transform: translateY(-90px);
  }
}

@media (min-width: 1251px) and (max-height: 600px) {
  .anfahrt-wrapper {
    transform: translateY(-110px);
  }
}


@media (min-width: 1251px) {
  .anfahrt-wrapper {
    align-items: end;
  }
}

.anfahrt-map-title {
  margin-bottom: 0;
  text-align: left;
}

@media (max-width: 1250px) {
  .anfahrt-wrapper {
    padding-top: 120px;
  }

  .anfahrt-map-title,
  #main > div > section.anfahrt-map > p { 
  margin-bottom: 0;
  text-align: center;
}

#main > div > section.anfahrt-map > p {
    margin-bottom: 15px;
}


  .map-container {
    max-width: min(92vw, 420px);
    margin-left: auto;
    margin-right: auto;
  }

.anfahrt-zeiten {
    padding-bottom: 3vh;
}

  #main > div > section.anfahrt-map {
    padding: 0 8vw;
    margin-bottom: 10vh;
  }
}

.zeiten-glassbox {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

@media (hover: hover) {
  .zeiten-glassbox:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.35);
    background: rgba(255, 255, 255, 0.22);
  }
}

.map-container {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover: hover) {
  .map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.3);
  }
}

.zeiten-meta {
  margin-top: clamp(14px, 2.5vh, 22px);
  font-size: 0.95rem;
  opacity: 0.9;
}

.zeiten-meta p {
  margin: 8px 0;
}

.route-button--apple {
  right: auto;
  left: 16px;

}

#main > div > section.anfahrt-map > p {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 10px rgba(100, 73, 0, 0.3), 0 0 5px rgba(54, 40, 0, 0.2), 0 0 5px rgba(54, 40, 0, 0.2) !important;

}

@media (max-width: 440px) {
.route-button, .route-button--apple {
  scale: 0.8; 
}
}

@media (max-width: 440px) {
  .route-button {
    right: 1px;
    left: auto;
  }

  .route-button--apple {
    left: 1px;
    right: auto;
  }
}

@media (max-width: 330px) {

  .route-button, .route-button--apple {
    scale: 0.75;
}
  .route-button {
    right: -15px;
    left: auto;
  }

  .route-button--apple {
    left: -15px;
    right: auto;
  }
}


/* Referenziert: dein aktuelles anfahrt HTML/CSS/JS */
/* Regeln: keine Experimente • nur exakt auf Anweisung • keine ungefragten Fixes/Änderungen */

[hidden] { display: none !important; }

#extMapsGate {
  margin: 0 auto;
  display: flex;
  padding: clamp(14px, 2.2vw, 22px);
  border-radius: 18px;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: rgba(10, 10, 12, 0.40);
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
  border: 1px solid rgba(209, 182, 98, 0.85);
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#extMapsGate p {
  margin: 0 0 12px;
  line-height: 1.5;
  color:rgba(255, 255, 255, 1)
}


#extMapsGate button {
  appearance: none;
  border: 1px solid rgba(209, 182, 98, 0.85);
  background: rgba(209, 182, 98, 0.9);
  color:rgba(255, 255, 255, 1);
  padding: 10px 14px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

#extMapsGate label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color:rgba(255, 255, 255, 1);
}

#extMapsGate input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: rgba(209, 182, 98, 0.85);
}

#extMapsGate a {
  color: rgba(209, 182, 98, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}


