.header-top-img {
  max-height: 450px;
}


.button {
  background-color: #f68e13;
  border: none;
  color: white;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}


.button:hover {
  background-color: #575856;
  border: none;
  color:  white;
  
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

.button a {
  text-decoration: none;
  color: white;
}

.title-spacer {
  margin: 1.8em 0 1em 0;
}

#sp-footer {
  margin: 0 auto;
  text-align: center;
}



/*############################## Artikel ################################*/

.beitrag-artikel {
  margin-bottom: 1em;
  padding: 25px;
  border: 1px solid #ededed;
  border-radius: 3px;
}

.artikel-schule {
  box-shadow: 0px 0px 5px 5px #E2E2E2;
  padding: 25px; 
}

.article-list.vereine .article{
  min-height: 450px;
  box-shadow: 0px 0px 5px 5px #E2E2E2;
}

.article-list .article{
  box-shadow: 0px 0px 5px 5px #E2E2E2;
  padding: 25px;
}

/* ############################ Artikelbild Settings ###################### */
.article-full-image {
    display: block;
    text-align: center;
    float: none; /* Entfernt das float-left */
    margin: 20px auto; /* sorgt für automatische Zentrierung */
}

.article-full-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/*###################### Fahrplan Download #######################*/
.fpl-dwnld {
  position: relative;
  width: 100%;
  height: 80px;
  box-shadow: 0px 0px 5px 5px #E2E2E2;
  border-radius: 8px;
  padding: 20px 0 20px 10px;
  transition: box-shadow 1s ease;
  margin: 2em 0em;
  align-items: center;
}

.fpl-dwnld:hover {
  box-shadow: 0px 0px 5px 5px #aaaaaa;
 
}

.fpl-dwnld .headingtx {
  position: absolute;
  font-size: 1rem;
  font-weight: 400;
  left: 30px;
  
}

@media screen and (min-width: 800px) {
.fpl-dwnld .headingtx {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 500;
  left: 30px;  
}  
}

.fpl-dwnld img {
  position: absolute;
  right: 60px;
  width: 45px;
}

/*################################### GPX Download Button ################################ */
.gpx-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f68e13, #ff9f2e);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

a.gpx-download-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e58312, #ff981e);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  color: #fffff;
}


.gpx-download-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.gpx-icon {
  font-size: 1.25rem;
  line-height: 1;
}


/*########################################## Link Bilder Hover ##################################*/

.link-image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.link-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.link-image-container .link-overlay {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.link-image-container:hover .link-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.link-image-container .text {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: 15px;
}

.link-image-container .link-image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0.8em 1em;
  font-size: 1.3rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.6); /* halbtransparenter Hintergrund */
  box-sizing: border-box;
}

/*############################ GPX Hover ######################################*/
 .hover-container {
    position: relative;
    display: inline-block; /* Oder block, je nach Layout */
  }

  .hover-container img {
    display: block; /* Entfernt zusätzlichen Platz unter dem Bild */
  }

  .bild-hover-verdeckt {
    opacity: 0; /* Bild wird durchsichtig */
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease; /* Sanfte Überblendung */
  }

  .hover-container:hover .bild-hover-verdeckt {
    opacity: 1; /* Bild wird beim Hover sichtbar */
  }


/* ##########################     Custom Fields          ######################## */

/* 1. Container-Styling: Macht die Listenelemente flexibel und horizontal */
.fields-container {
  display: flex; /* Ordnet die Listenelemente nebeneinander an */
  list-style: none; /* Entfernt die standardmäßigen Aufzählungszeichen */
  padding: 0; /* Entfernt den standardmäßigen Innenabstand (Padding) der Liste */
  margin: 0; /* Entfernt den standardmäßigen Außenabstand (Margin) der Liste */
  margin-bottom: 1em;
  gap: 20px; /* Fügt einen Abstand von 10px zwischen den "Buttons" hinzu */
}

/* 2. Styling der einzelnen Listenelemente (die "Buttons") */
.field-value.vereinssitz::before {
  content: "";
  display: inline-block;
  background: url('/images/icons/standort-icon.png') no-repeat center;
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

.field-value.weblink::before {
  content: "";
  display: inline-block;
  background: url('/images/icons/webseite-icon.png') no-repeat center;
  background-size: 20px 20px;
  width: 20px;
  height:20px;
  margin-right: 6px;
  vertical-align: middle;
}

.field-value {
  font-size: 14pt;
  font-weight: 500;
}

fields-value.weblink a:hover {
  color: #f68e13;
}

/* 3. Spezielles Styling für den Link innerhalb des zweiten Listenelements */
.fields-container .field-entry a {
    color: inherit; 
    text-decoration: none; 
}

.fields-container .field-entry a:hover {
    color: #f68e13; 
    text-decoration: none; 
}

ul.mod-articles-items {
  list-style:none;
  padding:0;
  margin:0;
}



/*##################################### Grid Layouts #######################################*/

/*############################### Blog Posts Beitrag #####################################*/

.bl-item-cnt {
  border: 1px solid #E3E3E3;
  border-radius: 5px;
  padding: 0px;
  color: black;
  background: white;
  transition: box-shadow 0.3s ease;
  max-width: 420px;
}

.bl-item-cnt img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

.bl-txt-area {
  margin-top: 1em;
  padding: 8px;
}

.bl-txt-area h3 {
  font-size: 12pt;
}


/*################################ ÖPNV Container  #######################################*/

.linien-container {
  border: 1px solid rgb(141, 141, 141);
  border-radius: 5px;
  padding: 2px;
  color: black;
  background: white;
  transition: box-shadow 0.3s ease;
}

.linien-container:hover {
  box-shadow: 0px 0px 5px 5px #E2E2E2;
}

.linien-container img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

.linien-txt-area {
  margin-top: 1em;
  padding: 8px;
}

/* ######################### Grid Container ##########################*/
.linien-cnt-grid {
  display: grid;
  gap: 1em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Optional: gleiche Höhe der Karten */
.linien-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.linien-txt-area p {
  line-height: 1.4;
}

/* Responsive Feinschliff */
@media (max-width: 768px) {
  .linien-txt-area h3 {
    font-size: 1.1em;
  }
  .linien-txt-area p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .linien-cnt-grid {
    padding: 0.5em;
  }
  .linien-container {
    border-width: 0.5px;
  }
}


/*##################################### ÖPNV Infobox #######################################*/

.opnv-infobox {
  width: 100%;
  max-width: 850px;
  margin: 1em 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  font-family: sans-serif;
  box-shadow: 0px 2px 5px #999999;
}

/* Überschrift-Stil */
.opnv-infobox-summary {
  background: linear-gradient(to right, #ec430f 0%, #ec430f 15%, #ffffff 16%, #ffffff 100%);
  padding: 0.8em;
  font-size: 16pt;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pfeil rechts */
.opnv-infobox-summary::after {
  content: "▼";
  transition: transform 0.3s ease;
  color: black;
}

details[open] .opnv-infobox-summary::after {
  transform: rotate(180deg);
}

/* Inhaltsteil */
.opnv-infobox > div {
  background-color: #ffffff;
  padding: 1em;
  border-top: 1px solid #ccc;
  color: #333;
}

/*################################################################################################################*/
.responsive-grid-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  border-collapse: collapse;
  width: 100%;
}

/* Entfernt die Tabellenstruktur, damit die TDs im Grid funktionieren */
.responsive-grid-table tr,
.responsive-grid-table tbody,
.responsive-grid-table td {
  display: contents;
}

/* Optional: etwas Styling innerhalb der Zellen */
.responsive-grid-table td > div {
  width: 100%;
  box-sizing: border-box;
}


.grid-table-link {
  display: inline-block;
  width: 100%;
}

.cat-button {
  width: 100%;
  box-sizing: border-box;
  background-color: #f68e13;
  border: none;
  color: white;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.cat-button:hover {
  background-color: #575856;
  border: none;
  color:  white;
}

/*#########################################   BRANCHENVERZEICHNIS   ################################################*/
.gw-head-cnt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Logo Mindestgröße */
.gw-content-logo img {
  min-width: 120px;
  height: auto;
}

/* Logo + Readmore = flex-zentriert */
.gw-content-logo,
.gw-content-readmore {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Kontakt normal untereinander */
.gw-content-contact {
  flex: 1;
  text-align: center;
}

/* Mobil: alles untereinander */
@media (max-width: 768px) {
  .gw-head-cnt {
    flex-direction: column;
    text-align: center;
  }

  .gw-content-logo,
  .gw-content-contact,
  .gw-content-readmore {
    width: 100%;
    flex: none;
  }
}





/* ################################################# Leaflet Map ################################################*/

#map {
  width: 100%;     /* nimmt die volle Breite des Containers */
  height: 550px;   /* Höhe der Karte */
  max-width: 1200px; /* optional: maximale Breite */
  margin: 0 auto;  /* zentriert die Karte auf der Seite */
  border-radius: 12px; /* optional: abgerundete Ecken */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* optional: Schatteneffekt */
}

/* Größeres Layer-Control-Menü */
.leaflet-control-layers {
  font-size: 1.5em;        /* Schrift etwas größer */
  line-height: 1.4em;      /* mehr Zeilenabstand */
  padding: 10px;           /* mehr Innenabstand */ 
  background-color: rgba(255, 255, 255, 0.9); /* leicht transparent */
  max-height: 300px;       /* bei vielen Routen scrollbar */ 
  overflow-y: auto;
}
.leaflet-control-layers-expanded {
  width: 220px; /* Menü etwas breiter */ 
}


  /*################################## TEST BEREICH #######################################################*/


.restaurant-card:hover {
  transform: translateY(-4px);
}

.restaurant-image img {
  width: 100%;
  max-width: 380px;
  height: 100%;
  object-fit: cover;
}


.restaurant-title {
  font-size: 1.8em;
  margin: 0;
  color: #222;
}

.restaurant-subtitle {
  font-size: 1em;
  color: #777;
  margin-bottom: 10px;
}

.content-tags {
  margin: 10px 0 15px;
}

.tag {
  display: inline-block;
  background: #f68e13;
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  margin-right: 6px;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.restaurant-description {
  margin: 15px 0 20px;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

/* Info-Bereich mit CSS-Icons */
.restaurant-info {
  display: grid;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
}

.icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.restaurant-actions {
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  background: #f68e13;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: 600;
}

.btn:hover {
  background: #e37d0f;
}

.btn-secondary {
  background: #555;
}

.btn-secondary:hover {
  background: #333;
}
 

.article-list .article .featured-article-badge { display: none; visibility: hidden;}

.article-details .featured-article-badge { display: none; visibility: hidden;}
  