:root {
  --header-height: 55px;
  --footer-height: 70px;
}

/* Footer */
.app-footer {
  height: var(--footer-height);
  background-color: #455b55;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}


/* Inhalt */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  padding-bottom: 100px; /* Damit unteres Menü nicht überlappt */
  margin-top: var(--header-height);
}

/* Basislayout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

/* App-Layout Container */
.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}



h1 {
  color: #455b55;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

header p {
  margin: 0;
  font-size: 0.95em;
}

.footer {
  background: #455b55;
  color: white;
  text-align: center;
  padding: 1rem;
}

article {
  background: white;
  padding: 10px;
  margin: 10px 0;
  border-left: 5px solid #455b55;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 70px;
  background-color: #455b55;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: white;
  font-size: 13px;
  transition: all 0.3s ease;
}

.nav-item img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: #8bc392;
}

.nav-item.active img {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) sepia(30%) hue-rotate(70deg) contrast(1.2);
}


.nav-center {
  position: relative;
  top: -25px;
  background-color: #455b55;
  border-radius: 50%;
  padding: 10px;
}

.center-icon {
  background-color: #8bc392;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.center-icon img {
  width: 28px;
  height: 28px;
  filter: none;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 10px;
}
.main-grid,
.news-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight,
.news-card,
.news-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.highlight img,
.highlight iframe,
.news-card img,
.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.highlight div,
.news-item-content,
.news-card div {
  padding: 1rem;
}

.highlight h2,
.news-item h3 {
  margin: 0;
  font-size: 1.1em;
  color: #111;
  font-weight: 600;
  line-height: 1.3;
}

.news-item p {
  font-size: 0.95rem;
  color: #333;
}



.slideshow-container {
  position: relative;
  height: 260px;
  margin: 1.5em auto 0;
  max-width: 90%;
}

.slide {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
  width: 100%;
  text-decoration: none;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.progress-bar {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.progress-bar .bar {
  flex: 1;
  max-width: 80px;
  height: 4px;
  background: #ccc;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar .bar.fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #455b55;
  animation: fillBar 5s linear forwards;
}

@keyframes fillBar {
  from { width: 0%; }
  to { width: 100%; }
}

.termin-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 95%;
  margin: 2em auto;
}

.termin-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1em;
}

.termin-slide {
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
}

.termin-btn {
  background: #455b55;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 2;
}

.termin-btn:hover {
  background: #5f7b74;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.2em;
  }

  .highlight img,
  .highlight iframe,
  .slide img {
    height: 140px;
  }

  .termin-slide {
    min-width: 260px;
  }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(69, 91, 85, 0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(69, 91, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 91, 85, 0); }
}

.highlight.next-event {
  border: 2px solid #455b55;
  animation: pulse 2.5s infinite;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #455b55;
  color: white;
  padding: 1em;
}

.header-bar h1 {
  margin: 0;
  font-size: 1.3em;
  color: white;
}

.menu-icon {
  font-size: 1.5em;
  cursor: pointer;
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.notif-icon {
  font-size: 1.3em;
  text-decoration: none;
  color: white;
  position: relative;
}

.login-btn {
  background: white;
  color: #455b55;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9em;
}

.login-btn:hover {
  background: #e0ece9;
}

    .search-bar {
      padding: 1em;
      text-align: center;
    }

    .search-bar input {
      padding: 0.5em;
      width: 90%;
      max-width: 400px;
      border: 1px solid #ccc;
      border-radius: 30px;
      outline: none;
      font-size: 1em;
    }

    .category-bar {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5em;
      padding: 0 1em 1em;
    }

    .category-bar button {
      background: #e0ece9;
      border: none;
      border-radius: 20px;
      padding: 0.4em 1em;
      cursor: pointer;
      font-size: 0.9em;
      color: #333;
    }

    .category-bar button.active {
      background: #455b55;
      color: white;
    }

    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1em;
      padding: 1em;
    }

    .news-card {
      background: white;
      border-radius: 16px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      overflow: hidden;
      transition: transform 0.2s;
      text-decoration: none;
      color: inherit;
    }

    .news-card:hover {
      transform: translateY(-3px);
    }

    .news-card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
    }

    .news-card-content {
      padding: 1em;
    }

    .news-card-content h3 {
      margin: 0;
      font-size: 1em;
    }

    #pagination {
      text-align: center;
      padding: 1em;
    }

    #pagination button {
      margin: 0.3em;
      padding: 0.4em 0.8em;
      border: none;
      background: #ddd;
      border-radius: 6px;
      cursor: pointer;
    }

    #pagination button.active {
      background: #455b55;
      color: white;
    }

    @media (max-width: 600px) {
      .news-card img {
        height: 120px;
      }
      .search-bar input {
        font-size: 0.9em;
      }
    }
.wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  transform-origin: top left;
}

.table-container {
  margin-top: 30px;
  margin: 20px auto;
}
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.rounded-circle {
  border: 3px solid #fff;
}
.neo-button {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  cursor: pointer;
}
.profile_button {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
}
.info-flex {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
}
.info-flex div {
  text-align: center;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  background-color: #2b3a42;
  color: white;
}

.left-column {
  flex: 1;
  text-align: center;
}

.left-column .profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.right-column {
  flex: 2;
}
.membership-info p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.booked-areas {
  margin-top: 10px;
  font-size: 0.9rem;
}
.no-bullets {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.table-orange td {
  background-color: #FFE5B4;
  color: black;
}
.rounded-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.tile-item:hover {
  transform: translateY(-4px);
}
.tile-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.tile-item img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
  border-radius: 10px;
}

.tile-item span {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: #455b55;
}
/* Tabelle für Schonzeiten */
.table-schonzeiten {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.table-schonzeiten th,
.table-schonzeiten td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.table-schonzeiten td.frei {
  background-color: #28a745;
  color: white;
}
.table-schonzeiten td.gesperrt {
  background-color: #dc3545;
  color: white;
}
.allowed {
  background-color: #28a745; /* Grün */
  color: white;
}

.not-allowed {
  background-color: #dc3545; /* Rot */
  color: white;
}

.no-info {
  background-color: #6c757d; /* Grau */
  color: white;
}
/* Datumsauswahl oben */
.date-picker {
  text-align: center;
  margin-bottom: 20px;
}
.date-picker input[type="date"] {
  font-size: 1.2rem;
  padding: 8px;
}

/* Hinweis bei anderem Datum */
.warning {
  color: #d9534f;
  text-align: center;
  font-size: 1rem;
}

/* Zurücksetzen-Button */
.reset-button {
  background-color: #455b55;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 5px;
  margin-bottom: 10px;
}
.reset-button:hover {
  background-color: #5c6e6a;
}

.floating-reset {
  position: fixed;
  bottom: 90px; /* über der Menüleiste */
  right: 20px;
  background-color: #455b55;
  color: white;
  padding: 15px 25px;
  font-size: 18px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1001;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.container h1 {
  text-align: center;
  font-size: 1.8em;
  margin: 30px auto;
  padding: 0;
}
.floating-reset:hover {
  background-color: #5c6e6a;
  transform: translateY(-2px);
}
.category-wrapper {
  margin-bottom: 30px;
}

.category {
  width: 100%;
  background-color: #455b55;
  border-radius: 8px;
  border: 2px solid #5f7b74; /* Sichtbarer Rahmen */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  color: white;
}

.category-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: #455b55;
  color: white;
}

.category-header:hover {
  background-color: #5f7b74; /* Etwas helleres Grün beim Hover */
  color: white; /* Textfarbe bleibt weiß */
}

.category-header .icon {
  margin-right: 10px;
  font-size: 1.5em;
}

.category-header::after {
  content: '\25BC';
  font-size: 1.5em;
  transition: transform 0.3s ease;
  margin-left: 15px;
}
.content {
  display: none;
  padding: 15px;
  background-color: #ffffff;
  color: #333;
  border-top: 1px solid #ddd;
}
.content.open {
  display: block;
}
.content div {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.content div:last-child {
  border-bottom: none;
}
.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 20px;
  display: inline-block;
  border-radius: 8px;
  font-size: 18px;
}
.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.fish-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
}

.fish-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 4px;
}





.fish-card:hover {
  transform: scale(1.01);
}



.more-info-btn {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 0.9em;
  background-color: #455b55;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


.more-info-btn:hover {
  background-color: #5f7b74;
}

#detail-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 999;
  overflow: auto;
}

#detail-content-wrapper {
  max-width: 500px;
  margin: 60px auto;
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

#detail-image {
  width: 100%;
  height: auto;
  max-height: 350px; /* Vorher 200px – jetzt größer */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: contain;
}


.close-btn {
  background-color: #455b55;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.close-icon {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: black;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-icon:hover {
  color: #ccc;
}
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #455b55;
  color: white;
  z-index: 1000;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
  padding: 0 10px;
  position: relative;
}

.header-left .menu-icon {
  font-size: 20px;
  cursor: pointer;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
}

.header-title strong {
  font-weight: bold;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right .notif-icon {
  font-size: 18px;
  color: white;
  text-decoration: none;
}

.user-name {
  white-space: nowrap;
}

.login-btn {
  background: white;
  color: #455b55;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  text-decoration: none;
}

.subline {
  font-size: 12px;
  text-align: center;
  padding: 3px 10px;
  background-color: #455b55;
  color: #ddd;
}

.tile:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ===== Kompakt-Stil mit Prefix kmp- ===== */

.kmp-content {
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
}

.kmp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  justify-content: center;
}

.kmp-tile {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}
.kmp-tile:hover {
  transform: scale(1.03);
}

.kmp-tile img {
  max-width: 64px;
  height: auto;
  margin-bottom: 8px;
}

.kmp-tile span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* Kleine Bildschirme: etwas kleiner skalieren */
@media (max-width: 480px) {
  .kmp-tile img {
    max-width: 48px;
  }
  .kmp-tile span {
    font-size: 0.8rem;
  }
}


