:root {
    color-scheme: light;
    --ink: #26352d;
    --muted: #6d756b;
    --green: #314b3c;
    --green-dark: #23382c;
    --sage: #e8ebe2;
    --cream: #f7f5ef;
    --sand: #c7a77a;
    --white: #fff;
    --line: #d9ddd4;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--sand);
    outline-offset: 4px;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

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

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 2;
    background: var(--cream);
    border-bottom: 1px solid rgba(38, 53, 45, .1);
}

.header-container {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--sand);
    border-radius: 50%;
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 26px;
}

.brand-copy {
    display: grid;
    line-height: 1.35;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: .12em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .04em;
}

.site-nav {
    margin-left: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: 10px 0;
    color: var(--ink);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--green);
    box-shadow: inset 0 -2px var(--sand);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a3a69e;
    font-size: 11px;
}

.language-switch a {
    color: var(--muted);
    text-decoration: none;
}

.language-switch a[aria-current="true"] {
    color: var(--green-dark);
    font-weight: 800;
}

.menu-toggle {
    display: none;
}

/* Home */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green-dark);
    color: var(--white);
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    background: url('bilder/startseite/unam-001.jpg') center 48% / cover no-repeat;
    opacity: .84;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(24, 42, 31, .72) 0%, rgba(24, 42, 31, .38) 55%, rgba(24, 42, 31, .05) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 82px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--sand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.hero-lead {
    margin: 18px 0 30px;
    font-size: clamp(17px, 2vw, 21px);
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 19px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.button-light {
    background: var(--cream);
    color: var(--green-dark);
}

.button-light:hover {
    background: var(--sand);
}

.hero-caption {
    position: absolute;
    right: 28px;
    bottom: 22px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    letter-spacing: .08em;
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
    padding-block: 94px;
}

.section-heading h2,
.about-copy h2,
.gallery-heading h2,
.history-topics h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(29px, 4vw, 43px);
    font-weight: 400;
    line-height: 1.2;
}

.intro-copy {
    align-self: end;
    max-width: 510px;
    color: var(--muted);
}

.intro-copy p:first-child {
    margin-top: 0;
    color: var(--ink);
    font-size: 18px;
}

.explore-section {
    padding-block: 78px 92px;
    background: var(--sage);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-heading-row > p {
    max-width: 360px;
    margin: 0 0 5px;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.feature-card {
    position: relative;
    min-height: 225px;
    padding: 24px;
    background: rgba(255, 255, 255, .66);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--white);
}

.card-number {
    color: #9b8060;
    font-size: 11px;
    letter-spacing: .1em;
}

.feature-card h3 {
    margin: 28px 0 5px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
}

.feature-card p {
    max-width: 220px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    color: var(--green);
}

/* Content pages */
.page-main {
    min-height: 55vh;
}

.page-hero {
    padding-block: 76px 62px;
}

.page-hero h1 {
    color: var(--green-dark);
}

.page-lead {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8%;
    padding-bottom: 90px;
}

.about-photo img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.about-copy h2 {
    margin-bottom: 22px;
}

.about-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.values-band {
    padding-block: 66px;
    background: var(--sage);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}

.about-value-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.about-value-link:hover h2 {
    text-decoration: underline;
    text-decoration-color: var(--sand);
    text-underline-offset: 5px;
}

.values-grid h2 {
    margin: 10px 0 4px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 400;
}

.values-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.update-card {
    min-height: 190px;
    padding: 25px 28px;
    background: var(--white);
    border: 1px solid var(--line);
}

.update-icon {
    color: #9b8060;
    font-size: 20px;
}

.update-card h2 {
    margin: 14px 0 6px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 400;
}

.update-card p,
.content-note {
    color: var(--muted);
    font-size: 14px;
}

.news-articles {
    padding-bottom: 70px;
}

.about-articles {
    padding-block: 0;
}

.about-articles .news-article:first-child {
    border-top: 0;
}

.about-articles .news-article {
    scroll-margin-top: 24px;
}

.news-article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 48px;
    padding-block: 34px;
    border-top: 1px solid var(--line);
}

.news-article-copy .eyebrow {
    margin-bottom: 10px;
}

.news-article h2 {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
}

.news-article-copy > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.news-article img {
    width: 100%;
    height: clamp(240px, 30vw, 380px);
    object-fit: cover;
}

.content-note {
    padding-block: 24px 74px;
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 10%;
    padding-bottom: 90px;
}

.history-intro {
    color: var(--muted);
    font-size: 18px;
}

.history-topics h2 {
    font-size: 27px;
}

.history-topics ul {
    padding-left: 20px;
    color: var(--muted);
}

.history-topics li {
    padding-block: 5px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 35px;
    background: var(--sage);
    text-align: center;
}

.empty-mark {
    color: #9b8060;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
}

.empty-state h2 {
    margin: 5px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 400;
}

.empty-state p {
    max-width: 610px;
    margin: 0 auto;
    color: var(--muted);
}

.gallery-section {
    padding-bottom: 90px;
}

.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.gallery-heading h2 {
    font-size: 30px;
}

.gallery-heading p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.gallery-hint {
    margin: -8px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.photo-card {
    margin: 0;
    background: var(--white);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card figcaption {
    padding: 13px 16px;
    color: var(--muted);
    font-size: 13px;
}

.archive-year {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 54px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.archive-year > h2 {
    grid-column: 1 / -1;
    margin: 0 0 24px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 400;
}

.album-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform .2s ease;
}

.album-card:hover {
    transform: translateY(-3px);
}

.album-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.album-card span {
    display: block;
    padding: 13px 16px;
    color: var(--muted);
    font-size: 14px;
}

.gallery-album-view {
    margin-top: 36px;
}

.gallery-album-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.gallery-album-heading h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 400;
}

.legal-content {
    max-width: 800px;
    padding-bottom: 80px;
}

.legal-content h2 {
    margin: 28px 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
}

.legal-notice {
    padding: 18px 20px;
    background: #f0e8dc;
    color: #554431;
}

/* Footer */
footer {
    padding-top: 44px;
    background: var(--green-dark);
    color: rgba(255, 255, 255, .84);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 32px;
}

.footer-brand {
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
}

.footer-section p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-legal h2 {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.footer-legal a {
    color: var(--white);
    font-size: 12px;
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    padding: 12px;
}

@media (max-width: 980px) {
    .header-container {
        gap: 18px;
    }

    .menu {
        gap: 12px;
    }

    .menu a {
        font-size: 12px;
    }

    .brand-copy span {
        font-size: 9px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 36px, 600px);
    }

    .header-container {
        position: relative;
        min-height: 78px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        margin-left: auto;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--green-dark);
        cursor: pointer;
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        width: 18px;
        height: 1px;
        display: block;
        background: currentColor;
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before,
    .menu-icon::after {
        position: absolute;
        left: 0;
        content: '';
    }

    .menu-icon::before {
        top: -6px;
    }

    .menu-icon::after {
        top: 6px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: -18px;
        left: -18px;
        display: none;
        padding: 8px 18px 16px;
        background: var(--cream);
        border-top: 1px solid var(--line);
        box-shadow: 0 14px 18px rgba(35, 56, 44, .12);
    }

    .menu.is-open {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .site-nav.is-open {
        display: block;
    }

    .menu.is-open a {
        padding: 11px 0;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
    }

    .language-switch {
        margin-left: 14px;
    }

    .hero {
        min-height: 490px;
    }

    .hero-content {
        padding-block: 68px;
    }

    .intro-section,
    .about-layout,
    .news-article {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intro-section {
        padding-block: 64px;
    }

    .section-heading-row,
    .gallery-heading {
        align-items: start;
        flex-direction: column;
    }

    .updates-grid,
    .history-content {
        grid-template-columns: 1fr;
    }

    .archive-year {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-content {
        gap: 20px;
    }

    .empty-state {
        grid-column: 1;
        margin-top: 15px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-layout {
        padding-bottom: 60px;
    }

    .page-hero {
        padding-block: 58px 42px;
    }

    .news-article img {
        height: auto;
        max-height: 420px;
    }

    .footer-container,
    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .feature-grid,
    .photo-grid,
    .archive-year {
        grid-template-columns: 1fr;
    }

    .gallery-album-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .hero-caption {
        right: 18px;
        bottom: 14px;
    }

    .feature-card {
        min-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
