/* ---------------- GRUNDLAYOUT ---------------- */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #f8f9fa, #dcdfe3);
}

.page-wrapper {
  background: linear-gradient(to bottom right, #f8f9fa, #dcdfe3);
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* sorgt dafür, dass der Wrapper mind. Bildschirmhöhe hat */
}

@supports (height: 100dvh) {
  .page-wrapper {
    min-height: 100dvh; /* nutzt die wirklich sichtbare Höhe */
  }
}

main {
  flex: 1; /* schiebt den Footer nach unten */
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 500px;
  padding: 1rem 1rem 9rem;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: white;
  text-align: center;
}

/* Hintergrundbild nur anzeigen, wenn NICHT flugplatz-seite */
body.unterseite:not(.flugplatz-seite) .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('bilder/tommy_87.jpg') center center / cover no-repeat;
  z-index: 0;
}

body.unterseite:not(.flugplatz-seite) .hero {
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1rem;
  width: 100%;
  text-align: center;
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-align: center;
  display: inline-block;
  animation: rainbow-curve 20s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes rainbow-curve {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.2, 0.8);
  }
  100% {
    transform: scale(1, 1);
  }
}

.hero-content p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.6rem;
  margin-top: -15px;
}

/* ---------------- LOGO ---------------- */
.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* ---------------- NAVIGATION ---------------- */
.navbar {
  width: 100%;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;          /* Gleich wie nav-menu */
  padding: 0 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;          /* Abstand Logo–Start == Start–Verein usw. */
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: visible;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;

  display: inline-block;                 /* wichtig gegen Layoutspringen */
  transition: color 0.25s ease, 
              transform 0.25s ease;      /* Text-Animation */
  transform-origin: center;              /* wächst zur Mitte */
}

.nav-menu li a:hover {
  color: #007acc;
  border-bottom: 2px solid #007acc;
  transform: scale(1.16);                /* Wort wird größer */
}

/* ---------------- EVENT ---------------- */
.next-event {
  background-color: #fff4d6;
  color: #333;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  border-bottom: 1px solid #e0c070;
  line-height: 1.2;
  margin: 0;
}

.next-event p {
  margin: 0;
}

.next-event strong {
  color: #b33200;
}

/* ---------------- INHALTSBEREICHE ---------------- */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.intro {
  max-width: 1600px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
}

.intro p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.teaser {
  text-decoration: none;

  cursor: pointer;
  transform: translate3d(0, 0, 0); /* GPU, Basiszustand */
  width: 500px;
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  padding: 1.5rem;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);

  /* smooth + etwas länger */
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.teaser h3,
.teaser p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.teaser a {
  margin-top: auto;
  color: #ffee99;
  text-decoration: none;
  font-weight: bold;
}

.teaser:hover {
  transform: translate3d(0, -10px, 0) scale(1.03); /* höher + leicht größer */
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.teaser a:hover {
  text-decoration: underline;
}

.teaser-link-text {
  margin-top: auto;
  color: #ffee99;         /* Gold */
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.teaser-link-text:hover {
  text-decoration: underline;
}


.teaser.flugplatz-bg {
  background-image: url('bilder/flugplatz_rieplos001.jpg');
}

.teaser.vereinsmodelle-bg {
  background-image: url('bilder/30_FMSC.jpg');
}

.teaser.flugplatz-bg,
.teaser.vereinsmodelle-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.teaser.veranstaltung-bg {
  background-image: url('bilder/Bärenpo_046.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.25));
  border-radius: 10px;
  z-index: 1;
}

/* ---------------- NEWS & LINKS ---------------- */
.news {
  background: #fff7e6;
  padding: 1rem;
  text-align: center;
  border-left: 4px solid #ffa500;
}

.weiter-link {
  display: inline-block;
  margin-top: 1rem;
  color: #007acc;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.weiter-link:hover {
  color: #005b99;
  text-decoration: underline;
}

.download-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #007acc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-link:hover {
  background-color: #005b99;
}

/* ---------------- PLATZVORSTELLUNG ---------------- */
.platzvorstellung {
  text-align: center;
  margin-top: 3rem;
}

.platz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.platz-bild {
  max-width: 30%;
  width: 100%;
}

.platz-bild img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.platz-bild p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #555;
}

/* ---------------- FEUER VERBOTEN ---------------- */
.platz-hinweis.mit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff4f4;
  border: 2px solid #cc0000;
  border-radius: 8px;
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.verbot-icon {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.platz-hinweis.mit-icon p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #600;
}

/* ---------------- TERMINE ---------------- */
.termin-tabelle {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.termin-tabelle td {
  vertical-align: top;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #ddd;
}

.termin-tabelle tr:nth-child(even) {
  background: #f9f9f9;
}

.termin-tabelle tr:hover {
  background-color: #fffbe6;
  transition: background-color 0.3s ease;
}

.termin-vergangen {
  background-color: #ffeaea;
  color: #800000;
}

.termin-naechster {
  background-color: #fff4d6;
  color: #8a4500;
  font-weight: bold;
}

.termin-zukunft {
  background-color: #eaffea;
  color: #006600;
}

.termin-vergangen td {
  background-color: #ffeaea;
  color: #800000;
}

.termin-naechster td {
  background-color: #fff4d6;
  color: #444;
  font-weight: bold;
}

.termin-zukunft td {
  background-color: #eaffea;
  color: #006600;
}

.termin-legende a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin: 0 0.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.legende-vergangen { background: #ffeaea; color: #800000; }
.legende-naechster { background: #fff4d6; color: #8a4500; }
.legende-zukunft { background: #eaffea; color: #006600; }

.termin-legende a:hover {
  opacity: 0.8;
}

/* ---------------- ANFAHRT ---------------- */
.anfahrt-zum-platz {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
}

.anfahrt-zum-platz h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.anfahrt-zum-platz p {
  max-width: 800px;
  margin: 0 auto 1.2rem;
}

.anfahrt-zum-platz a.weiter-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.map-container-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.map-container {
  width: 100%;
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- KONTAKT ---------------- */
.kontakt-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  max-width: 600px;
  width: 90%;
  box-sizing: border-box;
}

.kontakt-text {
  flex: 1;
}

.kontakt-person img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 20px;
  max-width: 100px;
}

.kontakt-person h3,
.kontakt-person p {
  margin: 0;
}

.kontakt-person a {
  color: #0077cc;
  text-decoration: none;
}

.kontakt-person a:hover {
  text-decoration: underline;
}

/* ---------------- YOUTUBE ---------------- */
.youtube-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 5;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.youtube-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.youtube-icon:hover {
  opacity: 1;
}

.youtube-content {
  padding: 2rem;
  background: #f4f4f4;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.channel-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.channel-card iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
}

.youtube-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: bold;
  color: #cc0000;
}

.channel-link img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.channel-name {
  font-size: 1rem;
  color: #222;
}

.video-blocked {
  background-color: #f4f4f4;
  padding: 1rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

/* ---------------- DOKUMENTE ---------------- */
.dokumente-sektion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

.dokumente-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dokument-link {
  margin: 0 auto;
  display: inline-block;
  min-width: 200px;
  padding: 0.8rem 1.2rem;
  background-color: #f4f4f4;
  color: #222;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.dokument-link:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}

/* ---------------- COOKIE BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  box-sizing: border-box;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: #ffee99;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cookie-buttons button {
  background: #fff;
  color: #222;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-buttons button:hover {
  background: #eee;
}

#accept-cookies {
  background-color: #4caf50;
  color: white;
}

#decline-cookies {
  background-color: #f44336;
  color: white;
}

/* ---------------- FOOTER ---------------- */
footer {
  background-color: #000;
  color: #ccc;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.65rem;
  line-height: 1.2;
  position: relative; /* für Schloss-Icon */
  margin-top: auto;   /* Footer an das Ende im Flex-Container */
}

footer a {
  color: #ffee99;
  text-decoration: underline;
  font-weight: 500;
  font-size: inherit;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-top {
  margin-bottom: 0.3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: inherit;
}

.footer-links .sep {
  color: #ccc;
}

/* Admin-Lock Icon im Footer */
footer::before {
  content: "🔒";
  position: absolute;
  left: 15px;
  top: 12px;
  font-size: 22px;
  opacity: 0.8;
  cursor: pointer;
}

footer::before:hover {
  opacity: 1;
}

/* ---------------- ZURÜCK-LINK ---------------- */
.zurueck-link {
  display: flex;
  justify-content: center;
  margin: 3rem auto 2rem;
}

.zurueck-link a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #eee;
  color: #333;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.zurueck-link a:hover {
  background-color: #ddd;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ---------------- DATENSCHUTZ ---------------- */
#datenschutz {
  text-align: left;
  padding: 2rem 1rem;
  line-height: 1.6;
  font-size: 1rem;
}

#datenschutz h2, 
#datenschutz h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

#datenschutz p {
  margin-bottom: 1rem;
}

#datenschutz ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

#datenschutz li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

#datenschutz a {
  color: #007acc;
  text-decoration: underline;
}

#datenschutz a:hover {
  color: #005b99;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .platz-grid {
    flex-direction: column;
    align-items: center;
  }

  .platz-bild {
    max-width: 85%;
  }

  .platz-bild img {
    width: 100%;
    height: auto;
  }

  .platz-bild p {
    font-size: 1rem;
  }

  .anfahrt-zum-platz {
    padding: 1rem;
    font-size: 1rem;
  }

  .anfahrt-zum-platz h2 {
    font-size: 1.4rem;
  }

  /* ------- NAV MOBILE ------- */
  .nav-container {
    flex-wrap: nowrap;          /* LOGO + NAV IMMER 1 REIHE */
    padding: 0 0.4rem;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;                 /* Abstand: Logo → Start */
  }

  .nav-menu {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;          /* WICHTIG: NICHT UMBRECHEN */
    justify-content: space-between;
    gap: 0.3rem;                 /* Gleichmäßige Abstände */
    overflow-x: auto;           /* falls es eng wird → horizontal scroll */
    scrollbar-width: none;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-menu li {
    flex: 0 0 auto;
  }

  .nav-menu li a {
    font-size: 0.55rem;         /* etwas kleiner */
    padding: 0.25rem 0.15rem;   /* weniger Padding */
    white-space: nowrap;        /* darf NICHT umbrechen */
    display: inline-block;
  }

  .kontakt-person {
    flex-direction: column;
    text-align: center;
  }

  .kontakt-person img {
    margin: 20px 0 0;
  }

  .hero {
    min-height: 200px;
    padding: 0.5rem 1rem 2rem;
  }

  .hero::before {
    background-position: center bottom;
  }

  .hero-content h1 {
    font-size: 0.6rem;
  }

  .hero-content p {
    font-size: 0.6rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 200px;
    padding: 0.5rem 1rem 2rem;
  }

  .hero::before {
    background-position: center bottom;
  }

  .hero-content h1 {
    font-size: 0.6rem;
  }

  .hero-content p {
    font-size: 0.6rem;
  }
  
  .nav-menu li a {
    font-size: 0.55rem;
  }

  .termin-tabelle td {
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid #ddd;
  }

  .termin-tabelle tr {
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
  }

  .termin-tabelle {
    border-collapse: separate;
    border-spacing: 0;
  }

  .anfahrt-zum-platz {
    font-size: 1.05rem;
    padding: 1rem;
  }

  .anfahrt-zum-platz h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  footer {
    font-size: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .hero {
    min-height: 200px;
    padding: 0.5rem 1rem 2rem;
  }

  .hero::before {
    background-position: center bottom;
  }

  .hero-content h1 {
    font-size: 1rem;
  }

  .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 0.6rem;
    margin-top: -2px;
  }

  .termin-legende {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .termin-legende span {
    display: block;
    width: 100%;
    max-width: 250px;
  }

  .footer-top {
    margin-bottom: 0.4rem;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .cookie-banner {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .cookie-banner p {
    flex: unset;
  }

  .cookie-buttons {
    justify-content: center;
  }

  #datenschutz {
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
  }

  #datenschutz h2 {
    font-size: 1.3rem;
  }

  #datenschutz h3 {
    font-size: 1.1rem;
  }
}
  
.weather-widget {
  position: relative;
  max-width: 420px;
  margin: 40px auto 10px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.weather-widget h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.weather-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.weather-item {
  flex: 1 1 100px;
}

.weather-item .label {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.weather-item .value {
  font-size: 1.2rem;
  font-weight: 600;
}

.weather-item .unit {
  font-size: 0.9rem;
  color: #555;
}

.weather-updated {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #777;
}

.dir-long {
  font-size: 0.75rem;
  font-weight: normal;
  color: #666;
  display: block;
  margin-top: 2px;
}
 }