/* ========================================
   GLOBAL: Basis-Layout, Schrift, Farben
   ======================================== */

  * {
    box-sizing: border-box;
  }

  html {
    margin: 0;
    padding: 0;
  }
  
  body {
    background-color: #303030;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #f9f2e8;
  }
  
  .container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: #282828;
  }

/* ===========================
   Grundlegende Browserkorrekturen
   =========================== */

  html {
    overflow-y: scroll;
  }
  
/* ========================================
     HEADER & NAVIGATION
     ======================================== */
  
  header {
    background-color: transparent;
    padding: 0.05rem;
    text-align: left;
  }
  
  .logo {
    width: 350px;
    height: auto;
    display: block;
    margin-top: 0.5rem; /* Logo etwas nach unten schieben */
  }
  
  .header-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 0;
    padding-bottom: 0.25rem;
  }
  
  .menu-toggle {
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #f9f2e8;
    cursor: pointer;
    padding: 0.5rem;
    align-self: center;
  }
  
  .hauptmenue {
    margin-top: 0.5 rem;
    display: none;
  }
  
  /* ========================================
     HAUPTBEREICH (Main Content)
     ======================================== */
  
  .slogan {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin-top: 0;
    margin-bottom: 0;
    color: #f9f2e8;
  }
  
  .intro {
    padding-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 75ch;
  }
  
  .hero-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .textblock {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #f9f2e8;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    max-width: 75ch;
    text-align: left;
  }

  body.impressum .textblock.schmal p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 720px;
  }

  .textblock.schmal p {
    text-indent: 0 !important;
  }

  .textblock h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .textblock p {
    max-width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .textblock p:last-child {
    margin-bottom: 0;
  }
  
  .textblock::after {
    content: "";
    display: block;
    height: 2rem;
  }
  
  .leerzeile {
    height: 1rem;
    display: block;
  }

  .veranstaltungen .disclaimer a{
    color: inherit;                 /* nicht das Standard-Blau, sondern Textfarbe */
    text-decoration: underline;
    text-underline-offset: .1em;
    text-decoration-thickness: .12em;
  }

   .veranstaltungen .disclaimer a:hover{ opacity:.9; 
  }


   
/* ========================================
   RESPONSIVE Design - mobiler Bereich
   ======================================== */

   @media (max-width: 767px) {
    .header-flex {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding-left: 1rem;
      padding-right: 1rem;
      padding-top: 0.5rem;
    }
  
    .menu-toggle {
      font-size: 2rem;
      padding: 0.5rem;
      margin: 0;
      border: none;
      background: none;
      color: #f9f2e8;
      cursor: pointer;
    }
  
    body.home .slogan {
      font-size: 1rem !important;
      margin-top: 1rem;
      margin-bottom: 0.5rem;
    }
  
    .leerzeile {
      height: 0;
    }
  
    .textblock {
      width: 100%;
      padding: 0;
      text-align: left;
      margin: 0;
      max-width: 100%;
      font-size: 1rem;
    }
  
    .textblock p {
      line-height: 1.6;
      text-align: left;
      margin-bottom: 1rem;
    }
  
    .textblock p:last-child {
      margin-bottom: 0;
    }
  
    main.container {
      padding-left: 1rem;
      padding-right: 1rem;
      max-width: 1040px;
      margin: 0 auto;
    }
  
    .logo {
      max-width: 60%;
      height: auto;
      margin: 0;
      padding: 0;
    }
  
    .footer-inner {
      padding: 1rem;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      margin: 0;
    }
  
    .footer-copy {
      padding: 0.5rem 0;
      font-size: 0.85rem;
      color: #aaa;
      text-align: left;
    }
  
    .footer-row-mobil {
      display: block;
      font-size: 0.75rem;
      color: #aaa;
      padding: 0.5rem 0 0 0;
      margin-left: 1rem;
      margin-right: 1rem;
      text-align: left;
    }
  
    .footer-row-mobil a {
      display: block;
      margin-bottom: 0.4rem;
      color: #ccc;
      text-decoration: none;
      font-size: inherit;
      text-align: left;
    }
  
    .footer-row-mobil a:hover {
      text-decoration: underline;
    }
  }

  /* =============================================
     RESPONSIVE Design - Desktop-Bereich ohne Glitch
     ============================================ */
  
    @media (min-width: 768px) {
      .hauptmenue {
        display: block;
        margin: 1rem auto 0 auto;
        width: 100%;
      }
    
      .hauptmenue ul {
        display: flex;
        flex-wrap: nowrap;          /* ❌ kein Umbruch */
        list-style: none;
        margin: 0 auto;
        padding: 0;
        justify-content: center;
        column-gap: 1rem;           /* Abstand zwischen Menüpunkten */
      }
    
      .header-flex {
        display: flex;
        flex-direction: column;
        align-items: flex-start;        /* ❗️Logo bleibt links */
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        width: 100%;
        box-sizing: border-box;         /* 🔧 Sicherstellen, dass Padding mitgerechnet wird */
      }
    
      .mobilmenue,
      .menu-toggle {
        display: none;
      }
    
      .hauptmenue li a {
        color: #f9f2e8;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 400;
        white-space: nowrap;            /* 🔧 Verhindert, dass Links umbrechen */
        padding: 0.25rem 0.5rem;  /* 🔧 vorher evtl. größer? → jetzt kompakter */
        border-radius: 0.25rem;    /* identisch zum hellen Skin */
      }
    
      .hauptmenue li a:hover {
        text-decoration: underline;
        color: #fff;
      }
    
      .textblock {
        font-size: 1.5rem;
        line-height: 1.3;
      }
    
      .leerzeile {
        height: 0rem;
      }
    }
  
    .hauptmenue ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 1.5rem; 
      list-style: none;
      margin: 0;
      padding: 0;
    }
    
    .hauptmenue li a {
      color: #f9f2e8;
      background-color: transparent;
      padding: 0.25rem 0.5rem;
      text-decoration: none;
      font-weight: 500;
      border-radius: 0.25rem;
      line-heigh: 1.1;
      transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    .hauptmenue li a:hover {
      background-color: #3a3a3a; /* leicht heller als der Header */
      color: #ffffff;
    }

/* ========================================
   AKTIVER MENÜPUNKT: Hervorhebung „Home“
   ======================================== */

   .hauptmenue a.active,
   .mobilmenue a.active {
     background-color: #87827b;
     color: #282828;
     font-weight: 700;
     border-radius: 0.25rem;     /* wie die normalen Pills */
     padding: 0.25rem 0.5rem;    /* identische Pill-Höhe in hell & dunkel */
     margin-left: 0.25rem;
     text-decoration: none;
   }
   
   /* ========================================
      IMPRESSUM-BLOCK
      ======================================== */
   
   .impressumblock {
     max-width: 720px;
     margin: 0 auto;
     padding-left: 2rem;
     padding-right: 2rem;
     font-size: 0.95rem;
     line-height: 1.5;
     color: #f9f2e8;
   }
   
   /* ========================================
      KONTAKTSEITE
      ======================================== */
   
   .kontaktbereich {
     padding: 2rem 0;
   }
   
   .kontaktbereich h1 {
     font-size: 2rem;
     line-height: 1.3;
     color: #f9f2e8;
     margin-bottom: 1.5rem;
   }
   
   .kontaktformular {
     display: block;
     width: 100%;
     max-width: none;
     margin: 0;
     padding: 0;
   }
   
   .formularreihe {
     display: flex;
     gap: 1.5em;
     flex-wrap: wrap;
   }
   
   .formularreihe .formfeld {
     flex: 1;
     min-width: 200px;
   }
   
   .formfeld {
     display: flex;
     flex-direction: column;
   }
   
   .formfeld label {
     margin-bottom: 0.3em;
     color: #dcb97d;
     font-size: 0.95rem;
   }
   
   .formfeld input,
   .formfeld textarea {
     width: 100%;
     padding: 0.6em;
     font-size: 1rem;
     border: none;
     background-color: #fff;
     color: #000;
   }
   
   .formfeld textarea {
     resize: vertical;
   }
   
   button.absenden {
     align-self: flex-start;
     background-color: #e7cba2;
     color: #000;
     border: none;
     padding: 0.6em 1.5em;
     font-size: 1.1rem;
     cursor: pointer;
     transition: background-color 0.3s ease;
   }
   
   button.absenden:hover {
     background-color: #dcb97d;
   }
   
   /* ========================================
      LAYOUTKORREKTUREN: Scroll & Fußzeile
      ======================================== */
   
   html {
     overflow-y: scroll;
   }
   
   body {
     display: flex;
     flex-direction: column;
     min-height: 100vh;
     overflow-y: scroll;
   }
   
   main {
     flex: 1;
   }

   footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
  }
  
  footer a:hover {
    color: #fff;
    background-color: #444;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  }

  a[href^="mailto:"] {
    color: #ccc;
    text-decoration: underline;
    font-size: 1.1rem;
  }
  
  a[href^="mailto:"]:hover {
    color: #fff;
    background-color: #444;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  }

/* ========================================
   HELLER SKIN – DESIGNVORSCHAU
   ======================================== */

   body.hell {
    background-color: #303030; /* Margins */
    color: #282828;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Hintergrund Mittelteil */
  body.hell .container,
  body.hell main,
  body.hell .textblock,
  body.hell .intro,
  body.hell .startbild {
    background-color: #f9f2e8;
    color: #282828;
  }
  
  /* Textblock */
  body.hell .textblock,
  body.hell .textblock p {
    font-weight: 600;
    line-height: 1.25;
    color: #282828;
    letter-spacing: -0.5;
  }
  
  /* Slogan */
  body.hell .slogan {
    font-size: 2.5rem;
    font-weight: 600;
    color: #282828;
    letter-spacing: -0.2;
  }
  
  /* Überschriften */
  body.hell h1,
  body.hell h2,
  body.hell h3 {
    color: #282828;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  body.hell h1 { font-size: 2rem; }
  body.hell h2 { font-size: 1.5rem; }
  body.hell h3 { font-size: 1.25rem; }
  
  /* Links im Fließtext */
  body.hell a {
    color: #444;
    text-decoration: underline;
  }
  
  body.hell a:hover {
    color: #000;
    background-color: #e0d8cc;
    border-radius: 0.25rem;
    padding: 0.15rem 0.3rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  /* Logo-Wechsel */
  body.hell .logo {
    content: url("bilder/logo-hell.png");
  }
  
  /* Hauptmenü */
  body.hell .hauptmenue a {
    color: #282828;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  body.hell .hauptmenue ul {
    gap: 1.4rem;
    justify-content: flex-start; /* Home linksbündig unter dem Logo */
  }

  body.hell .hauptmenue a:hover {
    background-color: #e0d8cc;
    color: #000;
  }

  /* Dunkler Skin: Pill-Höhe minimal größer */
  body:not(.hell) .hauptmenue a { padding: 0.35rem 0.5rem; }        /* vorher 0.25rem */
  body:not(.hell) .hauptmenue a.active { padding: 0.35rem 0.5rem; }  /* aktiv gleichziehen */
  
/* ========================================
   HELLER SKIN – FOOTER (HELL, ZENTRIERT)
   ======================================== */

   body.hell .footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.25rem 0;
    background-color: #f9f2e8;  /* heller Mittelteil */
  }
  
  body.hell .footer-copy,
  body.hell .footer-links a {
    color: #282828;
    font-weight: 600;
    text-decoration: none;
  }
  
  body.hell .footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  body.hell .footer-links a:hover {
    color: #000;
    background-color: #e0d8cc;
    text-decoration: underline;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
  }

/* ========================================
   Theme-Umschalter (☀ / 🌙 oben rechts)
   ======================================== */

/* Standard: dunkle Version mit ☀ */
.themaumschalter {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.2rem;
  background-color: #222;
  color: #ccc;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  z-index: 1000;
  line-height: 1;
}

.themaumschalter a {
  color: inherit;
  text-decoration: none;
}

.themaumschalter a:hover {
  background-color: #444;
  color: #fff;
}

/* Heller Skin: dunkler Button für 🌙 */
body.hell .themaumschalter {
  background-color: #282828;
  color: #f9f2e8;
}

body.hell .themaumschalter a:hover {
  background-color: #444;
  color: #fff;
}

/* Mobil ausblenden */
@media (max-width: 767px) {
  .themaumschalter {
    display: none;
  }
}

/* Footer-Trennlinie im Standard (dunkel) */
.footer-inner {
  border-top: 1px solid #ccc;
}

/* Heller Skin: dunkle Linie */
body.hell .footer-inner {
  border-top: 1px solid #222;
}
.hauptmenue {
  margin-bottom: 1rem;
}

/* ========================================
   Bildergalerie zu Präsentationszwecken
   ======================================== */

.galerie .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* exakt 3 Spalten */
  gap: 1rem;
  margin-top: 1rem;
}

.galerie .grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.galerie .grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galerie .grid a:hover img {
  transform: scale(1.05);
}

  .dank-linie {
    border: none;
    border-top: 1px solid #666;
    margin: 2.5rem 0 1.2rem;
    width: 100%;
  }
  
  .dank-text {
    font-size: 0.9rem;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    max-width: 880px;
  }

  .header-linie {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    border-bottom: 1px solid #69625a;
  }

  .footer-linie {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    border-top: 1px solid #69625a;
  }

  .beschreibung a {
    color: #5ec7ff;
    text-decoration: underline;
  }
  
  .beschreibung a:hover {
    color: #ffffff;
  }

  body {
    padding-top: 0.1rem;
  }

/* Einfügung von "neu" über neu hochgeladenen Fotos über der Kachel */

.mitglied-kachel {
  position: relative;
}

.neu-badge {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  background-color: #e00;
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;
}

/* Lightbox-Hintergrund schwarz */

.glightbox-container {
  background-color: #000 !important;
}

/* Alignment des Smarthone-Layouts */
@media (max-width: 767px) {
  h1 {
    font-size: 1.7rem;
    margin-top: -1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }
}

@media (max-width: 767px) {
  body.mitglieder h1 {
    margin-top: -5rem;
  }
}

body.mitglieder main.container.mitglieder {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.mitglieder h1 {
  margin-top: -0.35rem !important;
}

@media (max-width: 780px) {
  .mitgliederbereich {
    flex-direction: column;
    gap: 1rem;
  }

  .linke-spalte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .mitglied-kachel {
    width: 100%;
  }


  .rechte-spalte {
    width: 60%;
    margin: 0 auto;
    background-color: #303030; /* oder Dein gewähltes hellgrau */
    padding: 1rem;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
  }

  .mitglied-infos img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }
}

@media screen and (min-width: 781px) {
  body.ueber-uns .intro .slogan {
    margin-top: 0.7rem;
    padding-left: 0.1rem;
  }
}

@media screen and (min-width: 781px) {
  body.ueber-uns main {
    padding-left: 1.1rem;
  }
}

@media screen and (min-width: 781px) {
  body.mitglieder main.container.mitglieder {
    padding-top: 2rem !important;
    margin-top: 2px !important;
  }
}

/* Definition für den verborgenen h1- Hinweis auf der Startseite */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Smartphone-Korrektur für Seiten ohne Banner
   ======================================== */
@media (max-width: 767px) {
  main.container {
    padding-top: 2.2rem;
  }
}