/* Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #1e1e1e;
  color: #f5f5f5;
}

:root {
  --bg: #2e2e2e;
  --text: #f5f5f5;
  --accent: #81c784;
  --nav-bg: rgba(30,30,30,0.8);
  --footer-bg: #1e1e1e;
  --accent: #8FBC8F;
  --des-color: #D2D0D0;
}

/* Header */
/* ==== Aktuelles – zentriert + Card-Design (robust für altes & neues Markup) ==== */

/* Panel-Hintergrund & Abstand */
.aktuelles{
  background: #2e2e2e;
  padding: 56px 0;
}
.emoji-bubble{
  width: 44px; height: 44px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

/* Titel mittig */
.aktuelles > h2,
.section-title{
  text-align: center;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin: 0 0 1.25rem 0;
}

/* Container mittig (falls keine .container-Hülle existiert) */
#aktuelles-list{
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Grid: unterstützt #aktuelles-list.cards (alt) UND .aktuelles-grid (neu) */
#aktuelles-list.cards,
.aktuelles-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card-Styles: unterstützen .card (alt) UND .aktuelles-card (neu) */
#aktuelles-list .card,
.aktuelles-card{
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  text-align: center;
  color: #f5f5f5;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.aktuelles-card::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius:16px;
  pointer-events:none;
  opacity:.35;
}
.v-warning{ border-color:#f59e0b; box-shadow: 0 6px 22px rgba(245,158,11,.10); }
.v-warning .emoji-bubble{ background: rgba(245,158,11,.12); box-shadow: inset 0 0 0 1px rgba(245,158,11,.4); }
.v-warning::after{ box-shadow: 0 0 0 1px rgba(245,158,11,.45); }

.v-info{ border-color:#3b82f6; box-shadow: 0 6px 22px rgba(59,130,246,.10); }
.v-info .emoji-bubble{ background: rgba(59,130,246,.12); box-shadow: inset 0 0 0 1px rgba(59,130,246,.4); }
.v-info::after{ box-shadow: 0 0 0 1px rgba(59,130,246,.45); }

.v-success{ border-color:#22c55e; box-shadow: 0 6px 22px rgba(34,197,94,.10); }
.v-success .emoji-bubble{ background: rgba(34,197,94,.12); box-shadow: inset 0 0 0 1px rgba(34,197,94,.4); }
.v-success::after{ box-shadow: 0 0 0 1px rgba(34,197,94,.45); }

.v-event{ border-color:#a855f7; box-shadow: 0 6px 22px rgba(168,85,247,.10); }
.v-event .emoji-bubble{ background: rgba(168,85,247,.12); box-shadow: inset 0 0 0 1px rgba(168,85,247,.4); }
.v-event::after{ box-shadow: 0 0 0 1px rgba(168,85,247,.45); }

.v-neutral{ border-color: var(--bd); }
#aktuelles-list .card:hover,
.aktuelles-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* Typografie in den Cards (funktioniert für beide Markups) */
#aktuelles-list .card h3,
.aktuelles-card h3{ margin: 0 0 .35rem 0; font-size: 1.1rem; }

#aktuelles-list .meta,
.aktuelles-card .meta{ color: var(--muted, #b0b6bf); font-size: .95rem; margin-bottom: .5rem; }

#aktuelles-list .text,
.aktuelles-card .text{ line-height: 1.6; white-space: pre-wrap; }

/* Badge „Fixiert“ */
.badge{
  display:inline-block;
  border:1px solid var(--accent, #8FBC8F);
  color:var(--accent, #8FBC8F);
  border-radius:999px;
  padding:.1rem .55rem;
  font-size:.8rem;
  margin-left:.35rem;
}

/* Wenn nur 1 Card: automatisch schmaler */
#aktuelles-list.cards:has(.card:nth-child(1):last-child),
.aktuelles-grid:has(.aktuelles-card:nth-child(1):last-child){
  max-width: 720px;
  margin-inline: auto;
}
.section-divider {
  width: 1px;
  height: 1px;
  margin: 0 auto 1px;
  border: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0)
  );
  border-radius: 2px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e;
  padding: 1.5rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
}

.left {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 1rem;
}

.site-title {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: white;
}

.nav {
  display: flex;
  gap: 2rem; /* sorgt für gleichen Abstand zwischen Links */
}

.nav-link {
  position: relative;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #81c784;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 50%; /* Halb so breit wie der Link */
  height: 3px;
  background-color: #81c784;
  border-radius: 2px;

  transform: translateX(-50%) scaleX(0);  /* zentriert & unsichtbar */
  transform-origin: center;
  animation: underlineIn 0.6s ease forwards;
}

@keyframes underlineIn {
  to {
    transform: translateX(-50%) scaleX(1); /* sichtbar & zentriert */
  }
}
/* Burger Button (nur auf kleinen Geräten sichtbar) */
.burger {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--text);
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .burger {
    display: block;
    position: absolute;
    right: 2rem;
    top: 1.5rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: #1e1e1e; /* nicht durchsichtig */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .nav.open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding: 1rem 2rem;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Grüner Strich bei aktivem Link deaktivieren */
  .nav-link.active::after {
    display: none;
  }
}@media (max-width: 1024px) {
  .nav {
    text-align: center;
  }
}

/* Hero */
.hero {
  height: 100vh;
  background: url('img/background.png') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-text {
  font-size: 3rem;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
  animation: slideFadeIn 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(-30px);
  margin-bottom: 7rem; /* hebt den Text visuell an */
}


@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scroll-down {
  margin-top: 2rem;
  font-size: 2rem;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
  animation: bounce 2s infinite;
  text-decoration: none;
}

/* Geschichte */
.geschichte {
  padding: 5rem 2rem;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.geschichte h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}

.timeline {
  max-width: 800px;
  margin: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.entry {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  position: relative;
}

.entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}

.year {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  display: block;
}

.entry p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;

}
.entry {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem; /* etwas mehr Abstand für die perfekte Ausrichtung */
  position: relative;
}

.entry::before {
  content: '';
  position: absolute;
  left: -8px; /* perfekt zentriert zur Linie */
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(129, 199, 132, 0.6);
  transition: box-shadow 0.3s ease;
}

.entry.visible::before {
  animation: pulse 1s ease-out;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(129, 199, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(129, 199, 132, 0);
  }
}

.entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Galerie */
.galerie {
  overflow: hidden;
  padding: 0;
  background: none;
}

.slider {
  display: flex;
  width: max-content;
  animation: slideshow 40s linear infinite;
}

.slider img {
  height: 300px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}

.slider img:hover {
  transform: scale(1.05);
}

@keyframes slideshow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
  background: var(--footer-bg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--des-color);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: 'Inter', sans-serif;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem; /* vorher 1rem → reduziert den vertikalen Abstand */
  font-family: 'Inter', sans-serif;
}

.footer-logo {
  height: 45px;
  margin-bottom: 0.2rem; /* vorher 0.5rem → kleinerer Abstand zum Text */
}

.footer-name {
  font-size: 1.1rem;
  margin: 0.2rem 0;
}

.footer p {
  margin: 0.2rem 0; /* reduziert Lücken zwischen Adress-/Kontaktzeilen */
}

.footer-links a {
  color: var(--des-color);          /* normale Textfarbe */
  text-decoration: none;       /* kein Unterstrich */
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.footer-links a:hover {
  color: var(--accent);        /* grün beim Hover */
}

.copy {
  margin-top: 0.8rem; /* weniger Abstand zum unteren Rand */
  font-size: 0.85rem;
  color: #999;
}

/*Pachten*/

/* Hero-Pachten */
.hero-pachten {
  height: 100vh;
  background: url('img/background.png') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 0;
}

.hero-pachten .hero-text {
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  animation: fadeIn 2s ease;
  position: relative;
  z-index: 1;
}

.hero-pachten h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero-pachten .hero-sub {
  font-size: 1.2rem;
  color: #ccc;
}

/* Reuse bestehendes fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pachten-content {
  background: var(--bg);
  color: var(--text);
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
}

.text-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.text-wrapper h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.text-wrapper ul {
  list-style: none;
  padding-left: 1rem;
}

.text-wrapper ul li::before {
  content: "• ";
  color: var(--accent);
  margin-right: 0.5rem;
}

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

.text-wrapper a:hover {
  text-decoration: underline;
}

.kontakt-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
/*Vermietung*/

.hero-vermietung {
  height: 100vh;
  background: url('img/vereinsheim.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-vermietung .hero-text {
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-vermietung h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #ddd;
}

.vermietung-content {
  background: var(--bg);
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.text-wrapper {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.text-wrapper ul {
  list-style: none;
  padding-left: 1rem;
}

.text-wrapper ul li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.5rem;
}

.kontakt-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

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

.kontakt-box a:hover {
  text-decoration: underline;
}

/*Vorstand*/

.vorstand-content {
  background: var(--bg);
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.text-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.person h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.person p {
  font-size: 1rem;
  margin: 0.2rem 0;
}

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

.person a:hover {
  text-decoration: underline;
}
/*Impressum*/

.impressum-content {
  background: var(--bg);
  color: var(--text);
  padding: 4rem 2rem;
  font-family: 'Inter', sans-serif;
}

.impressum-content .text-wrapper {
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.impressum-content a:hover {
  text-decoration: underline;
}
/* Navbar: nur der Seitentitel auf Handy kleiner & einzeilig */
@media (max-width: 768px) {
  .site-title{
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* falls der Platz extrem knapp ist */
  }
}

@media (max-width: 380px) {
  .site-title{
    font-size: 0.9rem; /* noch ein Ticken kleiner für sehr kleine Geräte */
  }
}
/* Logo auf Smartphones kleiner */
@media (max-width: 768px) {
  .logo {
    height: 32px;   /* vorher 40px */
    width: auto;    /* Seitenverhältnis behalten */
  }
}

@media (max-width: 420px) {
  .logo { height: 28px; }
}

@media (max-width: 360px) {
  .logo { height: 26px; }
}
/* Hero-Bild: Mobile Fix gegen Verzerrung/„Zoom“ */
@media (max-width: 768px) {
  .hero{
    /* fixed-Hintergrund auf iOS/Android problematisch → abschalten */
    background-attachment: scroll;

    /* nicht strecken, sondern schön zuschneiden */
    background-size: cover;

    /* den interessanten Bereich ins Sichtfeld schieben (anpassen nach Geschmack) */
    background-position: center 25%;

    /* bessere Höhe auf Mobile: berücksichtigt die Browser-Leisten */
    height: 80svh;     /* statt 100vh */
    min-height: 480px; /* optional: Mindesthöhe */
  }
}

/* noch kleiner: den Bildausschnitt etwas höher setzen */
@media (max-width: 420px) {
  .hero{ background-position: center 15%; height: 75svh; }
}
/* --- Admin-Login Link: Desktop = Icon, Mobile = Text --- */
/* Baseline: beides aus, damit alte Regeln sicher überstimmt werden */
.nav .nav-link.nav-login .login-icon,
.nav .nav-link.nav-login .login-label{
  display: none !important;
}

/* Mobile/Tablet (≤1024px): NUR Text zeigen */
@media (max-width: 1024px){
  .nav .nav-link.nav-login .login-label{ display: inline !important; }
  .nav .nav-link.nav-login .login-icon{ display: none !important; }
}

/* Desktop (≥1025px): NUR Icon zeigen */
@media (min-width: 1025px){
  .nav .nav-link.nav-login .login-icon{ display: inline-block !important; }
  .nav .nav-link.nav-login .login-label{ display: none !important; }
}

/* Icon weiß und kompakt */
.nav .nav-link.nav-login{
  color:#fff !important;         /* SVG/PNG wird weiß via currentColor */
  padding-inline:.25rem;
  margin-left:auto;              /* optional: ganz rechts */
}
.nav .nav-link.nav-login .login-icon{
  width:22px; height:22px;       /* einheitliche Größe */
  vertical-align:middle;
}
/* --- Login: flach ohne dunkle Karte, nur auf dem helleren Grau --- */

/* linke spalte ohne zusätzlichen dunklen verlauf */
.login-left{
  background: var(--bg) !important; /* gleiche hintergrundfarbe wie seite */
}

/* "karte" flachziehen */
.login-card{
  background: transparent !important;
  border: 0 !important;          /* kein rand um die karte */
  box-shadow: none !important;    /* kein schatten */
  padding: 0 !important;          /* kein extra innenabstand */
}

/* abstände kompakter halten */
.login-card h1{ margin: .2rem 0 .5rem; }
.lead{ margin-bottom: .8rem; }

/* input/btn schlanker + auf hellem grau */
.login-form{ gap: .7rem; }

.login-form input{
  padding: .7rem .85rem;                 /* weniger "dick" */
  border-radius: 10px;
  background: rgba(255,255,255,.06);     /* helleres grau */
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
}

.login-form button{
  padding: .75rem 1rem;                  /* schlanker button */
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0b130b;
}

.help-row{ margin-top:.4rem; }
