body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #351e51;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Desktop (Maus-Gerät): Mindestbreite verhindert, dass Zoom das Layout umbaut.
   Stattdessen erscheint eine Scrollbar. Auf Touch-Geräten (Handy/Tablet)
   greift diese Regel nicht, dort funktionieren die Media Queries normal. */
@media (hover: hover) and (pointer: fine) {
  body {
    min-width: 920px;
    overflow-x: auto;
  }
}

/* ============================================================================
   GLOBALE ÜBERSCHRIFTEN-STYLES
   
   ERKLÄRUNG FÜR KIM:
   Diese Regel gilt für JEDES <h1> auf der GESAMTEN Website – egal auf
   welcher Seite. Das sorgt dafür, dass Hauptüberschriften immer gleich
   aussehen (gelb, groß, Großbuchstaben), ohne dass man das für jede
   einzelne Seite neu definieren muss.
   ============================================================================ */

h1 {
  color: #edc91c;
  font-size: 28px;
  text-transform: uppercase;
}

h2 {
  color: #edc91c;
  font-size: 20px;
  text-transform: uppercase;
}

p {
  line-height: 1.5em;
}

/* Navigation */
nav {
  display: flex;
  gap: 20px;
  padding: 15px 30px;
  font-weight: bold;
  font-size: 20px;
  background-color: #edc91c;
}

nav a {
  color: #351e51;
  text-decoration: none;
}

nav a:hover {
  text-decoration: unset;
  color: white;
}

.abbinder {
  margin-top: auto;
  padding-right: 60px;
  padding-top: 15px;
  padding-bottom: 15px;
  justify-content: right;
}

/* Main Layout */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 40px;
  flex: 1;
}

/* ---------- Landing Section ---------- */
.landing-section {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.landing-section.slide-out {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.cta-button {
  background-color: #edc91c;
  color: #351e51;
  border: none;
  border-radius: 12px;
  padding: 20px 28px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(237, 201, 28, 0.4);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background-color: #d4b518;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(237, 201, 28, 0.6);
}

/* ---------- Search Section (Back-Button + Formular) ---------- */
.search-section {
  display: none;
  flex-direction: row;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  justify-content: center;
  position: relative;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

@keyframes sectionEinblenden {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.search-section.visible {
  animation: sectionEinblenden 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.search-section.slide-out {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

.back-button {
  align-self: center;
  flex-shrink: 0;
  background-color: #edc91c;
  color: #351e51;
  border: none;
  border-radius: 12px;
  padding: 20px 28px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(237, 201, 28, 0.4);
  letter-spacing: 0.5px;
}

.back-button:hover {
  background-color: #d4b518;
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(237, 201, 28, 0.6);
}

.flip-card,
.form-box {
  flex: 1 1 400px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}

/* ---------- Flip Card ---------- */
.flip-card {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  border: solid #edc91c;
  border-radius: 10px;
}

.flip-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:active .flip-inner,
.flip-card.clicked .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #394730;
}

.back-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.back-content h3 {
  margin: 0 0 10px;
  font-weight: bold;
  font-size: 22px;
}

.back-content p {
  font-size: 16px;
  line-height: 1.5em;
  text-align: justify;
  margin-bottom: 30px;
}

.icon:hover {
  background-color: #edc91c;
}

.icon img {
  width: 50px;
  height: 50px;
  padding-left: 50%;
}

/* ---------- Formular Box ---------- */
.form-box {
  background-color: #394730;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: solid #edc91c;
  gap: 12px;
}

.form-box > * {
  width: 100%;
}

.form-box h2 {
  font-size: 22px;
  margin: 0;
  text-transform: uppercase;
}

.form-box p {
  font-size: 18px;
  margin-bottom: 20px;
}

#mitfahrer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mitfahrer-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #4f6040;
  padding: 8px 10px;
  border-radius: 6px;
  width: 100%;
  gap: 8px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.mitfahrer-wrapper .name-input {
  flex: 0 0 80px;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

.mitfahrer-wrapper .ort-wrapper {
  flex: 1 1 0;
  min-width: 80px;
}

.mitfahrer-wrapper .ort-wrapper .ort-input {
  width: 100%;
  flex: none;
}

.mitfahrer-wrapper .dauer-input {
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
}

.zeit-auswahl-gruppe {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mitfahrer-wrapper .minus {
  flex: 0 0 28px;
}

.slider-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.slider-label {
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.slider-label.left {
  color: #edc91c;
}

.slider-label.right {
  color: #fff;
  opacity: 0.6;
}

.slider-toggle[data-mode="ankunft"] .slider-label.left {
  color: #fff;
  opacity: 0.6;
}

.slider-toggle[data-mode="ankunft"] .slider-label.right {
  color: #edc91c;
  opacity: 1;
}

.slider-track {
  width: 32px;
  height: 18px;
  background-color: #351e51;
  border-radius: 9px;
  position: relative;
  transition: background-color 0.3s ease;
  border: 2px solid #edc91c;
  flex-shrink: 0;
}

.slider-thumb {
  width: 12px;
  height: 12px;
  background-color: #edc91c;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slider-toggle[data-mode="ankunft"] .slider-thumb {
  left: calc(100% - 15px);
}

.zeit-auswahl-gruppe .zeit-input {
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  color: #351e51;
  font-weight: bold;
  background-color: white;
  width: 155px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mitfahrer-wrapper input[type="text"],
.mitfahrer-wrapper input[type="search"],
.mitfahrer-wrapper input[type="number"],
.mitfahrer-wrapper select {
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #351e51;
  font-weight: bold;
  box-sizing: border-box;
}

.mitfahrer-wrapper .name-input {
  flex: 0 0 100px !important;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
}

.mitfahrer-wrapper .ort-wrapper .ort-input {
  width: 100% !important;
}

.mitfahrer-wrapper .dauer-input {
  flex: 0 0 55px !important;
  width: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
  text-align: center;
}

.plus-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.plus {
  background-color: #edc91c; /* GEÄNDERT: War #ddb95f (Gelbbraun) → #edc91c (offizielles Markengelb) */
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.plus:hover {
  background-color: #d4b518; /* GEÄNDERT: War #caa846 (Gelbbraun) → #d4b518 (dunkles Markengelb für Hover) */
}

.minus {
  background-color: #394730; /* GEÄNDERT: War #8bbfab (Mintgrün - fremde Farbe) → #394730 (Dunkelgrün - passt ins Schema) */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.minus:hover {
  background-color: #d4b518; /* GEÄNDERT: War #caa846 (Gelbbraun) → #d4b518 (dunkles Markengelb für Hover) */
}

.autocomplete-wrapper {
  position: relative;
  flex: 1;
  min-width: 100px;
  max-width: 100%;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250%;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 2000;
  color: #351e51;
  margin-top: 2px;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: #f0f0f0;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form-box button {
  /* GEÄNDERT: War #caa846 (Gelbbraun) → #edc91c (offizielles Markengelb)
     Textfarbe: war white → jetzt #351e51 (Lila), damit lesbar auf Gelb */
  background-color: #edc91c;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  font-weight: bold;
  color: #351e51;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-box button:hover {
  /* GEÄNDERT: War #8bbfab (Mintgrün) → #d4b518 (leicht dunkleres Gelb für Hover-Feedback) */
  background-color: #d4b518;
}

/* ========== Verbesserte Lade-Animation ========== */
.lade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(53, 30, 81, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.lade-overlay.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lade-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
}

.lade-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border: 5px solid rgba(237, 201, 28, 0.2);
  border-top-color: #edc91c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lade-text {
  font-size: 24px;
  font-weight: bold;
  color: #edc91c;
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.lade-fortschritt {
  width: 100%;
}

.fortschritt-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.fortschritt-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ecc71, #edc91c);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.fortschritt-text {
  font-size: 14px;
  color: #ccc;
}

.ergebnis-hinweis {
  text-align: center;
  color: #edc91c;
  font-size: 14px;
  background: rgba(53, 30, 81, 0.4);
  padding: 8px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* ========== MOBILE OPTIMIERUNGEN ========== */

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .landing-section {
    flex-direction: column;
  }
  .cta-button {
    width: 100%;
    text-align: center;
    transform: none !important;
  }
  .search-section {
    flex-direction: column;
  }
  .back-button {
    width: 100%;
    text-align: center;
    transform: none !important;
  }
  .flip-card,
  .form-box {
    max-width: 100%;
  }
  .mitfahrer-wrapper {
    flex-wrap: wrap;
    position: relative;
    padding-right: 45px;
  }
  .mitfahrer-wrapper .ort-wrapper {
    flex: 1 1 calc(100% - 130px);
    min-width: 100px;
  }
  .zeit-auswahl-gruppe {
    flex: 1 1 100%;
    margin-top: 8px;
  }
  .zeit-auswahl-gruppe .zeit-input {
    flex: 1;
    width: auto;
  }
  .mitfahrer-wrapper .minus {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .ergebnis-content {
    flex-direction: column;
  }
  .ergebnis-box {
    width: calc(100% - 40px);
    padding: 20px;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  #deutschland-karte {
    height: 400px;
    flex: none;
  }
  .ranking-container {
    overflow-y: visible;
  }
}

@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .mitfahrer-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 8px;
    overflow: visible;
    position: relative;
    flex-wrap: nowrap;
    padding-right: 12px;
  }
  .mitfahrer-wrapper .name-input {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    box-sizing: border-box;
    order: 1;
  }
  .mitfahrer-wrapper .ort-wrapper {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    order: 2;
  }
  .mitfahrer-wrapper .ort-wrapper .ort-input {
    width: 100% !important;
    height: 40px !important;
    box-sizing: border-box;
  }
  .mitfahrer-wrapper .dauer-input {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 40px !important;
    box-sizing: border-box;
    text-align: left;
    order: 3;
  }
  .zeit-auswahl-gruppe {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    align-items: center;
    order: 4;
  }
  .slider-toggle {
    justify-content: center;
    flex-shrink: 0;
  }
  .zeit-auswahl-gruppe .zeit-input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    box-sizing: border-box;
  }
  .mitfahrer-wrapper .minus {
    position: static;
    align-self: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    order: 5;
    margin-top: 4px;
  }
  .plus, .minus {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .form-box button {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
  .ergebnis-box {
    width: 100%;
    padding: 10px;
    margin: 15px auto;
    border: none;
    border-top: 3px solid #edc91c;
    border-bottom: 3px solid #edc91c;
    border-radius: 0;
    box-sizing: border-box;
  }
  .ergebnis-box h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .ansicht-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #edc91c;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #351e51;
    color: #edc91c;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .tab-btn.active {
    background: #edc91c;
    color: #351e51;
  }
  .tab-btn:first-child {
    border-right: 1px solid #edc91c;
  }
  .ergebnis-content {
    flex-direction: column;
  }
  .karte-container {
    display: none !important;
  }
  .karte-container.active {
    display: block !important;
  }
  .ranking-container {
    display: none !important;
  }
  .ranking-container.active {
    display: flex !important;
    flex-direction: column;
  }
  .karte-container {
    padding: 0;
    border: none;
    background: transparent;
  }
  .karte-container h3 {
    display: none;
  }
  #deutschland-karte {
    height: calc(100vh - 220px);
    min-height: 400px;
    max-height: 700px;
    border-radius: 8px;
  }
  .navigation-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  .nav-button {
    width: auto;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
  .seiten-info {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px;
  }
  .ziel-karte {
    padding: 15px;
  }
  .ziel-header h3 {
    font-size: 18px;
  }
  .rang {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .wiki-content {
    flex-direction: column;
  }
  .wiki-image img {
    width: 100%;
    height: auto;
    max-height: 150px;
  }
  .karte-legende {
    padding: 5px 8px;
    font-size: 9px;
    min-width: auto;
    max-width: 140px;
    background: rgba(57, 71, 48, 0.9);
    border-width: 1px;
  }
  .legende-titel {
    font-size: 8px;
    margin-bottom: 3px;
  }
  .legende-medals {
    gap: 3px;
  }
  .legende-medals .medal {
    width: 14px;
    height: 14px;
    font-size: 6px;
  }
  .legende-gradient {
    height: 6px;
  }
  .legende-labels {
    font-size: 7px;
  }
  .legende-abschnitt {
    margin-top: 5px;
    padding-top: 5px;
  }
  .legende-sub-titel {
    font-size: 8px;
    margin-bottom: 2px;
  }
  .legende-item {
    gap: 3px;
    margin: 2px 0;
  }
  .legende-item-label {
    font-size: 8px;
    max-width: 80px;
  }
  .legende-linie-sample {
    width: 14px;
    height: 3px;
  }
  .legende-kreis-sample {
    width: 8px;
    height: 8px;
  }
  .leaflet-bottom.leaflet-right {
    right: auto;
    left: 10px;
    bottom: 10px;
  }
  .lade-content {
    padding: 20px;
  }
  .lade-spinner {
    width: 60px;
    height: 60px;
  }
  .lade-text {
    font-size: 18px;
  }
  .autocomplete-list {
    width: 100%;
    left: 0;
  }
  .autocomplete-item {
    padding: 12px;
    font-size: 14px;
  }
}

@media (min-width: 601px) {
  .ansicht-tabs {
    display: none !important;
  }
  .karte-container,
  .ranking-container {
    display: block !important;
  }
  .reisezeiten-kompakt {
    display: none;
  }
}

.reisezeiten-kompakt {
  display: none;
  font-size: 12px;
  color: #edc91c;
  background: rgba(0,0,0,0.2);
  padding: 8px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .reisezeiten-kompakt {
    display: block;
  }
}

@media (max-width: 400px) {
  .slider-label {
    font-size: 9px;
  }
  .slider-track {
    width: 28px;
    height: 16px;
  }
  .slider-thumb {
    width: 10px;
    height: 10px;
  }
  #deutschland-karte {
    height: calc(100vh - 240px);
    min-height: 300px;
  }
  .karte-legende {
    padding: 4px 6px;
    max-width: 120px;
  }
  .legende-titel {
    font-size: 7px;
    margin-bottom: 2px;
  }
  .legende-medals {
    display: none;
  }
  .legende-gradient {
    height: 5px;
    margin-bottom: 2px;
  }
  .legende-labels {
    font-size: 6px;
  }
  .legende-sub-titel {
    font-size: 7px;
  }
  .legende-item-label {
    font-size: 7px;
    max-width: 60px;
  }
  .legende-linie-sample {
    width: 12px;
    height: 2px;
  }
  .legende-kreis-sample {
    width: 7px;
    height: 7px;
  }
  .ziel-header h3 {
    font-size: 16px;
  }
  .ziel-karte p {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .mitfahrer-wrapper .name-input,
  .mitfahrer-wrapper .ort-wrapper,
  .mitfahrer-wrapper .dauer-input {
    flex: 1 1 100%;
    width: 100%;
  }
  .slider-label {
    font-size: 9px;
  }
}

/* ---------- Ergebnisse Anzeige ---------- */
/* ============================================================================
   ERKLÄRUNG: Viewport-angepasster Ergebnis-Container
   
   Der Container füllt jetzt den Bildschirm aus (height: calc(100vh - 40px)).
   Karte und Kachel teilen sich den Platz nebeneinander.
   Die Kachel-Spalte scrollt intern, die Karte füllt ihren Platz aus.
   ============================================================================ */

.ergebnis-box {
  background-color: #394730;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: solid #edc91c;
  margin: 20px auto;
  width: calc(100% - 80px);
  max-width: 2000px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ergebnis-box h2 {
  color: #edc91c;
  text-align: center;
  margin-bottom: 10px;
  font-size: 24px;
  flex-shrink: 0;
}

.ergebnis-content {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.karte-container {
  flex: 1.2;
  min-width: 300px;
  background-color: #4f6040;
  border-radius: 8px;
  padding: 10px;
  border: 2px solid #edc91c;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Desktop: Karte-Titel ausblenden um Platz zu sparen */
@media (min-width: 601px) {
  .karte-container h3 {
    display: none;
  }
}

.karte-container h3 {
  color: #edc91c;
  margin: 0 0 8px 0;
  font-size: 18px;
  flex-shrink: 0;
}

.karte-hinweis {
  display: none; /* Spart Platz – der Hinweis ist nicht essentiell */
}

@media (min-width: 601px) {
  .ranking-container {
    position: relative;
    align-self: stretch;
    overflow-y: auto;
  }
}


#deutschland-karte {
  width: 100%;
  flex: 1;               /* Füllt den gesamten Restplatz */
  min-height: 300px;     /* Leaflet braucht eine Mindesthöhe zum Initialisieren */
  border-radius: 8px;
  border: 2px solid #351e51;
}

/* Navigation-Buttons unter der Karte: so kompakt wie möglich */
.navigation-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

.seiten-info {
  flex-shrink: 0;
  text-align: center;
  margin-top: 5px;
  color: #edc91c;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  background-color: rgba(53, 30, 81, 0.3);
  border-radius: 6px;
}

.nav-button {
  border: 2px solid #edc91c;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 0 1 auto;
  min-width: 0;
}

.zurueck-button {
  background-color: #351e51;
  color: #edc91c;
}

.zurueck-button:hover {
  background-color: #edc91c;
  color: #351e51;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 201, 28, 0.4);
}

.naechste-button {
  background-color: #edc91c;
  color: #351e51;
}

.naechste-button:hover {
  background-color: #351e51;
  color: #edc91c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(53, 30, 81, 0.4);
}

.zeige-alle-button {
  background-color: #4f6040; /* GEÄNDERT: War #7e885c (trübes Olivgrün) → #4f6040 (klares, helleres Grün) */
  color: white;
  border-color: #edc91c;
}

.zeige-alle-button:hover {
  background-color: #edc91c;
  color: #351e51;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 201, 28, 0.4);
}

.ranking-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 20px;
  
  /* --------------------------------------------------------
     NEU: Scrollbar im WoHinGenau-Farbschema
     
     ERKLÄRUNG: Standardmäßig ist die Scrollbar grau und
     passt nicht zum Design. Mit diesen Regeln bekommt sie
     die App-Farben: lila Hintergrund, gelber "Daumen".
     
     scrollbar-width/color: Für Firefox
     ::-webkit-scrollbar: Für Chrome, Safari, Edge
     -------------------------------------------------------- */
  scrollbar-width: thin;
  scrollbar-color: #edc91c #351e51;
}

/* Scrollbar für Chrome, Safari, Edge */
.ranking-container::-webkit-scrollbar {
  width: 8px;
}
.ranking-container::-webkit-scrollbar-track {
  background: #351e51;
  border-radius: 4px;
}
.ranking-container::-webkit-scrollbar-thumb {
  background: #edc91c;
  border-radius: 4px;
}
.ranking-container::-webkit-scrollbar-thumb:hover {
  background: #f5dc4a;
}

.ranking-liste {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 5px;
}

/* "Alle Ziele anzeigen"-Button: genug Abstand damit er sichtbar bleibt */
.desktop-alle-btn {
  margin-top: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.ziel-karte {
  background-color: #4f6040;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #edc91c;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
}

.ziel-karte:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(237, 201, 28, 0.3);
}

.ziel-karte.map-hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 6px 20px rgba(237, 201, 28, 0.6);
  background-color: #8a9668;
  border-left-color: #fff;
}

.ziel-karte.moving-out {
  opacity: 0;
  transform: translateX(-20px) scale(0.95);
  transition: all 0.2s ease-out;
}

.ziel-karte.moving-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  0% { opacity: 0; transform: translateY(-30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ziel-karte.move-highlight {
  animation: highlightPulse 1s ease-out;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(237, 201, 28, 0.8); }
  30% { box-shadow: 0 0 20px 8px rgba(237, 201, 28, 0.6); }
  100% { box-shadow: 0 4px 12px rgba(237, 201, 28, 0.3); }
}

.reset-order-btn {
  background-color: rgba(53, 30, 81, 0.8);
  border: 2px dashed #edc91c;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  color: #edc91c;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 15px;
}

.reset-order-btn:hover {
  background-color: #edc91c;
  color: #351e51;
  border-style: solid;
}

.ziel-karte.top-3 {
  border-left-width: 6px;
}

.ziel-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.rang {
  background-color: #edc91c;
  color: #351e51;
  font-weight: bold;
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.rang.gold {
  background: linear-gradient(135deg, #edc91c, #f5dc4a);
  box-shadow: 0 2px 8px rgba(237, 201, 28, 0.5);
}

.rang.silber {
  background: linear-gradient(135deg, #351e51, #4a2d6e);
  color: #edc91c;
  box-shadow: 0 2px 8px rgba(53, 30, 81, 0.5);
}

.rang.bronze {
  background: linear-gradient(135deg, #394730, #4d6140);
  color: #edc91c;
  box-shadow: 0 2px 8px rgba(57, 71, 48, 0.5);
}

.ziel-karte h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.ziel-karte p {
  margin: 8px 0;
  color: #fff;
}

.ort-info {
  margin: 15px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(237, 201, 28, 0.3);
}

.ort-info-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: #edc91c;
  font-style: italic;
  justify-content: center;
}

.ort-info-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(237, 201, 28, 0.3);
  border-top-color: #edc91c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.ort-wiki-kurz {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(237, 201, 28, 0.2);
}

.ort-wiki-bild {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(237, 201, 28, 0.4);
}

.ort-wiki-text {
  flex: 1;
  min-width: 0;
}

.ort-wiki-text p {
  margin: 0 0 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.ort-wiki-link {
  color: #edc91c;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

.ort-wiki-link:hover {
  color: #fff;
  text-decoration: underline;
}

.poi-bereich { padding: 0; }
.poi-tabs { display: flex; gap: 0; overflow-x: auto; background: rgba(53, 30, 81, 0.4); scrollbar-width: none; }
.poi-tabs::-webkit-scrollbar { display: none; }
.poi-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; border: none; background: transparent; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; min-width: 0; border-bottom: 2px solid transparent; }
.poi-tab:hover { color: #edc91c; background: rgba(237, 201, 28, 0.1); }
.poi-tab.active { color: #edc91c; border-bottom-color: #edc91c; background: rgba(237, 201, 28, 0.08); }
.poi-tab-label { overflow: hidden; text-overflow: ellipsis; }
.poi-tab-count { background: rgba(237, 201, 28, 0.25); color: #edc91c; font-size: 10px; padding: 1px 5px; border-radius: 8px; min-width: 16px; text-align: center; }
.poi-tab-inhalt { display: none; padding: 10px 12px; }
.poi-tab-inhalt.active { display: block; }
.poi-liste { display: flex; flex-direction: column; gap: 6px; }
.poi-item { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; background: rgba(255, 255, 255, 0.06); border-radius: 5px; transition: background 0.2s; flex-wrap: wrap; position: relative; }
.poi-item:hover { background: rgba(237, 201, 28, 0.12); }
.poi-name { font-size: 13px; font-weight: bold; color: #fff; flex-shrink: 1; min-width: 0; }
.poi-detail { font-size: 11px; color: rgba(237, 201, 28, 0.8); flex-shrink: 0; }
.poi-entfernung { font-size: 11px; color: rgba(255, 255, 255, 0.5); margin-left: auto; flex-shrink: 0; }
.poi-mehr { text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.5); padding: 6px; font-style: italic; }
.poi-leer { color: #ccc; font-size: 13px; font-style: italic; margin: 0; padding: 12px; text-align: center; }

.poi-tooltip { display: none; position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: #2a1a3e; border: 1px solid #edc91c; border-radius: 8px; padding: 10px; z-index: 100; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); animation: tooltipFadeIn 0.2s ease; }
.poi-tooltip.visible { display: flex; gap: 10px; align-items: flex-start; }
.poi-tooltip::after { content: ''; position: absolute; top: 100%; left: 20px; border: 6px solid transparent; border-top-color: #edc91c; }
@keyframes tooltipFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.poi-tooltip-img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.poi-tooltip-text { font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.poi-tooltip-loading { font-size: 12px; color: #edc91c; font-style: italic; }

@media (max-width: 600px) {
  .ort-wiki-bild { width: 60px; height: 60px; }
  .ort-wiki-text p { font-size: 12px; }
  .poi-tab { padding: 8px 6px; font-size: 11px; }
  .poi-tab-label { display: none; }
  .poi-tab-count { font-size: 9px; }
  .poi-item { padding: 5px 6px; }
  .poi-name { font-size: 12px; }
  .poi-detail { font-size: 10px; }
  .poi-tooltip { position: relative; bottom: auto; left: auto; right: auto; margin-top: 6px; }
  .poi-tooltip::after { display: none; }
  .poi-tooltip-img { width: 50px; height: 50px; }
}

.reisezeiten-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.reisezeiten-details strong { color: #edc91c; }
.reisezeiten-details ul { margin: 10px 0 0 0; padding-left: 20px; }
.reisezeiten-details li { margin: 5px 0; color: #fff; }

.leaflet-popup-content-wrapper { background-color: #394730; color: #fff; border: 2px solid #edc91c; border-radius: 8px; }
.leaflet-popup-content { margin: 15px; }
.leaflet-popup-content h4 { color: #edc91c; margin: 0 0 10px 0; }
.leaflet-popup-tip { background-color: #394730; }

@media (max-width: 800px) {
  /* Bereits durch 900px Breakpoint abgedeckt */
}

@media (max-width: 600px) {
  .ergebnis-box { width: calc(100% - 20px); padding: 10px; }
  #deutschland-karte { height: 350px; }
}

.start-marker { z-index: 1000 !important; }
.ziel-karte:hover { transform: translateX(5px) scale(1.02); box-shadow: 0 6px 20px rgba(237, 201, 28, 0.5); }
.leaflet-interactive { cursor: pointer; }

.karte-legende { background: rgba(57, 71, 48, 0.95); padding: 12px 15px; border-radius: 8px; border: 2px solid #edc91c; color: white; font-size: 12px; min-width: 140px; max-width: 180px; }
.legende-titel { font-weight: bold; color: #edc91c; margin-bottom: 6px; text-align: center; }
.legende-medals { display: flex; justify-content: center; gap: 8px; margin-bottom: 5px; }
.legende-medals .medal { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 10px; }
.legende-gradient { height: 10px; border-radius: 4px; background: linear-gradient(to right, #1a7a3a, #e6c619, #c0392b); margin-bottom: 4px; }
.legende-labels { display: flex; justify-content: space-between; font-size: 11px; color: #ccc; }
.legende-abschnitt { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,0.2); }
.legende-sub-titel { font-size: 10px; font-weight: bold; color: #edc91c; margin-bottom: 4px; }
.legende-item { display: flex; align-items: center; gap: 5px; margin: 3px 0; }
.legende-item-label { font-size: 10px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.legende-linie-sample { display: inline-block; width: 20px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.legende-linie-gestrichelt { background: repeating-linear-gradient(to right, #95a5a6 0, #95a5a6 4px, transparent 4px, transparent 8px) !important; height: 3px !important; }
.legende-kreis-sample { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #888; border: 2px solid #fff; flex-shrink: 0; }


/* ============================================================================
   FAHRPLAN-STYLES FÜR WOHINGENAU
   ============================================================================
   
   ERKLÄRUNG FÜR KIM:
   Diese CSS-Regeln müssen am Ende deiner style.css eingefügt werden.
   Sie steuern das Aussehen des aufklappbaren Fahrplans in den Ziel-Kacheln.
   
   Die Darstellung ist inspiriert von Fahrplan-Apps wie DB Navigator:
   - Eine vertikale "Timeline" zeigt die Abschnitte der Reise
   - Haltestellen sind als Punkte dargestellt
   - Verkehrslinien haben farbige Badges (z.B. "🚇 U7" in Blau)
   - Fußwege sind kompakt und grau dargestellt
   ============================================================================ */


/* ========== Fahrplan-Bereich (Container) ========== */
.fahrplan-bereich {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Der Toggle-Button "🚆 Verbindungen anzeigen" */
.fahrplan-toggle-btn {
  width: 100%;
  padding: 12px 16px;
  background: rgba(53, 30, 81, 0.6);
  color: #edc91c;
  border: 2px solid rgba(237, 201, 28, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fahrplan-toggle-btn:hover {
  background: rgba(237, 201, 28, 0.15);
  border-color: #edc91c;
}

.fahrplan-toggle-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* PDF-Export-Button */
.pdf-export-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(53, 30, 81, 0.6);
  color: #edc91c;
  border: 2px solid rgba(237, 201, 28, 0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pdf-export-btn:hover:not(:disabled) {
  background: rgba(237, 201, 28, 0.15);
  border-color: #edc91c;
}

.pdf-export-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* Lade-Animation */
.fahrplan-laden {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  color: #edc91c;
  font-style: italic;
}

/* Fehler-Meldung */
.fahrplan-fehler {
  color: #e74c3c;
  font-style: italic;
  text-align: center;
  padding: 10px;
}


/* ========== Einzelne Person ========== */
.fahrplan-person {
  margin-top: 15px;
  padding: 12px;
  padding-left: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border-left: 4px solid #edc91c;  /* Wird per inline-style mit Personenfarbe überschrieben */
}

.fahrplan-person-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Farbiger Punkt neben dem Namen */
.fahrplan-person-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fahrplan-person-header strong {
  color: #fff;
  font-size: 15px;
}

.fahrplan-person-start {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-left: auto;
}


/* ========== Zusammenfassung (Abfahrt → Ankunft, Dauer, Umstiege) ========== */
.fahrplan-zusammenfassung {
  display: flex;
  gap: 15px;
  padding: 8px 12px;
  background: rgba(237, 201, 28, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #edc91c;
  font-weight: bold;
  flex-wrap: wrap;
}


/* ========== Timeline (der Fahrtverlauf) ========== */
.fahrplan-timeline {
  position: relative;
}


/* ========== Einzelner Abschnitt (Leg) ========== */
.fahrplan-leg {
  position: relative;
}


/* ----- ÖPNV-Abschnitt (Zug, U-Bahn, Bus) ----- */
.fahrplan-transit {
  margin-bottom: 2px;
}

/* Haltestelle (Abfahrt/Ankunft) */
.fahrplan-halt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

/* Uhrzeit */
.fahrplan-zeit {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  min-width: 45px;
  flex-shrink: 0;
}

/* Der Punkt auf der Timeline-Linie */
.fahrplan-punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #edc91c;
  border: 2px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

/* Haltestellenname */
.fahrplan-station {
  font-size: 13px;
  color: #fff;
  flex: 1;
  min-width: 0;              /* Erlaubt Textumbruch */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gleis-Anzeige */
.fahrplan-gleis {
  font-size: 11px;
  color: rgba(237, 201, 28, 0.8);
  background: rgba(53, 30, 81, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Linien-Info zwischen Abfahrt und Ankunft */
.fahrplan-linie-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 0 6px 24px;  /* Links eingerückt (unter dem Punkt) */
  margin-left: 50px;        /* Ausgerichtet mit Haltestellenname */
  border-left: 3px solid #edc91c;  /* Wird per inline-style überschrieben */
}

/* Linien-Badge (z.B. "🚇 U7") */
.fahrplan-linie-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

/* Fahrtrichtung */
.fahrplan-richtung {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dauer + Betreiber */
.fahrplan-dauer-klein {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}


/* ----- Fußweg-Abschnitt ----- */
.fahrplan-walk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  margin-left: 50px;  /* Ausgerichtet mit den Haltestellennamen */
}

/* Gestrichelte vertikale Linie für Fußwege */
.fahrplan-walk-linie {
  width: 3px;
  height: 20px;
  margin-left: 3.5px;  /* Zentriert unter dem Punkt */
  background: repeating-linear-gradient(
    to bottom,
    #95a5a6 0px,
    #95a5a6 4px,
    transparent 4px,
    transparent 8px
  );
  flex-shrink: 0;
}

/* Text "🚶 5 min Fußweg (200m)" */
.fahrplan-walk-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}


/* ========== MOBILE ANPASSUNGEN ========== */

@media (max-width: 600px) {
  .fahrplan-person {
    padding: 10px;
    padding-left: 12px;
  }
  
  .fahrplan-zusammenfassung {
    font-size: 12px;
    gap: 10px;
    padding: 6px 10px;
  }
  
  .fahrplan-zeit {
    font-size: 13px;
    min-width: 40px;
  }
  
  .fahrplan-station {
    font-size: 12px;
  }
  
  .fahrplan-linie-info {
    margin-left: 40px;
    padding-left: 16px;
  }
  
  .fahrplan-walk {
    margin-left: 40px;
  }
  
  .fahrplan-linie-badge {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  .fahrplan-toggle-btn {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (max-width: 400px) {
  .fahrplan-halt {
    gap: 6px;
  }
  
  .fahrplan-linie-info {
    margin-left: 35px;
    padding-left: 12px;
  }
  
  .fahrplan-walk {
    margin-left: 35px;
  }
}


/* ============================================================================
   NEU: HALTESTELLENNAME IN ZIEL-KACHELN
   ============================================================================
   ERKLÄRUNG: Zeigt unter dem Landkreisnamen den konkreten Haltestellennamen,
   damit die Nutzer wissen, wo genau im Landkreis sie sich treffen.
   ============================================================================ */

/* Titel-Gruppe: Landkreisname + Haltestellenname untereinander */
.ziel-titel-gruppe {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;  /* Erlaubt Textumbruch */
}

.ziel-titel-gruppe h3 {
  margin: 0;
}

/* Der Haltestellenname unter dem Landkreis */
.haltestellen-name {
  font-size: 13px;
  color: #edc91c;
  font-weight: normal;
  opacity: 0.85;
}

/* Stecknadel-Marker auf der Karte */
.haltestellen-pin {
  background: transparent !important;
  border: none !important;
}

@media (max-width: 600px) {
  .haltestellen-name {
    font-size: 12px;
  }
}

/* ========== Globale Scrollbar-Anpassung ========== */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #edc91c #351e51;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #351e51;
}
::-webkit-scrollbar-thumb {
  background: #edc91c;
  border-radius: 5px;
  border: 2px solid #351e51;
}
::-webkit-scrollbar-thumb:hover {
  background: #f5dc4a;
}
::-webkit-scrollbar-corner {
  background: #351e51;
}
/* ============================================================================
   NEU: STIMMUNGSFOTO (Hero-Bild) IN DEN ZIEL-KACHELN
   
   ERKLÄRUNG: Ein großes Foto oben in der Kachel, das Lust auf den Ort macht.
   Das Foto kommt von Wikimedia Commons und wird mit einem halbtransparenten
   Overlay + Ortsname versehen, damit es sich ins Design einfügt.
   
   object-position: center 30% zeigt eher den oberen Teil des Bildes.
   Das funktioniert gut für Stadtansichten, Skylines und Landschaften,
   weil das Motiv dort meistens oben liegt (Gebäude, Berge, Horizont).
   ============================================================================ */

.ort-hero-foto {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #351e51;
}

.ort-hero-bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;  /* Zeigt das obere Drittel statt exakt mittig */
  display: block;
  transition: transform 0.3s ease;
}

.ort-hero-foto:hover .ort-hero-bild {
  transform: scale(1.05);
}

/* Ortsname als Overlay unten links auf dem Foto */
.ort-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(53, 30, 81, 0.85));
  color: #edc91c;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 600px) {
  .ort-hero-foto {
    height: 120px;
  }
  .ort-hero-overlay {
    font-size: 14px;
    padding: 6px 10px;
  }
}


/* ============================================================================
   NEU: WARTEZEIT-ANZEIGE IN DER FAHRPLAN-TIMELINE
   
   ERKLÄRUNG FÜR KIM:
   Diese Styles sorgen dafür, dass die Wartezeit-Zeile optisch zur
   bestehenden Timeline passt. Sie sieht ähnlich aus wie die Fußweg-Zeile,
   aber mit einer anderen Farbe (orange statt grau), damit man sie sofort
   als "Warten" erkennt und nicht mit "Gehen" verwechselt.
   
   - display: flex + align-items: center → Icon und Text nebeneinander
   - margin-left: 50px → Eingerückt wie die anderen Timeline-Elemente
   - color: #e67e22 → Orange = "Achtung, hier passiert gerade nichts"
   - font-style: italic → Kursiv = unterscheidet sich optisch vom Rest
   ============================================================================ */

.fahrplan-wartezeit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  margin-left: 50px;  /* Ausgerichtet mit den Haltestellennamen */
}

.fahrplan-wartezeit-text {
  font-size: 0.82em;
  color: #e67e22;           /* Orange = "Achtung, hier passiert nichts" */
  font-style: italic;       /* Kursiv = unterscheidet sich vom Rest */
}

/* Mobile: Wartezeit-Zeile genauso einrücken wie Fußwege */
@media (max-width: 600px) {
  .fahrplan-wartezeit {
    margin-left: 40px;
  }
}

@media (max-width: 400px) {
  .fahrplan-wartezeit {
    margin-left: 35px;
  }
}


/* ============================================================================
   REISE-OPTIONEN PRO PERSON
   ============================================================================ */

/* ⚙️ Toggle-Button */
.optionen-toggle-btn {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background-color: rgba(237, 201, 28, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
  user-select: none;
}

.optionen-toggle-btn:hover,
.optionen-toggle-btn.aktiv {
  background-color: rgba(237, 201, 28, 0.45);
}

/* Optionen-Panel (aufklappbar, volle Breite) */
.reise-optionen-panel {
  flex: 0 0 100%;
  width: 100%;
  order: 10;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 2px;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  border-top: 1px solid rgba(237, 201, 28, 0.25);
}

/* Zeile innerhalb des Panels */
.option-zeile {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Einzelne Option (Label + Eingabe) */
.option-gruppe {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Beschriftung über dem Eingabefeld */
.option-label {
  font-size: 10px;
  color: rgba(237, 201, 28, 0.8);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Eingabe + Einheit nebeneinander */
.option-input-einheit {
  display: flex;
  align-items: center;
  gap: 5px;
}

.option-einheit {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Breite der Umstiegszeit-Eingabe */
.min-umstiegszeit-input {
  width: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
}

/* Verkehrsmittel-Gruppe nimmt volle Breite */
.vm-gruppe {
  flex: 1 1 100%;
}

/* Chip-Reihe für Verkehrsmittel */
.vm-checkboxen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Einzelner Verkehrsmittel-Chip */
.vm-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  transition: background 0.2s;
  white-space: nowrap;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.vm-option:hover {
  background: rgba(237, 201, 28, 0.2);
  border-color: rgba(237, 201, 28, 0.4);
}

/* Unterauswahl für Öffis */
.vm-sub-optionen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vm-option input[type="checkbox"],
.vm-option input[type="radio"] {
  width: 13px;
  height: 13px;
  accent-color: #edc91c;
  cursor: pointer;
  flex-shrink: 0;
}

/* Mobile: Optionen-Toggle-Button */
@media (max-width: 600px) {
  .mitfahrer-wrapper .optionen-toggle-btn {
    order: 5;
    align-self: center;
  }
  .mitfahrer-wrapper .minus {
    order: 6;
  }
  .reise-optionen-panel {
    margin-top: 4px;
  }
  .vm-option {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ============================================================================
   ÜBER-UNS-SEITE
   ============================================================================
   
   ERKLÄRUNG FÜR KIM:
   Diese Styles gehören zur neuen Datei ueber-uns.html. Da beide Seiten
   dieselbe style.css nutzen, reicht es, die Klassen hier einmal zu
   definieren – sie gelten dann automatisch überall dort, wo diese
   Klassennamen im HTML verwendet werden.
   ============================================================================ */
/* ---------- Intro + Team-Bereich: nebeneinander NUR wenn
   wirklich genug Platz da ist, sonst automatisch untereinander.
   Schwellenwert berechnet aus: 700px (Intro) + 40px (gap) + 
   900px (Team-Bereich) + 120px (Container-Padding) = 1760px ---------- */

@media (max-width: 1760px) {
  .ueber-uns-container {
    flex-direction: column;
  }
}

.ueber-uns-intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.ueber-uns-intro h1 {
  margin-bottom: 20px;  
}

.ueber-uns-intro p {
  font-size: 16px;
  line-height: 1.5em;
  margin-bottom: 16px;
  text-align: justify;
}

/* ---------- Team-Bereich (Kim & Tobi nebeneinander) ---------- */

.team-bereich {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 750px;
  margin: 0 auto;
}

.team-mitglied {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: #394730;
  border-radius: 10px;
  padding: 25px;
  border: solid #edc91c;
  text-align: center  ;
}
.team-mitglied img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

.team-mitglied:nth-child(2) img {
  transform: rotate(3deg);
}

.team-mitglied img:hover {
  transform: rotate(0deg) scale(1.05);
}