.page-header {
  background: #f3f3f3;
  padding: 2rem 1rem 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--primary-color);
}

.breadcrumb {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.fahrdienst {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.fahrdienst-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;

}

.fahrdienst-text {
  flex: 2;
}

.fahrdienst-image {
  flex: 0 0 auto;
  max-width: 250px; 
}

.fahrdienst-image img {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
}

.page-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding: 0 1rem;
}

.page-content h2,
.page-content h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: inherit;
}

.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.email-button {
  background: #229954;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.email-button:hover {
  background: #1a7e43;
  color: white;
  text-decoration: none;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #229954;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #1a7e43;
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

.ticket-overview {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.download-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.download-entry:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.download-text {
  flex: 1;
  margin-right: 1rem;
  word-break: break-word;
  text-align: left;
}

.download-button {
  background-color: #229954;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 100px;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-button:hover {
  background-color: #1a7e43;
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

.fahrplan-overview {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.fahrplan-overview h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.fahrplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.fahrplan-card {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  padding: 1rem;
  border-radius: 8px;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.fahrplan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.fahrplan-card i {
  font-size: 28px;
  color: #229954;
  margin-right: 1rem;
}

.fahrplan-card span {
  font-size: 1rem;
  color: #333;
  font-weight: normal;
}

.line-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.line-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 2px;
  margin-bottom: 5px;
  font-size: 0.80rem;
  font-weight: bold;
}

.red-tag {
  background-color: #d32f2f;
  color: white;
}

.yellow-tag {
  background-color: #fbc02d;
  color: white;
}

.green-tag {
  background-color: #388e3c;
  color: white;
}

.blue-tag {
  background-color: #1976d2;
  color: white;
}

.black-tag {
  background-color: #212121;
  color: white;
}

.gray-tag {
  background-color: #9e9e9e;
  color: white;
}

.download-group {
  background-color: #ddd;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.download-group .download-entry:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-content {
    margin-right: 0.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .white-section {
    margin-left: -25px;
  }

  .download-entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem auto;
  }

  .download-text {
    margin-right: 0;
    margin-bottom: 0.5rem;
    text-align: left;
    width: 100%;
  }

  .download-button {
    width: 100%;
    min-width: 100px;
    max-width: 200px;
    margin-top: 15px;
    box-sizing: border-box;
    justify-content: center;
  }

  .fahrplan-overview {
    width: 112%;
  }

  .fahrplan-card span {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .fahrdienst-block {
    flex-direction: column;
    align-items: center;
  }

  .fahrdienst-image {
    max-width: 280px;
    margin-top: -10px;
  }

  .download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .download-text .line-tag {
    margin-bottom: 0.3rem;
  }

  .line-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .download-group {
    width: 100%;
    background: linear-gradient(to right, #ddd 12px, transparent 10px);
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 70px;
  }

}