/* =========================================================
   Anreise-Modul
   Nutzt mobil die globale fs-carousel-Komponente.
   Lokal bleiben nur Anreise-spezifische Layout- und Kartenstyles.
   Prefix lokal: anf-
   ========================================================= */

.anf-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}


/* ---- TOP ROW: MAP + ADDRESS ---- */
.anf-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.anf-addr {
  width: fit-content;
  max-width: 520px;
  justify-self: start;
  align-self: start;
}

@media (max-width: 880px) {
  .anf-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.anf-map {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 40px -18px rgba(40, 32, 26, 0.25);
  display: flex;
  flex-direction: column;
}
.anf-map-frame {
  position: relative;
  flex: 1;
  min-height: 300px;
  background: var(--cream2);
}
.anf-map-frame iframe,
.anf-map-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.anf-map-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--bdr);
  flex-wrap: wrap;
}
.anf-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.anf-stars {
  color: #d8a23a;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.anf-rating b {
  color: var(--dark);
  font-weight: 500;
}
.anf-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--red);
  transition: gap 0.15s;
}
.anf-map-link:hover {
  gap: 10px;
}
.anf-map-link svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anf-addr {
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 4px;
  box-shadow: 0 10px 40px -18px rgba(40, 32, 26, 0.18);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.anf-addr-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.anf-addr-lbl::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--red);
  opacity: 0.6;
}



.anf-addr-lines {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}
.anf-route {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 1.4rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--red);
  border-radius: 30px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  transition:
    background 0.18s,
    color 0.18s;
}
.anf-route:hover {
  background: var(--red);
  color: #fff;
}
.anf-route svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anf-addr-contact {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bdr);
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}
.anf-addr-contact strong {
  color: var(--dark);
  font-weight: 500;
}
.anf-addr-contact a {
  color: var(--red);
}

/* ---- ANREISE: FULL-WIDTH TABS ---- */

.anf-anreise {
  border: 1px solid var(--bdr);
  border-radius: 4px;
  box-shadow: 0 10px 40px -18px rgba(40, 32, 26, 0.18);
  overflow: hidden;
}
.anf-anreise-head {
  padding: 1.7rem 1.9rem 1.3rem;
  text-align: center;
  border-bottom: 1px solid var(--bdr);
}
.anf-anreise-head span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.anf-anreise-head h4 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--dark);
  margin-top: 0.3rem;
}
.anf-anreise-head h4 em {
  font-style: italic;
  color: var(--acc);
}

.anf-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (min-width: 561px) and (max-width: 760px) {
  .anf-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.anf-tab {
  background: #fff;
  border: none;
  border-right: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  cursor: pointer;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  text-align: center;
  transition: background 0.18s;
  position: relative;
}
.anf-tab:last-child {
  border-right: none;
}
@media (min-width: 561px) and (max-width: 760px) {
  .anf-tab:nth-child(2n) {
    border-right: none;
  }
}
.anf-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  background: var(--main-blue-color);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.anf-tab:hover {
  background: var(--cream);
}

.anf-tab.active {
  background: var(--main-blue-color);
}
.anf-tab.active::after {
  transform: scaleX(1);
}


.anf-tab.active .anf-tab-lbl {
  color:white !important;
}

.anf-tab-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.anf-tab.active .anf-tab-ic {
	background: white;
}
.anf-tab-ic svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.anf-tab.active .anf-tab-ic svg {
  stroke: #fff;
}


.anf-panel-wrap {
  background: var(--cream);
}
.anf-panel {
  display: none;
  padding: 2rem 2.2rem 2.2rem;
  animation: anfIn 0.25s ease;
}
.anf-panel.active {
  display: block;
}
@keyframes anfIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anf-panel h5 {
  margin-bottom: 0.9rem;
}

.anf-panel p {
  line-height: 1.8;
  max-width: 100%;
}
.anf-panel p + p {
  margin-top: 0.8rem;
}
.anf-panel strong {
  color: var(--dark);
  font-weight: 500;
}
.anf-panel em {
  font-style: italic;
  color: var(--acc);
}

/* ---- Mobile: Tab + Panel zusammen als globale fs-carousel-Karten ---- */
.anf-mobile-cards {
  display: none;
}

@media (max-width: 768px) {
  .anf-tabs,
  .anf-panel-wrap {
    display: none;
  }
  
  .anf-addr {
		width: 100% !important;
  	border: 1px solid #b0b0b0;
  }

  .anf-mobile-cards.fs-carousel {
    display: block;
    margin-top: 0;
  }

  .anf-mobile-cards .fs-carousel-track {
    padding: 12px 0 16px;
    margin: 0;
  }

  .anf-mobile-cards .fs-carousel-foot {
    margin-top: 0.7rem;
    padding-bottom: 1rem;
  }

  .fs-carousel-card--arrival {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 28px -18px rgba(40, 32, 26, 0.32) !important;
  }

  .fs-carousel-card--arrival:hover {
    box-shadow: 0 10px 28px -18px rgba(40, 32, 26, 0.32) !important;
  }

  .fs-carousel-card--arrival .anf-mobile-card-head {
    background: var(--main-blue-color);
    border-bottom: 1px solid var(--main-blue-color);
    padding: 1.15rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
  }

  .fs-carousel-card--arrival .anf-tab-lbl {
    color: #fff !important;
  }

  .fs-carousel-card--arrival .anf-tab-ic {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: #fff;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body {
    padding: 1.35rem 1.25rem 1.45rem;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body h5 {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 400;
    color: black;
    margin-bottom: 0.8rem;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body p,
  .fs-carousel-card--arrival .anf-mobile-card-body li {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body p + p,
  .fs-carousel-card--arrival .anf-mobile-card-body ul,
  .fs-carousel-card--arrival .anf-mobile-card-body ol {
    margin-top: 0.8rem;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body ul,
  .fs-carousel-card--arrival .anf-mobile-card-body ol {
    padding-left: 1.1rem;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body strong {
    color: var(--dark);
    font-weight: 500;
  }

  .fs-carousel-card--arrival .anf-mobile-card-body em {
    font-style: italic;
    color: var(--acc);
  }

  .fs-carousel-card--arrival .anf-mobile-card-body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}
