:root {
    --color-primary: #6f4f1d;
    --color-primary-dark: #4c3513;
    --color-accent: #a77a2e;

    --color-text: #242424;
    --color-muted: #686868;

    --color-background: #ffffff;
    --color-surface: #f6f3ed;
    --color-border: #ded8ce;

    --header-height: 88px;
    --content-width: 1180px;

    --shadow-header: 0 4px 18px rgba(0, 0, 0, 0.09);
    --shadow-card: 0 10px 35px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-background);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a {
    color: var(--color-primary);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    color: #ffffff;
    background: #111111;
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: var(--header-height);

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-header);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(100% - 40px, var(--content-width));
    min-height: var(--header-height);
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-brand {
    min-width: 0;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: var(--color-text);
    text-decoration: none;
}

.site-logo {
    display: block;
    width: auto;
    max-width: 72px;
    max-height: 72px;
}

.brand-mark {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: #ffffff;
    background: var(--color-primary);
    border-radius: 50%;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-text {
    display: block;
    white-space: nowrap;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    font-weight: 600;
    line-height: 1;
}

.main-navigation ul,
.mobile-navigation ul,
.legal-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    position: relative;

    display: inline-block;
    padding: 31px 0 27px;

    color: var(--color-text);
    font-size: 0.98rem;
    font-weight: 650;
    text-decoration: none;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 22px;
    left: 0;

    height: 2px;

    content: "";
    background: var(--color-accent);

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.main-navigation a:hover::after,
.main-navigation a.is-active::after {
    transform: scaleX(1);
}

.mobile-navigation {
    display: none;
}

/* Hero */

.home-hero {
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 16 / 5;
    margin: 0 auto;
    overflow: hidden;
    background: #d8d2c7;
}

.home-hero img,
.hero-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero img {
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.hero-placeholder {
    background: linear-gradient(
        135deg,
        #d7d0c4,
        #eeeae2
    );
}

/* Allgemeiner Inhalt */

.content-container {
    width: min(100% - 40px, var(--content-width));
    margin-inline: auto;
}

.welcome-section {
    padding: clamp(70px, 8vw, 120px) 0;
    background: var(--color-background);
}

.welcome-content {
    max-width: 900px;
    text-align: center;
}

.welcome-content h1 {
    margin: 0 0 30px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.14;
}

.welcome-content p {
    max-width: 820px;
    margin: 0 auto 20px;
    font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.welcome-content blockquote {
    max-width: 720px;
    margin: 42px auto 0;
    padding: 24px 32px;

    color: var(--color-primary-dark);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-style: italic;
}

.welcome-content blockquote p {
    margin: 0;
}

/* Termine */

.events-section {
    padding: clamp(70px, 8vw, 110px) 0;
    background: var(--color-surface);
}

.section-heading {
    margin-bottom: 44px;
    text-align: center;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.event-card {
    min-width: 0;
    overflow: hidden;

    display: grid;
    grid-template-columns: 130px 1fr;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.event-date {
    padding: 28px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    color: #ffffff;
    background: var(--color-primary);
    text-align: center;
}

.event-date time {
    font-size: 1.05rem;
    font-weight: 750;
}

.event-date span {
    font-size: 0.87rem;
}

.event-content {
    padding: 28px 24px;
}

.event-content h3 {
    margin: 0 0 12px;
    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.3;
}

.event-content p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.empty-state {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 6px;

    color: var(--color-muted);
    text-align: center;
}

/* Sticky Werbebereich */

.site-end {
    position: relative;
}

.sponsor-strip {
    position: sticky;
    bottom: 0;
    z-index: 20;

    padding: 18px 0;

    background: rgba(249, 247, 242, 0.97);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -7px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

.sponsor-inner {
    width: min(100% - 40px, var(--content-width));
    margin-inline: auto;

    display: flex;
    align-items: center;
    gap: 30px;
}

.sponsor-heading {
    flex: 0 0 auto;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.77rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sponsor-list {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.sponsor-item img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 54px;
}

.sponsor-placeholder {
    color: var(--color-muted);
    font-size: 0.92rem;
}

/* Finaler Footer */

.site-footer {
    position: relative;
    z-index: 30;

    color: rgba(255, 255, 255, 0.85);
    background: #252015;
}

.footer-inner {
    width: min(100% - 40px, var(--content-width));
    margin-inline: auto;
    padding: 58px 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.footer-identity strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.footer-identity address {
    font-style: normal;
}

.legal-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 28px;
}

.legal-navigation a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.legal-navigation a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.86rem;
}

/* Normale Seiten */

.standard-page {
    min-height: 55vh;
    padding: clamp(60px, 8vw, 110px) 0;
}

.standard-page h1 {
    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

/* Mobil */

@media (max-width: 700px) {
    .home-hero,
    .home-hero img,
    .hero-placeholder {
        height: 220px;
    } 
    .events-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation {
        display: none;
    }

    .mobile-navigation {
        position: relative;
        display: block;
    }

    .mobile-navigation summary {
        width: 48px;
        height: 48px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        cursor: pointer;
        list-style: none;
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation summary span {
        width: 28px;
        height: 2px;
        background: var(--color-text);
    }

    .mobile-navigation nav {
        position: absolute;
        top: calc(100% + 19px);
        right: 0;

        width: min(320px, calc(100vw - 40px));
        padding: 12px;

        background: #ffffff;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        box-shadow: var(--shadow-card);
    }

    .mobile-navigation a {
        display: block;
        padding: 13px 14px;
        color: var(--color-text);
        text-decoration: none;
    }

    .mobile-navigation a:hover,
    .mobile-navigation a.is-active {
        color: var(--color-primary);
        background: var(--color-surface);
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 92px;
    }

    .header-inner,
    .content-container,
    .sponsor-inner,
    .footer-inner {
        width: min(100% - 28px, var(--content-width));
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        font-size: 0.98rem;
    }

    .brand-text strong {
        font-size: 1.05rem;
    }

    .brand-text span {
        font-size: 0.82rem;
    }

    .home-hero img,
    .hero-placeholder {
        height: clamp(280px, 70vw, 480px);
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        padding: 16px 20px;
    }

    .sponsor-inner {
        flex-direction: column;
        gap: 10px;
    }

    .sponsor-list {
        width: 100%;
        gap: 18px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 34px;
    }

    .legal-navigation ul {
        justify-content: flex-start;
    }
}

/* Abschließende Hero-Konfiguration */

.home-hero {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background: #d8d2c7;
}

.home-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
}

.hero-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
}


/* Finale responsive Hero-Darstellung */

.home-hero {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background: #d8d2c7;
}

.home-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
    opacity: 1;
}

.hero-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
}

/* Rechtliche Links im Footer */

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.875rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.footer-legal a:hover,
.footer-legal a:focus {
    text-decoration: underline;
    opacity: 1;
}


/* Footer */

.site-footer {
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem 1rem;
    background: #2f2922;
    color: #f5f1e8;
}

.footer-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-section {
    min-width: 0;
}

.footer-title {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-heading {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-description,
.footer-section p,
.footer-section address {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: normal;
}

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

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

.footer-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.2rem;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.footer-legal a {
    position: relative;
}

.footer-legal a:not(:last-child)::after {
    position: absolute;
    right: -0.7rem;
    content: "|";
    color: rgba(255, 255, 255, 0.45);
}

.footer-copyright {
    flex-shrink: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 1.5rem 1rem 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-lower {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .footer-legal {
        gap: 0.4rem 1rem;
    }

    .footer-copyright {
        white-space: normal;
    }
}

/* Kontaktformular */

.contact-page {
    padding: 2.5rem 1.5rem;
}

.contact-page-inner {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form .form-field {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 0.85rem;
    color: #2f2922;
    background: #ffffff;
    border: 1px solid rgba(47, 41, 34, 0.35);
    border-radius: 4px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(47, 41, 34, 0.35);
    outline-offset: 2px;
    border-color: #2f2922;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button,
.contact-form input[type="submit"],
.contact-form input[type="reset"] {
    margin: 0.4rem 0.5rem 0.4rem 0;
    padding: 0.7rem 1.1rem;
    font: inherit;
    cursor: pointer;
    border: 1px solid #2f2922;
    border-radius: 4px;
}

.contact-form input[type="submit"],
.contact-form button[type="submit"] {
    color: #ffffff;
    background: #2f2922;
}

.contact-form input[type="reset"],
.contact-form button[type="reset"] {
    color: #2f2922;
    background: transparent;
}

.contact-form .form-errors,
.contact-form .alert-error {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #9b2626;
}

.contact-form .form-message,
.contact-form .alert-success {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid #31733c;
}

@media (max-width: 640px) {
    .contact-page {
        padding: 1.5rem 1rem;
    }
}

/* Seitenbereich mit linker Navigation */

.section-page {
    min-height: 60vh;
    padding: clamp(50px, 7vw, 90px) 0;
    background: var(--color-background);
}

.section-layout {
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 6vw, 80px);
}

/* Sidebar */

.section-sidebar {
    min-width: 0;
}

.sidebar-inner {
    position: sticky;
    top: calc(var(--header-height) + 28px);

    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.sidebar-heading {
    margin: 0;
    padding: 20px 24px;

    color: #ffffff;
    background: var(--color-primary);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-navigation ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
}

.sidebar-navigation li {
    margin: 0;
    padding: 0;
}

.sidebar-navigation a {
    position: relative;

    display: block;
    padding: 13px 24px;

    color: var(--color-text);
    border-left: 4px solid transparent;

    font-size: 0.96rem;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease;
}

.sidebar-navigation a:hover {
    color: var(--color-primary-dark);
    background: #ffffff;
    border-left-color: var(--color-accent);
}

.sidebar-navigation a.is-active {
    color: var(--color-primary-dark);
    background: #ffffff;
    border-left-color: var(--color-primary);
    font-weight: 700;
}

/* Inhalt rechts */

.section-content {
    min-width: 0;
    max-width: 880px;
}

.section-content > :first-child {
    margin-top: 0;
}

.section-content h1 {
    margin: 0 0 32px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
}

.section-content h2 {
    margin: 48px 0 20px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
}

.section-content p,
.section-content li {
    font-size: 1.05rem;
}

.section-content table {
    width: 100%;
    margin: 30px 0;

    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--color-border);
}

.section-content th,
.section-content td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.section-content blockquote {
    margin: 36px 0;
    padding: 22px 28px;

    color: var(--color-primary-dark);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

/* Sidebar auf kleineren Bildschirmen */

@media (max-width: 900px) {
    .section-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-inner {
        position: static;
    }

    .sidebar-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
        gap: 4px;
    }

    .sidebar-navigation a {
        height: 100%;
        padding: 12px 14px;
        border-left: 0;
        border-bottom: 3px solid transparent;
    }

    .sidebar-navigation a:hover,
    .sidebar-navigation a.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--color-primary);
    }

    .section-content {
        max-width: none;
    }
}

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

/* Fotoarchiv */

.gallery-archive-page,
.gallery-event-page {
    min-height: 60vh;
    padding: clamp(55px, 7vw, 100px) 0;
    background: var(--color-background);
}

.gallery-page-header,
.gallery-event-header {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.gallery-page-header h1,
.gallery-event-header h1 {
    margin: 0 0 24px;
    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.15;
}

.gallery-page-header p,
.gallery-event-header p {
    font-size: 1.08rem;
}

.gallery-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.gallery-archive-card {
    min-width: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    box-shadow: var(--shadow-card);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.gallery-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.13);
}

.gallery-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    text-decoration: none;
}

.gallery-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--color-surface);
}

.gallery-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 300ms ease;
}

.gallery-archive-card:hover .gallery-card-media img {
    transform: scale(1.045);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #d8d2c7,
            #f0ece4
        );
}

.gallery-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.gallery-card-date,
.gallery-event-date {
    display: block;
    margin-bottom: 8px;

    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-card-content h2 {
    margin: 0 0 12px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.25;
}

.gallery-card-content p {
    margin: 0 0 20px;
    color: var(--color-muted);
}

.gallery-card-action {
    margin-top: auto;
    color: var(--color-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

/* Einzelne Veranstaltung */

.gallery-event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-event-item {
    min-width: 0;
    overflow: hidden;

    aspect-ratio: 3 / 2;

    background: var(--color-surface);
    border-radius: 7px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
}

.gallery-event-item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-event-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.gallery-event-item:hover img {
    transform: scale(1.045);
    filter: brightness(0.78);
}

.gallery-hidden-descriptions {
    display: none;
}

.gallery-empty {
    max-width: 750px;
    margin: 0 auto;
    padding: 25px;

    color: var(--color-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 7px;
    text-align: center;
}

@media (max-width: 1050px) {
    .gallery-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .gallery-archive-grid,
    .gallery-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-card-content {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .gallery-archive-grid {
        grid-template-columns: 1fr;
    }
}


/* Rechtliche Shop-Navigation */

.shop-legal-navigation {
    margin-top: 70px;
    padding: 25px 28px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.shop-legal-heading {
    margin: 0 0 14px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.shop-legal-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-legal-navigation a {
    color: var(--color-primary);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.shop-legal-navigation a:hover,
.shop-legal-navigation a:focus,
.shop-legal-navigation a.is-active {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 600px) {
    .shop-legal-navigation ul {
        flex-direction: column;
        gap: 8px;
    }
}

/* Lindenblatt-Jahresübersicht */

.lindenblatt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 35px 0 50px;
}

.lindenblatt-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 28px 20px;

    color: var(--color-text);
    background:
        linear-gradient(
            145deg,
            var(--color-surface),
            var(--color-background)
        );
    border: 1px solid var(--color-border);
    border-radius: 9px;
    box-shadow: var(--shadow-card);
    text-align: center;
    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.lindenblatt-card::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    width: 4px;

    background: var(--color-accent);
    border-radius: 3px;
}

.lindenblatt-card:hover,
.lindenblatt-card:focus {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);
    text-decoration: none;
}

.lindenblatt-card strong {
    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
}

.lindenblatt-label {
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lindenblatt-card span:last-child {
    margin-top: 10px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 650;
}

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

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

    .lindenblatt-card {
        min-height: 150px;
    }
}

.lindenblatt-card span:last-child::before {
    content: "→ ";
}

.lindenblatt-card:hover span:last-child,
.lindenblatt-card:focus span:last-child {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Startseite – aktueller Termin */

.home-events {
    padding: clamp(60px, 8vw, 105px) 0;
    background: var(--color-surface);
}

.home-events-header {
    margin-bottom: 34px;
    text-align: center;
}

.home-events-kicker {
    display: block;
    margin-bottom: 8px;

    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-events-header h2 {
    margin: 0;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
}

.event-card {
    max-width: 1050px;
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    margin: 0 auto;
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.event-date-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;

    color: #fff;
    background:
        linear-gradient(
            145deg,
            var(--color-primary-dark),
            var(--color-primary)
        );
    text-align: center;
}

.event-date-weekday {
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-date-day {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.4rem;
    font-weight: 500;
    line-height: 0.95;
}

.event-date-month {
    margin-top: 7px;
    font-size: 1.15rem;
    font-weight: 700;
}

.event-date-year {
    margin-top: 3px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.event-card-content {
    padding: clamp(28px, 5vw, 50px);
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 14px;

    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.event-card-meta span::before {
    content: "·";
    margin-right: 22px;
}

.event-card-content h3 {
    margin: 0 0 22px;

    color: var(--color-primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.event-card-description p {
    margin: 0 0 15px;
    line-height: 1.75;
}

.event-card-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.event-card-highlight span {
    padding: 7px 13px;

    color: var(--color-primary-dark);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 750px) {
    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date-box {
        flex-direction: row;
        gap: 9px;
        padding: 20px;
    }

    .event-date-weekday {
        margin: 0;
    }

    .event-date-day {
        font-size: 2.2rem;
    }

    .event-date-month,
    .event-date-year {
        margin: 0;
    }

    .event-card-meta {
        flex-direction: column;
        gap: 5px;
    }

    .event-card-meta span::before {
        display: none;
    }
}

/* Startseite – einfache Terminliste */

.event-list {
    max-width: 1050px;
    margin: 0 auto;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.event-list-header,
.event-list-row {
    display: grid;
    grid-template-columns:
        minmax(160px, 0.8fr)
        minmax(220px, 1.3fr)
        minmax(220px, 1fr);
}

.event-list-header {
    color: #ffffff;
    background: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-list-header span,
.event-list-cell {
    padding: 18px 22px;
}

.event-list-row {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.event-list-row:last-child {
    border-bottom: 0;
}

.event-list-row:hover {
    background: var(--color-surface);
}

.event-list-cell {
    display: flex;
    align-items: center;
    min-width: 0;
}

.event-list-date {
    flex-wrap: wrap;
    gap: 4px 8px;

    color: var(--color-primary-dark);
    font-weight: 700;
}

.event-list-date span {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.event-list-title {
    color: var(--color-primary-dark);
    font-weight: 750;
}

.event-list-location {
    color: var(--color-muted);
}

@media (max-width: 700px) {
    .event-list-header {
        display: none;
    }

    .event-list-row {
        display: block;
        padding: 16px 20px;
    }

    .event-list-cell {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 12px;
        padding: 7px 0;
    }

    .event-list-cell::before {
        content: attr(data-label);

        color: var(--color-accent);
        font-size: 0.75rem;
        font-weight: 750;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }
}

/* Sponsorenlogos */

.sponsors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 32px;
}

.sponsor-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    min-height: 78px;
    padding: 10px 18px;
}

.sponsor-item a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 70px;
    object-fit: contain;
}

.sponsor-name {
    font-weight: 700;
    text-align: center;
}

@media (max-width: 600px) {
    .sponsors-list {
        gap: 14px;
    }

    .sponsor-item {
        min-width: 120px;
        min-height: 60px;
        padding: 8px 12px;
    }

    .sponsor-logo {
        max-width: 150px;
        max-height: 52px;
    }
}

/* Breites Sponsorenlogo Kehrich größer darstellen */
.sponsor-item img[src*="logo-kehrich.webp"] {
    max-width: 320px;
    max-height: 60px;
}

@media (max-width: 600px) {
    .sponsor-item img[src*="logo-kehrich.webp"] {
        max-width: 240px;
        max-height: 50px;
    }
}

