body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

/* NAVBAR */
header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f2f2f2;

    transition: all 0.3s ease;
}

header.shrink {
    padding: 15px 40px;
}

header.shrink .logo a {
    font-size: 22px;
}

header.shrink nav a {
    font-size: 18px;
}

.logo-wappen {
    height: 30px;
    width: auto;
    vertical-align: -12px;
    margin-left: 0px;
}

header.shrink .logo-wappen {
    height: 20px;
    vertical-align: -8px;
}

.logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    color: #df0000;
}

.logo {
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.025);
}

nav a {
    margin-left: 60px;
    text-decoration: none;
    color: #333;
    font-size: 22px;
}

nav a:hover {
    color: #2a5d8f;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}


/* CONTENT */
.content {
    background: #77dbff42;
    text-align: center;
    padding: 80px 20px;

    margin-top: o;
}

.content h1 {
    margin-bottom: 20px;
}

.content p {
    max-width: 800px;
    font-weight: 600;
    margin: auto;
    font-size: 18px;
    line-height: 1.6;
}

        /* AKTIVE NAVIGATION */
nav a.active {
    color: #2a5d8f;
    border-bottom: 3px solid #53b5df;
    padding-bottom: 4px;
}


/* BILDER-HEADERBEREICH */
.bilder-hero {
    position: relative;
    height: 180px;
    background: #d9edf7;
    overflow: hidden;
    transition: background 0.4s ease;
}

.bilder-hero.jahr-2016 { background: #d9edf7; }
.bilder-hero.jahr-2011 { background: #cfe8df; }
.bilder-hero.jahr-2006 { background: #e8ddcf; }
.bilder-hero.jahr-2001 { background: #d9edf7; }
.bilder-hero.jahr-1996 { background: #cfe8df; }

.bilder-hero::before,
.bilder-hero::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 50%;
}
.bilder-hero::before {
    bottom: 18px;
    height: 38px;
    background: rgba(255, 255, 255, 0.75);
    transform: scaleX(1.2);
}
.bilder-hero::after {
    bottom: -10px;
    height: 56px;
    background: inherit;
    transform: scaleX(1.25);
}


/* SEITENBEREICH BILDER */
.bilder-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 36px 80px;
    background: #f7f7f7;
}


/* EINLEITUNG */
.bilder-intro {
    text-align: center;
    margin-bottom: 42px;
}

.bilder-intro h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.bilder-intro p {
    margin: 16px 0 30px;
    color: #808080;
    font-size: 16px;
}


/* FILTER-BUTTONS */
.jahre-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    border: 1px solid #9fd0e7;
    background: transparent;
    color: #49afd8;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #49afd8;
    color: white;
    border-color: #49afd8;
}


/* BLOCK JE JAHRGANG */
.bilder-block {
    margin-top: 26px;
}

.bilder-block.hidden {
    display: none;
}

.bilder-block__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d7e7ef;
}

.jahr-2016 .bilder-block__header h2 {
    margin: 0;
    font-size: 22px;
    color: #48afd9;
    font-weight: 600;
}

.bilder-block__header span {
    color: #a0a0a0;
    font-size: 15px;
}

.header-datum {
    font-size: 15px;
    font-weight: 400;
    color: #a0a0a0;
    margin-left: 6px;
}


/* BILDERRASTER */
.bilder-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 12px;
    grid-auto-rows: 260px;
}

.bild {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #cfe5f0;
    cursor: pointer;
}

.bilder-grid .bild:first-child {
    grid-row: span 2;
}

.bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.bild:hover img {
    transform: scale(1.03);
}


.bilder-grid--alt {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    grid-auto-rows: 260px;
}

.bilder-grid--alt .gross {
    grid-row: span 2;
}

.jahr-2011 .bilder-block__header h2 { color: #578b6c; }
.jahr-2011 .bild { background: #cfe8df; }

.jahr-2006 .bilder-block__header h2 { color: #daa16c; }
.jahr-2006 .bild { background: #e8ddcf; }

.jahr-2001 .bilder-block__header h2 { color: #49afd8; }
.jahr-2001 .bild { background: #d9edf7; }

.jahr-1996 .bilder-block__header h2 { color: #578b6c; }
.jahr-1996 .bild { background: #cfe8df; }

/* „+X WEITERE FOTOS"-KACHEL */
.bild--mehr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    gap: 6px;
    transition: background 0.2s;
}

.mehr-zahl {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.mehr-text {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
/*jahresspezifische Farbe*/
.jahr-2016 .bild--mehr { background: #d9edf7; }
.jahr-2016 .bild--mehr:hover { background: #c2e0f0; }
.jahr-2016 .bild--mehr .mehr-zahl { color: #49afd8; }
.jahr-2016 .bild--mehr .mehr-text { color: #7abfd8; }

.jahr-2011 .bild--mehr { background: #cfe8df; }
.jahr-2011 .bild--mehr:hover { background: #b8ddd0; }
.jahr-2011 .bild--mehr .mehr-zahl { color: #578b6c; }
.jahr-2011 .bild--mehr .mehr-text { color: #7aaa8e; }

.jahr-2006 .bild--mehr { background: #e8ddcf; }
.jahr-2006 .bild--mehr:hover { background: #ddd0be; }
.jahr-2006 .bild--mehr .mehr-zahl { color: #daa16c; }
.jahr-2006 .bild--mehr .mehr-text { color: #e0b98a; }

.jahr-2001 .bild--mehr { background: #d9edf7; }
.jahr-2001 .bild--mehr:hover { background: #c2e0f0; }
.jahr-2001 .bild--mehr .mehr-zahl { color: #49afd8; }
.jahr-2001 .bild--mehr .mehr-text { color: #7abfd8; }

.jahr-1996 .bild--mehr { background: #cfe8df; }
.jahr-1996 .bild--mehr:hover { background: #b8ddd0; }
.jahr-1996 .bild--mehr .mehr-zahl { color: #578b6c; }
.jahr-1996 .bild--mehr .mehr-text { color: #7aaa8e; }

/* LIGHTBOX */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 64px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-btn.prev { left: -60px; }
.lightbox-btn.next { right: -60px; }

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 14px;
    letter-spacing: 0.05em;
}


/* LADE- & FEHLERMELDUNG */
.loading-msg {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1rem;
}

.error-msg {
    text-align: center;
    padding: 40px 20px;
    color: #c0392b;
}


/* ANLASS-HEADERBEREICH */
.anlass-hero {
    position: relative;
    height: 180px;
    background: #d4e8d4;
    overflow: hidden;
}

.anlass-hero::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    transform: scaleX(1.2);
}

.anlass-hero::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 56px;
    border-radius: 50%;
    background: rgba(196, 224, 196, 0.95);
    transform: scaleX(1.25);
}

/* ANLASS-SEITE */
.anlass-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 36px 100px;
}

.anlass-intro {
    text-align: center;
    margin-bottom: 48px;
}

.anlass-intro h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.anlass-intro p {
    color: #808080;
    font-size: 16px;
    margin: 0;
}

/* KEIN ANLASS */
.anlass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 40px;
    background: #edf6ed;
    border: 2px solid #a8d4a8;
    border-radius: 12px;
    color: #5a8a5a;
    gap: 16px;
}

.anlass-card__icon {
    color: #7ab87a;
}

.anlass-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: #4a7a4a;
}

.anlass-card p {
    margin: 0;
    max-width: 480px;
    font-size: 16px;
    line-height: 1.6;
    color: #7a9a7a;
}

/* GESCHICHTE-HEADERBEREICH */
.geschichte-hero {
    position: relative;
    height: 180px;
    background: #daa16c;
    overflow: hidden;
}

.geschichte-hero::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    transform: scaleX(1.2);
}

.geschichte-hero::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 56px;
    border-radius: 50%;
    background: rgba(211, 148, 72, 0.95);
    transform: scaleX(1.25);
}

/* GESCHICHTE-SEITE */
.geschichte-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 36px 100px;
}

.geschichte-intro {
    text-align: center;
    margin-bottom: 52px;
}

.geschichte-intro h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.geschichte-intro p {
    color: #808080;
    font-size: 16px;
    margin: 0;
}

/* ABSCHNITTE */
.geschichte-block {
    margin-bottom: 60px;
}

.geschichte-block__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d9c4a8;
}

.geschichte-block__header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #daa16c;
}

.geschichte-block__desc {
    margin: 0 0 20px;
    color: #808080;
    font-size: 15px;
}

.geschichte-block__desc a {
    color: #daa16c;
}

/* KARTEN-GRID */
.geschichte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.geschichte-karte {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: #f9eeec;
    border: 1px solid #d9c4a8;
    transition: transform 0.2s, box-shadow 0.2s;
}

.geschichte-karte:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(180, 130, 80, 0.12);
}

.geschichte-karte img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.karte-label {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #daa16c;
    font-weight: 500;
}

/* DOKUMENTE */
.geschichte-dokumente {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dokument-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f9eeec;
    border: 1px solid #d9c4a8;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.dokument-item:hover {
    background: #ede0cc;
}

.dokument-icon {
    color: #daa16c;
    flex-shrink: 0;
}

.dokument-titel {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.dokument-typ {
    font-size: 13px;
    color: #a0a0a0;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .geschichte-page {
        padding: 28px 18px 60px;
    }
    
    .geschichte-grid {
        grid-template-columns: 1fr;
    }
}

.dokument-item:visited .dokument-icon {
    color: #daa16c;
}

.dokument-icon svg {
    color: #daa16c;
    stroke: #daa16c;
}

.geschichte-quellen {
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.geschichte-quellen p {
    margin: 0 0 8px;
}

/* KONTAKT-HEADERBEREICH */
.kontakt-hero {
    position: relative;
    height: 180px;
    background: #d4e8d4;
    overflow: hidden;
}

.kontakt-hero::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    transform: scaleX(1.2);
}

.kontakt-hero::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 56px;
    border-radius: 50%;
    background: rgba(196, 224, 196, 0.95);
    transform: scaleX(1.25);
}

/* KONTAKT-SEITE */
.kontakt-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 36px 100px;
}

.kontakt-intro {
    text-align: center;
    margin-bottom: 40px;
}

.kontakt-intro h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.kontakt-intro p {
    color: #808080;
    font-size: 16px;
    margin: 0;
}

/* FORMULAR */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.pflicht {
    color: #5a8a5a;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #a8d4a8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #5a8a5a;
}

/* Fehler-Zustand */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #c0504a;
}

.form-group select {
    padding: 12px 14px;
    border: 1.5px solid #a8d4a8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a8a5a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select:focus {
    border-color: #5a8a5a;
}

.form-group.has-error select {
    border-color: #c0504a;
}

.form-error {
    display: none;
    font-size: 13px;
    color: #c0504a;
}

.form-group.has-error .form-error {
    display: block;
}

/* Submit-Button */
.kontakt-submit {
    align-self: flex-start;
    padding: 12px 32px;
    background: #5a8a5a;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.kontakt-submit:hover {
    background: #4a7a4a;
}

/* Erfolgsmeldung */
.kontakt-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #edf6ed;
    border: 1.5px solid #a8d4a8;
    border-radius: 8px;
    color: #4a7a4a;
    font-size: 16px;
}

.kontakt-success.active {
    display: flex;
}

/* KLASSENFOTOS-HEADERBEREICH */
.klassenfotos-hero {
    position: relative;
    height: 180px;
    background: #daa16c;
    overflow: hidden;
}

.klassenfotos-hero::before {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    transform: scaleX(1.2);
}

.klassenfotos-hero::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 56px;
    border-radius: 50%;
    background: rgba(211, 148, 72, 0.95);
    transform: scaleX(1.25);
}

/* KLASSENFOTOS-SEITE */
.klassenfotos-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 36px 100px;
}

.klassenfotos-intro {
    text-align: center;
    margin-bottom: 48px;
}

.klassenfotos-intro h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.klassenfotos-intro p {
    margin: 0;
    color: #808080;
    font-size: 16px;
}

/* EINZELNER BLOCK */
.kf-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #d9c4a8;
}

.kf-block:last-child {
    border-bottom: none;
}

.kf-block__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.kf-block__header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #daa16c;
}

.kf-schultyp {
    font-size: 13px;
    color: #a0a0a0;
}

/* BILD + TEXT NEBENEINANDER */
.kf-inhalt {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.kf-bilder {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.kf-bilder img {
    height: 160px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #d9c4a8;
}

.kf-bilder img:hover {
    transform: scale(1.03);
}

.kf-text {
    margin: 0;
    flex: 1;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* LIGHTBOX INFO */
.lightbox-overlay {
    overflow-y: auto;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 50vh;
}

.lb-info {
    text-align: center;
    max-width: 1100px;
    margin-top: 12px;
    padding: 0 20px;
}

.lb-jahrgang {
    font-size: 1rem;
    font-weight: 600;
    color: #daa16c;
    margin-bottom: 6px;
}

.lb-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .kontakt-page {
        padding: 28px 18px 60px;
    }
}

.kontakt-ok {
    margin-bottom: 40px;
    padding: 24px 28px;
    background: #edf6ed;
    border: 1px solid #a8d4a8;
    border-radius: 8px;
}

.kontakt-ok h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #4a7a4a;
}

.ok-stand {
    margin: 0 0 16px;
    font-size: 13px;
    color: #a0a0a0;
}

.ok-liste {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ok-liste li {
    font-size: 15px;
    color: #333;
}

.hamburger {
    display: none;
}

/* PAGE LAYOUT */
html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


/* TABELLE BISHERIGE TREFFEN */
.anlass-tabelle {
    margin-top: 52px;
}

.anlass-tabelle h2 {
    font-size: 22px;
    font-weight: 600;
    color: #4a7a4a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #a8d4a8;
}

.tabelle-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

thead tr {
    background: #4a7a4a;
    color: #fff;
}

thead th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 500;
}

tbody tr {
    border-bottom: 1px solid #d4e8d4;
}

tbody tr:nth-child(even) {
    background: #f0f8f0;
}

tbody td {
    padding: 11px 20px;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .site-footer {
        padding: 16px 18px;
    }

    .impressum-modal__content {
        padding: 24px 18px 20px;
        border-radius: 10px;
    }

    .impressum-modal__content h2 {
        font-size: 21px;
    }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .bilder-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bild.gross {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 320px;
    }
}

@media (max-width: 900px) {

    nav a.active {
    border-bottom: 1px solid #e0e0e0;
    color: #2a5d8f;
    padding-bottom: 12px;
}

    .hero img {
        min-height: 25vh;
        object-fit: cover;
    }

    /* HAMBURGER */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background: #2a5d8f;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    header {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
    }

    header.shrink {
        padding: 12px 24px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #f2f2f2;
        flex-direction: column;
        padding: 12px 0 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 12px 24px;
        font-size: 18px;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .bilder-page {
        padding: 24px 18px 60px;
    }

    .bild.gross {
        grid-column: span 1;
        min-height: auto;
    }

    .bilder-block__header {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .bilder-grid {
        display: block;
        position: relative;
        height: 60vw;
        max-height: 70vh;
        border-radius: 8px;
        overflow: hidden;
        }

    .bilder-grid .bild {
        display: none;
    }

    .bilder-grid .bild:first-child {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 0;
    }

    .bilder-grid .bild--mehr {
        display: flex;
        position: absolute;
        inset: 0;
        border-radius: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.1) 80%, transparent 100%);
        align-items: flex-end;
        justify-content: flex-start;
        padding: 20px;
        gap: 4px;
        z-index: 1;
    }

    .jahr-2016 .bilder-grid .bild--mehr .mehr-zahl,
    .jahr-2016 .bilder-grid .bild--mehr .mehr-text { color: #49afd8; }

    .jahr-2011 .bilder-grid .bild--mehr .mehr-zahl,
    .jahr-2011 .bilder-grid .bild--mehr .mehr-text { color: #7ab87a; }

    .jahr-2006 .bilder-grid .bild--mehr .mehr-zahl,
    .jahr-2006 .bilder-grid .bild--mehr .mehr-text { color: #daa16c; }

    .jahr-2001 .bilder-grid .bild--mehr .mehr-zahl,
    .jahr-2001 .bilder-grid .bild--mehr .mehr-text { color: #49afd8; }

    .jahr-1996 .bilder-grid .bild--mehr .mehr-zahl,
    .jahr-1996 .bilder-grid .bild--mehr .mehr-text { color: #7ab87a; }

    .lightbox-btn.prev { left: -44px; }
    .lightbox-btn.next { right: -44px; }

    
    .klassenfotos-page {
        padding: 28px 18px 60px;
    }

    .kf-inhalt {
        flex-direction: column;
    }

    .kf-bilder img {
        height: 120px;
    }
}

@media (hover: none) {
    .lightbox-btn {
        display: none;
    }
}