/* Allgemein */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: #ffffff;
  color: #59656f;
}

header {
  background-color: #ee8027;
  border-radius: 20px;
  padding: 15px 20px;
  width: 97%;
  margin: 20px auto;
  font-weight: bold;
  box-shadow: 0 10px 20px rgba(238, 128, 39, 0.25);

  display: flex;
  justify-content: center; 
  align-items: center;   
}

footer {
  background-color: #ee8027;
  border-radius: 20px;
  padding: 15px 20px;
  width: 97%;
  margin: 20px auto;
  font-weight: bold;
  box-shadow: 0 -5px 20px rgba(238, 128, 39, 0.15);
}


header img {
  display: block;
  margin: 0 auto;
  max-width: 60%;
}
@media (max-width: 1200px) {
  header img {
    max-width: 100%;
  }
}

main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1em;
  padding: 1em;
}
section#data {
  flex: 2 1 200px;
  background: #f8f9fa;
  padding: 2em;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(89, 101, 111, 0.08);
  min-height: 60vh;
}

.breadcrumb {
  font-size: 0.85em;
  margin-bottom: 15px;
  color: #888;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.breadcrumb a {
  color: #ee8027;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

a,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav.main-nav {
  background-color: #59656f;
  width: 210px;
  padding: 1.5em 1em;
  border-radius: 15px;
  margin: 1em;
  box-shadow: 0 10px 30px rgba(89, 101, 111, 0.2);
}

#menu-wetter {
  background-color: #59656f;
  width: 210px;
  padding: 1em;
  border-radius: 10px;
  margin: 1em;
  color: white;
  font-size: 0.8rem;
  text-align: center;
}

#menu-wetter iframe {
  max-width: 100%;
}

nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
nav .nav-list > li {
  margin-bottom: 0.5em;
  width: 100%;
}
nav .nav-list a {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  background-color: white;
  color: #59656f;
  border: 2px solid #ee8027;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
nav .nav-list a:hover,
nav .nav-list a:focus {
  background-color: #ee8027;
  color: white;
  border-color: #ee8027;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(238, 128, 39, 0.3);
}
nav .nav-list li[aria-current] a {
  background-color: #ee8027;
  color: white;
  border-color: #ee8027;
  box-shadow: 0 4px 10px rgba(238, 128, 39, 0.3);
}

/* UntermenÃ¼s */
nav .nav-list li {
  position: relative;
   margin-bottom: 0.5em;
}
nav .nav-list li ul {
  display: none;
  list-style: none; 
  position: absolute;
  left: 105%;
  top: -10px;
  background-color: #59656f;
  padding: 15px;
  border-radius: 15px;
  min-width: 210px; 
  margin-bottom: 0.5em;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    left: 100%;
  }
}

nav .nav-list li:hover > ul,
nav .nav-list li:focus-within > ul {
  display: block;
}
nav .nav-list li ul li a {
  background-color: white;
  color: #59656f;
  border: 2px solid #ee8027;
 }

/* Hamburger */
#menu-toggle {
  display: none;
  margin: 1em auto;
  font-size: 1.5em;
  border: 2px solid #ee8027;
  border-radius: 5px;
  padding: 0.4em 0.6em;
  cursor: pointer;
  background-color: white;
  color: #59656f;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    align-items: center;
    padding: 0.5em;
    gap: 1.5em;
  }

  nav.main-nav {
    width: 95%;
    margin: 1em auto;
  }

  #menu-toggle {
    display: block;
  }

  section#data {
    width: 95%;
    margin: 0 auto;
  }

  nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  nav .nav-list.open {
    display: flex;
  }

  nav .nav-list li ul {
    position: static;
    display: none;
  }

  nav .nav-list li:hover > ul,
  nav .nav-list li:focus-within > ul {
    display: block;
  }

  aside {
    width: 95%;
    min-height: auto;
    margin: 1em auto;
  }

  #menu-wetter {
    width: 95%;
    margin: 1em auto;
  }
}

/* Vehicle Cards */
.vehicle-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  margin: 10px 0;
  gap: 15px;
}

.vehicle-info-left, .vehicle-info-right {
  flex: 1 1 150px;
  text-align: center;
}

.vehicle-image {
  flex: 0 1 auto;
  text-align: center;
}

.vehicle-image img {
  border: 5px inset silver;
  max-width: 100%;
  height: auto;
}

.vehicle-info-left p, .vehicle-info-right p {
  margin: 8px 0;
  font-size: 0.9em;
}

.vehicle-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  margin: 20px 0;
}

/* Footer container */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85em;
  gap: 5px;
}

.footer-links {
  display: flex;
  gap: 5px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 5px;
  }
}

/* Sighting rows */
.sighting-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  background: #fdfdfd;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
}

.sighting-row:nth-child(even) {
  background: #f5f5f5;
}

.sighting-date { font-weight: bold; flex: 1; }
.sighting-nr   { color: #ee8027; font-weight: bold; flex: 1; text-align: center; }
.sighting-note { flex: 2; text-align: right; font-style: italic; color: #888; }

/* Mobile adjustments for cards */
@media (max-width: 600px) {
  .vehicle-card {
    flex-direction: column;
    align-items: center;
  }
  .vehicle-info-left, .vehicle-info-right {
    width: 100%;
  }
}

/* Gallery Grid */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
}

.gallery-item {
  flex: 0 1 auto;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  border: 3px solid #eee;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
  border-color: #ee8027;
}

/* Table responsiveness */
section#data table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  section#data {
    overflow-x: auto;
  }
}

/* Modern Data Tables / Lists */
.data-section {
  background: white;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 2.5em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #ddd;
}

.data-day-header {
  background-color: #ee8027;
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
}

.data-header {
  display: flex;
  background-color: #59656f;
  color: white;
  font-weight: bold;
  padding: 10px;
}

.data-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 10px;
  transition: background 0.2s;
}

.data-row:hover {
  background-color: #f5f5f5;
}

.data-row:last-child {
  border-bottom: none;
}

.data-cell {
  flex: 1;
  text-align: center;
  padding: 5px;
}

.data-cell-date {
  font-weight: bold;
  color: #ee8027;
}

@media (max-width: 600px) {
  .data-header {
    display: none; /* Hide headers on very small screens */
  }
  .data-row {
    flex-direction: column;
    text-align: left;
    padding: 15px;
  }
  .data-cell {
    text-align: left;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
  }
  .data-cell::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 10px;
    color: #59656f;
  }

  /* Keep Tagesumlauf as a table on mobile */
  .data-section-umlauf {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-section-umlauf .data-header {
    display: flex;
    min-width: 680px;
    font-size: 0.8rem;
  }
  .data-section-umlauf .data-row {
    flex-direction: row;
    min-width: 680px;
    padding: 8px 5px;
  }
  .data-section-umlauf .data-cell {
    font-size: 0.8rem;
    padding: 5px 2px;
    justify-content: center;
    border-bottom: none;
    flex: 1;
  }
  .data-section-umlauf .data-cell-date {
    flex: 0 0 70px; /* Fixed width for time column on mobile */
  }
  .data-section-umlauf .data-cell::before {
    display: none;
  }
}

aside {
  background-color: #59656f;
  padding: 1em;
  border-radius: 10px;
  margin: 1em auto;
  color: white;
  width: 215px;
  min-height: 485px;
  height: auto;
  font-size: 0.8rem;
  text-align: center;
}

/* Info & Baustellen Styling */
.info-list {
  background: white;
  padding: 10px 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  gap: 15px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-icon {
  margin-top: 4px;
  flex-shrink: 0;
}

.info-content {
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: left;
  color: #59656f;
}

.baustellen-card-body {
  padding: 20px;
  background: white;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.baustellen-header-img {
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.2));
}

.baustellen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

/* Welcome Info Grid (willkommen.php) & Sidebar - Kleinere Darstellung */
.welcome-info-grid .data-day-header,
aside .data-day-header {
  font-size: 0.95rem;
  padding: 6px 12px;
}

.welcome-info-grid .info-item,
aside .info-item {
  padding: 10px 15px;
  gap: 12px;
}

.welcome-info-grid .info-content,
aside .info-content {
  font-size: 0.85rem;
  line-height: 1.45;
}

.welcome-info-grid .info-icon,
aside .info-icon {
  height: 16px;
  width: auto;
}

/* =============================
   Jahresblick - Dynamic Page
   ============================= */

:root {
  --accent: #ee8027;
  --hover: #59656f;
  --border: #eee;
  --text-light: #999;
}

.jahresblick-nav {
  text-align: center;
  margin: 15px 0;
  font-size: 1.1rem;
}

.jahresblick-nav a {
  color: var(--accent);
  margin: 0 10px;
  font-weight: bold;
  transition: color .2s ease;
}

.jahresblick-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.jahresblick-gallery-item {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,.06),
    0 8px 20px rgba(0,0,0,.04);
}

.jahresblick-gallery-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform .3s ease;
}

.info-box-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.jahresblick-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.jahresblick-info-item .info-icon {
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
}

.jahresblick-info-item .info-content {
  flex: 1;
}

.jahresblick-info-item .info-titel {
  display: block;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 5px;
}

.jahresblick-info-item .info-date {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: .85rem;
}

@media (hover: hover) {
  .jahresblick-nav a:hover {
    color: var(--hover);
    text-decoration: underline;
  }

  .jahresblick-gallery-item img:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 800px) {
  .info-box-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .jahresblick-gallery {
    grid-template-columns: 1fr;
  }

  .jahresblick-nav a {
    display: inline-block;
    margin: 5px 8px;
  }
}

.jahresblick-footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.jahresblick-footer-nav a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all .2s ease;
}


/* Base Button Class */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

/* grauer Button */
.btn-grey {
    background-color: #59656f;
    color: #ffffff !important;
}

.btn-grey:hover {
    background-color: #3f474d;
    color: #ffffff !important;
    text-decoration: none;
}

/* oranger Button */
.btn-orange {
    background-color: #ee8027;
    color: #ffffff !important;
}

.btn-orange:hover {
    background-color: #d96f1e;
    color: #ffffff !important;
    text-decoration: none;
}

/* Action Container */
.page-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    width: 100%;
}


@media (max-width: 600px) {

    .jahresblick-footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .jahresblick-footer-nav a {
        width: 90%;
        text-align: center;
    }

}
/* Card and Module Classes (refactored from inline styles) */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.badge-tag {
    font-weight: normal;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-padding {
    padding: 20px;
    background: white;
    text-align: left;
}

.card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #ee8027;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-subtitle {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.0rem;
    color: #59656f;
    font-style: italic;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-text {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #59656f;
}

.card-text-light {
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-meta {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

.card-image-bordered {
    border: 3px solid #eee;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.card-divider {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.card-body-flex {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.card-content-left {
    flex: 1 1 300px;
    text-align: left;
}

.card-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Group Headings */
.group-year-heading {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 5px;
    color: #59656f;
    border-bottom: 3px solid #ee8027;
    padding-bottom: 5px;
}

.group-month-heading {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #59656f;
    border-bottom: 2px solid #ee8027;
    padding-bottom: 5px;
}

.jahresblick-section-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #59656f;
    border-bottom: 2px solid #ee8027;
    padding-bottom: 5px;
}

.jahresblick-empty {
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border-radius: 5px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active img {
  transform: scale(1);
}

/* Make images clickable */
.vehicle-image img,
.gallery-item img,
.jahresblick-gallery-item img,
.card-image-bordered {
  cursor: pointer;
}