/* =========================================
   GLOBAL RESET & VARIABLEN
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1f3b57;      /* Vereinsblau */
    --accent: #4F9C52;       /* Vereinsgrün */
    --accent-light: #e8f1ea; /* zartes Grün für Dropdown */
    --accent-bg: #f3f8f4;    /* zartes Grün für Navigation */
    --bg: #f5f5f5;
    --text: #222;
}

/* =========================================
   BODY & TYPOGRAFIE
========================================= */

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 0.6rem;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; color: #2f6fa3; }
h3 { font-size: 20px; }

/* =========================================
   BANNER
========================================= */

.banner {
    background: var(--bg);
    padding: 0.8rem 1rem;
    text-align: center;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.banner-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.25rem;
}

.banner h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--accent);
}

.banner-subtitle {
    font-size: 1rem;
    color: #444;
}

@media (max-width: 768px) {
.banner {
    display: block;
        justify-content: center;
        align-items: center;
        width: 100%;
}

}


/* =========================================
   MODERNE NAVIGATION – passend zum Footer
========================================= */
/* Desktop – Navigation zentriert */
.main-nav {
    display: flex;
    justify-content: center; /* NAVIGATION ZENTRIEREN */
    align-items: center;
    flex-direction: column; /* Toggle + Menü untereinander */
    background: linear-gradient(180deg, #f3f8f4 0%, #e8f1ea 100%);
    border-bottom: 2px solid #d7e5d9;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Schwebe-Effekt */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);

    transition: background 0.3s ease, box-shadow 0.3s ease;
}

main ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
}

/* DESKTOP – Navigation zentriert */
@media (min-width: 769px) {
    .main-nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu {
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        gap: 1.2rem;
        width: auto;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
}

.menu,
.menu li {
    list-style: none;
    }


.menu > li {
    position: relative;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1f3b57;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s ease;
}

/* Hover-Effekt passend zum Footer */
.menu a:hover {
    background: #dce9df;
    color: #4F9C52;
    transform: translateY(-2px);
}

/* Aktiver Menüpunkt */
.menu a[aria-current="page"] {
    font-weight: 700;
    color: #4F9C52;
    border-bottom: 3px solid #4F9C52;
}

/* =========================================
   DROPDOWN – modern & ruhig
========================================= */

/* Grundzustand */
.submenu {
    display: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    position: absolute;
    background: white;
    padding: 0.5rem 0;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.submenu { min-width: 150px; }

/* Sichtbar */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.submenu a {
    position: relative; }

.submenu a::after {
    content: ""; position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #4F9C52;
    transition: width 0.25s ease; }
.submenu a:hover::after {
            width: 100%; }


/* =========================================
   MOBILE NAVIGATION
========================================= */

.menu-toggle {
    display: none;
    background: #1f3b57;
    color: white;
    padding: 1rem;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

@media (max-width: 768px) {

.menu-toggle {
        display: block;
        align-self: flex-start;
    }

    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #f3f8f4;
        border-bottom: 2px solid #d7e5d9;
        padding: 1rem;
    }

    .menu.show {
        display: flex;
    }

    .submenu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        border: none;
        background: transparent;
        padding-left: 1rem;
    }

    .submenu a {
        padding-left: 0.5rem;
    }
}


/* Menü-Links ohne Pfeile */
.menu > li > a {
    padding-left: 1.2rem; /* wieder normal */ }



/* =========================================
   BREADCRUMB
========================================= */
.breadcrumb {
    max-width: 1040px;              /* exakt wie .content */
    margin: 1rem auto 1.5rem auto;  /* harmonische Abstände */
    padding: 0.8rem 1rem;

    background: #f3f8f4;            /* zartes Grün wie Navigation */
    border: 1px solid #d7e5d9;      /* dezente Linie */
    border-radius: 6px;

    font-size: 0.9rem;
    color: #1f3b57;

    display: flex;
    align-items: center;
    gap: 0.4rem;

    flex-wrap: wrap;        /* ← WICHTIG! erlaubt Umbruch */
    word-break: break-word; /* ← verhindert Überlaufen */
}

.breadcrumb a {
    color: #4F9C52;                 /* Vereinsgrün */
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb span {
    color: #7a8a8a;                 /* dezenter Trenner */
}


/* =========================================
   HERO
========================================= */

.hero {
    text-align: center;
    padding: 2.5rem 1rem;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--accent);
}

.hero-image {
    width: 100%;
    height: 40vh;        /* Einheitliche Höhe */
    min-height: 260px;
    overflow: hidden;
    position: relative;
}

 .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* füllt den Bereich */
    object-position: top;
    display: block;
}

@media (max-width: 768px) {
    .hero-image {
        height: 18vh;
        min-height: 120px;
    }
}
/* =========================================
   INFO-BOXEN
========================================= */
/* Goldlinie oben für alle Info-Boxes */
.info-box {
    position: relative;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 20px 24px;
    line-height: 1.55;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}


/* Goldlinie */
.info-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    justify-items: start;
}

/* Infoboxen dezenter */
.info-box {
    background: #fafafa;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover-Effekt leicht, nicht dominant */
.info-box:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Icons komplett ausblenden */
.info-icon {
    display: none;
}

/* Überschrift kompakter */
.info-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}


/* Links in Info-Boxes veredeln */
.info-box a {
    color: #A00000;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}

/* Goldene Unterstreichung beim Hover */
.info-box a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
    transition: width 0.25s ease;
}

.info-box a:hover::after {
    width: 100%;
}

.info-box a:focus {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
}

.info-box .info-icon i {
    font-size: 2rem;
    color: #a00000;
    margin-bottom: 10px;
}

/* =========================================
   NEWS – zweispaltig, ruhig, harmonisch
========================================= */

.news-section {
    max-width: 1100px;
    margin: 2.8rem auto;
    padding: 0 1rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px; /* etwas mehr Luft, wirkt edler */
}

/* Handy: 1 Spalte */
@media (max-width: 700px) {
    .news-section {
        grid-template-columns: 1fr;
    }
}

/* Jede News – neutral, ruhig */
.news-item {
    padding-bottom: 22px;
    border-bottom: 1px solid #ddd;
    border: none;
}

/* Letztes Element ohne Linie */
.news-item:last-child {
    border-bottom: none;
}

/* Überschrift H1 */
.news-item h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #17175E;              /* Vereins-Blau */
    margin: 2.6rem 0 1.6rem;     /* harmonische Abstände */
    padding: 12px 16px;          /* ruhige Innenabstände */
    background: #fffdf0;         /* sehr dezentes Gelb */
    border-left: 5px solid #d4af37; /* Goldstrich links */
    border-radius: 8px;          /* wie deine Content-Box */
    line-height: 1.3;
}

/* Überschrift H2 */
.news-item h2 {
    margin: 2.5rem 0 1rem;
    padding: 6px 14px;
    font-size: 1.4rem;
    color: #17175E;
    background: #f7f7f7;
    border-left: 4px solid #d4af37;
    border-radius: 4px;
}

/* Untertitel */
.news-item h3 {
    color: #4F9C52;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Datum */
.news-date {
    display: inline-block;
    background: #a00000;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

/* Thumbnail */
.news-thumb {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------------------- */
/* Einheitlicher Stil Weiterlesen-Links */
.news-item-details {
    margin: 0rem 0;
}

/* Summary-Text */
.news-item-details summary {
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 0.1rem 0;
    color: #A00000; /* Vereins-Rot */
    list-style: none;
    display: inline-block;
    position: relative;
    padding-left: 16px; /* Platz für Pfeil */
    padding-top: 0rem; /* Pfeil mittig */
}

/* Standard-Pfeil ausblenden */
.news-item-details summary::-webkit-details-marker {
    display: none;
}

/* Eigener Pfeil */
.news-item-details summary::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.0rem;
    color: #A00000;
    transition: transform 0.2s ease;
}

/* Pfeil dreht sich beim Öffnen */
.news-item-details[open] summary::before {
    transform: rotate(90deg);
}

/* Abstand, wenn geöffnet */
.news-item-details[open] summary {
    margin-bottom: 1rem;
}

/* Gold-Hover-Linie */
.news-item summary:hover
{
    text-decoration: underline;
    text-decoration-color: #d4af37;
}

/* Goldener Fokus-Ring für alle Info-Box-Weiterlesen-Links */
.news-item summary:focus
{
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
}

/* -------------------------------------------------------------------------------- */
.news-item a {
    color: #a00000;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding-left: 18px;
}

/* Hover-Effekt passend zum Footer */
.news-item a:hover {
    text-decoration: underline;
    text-decoration-color: #d4af37;
}

/* --------------------------------------------------------------------------------- */
.archiv-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* etwas mehr Luft */
}

/* Handy: 1 Spalte */
@media (max-width: 700px) {
    .archiv-section {
        grid-template-columns: 1fr;
    }
}
.archiv-section ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
}

/* --------------------------------------------------------------------------------- */
/* ############################################################### */
 :root {
    interpolate-size: allow-keywords;
}

.accordion details {
    transition: height 0.5s ease;
}

.accordion details[open] {
    height: auto; /** ging früher nicht, erst mit interpolate-size: allow-keywords; **/
    /** height: 270px;  **/
}

::details-content {
    opacity: 0;
    transition: opacity 1000ms, content-visibility 600ms allow-discrete;
}
details[open]::details-content {
        opacity: 1;
}

/* Einheitlicher Stil für alle Weiterlesen-Links */
.info-box summary,
.info-box a.open-modal {
    color: #a00000;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding-left: 18px;
    display: inline-block;
    }

/* Pfeil links */
.info-box summary::before,
.info-box a.open-modal::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.2s ease;
}

/* Pfeil dreht sich nur bei <details> */
.info-box details[open] summary::before {
    transform: rotate(90deg);
}

/* Gold-Hover-Linie */
.info-box summary:hover,
.info-box a.open-modal:hover {
    text-decoration: underline;
    text-decoration-color: #d4af37;
}

/* Goldener Fokus-Ring für alle Info-Box-Weiterlesen-Links */
.info-box summary:focus,
.info-box a.open-modal:focus {
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
}

details > p {
    padding: 10px;
    margin: 0;
}

/* ----------------------------------------------------------------------- */
/* =========================================
   GALERIE Lightbox
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}

.gallery-item img {
    width:100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
  }

 .gallery-item {
    background: #f8f9fb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    }

/* Goldlinie oben */
.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
}

.gallery-item:hover::before {
    height: 5px;
    transition: height 0.2s ease;
}

.gallery-item figcaption {
    padding: 6px 8px;
    text-align: center;
    font-size: 0.85rem;   /* kleiner */
    line-height: 1.3;
     padding: 4px 6px;
}

.gallery-item figcaption a {
    color: #a00000;      /* passend zu deinem Header */
    font-weight: 600;    /* weniger fett, ruhiger */
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    display: inline-block;
}

.gallery-item figcaption a:hover {
    text-decoration: underline;
}

.gallery-item a:focus img {
    outline: 3px solid #d4af37;
    outline-offset: 4px;
    border-radius: 6px;
}

/* Impressionen auf der Startseite – eigene, geschützte Regel */
/* Impressionen auf der Startseite – 3er Grid */
.impressionen {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
}

.impressionen .gallery-item img {
    width: 85%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    padding: 10px 0;
}

.impressionen .gallery-item {
    position: relative;
    opacity: 0;
    transform: translateY(6px);
    animation: fadein-impressionen 0.6s ease-out forwards;
}

.impressionen .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.impressionen .gallery-item:nth-child(2) { animation-delay: 0.15s; }
.impressionen .gallery-item:nth-child(3) { animation-delay: 0.25s; }

@keyframes fadein-impressionen {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.impressionen .gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
    border-radius: 4px;
}

.impressionen {
    margin-top: 2.5rem;
}

@media (max-width: 900px) {
    .impressionen {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .impressionen {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MODERNER FOOTER MIT ICONS & VERLAUF
========================================= */

.footer {
    background: linear-gradient(180deg, #f3f8f4 0%, #e8f1ea 100%);
    color: #1f3b57;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 2px solid #d7e5d9;
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Überschriften */
.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #1f3b57;
    font-weight: 700;
    border-bottom: 1px solid #d7e5d9;
    padding-bottom: 0.4rem;
}

/* Text */
.footer-section p {
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

/* Listen */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
}

.footer-section li {
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.footer-section li::before {
    content: "›";
    color: #4F9C52;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Links */
.footer-section a {
    color: #1f3b57;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 2px 0;
    transition: color 0.2s ease, transform 0.2s ease;
    word-break: break-word;
}

.footer-section a:hover {
    color: #4F9C52;
    transform: translateX(4px);
}

.footer-section {
    text-align: center;
    padding: 20px 0;
}

/* Logo sanft einblenden */
.footer-logo img {
    border-radius: 0;
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto 8px;
    opacity: 0;
    animation: fadeLogo 1.4s ease-out forwards;
}

@keyframes fadeLogo {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Jubiläumstext leicht verzögert einblenden */
.jubilaeum-text {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: #444;
    opacity: 0;
    animation: fadeText 1.6s ease-out forwards;
    animation-delay: 0.4s; /* kommt nach dem Logo */
}

@keyframes fadeText {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Social Icons – SVG Version */
.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

/* SVG Größe */
.footer-social .icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Facebook */
.footer-social .social-fb {
    background: #1877F2;
}

.footer-social .social-fb:hover {
    background: #0f5ec4;
    transform: translateY(-3px);
}

/* Instagram */
.footer-social .social-ig {
    background: #E1306C;
}

.footer-social .social-ig:hover {
    background: #b82456;
    transform: translateY(-3px);
}

/* Mobil */
@media (max-width: 600px) {
    .footer-social {
        justify-content: center;
    }
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2.2rem;
    padding-top: 1rem;
    border-top: 1px solid #d7e5d9;
    opacity: 0.85;
}

/* =========================================
   MOBIL – EINSPALTIG & RUHIG
========================================= */

@media (max-width: 600px) {
    .footer-inner {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-section li {
        justify-content: center;
    }

    .footer-section li::before {
        margin-right: 0;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer {
        font-size: 0.8rem;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .info-boxes { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .info-boxes { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .content { margin: 1rem; padding: 1rem; }
}

@media (max-width: 600px) {
    .breadcrumb {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        max-width: 90%;        /* passt sich dem Handy an */
        margin: 0.8rem auto;
    }
}


/* Mobile – Navigation linksbündig */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-left: 1rem;
    }

    .menu.show {
        display: flex;
    }

    .submenu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
}
/* Mobile: Submenu sichtbar, wenn .open gesetzt wird */
@media (max-width: 768px) {
    .submenu {
        display: none;
        opacity: 1;
        transform: none;
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }

    .submenu.open {
        display: block;
    }
}

/* ---- Kleines Fenster ------ */
/* Hintergrund */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 40px 45px;
    border-radius: 12px;
    max-width: 850px;      /* deutlich größer */
    width: 90%;
    max-height: 80vh;      /* verhindert zu große Fenster */
    overflow-y: auto;      /* scrollt nur der Inhalt */
    border: 1px solid #ddd;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: modalZoom 0.25s ease-out;
    text-align: left;
}

.modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;}

@keyframes modalZoom {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Schließen-Button */
.close-modal {
    float: right;
    font-size: 1.0rem;
    cursor: pointer;
    opacity: 0.9;
    color: #800000;
    font-size: 1.05rem;
    font-weight: 500;

}

.close-modal:hover {
    opacity: 1;
    color: #1f3b57;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-content.image-modal {
    max-width: 1000px;
    padding: 0;
    border-radius: 12px;
}

.image-modal img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.modal-content img {
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.modal-content ul {
    margin-bottom: 20px;
    list-style: none;
}

.modal-body {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.modal-body img {
    max-width: 40%;
    border-radius: 8px;
}

.modal-body .text {
    max-width: 50%;
}

/* Modernes Design mit Anführungszeichen */
blockquote {
    position: relative;
    padding-left: 20px;
    background-color: #F5FAF5;
    border-left: 4px solid var(--accent-color, #c9a44f);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 90%;
    margin: 1rem auto;
    color: #A00000;
    }

    blockquote::before {
    content: ‚“‚;
    font-size: 4em;
    position: absolute;
    top: 10px;
    left: 15px;
    opacity: 0.3;
     }
/* ----------------------------------------------------- */
/* ----------------------------------------------------- */
/* Scroll-to-top button styling */
/* (A) SMOOTH SCROLL */
html { scroll-behavior: smooth; }

/* (B) BACK TO TOP BUTTON */
#backtop {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; border-radius: 50%;
    display: none;
    justify-content: center; align-items: center;
    background: linear-gradient(90deg, #d4af37, #f7e27c, #d4af37);
    border: 1px solid #483A0F;
}

/* (X) DEMO */
#top { height: 2000px; }

/* (X) NOT IMPORTANT */
/* ----------------------------------------------------- */
/* ----------------------------------------------------- */
/* =========================================
   GALERIE – DETAILS / SUMMARY
========================================= */

.galerie-details {
    margin: 1rem 0;
}

/* Summary-Text */
.galerie-details summary {
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 0.4rem 0;
    color: #A00000; /* Vereins-Rot */
    list-style: none;
    display: inline-block;
    position: relative;
    padding-left: 16px; /* Platz für Pfeil */
    padding-top: 0rem; /* Pfeil mittig */
}

/* Standard-Pfeil ausblenden */
.galerie-details summary::-webkit-details-marker {
    display: none;
}

/* Eigener Pfeil */
.galerie-details summary::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.0rem;
    color: #A00000;
    transition: transform 0.2s ease;
}

/* Pfeil dreht sich beim Öffnen */
.galerie-details[open] summary::before {
    transform: rotate(90deg);
}

/* Abstand, wenn geöffnet */
.galerie-details[open] summary {
    margin-bottom: 1rem;
}


/* Gold-Hover-Linie */
.galerie-details summary:hover
{
    text-decoration: underline;
    text-decoration-color: #d4af37;
}

/* Goldener Fokus-Ring für alle Info-Box-Weiterlesen-Links */
.galerie-details summary:focus
{
    outline: 2px solid #d4af37;
    outline-offset: 3px;
    border-radius: 4px;
}


/* =========================================
   GALERIE – Fade-In beim Öffnen
========================================= */

.galerie-details[open] .gallery-grid {
    animation: fadein-gallery 0.35s ease-out;
}

@keyframes fadein-gallery {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 /* =========================================
   GALERIE – Automatisches Staggered Fade-In
========================================= */

.galerie-details[open] .gallery-item {
    opacity: 0;
    transform: translateY(6px);
    animation: fadein-stagger 0.45s ease-out forwards;
    animation-delay: calc(var(--i) * 40ms);
}

@keyframes fadein-stagger {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item:nth-child(1) { --i: 1; }
.gallery-item:nth-child(2) { --i: 2; }
.gallery-item:nth-child(3) { --i: 3; }
.gallery-item:nth-child(4) { --i: 4; }
.gallery-item:nth-child(5) { --i: 5; }
.gallery-item:nth-child(6) { --i: 6; }
.gallery-item:nth-child(7) { --i: 7; }
.gallery-item:nth-child(8) { --i: 8; }
.gallery-item:nth-child(9) { --i: 9; }
.gallery-item:nth-child(10) { --i: 10; }


/* Automatische Index-Zuweisung */
.gallery-item:nth-child(n) {
    --i: calc((var(--index, 0)) + 1);
}
/* ### slider ######################## */
 .slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: auto;
    background: white;
    border-radius: 8px;
  }

  .slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
  }

  .slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2.rem;
    text-align: center;
  }

  .slide img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }

  /* Navigation Buttons */
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: 2px solid #D4AF37;
    padding: 16px;
    margin-top: -62px;
    cursor: pointer;
    font-size: 1.5rem;
  }
  .nav:focus {
    outline: 3px solid #ffcc00;
  }
  .prev { left: 35px; }
  .next { right: 35px; }

  /* Responsive */
  @media (max-width: 600px) {
    .slide {
      padding: 1rem;
    }
    .nav {

      font-size: 1.2rem;
      padding: 0.3rem 0.6rem;
        }

  }
