:root {
    --color-primary: #C0392B;
    --color-primary-dark: #8E2B20;
    --color-primary-deep: #7D251C;
    --color-bg: #F4EFE6;
    --color-surface: #FFF9F1;
    --color-paper: #FFFDF8;
    --color-surface-muted: #EADCCB;
    --color-sand: #DCC9AE;
    --color-earth: #B98E65;
    --color-text: #2B2B2B;
    --color-text-muted: #5B514A;
    --color-border: #E4D8CA;
    --shadow-soft: 0 10px 28px rgba(43, 43, 43, 0.10);
    --shadow-lift: 0 18px 42px rgba(60, 45, 35, 0.16);
    --color-ink: var(--color-text);
    --color-muted: var(--color-text-muted);
    --color-panel: var(--color-surface);
    --color-soft: var(--color-bg);
    --color-line: var(--color-border);
    --color-header: #FFF9F1;
    --color-header-soft: #F4EFE6;
    --color-accent: var(--color-primary);
    --color-accent-dark: var(--color-primary-dark);
    --image-hero-harald: url("/assets/img/hero/sportfoto-luis-hero-harald.jpg");
    --font-body: "Manrope", Arial, sans-serif;
    --font-display: "Barlow Condensed", Arial, sans-serif;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-soft);
    font-family: var(--font-body);
    line-height: 1.6;
}

.maintenance-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 249, 241, 0.94), rgba(244, 239, 230, 0.96)),
        var(--image-hero-harald) center / cover fixed;
}

.maintenance-page {
    display: grid;
    align-items: center;
    min-height: 100vh;
    width: min(100% - 2rem, 54rem);
    margin: 0 auto;
    padding: 2rem 0;
}

.maintenance-card {
    display: grid;
    gap: 1.25rem;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    padding: clamp(1.35rem, 4vw, 2.4rem);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow-lift);
}

.maintenance-brand {
    display: grid;
    gap: 0.18rem;
}

.maintenance-brand img {
    display: block;
    width: min(100%, 20rem);
    height: auto;
}

.maintenance-brand__name {
    margin: 0;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.7rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.maintenance-brand__subtitle {
    margin: 0;
    color: var(--color-accent-dark);
    font-weight: 800;
}

.maintenance-content h1 {
    max-width: 40rem;
    color: var(--color-ink);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    text-transform: uppercase;
}

.maintenance-content p {
    max-width: 43rem;
    margin-bottom: 0;
    color: var(--color-muted);
    font-weight: 650;
}

.maintenance-image {
    display: block;
    width: 100%;
    max-height: 18rem;
    border-radius: 0.45rem;
    object-fit: cover;
}

.maintenance-closing {
    margin: 0;
    border-top: 1px solid var(--color-line);
    padding-top: 1rem;
    color: var(--color-accent-dark);
    font-weight: 850;
}

a {
    color: var(--color-accent-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.7rem;
    letter-spacing: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 10;
    transform: translateY(-160%);
    background: var(--color-panel);
    color: var(--color-ink);
    padding: 0.6rem 0.9rem;
    border-radius: 0.35rem;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 249, 241, 0.96);
    color: var(--color-ink);
    border-bottom: 1px solid rgba(142, 43, 32, 0.12);
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.06);
    backdrop-filter: blur(8px);
}

.site-header__inner,
.site-footer__inner,
.site-main {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.6rem, 3vw, 3rem);
    padding: 0.58rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-ink);
    text-decoration: none;
    min-width: min(23rem, 50vw);
}

.brand:hover {
    color: var(--color-ink);
}

.brand__logo {
    display: block;
    width: auto;
    max-width: min(28rem, 48vw);
    height: clamp(3.05rem, 4.4vw, 3.9rem);
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(0.9rem, 2vw, 1.8rem);
}

.main-nav__link,
.main-nav__dropdown summary {
    position: relative;
    color: var(--color-ink);
    text-decoration: none;
    padding: 0.66rem 0.05rem;
    border-radius: 0;
    font-size: 0.96rem;
    font-weight: 800;
}

.main-nav__link:hover,
.main-nav__link.is-active,
.main-nav__dropdown summary:hover,
.main-nav__dropdown[open] summary {
    color: var(--color-primary);
    background: transparent;
}

.main-nav__link::after,
.main-nav__dropdown summary::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.22rem;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: opacity 160ms ease, transform 160ms ease;
    content: "";
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after,
.main-nav__dropdown summary:hover::after,
.main-nav__dropdown[open] summary::after {
    opacity: 1;
    transform: scaleX(1);
}

.main-nav__dropdown {
    position: relative;
}

.main-nav__dropdown summary {
    display: block;
    cursor: pointer;
    list-style: none;
}

.main-nav__dropdown summary::-webkit-details-marker {
    display: none;
}

.main-nav__dropdown-panel {
    position: absolute;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 0.2rem;
    min-width: 12rem;
    margin-top: 0.45rem;
    padding: 0.45rem;
    border: 1px solid var(--color-line);
    border-radius: 0.45rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.main-nav__dropdown-panel a {
    border-radius: 0.35rem;
    padding: 0.5rem 0.6rem;
    color: var(--color-ink);
    text-decoration: none;
    white-space: nowrap;
}

.main-nav__dropdown-panel a:hover {
    color: var(--color-primary);
    background: rgba(192, 57, 43, 0.08);
}

.site-main {
    padding: 0 0 3.2rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.section,
.page-intro,
.content-panel,
.notice {
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
}

.hero--public {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    width: min(100vw, calc(100% + clamp(2rem, 5vw, 4.5rem)), 1240px);
    min-height: clamp(23.5rem, 33vw, 33.5rem);
    margin: 0 0 1.1rem 50%;
    overflow: hidden;
    border-radius: 0;
    background: var(--color-soft);
    border: 0;
    box-shadow: none;
    transform: translateX(-50%);
}

.hero--public .hero__media {
    position: absolute;
    inset: 0 -2px 0 -2px;
    overflow: hidden;
}

.hero--public .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
}

.hero--public .hero__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(20, 14, 10, 0.80) 0%, rgba(20, 14, 10, 0.62) 38%, rgba(20, 14, 10, 0.20) 65%, rgba(20, 14, 10, 0.02) 82%),
        linear-gradient(0deg, rgba(20, 14, 10, 0.40), rgba(20, 14, 10, 0) 52%);
}

.hero__content {
    padding: clamp(1.4rem, 4vw, 3rem);
}

.hero--public .hero__content {
    display: grid;
    align-content: center;
    position: relative;
    z-index: 1;
    max-width: min(42.5rem, 52%);
    min-height: inherit;
    padding: clamp(1.9rem, 4.4vw, 3.7rem);
    color: #ffffff;
}

.hero--public h1 {
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: clamp(2.9rem, 4.65vw, 4.55rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
}

.hero--public h1::after {
    display: block;
    width: 2.2rem;
    height: 2px;
    margin-top: 0.85rem;
    background: var(--color-accent);
    content: "";
}

.hero--public h1 span,
.hero--public h1 strong {
    display: block;
    white-space: nowrap;
}

.hero--public h1 span {
    margin-bottom: 0.08em;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-display);
    font-size: 0.82em;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.hero--public h1 strong {
    color: var(--color-accent);
}

.hero__claim {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.80);
    max-width: 44rem;
}

.hero--public .hero__claim {
    color: var(--color-accent-dark);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
}

.hero__text {
    max-width: 45rem;
}

.hero--public .hero__text {
    color: rgba(255, 255, 255, 0.80);
    max-width: 28rem;
    margin-bottom: 0;
    font-size: clamp(0.96rem, 1.14vw, 1.08rem);
    font-weight: 700;
    line-height: 1.45;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.3rem;
    min-width: 9.8rem;
    padding: 0.52rem 0.9rem;
    border-radius: 0.4rem;
    color: #ffffff;
    background: var(--color-accent);
    text-decoration: none;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

.button svg,
.text-link svg,
.event-teaser svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.button:hover {
    color: #ffffff;
    background: var(--color-accent-dark);
}

.button--secondary {
    color: var(--color-accent);
    border: 1px solid rgba(192, 57, 43, 0.58);
    background: rgba(255, 253, 248, 0.78);
}

.button--secondary:hover {
    color: var(--color-accent-dark);
    background: #ffffff;
}

.button--danger {
    color: #ffffff;
    background: #842417;
}

.button--danger:hover {
    color: #ffffff;
    background: #5f180f;
}

.button--danger-outline {
    color: #842417;
    border: 1px solid rgba(132, 36, 23, 0.34);
    background: rgba(255, 249, 241, 0.78);
}

.button--danger-outline:hover {
    color: #ffffff;
    background: #842417;
    border-color: #842417;
}

.button--card {
    justify-self: start;
    margin-top: auto;
    text-transform: none;
}

.social-note,
.muted {
    color: var(--color-muted);
}

.event-teaser {
    display: grid;
    grid-template-columns: 2.85rem minmax(15rem, 1fr) minmax(10.5rem, auto) 1.55rem;
    gap: 0.12rem 0.85rem;
    align-items: center;
    width: min(100%, 42.8rem);
    min-height: 4.25rem;
    margin-top: 1.05rem;
    border: 1px solid rgba(142, 43, 32, 0.14);
    border-radius: 0.42rem;
    padding: 0.68rem 0.72rem;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 8px 18px rgba(43, 43, 43, 0.075);
    backdrop-filter: blur(4px);
    color: var(--color-ink);
    text-decoration: none;
}

.event-teaser:hover {
    color: var(--color-ink);
    background: rgba(255, 253, 248, 0.82);
}

.event-teaser__icon {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.32rem;
    color: #ffffff;
    background: var(--color-accent);
}

.event-teaser__text {
    grid-column: 2;
    color: var(--color-muted);
    font-size: 0.77rem;
    line-height: 1.2;
}

.event-teaser strong {
    grid-column: 2;
    color: var(--color-ink);
    font-size: 0.98rem;
    line-height: 1.16;
    overflow-wrap: normal;
    white-space: nowrap;
}

.event-teaser small {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    color: var(--color-accent-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: right;
}

.event-teaser__link {
    display: grid;
    grid-column: 4;
    grid-row: 1 / span 2;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--color-accent);
    text-decoration: none;
}

.event-teaser__link:hover {
    color: var(--color-accent-dark);
}

.hero__visual {
    display: grid;
    gap: 0.8rem;
    min-height: 24rem;
}

.hero__visual span,
.photo-tile__surface,
.album-card__cover {
    display: grid;
    place-items: center;
    min-height: 7rem;
    color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(135deg, rgba(192, 57, 43, 0.88), rgba(43, 43, 43, 0.82)),
        repeating-linear-gradient(45deg, #b98e65 0 12px, #8d6b4d 12px 24px);
    border-radius: 0.5rem;
    font-weight: 800;
}

.hero__visual span:nth-child(2) {
    background:
        linear-gradient(135deg, rgba(43, 43, 43, 0.84), rgba(192, 57, 43, 0.7)),
        repeating-linear-gradient(-45deg, #b98e65 0 12px, #6d5544 12px 24px);
}

.hero__visual span:nth-child(3) {
    background:
        linear-gradient(135deg, rgba(192, 57, 43, 0.74), rgba(43, 43, 43, 0.92)),
        repeating-linear-gradient(90deg, #DCC9AE 0 14px, #9c7858 14px 28px);
}

.eyebrow {
    margin-bottom: 0.5rem;
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero--public .eyebrow {
    color: var(--color-accent);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
}

.hero__eyebrow svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
    stroke: none;
}

.section,
.page-intro,
.content-panel,
.notice {
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
}

.page-intro {
    position: relative;
    overflow: hidden;
    max-width: none;
    min-height: clamp(14rem, 28vw, 20rem);
    display: grid;
    align-content: center;
}

.page-intro::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(20, 14, 10, 0.75), rgba(20, 14, 10, 0.52) 48%, rgba(20, 14, 10, 0.20)),
        var(--image-hero-harald) right center / cover;
    opacity: 1;
}

.page-intro--legal::before {
    background:
        linear-gradient(90deg, rgba(20, 14, 10, 0.82), rgba(20, 14, 10, 0.65) 62%, rgba(20, 14, 10, 0.30)),
        var(--image-hero-harald) right center / cover;
}

.page-intro > * {
    position: relative;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.88);
}

.page-intro h1 {
    margin-bottom: 0.7rem;
    color: var(--color-primary);
    font-size: clamp(2.35rem, 5vw, 4rem);
    text-transform: uppercase;
}

.page-intro .eyebrow::after,
.content-panel .eyebrow::after,
.event-year h2::after,
.event-series__header .eyebrow::after {
    display: block;
    width: 1.55rem;
    height: 2px;
    margin-top: 0.45rem;
    background: var(--color-primary);
    content: "";
}

.page-intro p:last-child,
.content-panel p:last-child {
    margin-bottom: 0;
}

.section--warm {
    background: #F8EBDD;
}

.section--intro {
    max-width: 54rem;
}

.section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-note {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.text-link {
    align-self: center;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.home-overview {
    display: grid;
    grid-template-columns: minmax(21rem, 0.95fr) minmax(0, 1.85fr);
    grid-template-areas:
        "albums photos"
        "albums event";
    gap: 1.18rem;
    align-items: stretch;
    width: min(100vw - 2rem, calc(100% + clamp(1rem, 3vw, 3.5rem)), 1210px);
    margin-left: 50%;
    margin-bottom: 1.4rem;
    transform: translateX(-50%);
}

.home-card {
    display: grid;
    align-content: start;
    gap: 0.95rem;
    min-height: 0;
    padding: clamp(1.12rem, 2vw, 1.45rem);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    background: var(--color-paper);
    box-shadow: 0 12px 32px rgba(43, 43, 43, 0.09);
}

.home-card--albums {
    grid-area: albums;
    grid-template-rows: auto 1fr auto;
}

.home-card--photos {
    grid-area: photos;
    grid-template-rows: auto 1fr auto;
}

.home-card--event {
    grid-area: event;
}

.home-card__header {
    margin-bottom: 0.1rem;
}

.home-card__title {
    margin-bottom: 0;
    color: var(--color-accent-dark);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-card__title::after {
    display: block;
    width: 1.55rem;
    height: 2px;
    margin-top: 0.45rem;
    background: var(--color-primary);
    content: "";
}

.album-preview {
    display: grid;
    gap: 0.68rem;
}

.album-feature {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.45rem;
    color: #ffffff;
    background: #4b3d34;
    text-decoration: none;
}

.album-feature:hover {
    color: #ffffff;
}

.album-feature__image {
    min-height: 9.5rem;
    background:
        linear-gradient(0deg, rgba(43, 43, 43, 0.68), rgba(43, 43, 43, 0.02) 54%),
        var(--album-feature-image, var(--image-hero-harald)) center / cover;
}

.album-feature__meta {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #2B2B2B, #8E2B20);
}

.album-feature__meta small,
.album-feature__meta em {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 750;
}

.album-feature__context {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.album-feature__meta strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.05;
}

.album-preview__list {
    display: grid;
    gap: 0.48rem;
}

.album-row {
    display: grid;
    grid-template-columns: 3.35rem minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    min-height: 3.25rem;
    border: 1px solid rgba(185, 142, 101, 0.28);
    border-radius: 0.4rem;
    padding: 0.42rem 0.55rem;
    color: var(--color-ink);
    background: #FBF3E9;
    text-decoration: none;
}

.album-row:hover {
    color: var(--color-ink);
    background: #F7E8D8;
}

.album-row > span:first-child {
    height: 2.4rem;
    border-radius: 0.32rem;
    background:
        linear-gradient(135deg, rgba(43, 43, 43, 0.08), rgba(43, 43, 43, 0.34)),
        var(--album-row-image, var(--image-hero-harald)) center / cover;
}

.album-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.album-row__context {
    font-size: 0.72rem;
    font-style: normal;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-row small {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.mini-album-list {
    display: grid;
    gap: 0.65rem;
}

.mini-album {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 4.4rem;
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.45rem;
    padding: 0.55rem;
    color: var(--color-ink);
    background: #FBF3E9;
    text-decoration: none;
}

.mini-album:hover {
    color: var(--color-ink);
    border-color: rgba(192, 57, 43, 0.36);
    background: #F7E8D8;
}

.mini-album span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 0.35rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(192, 57, 43, 0.92), rgba(43, 43, 43, 0.78)),
        repeating-linear-gradient(45deg, #b98e65 0 10px, #8d6b4d 10px 20px);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 850;
}

.mini-album strong,
.mini-album small {
    display: block;
    min-width: 0;
}

.mini-album small {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.photo-strip {
    display: grid;
    grid-template-columns: 1fr 2.1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.55rem;
    min-height: 18.5rem;
}

.photo-strip__item {
    position: relative;
    overflow: hidden;
    border-radius: 0.45rem;
    background: #3d332d;
    text-decoration: none;
}

.photo-strip__item--lead {
    grid-column: 2;
    grid-row: 1 / 3;
}

.photo-strip__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease, filter 180ms ease;
}

.photo-strip__item:hover img,
.photo-strip__item:focus-visible img {
    filter: saturate(1.04) contrast(1.03);
    transform: scale(1.015);
}

.home-empty-state {
    display: grid;
    align-content: center;
    min-height: 8.7rem;
    border: 1px dashed rgba(185, 142, 101, 0.46);
    border-radius: 0.45rem;
    padding: 1rem;
    color: var(--color-muted);
    background: #FBF3E9;
}

.home-empty-state p {
    margin: 0;
    font-weight: 750;
}

.home-card--photos .button--card {
    margin-top: 1.1rem;
}

.home-card--event {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "event-title"
        "event-image"
        "event-copy"
        "event-button";
    align-items: start;
    row-gap: 0.92rem;
}

.home-card--event .home-card__header {
    grid-area: event-title;
}

.home-card--event .event-card-preview__image {
    grid-area: event-image;
    height: auto;
    min-height: 7.55rem;
}

.home-card--event .event-card-preview {
    grid-area: event-copy;
}

.home-card--event .button--card {
    grid-area: event-button;
    justify-self: center;
    align-self: start;
    margin-top: 0;
}

.home-card--photos p {
    color: var(--color-muted);
    margin-bottom: 0;
}

.button--center {
    justify-self: center;
}

.event-card-preview {
    display: grid;
    grid-template-columns: 5.85rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
    border-top: 0;
    padding-top: 0;
}

.event-card-preview__image {
    min-height: 6.2rem;
    border-radius: 0.45rem;
    background:
        linear-gradient(90deg, rgba(43, 43, 43, 0.38), rgba(142, 43, 32, 0.14)),
        var(--image-hero-harald) 34% 48% / cover;
}

.event-date-card {
    display: grid;
    align-self: start;
    overflow: hidden;
    min-height: 7.55rem;
    border: 1px solid rgba(142, 43, 32, 0.18);
    border-radius: 0.36rem;
    color: var(--color-accent-dark);
    background: var(--color-paper);
    box-shadow: 0 12px 24px rgba(142, 43, 32, 0.18);
    text-align: center;
}

.event-date-card span {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.42rem 0.55rem 0.26rem;
    color: #ffffff;
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
    font-family: var(--font-display);
    font-size: 3.3rem;
    font-weight: 850;
    line-height: 0.82;
}

.event-date-card strong,
.event-date-card em {
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1;
    text-transform: uppercase;
}

.event-date-card strong {
    padding-top: 0.52rem;
    color: var(--color-primary-dark);
    font-weight: 900;
}

.event-date-card strong::after {
    display: block;
    width: 1.05rem;
    height: 1px;
    margin: 0.38rem auto 0;
    background: rgba(192, 57, 43, 0.52);
    content: "";
}

.event-date-card em {
    padding: 0.32rem 0.45rem 0.52rem;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.event-date-card--empty span {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0;
    color: #ffffff;
    background: transparent;
}

.event-date-card--empty {
    width: 2.65rem;
    min-height: 2.65rem;
    border-radius: 0.36rem;
    align-self: start;
    background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark));
}

.event-date-card--empty svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.event-card-preview--empty {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.event-card-preview > div > strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1.22;
}

.event-card-preview > div > span {
    display: block;
    color: var(--color-primary-dark);
    font-size: 0.88rem;
    font-weight: 750;
}

.event-card-preview > div > p {
    margin: 0.42rem 0 0;
    color: var(--color-muted);
    font-size: 0.98rem;
    font-weight: 650;
}

.event-summary {
    display: grid;
    gap: 0.25rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 0.85rem;
}

.event-summary time {
    color: var(--color-accent-dark);
    font-weight: 850;
}

.event-summary strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
}

.event-summary span {
    color: var(--color-muted);
}

.photo-grid,
.album-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.photo-tile,
.album-card,
.stat,
.event-item {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
}

.photo-tile {
    padding: 0.7rem;
}

.photo-tile p {
    margin: 0.65rem 0 0;
    color: var(--color-muted);
    font-size: 0.94rem;
}

.section--split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
    gap: 1.5rem;
}

.info-panel {
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--color-surface-muted);
}

.info-panel h3 {
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.info-panel p {
    margin-bottom: 0;
}

.stat {
    padding: 1rem;
}

.stat__value {
    display: block;
    font-size: 1.55rem;
    font-weight: 850;
}

.stat__label {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.album-card {
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
}

.album-card--public {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--color-paper);
}

.album-card__cover {
    min-height: 12rem;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 2.2rem;
    text-transform: uppercase;
    background:
        linear-gradient(145deg, rgba(43, 43, 43, 0.14), rgba(43, 43, 43, 0.72)),
        var(--image-hero-harald) center / cover;
}

.album-card--public .album-card__cover {
    min-height: clamp(10rem, 19vw, 13rem);
    color: #ffffff;
    text-decoration: none;
    transition: filter 160ms ease, transform 160ms ease;
}

.album-card--public .album-card__cover--photo {
    background:
        linear-gradient(145deg, rgba(43, 43, 43, 0.34), rgba(43, 43, 43, 0.78)),
        var(--album-preview-image) center / cover;
}

.album-card--public .album-card__cover:hover,
.album-card--public .album-card__cover:focus-visible {
    filter: saturate(1.04) contrast(1.03);
}

.album-card--public .album-card__cover span {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 0.4rem;
    background: rgba(43, 43, 43, 0.28);
    box-shadow: 0 12px 28px rgba(43, 43, 43, 0.22);
}

.album-card--public .album-card__cover--photo span {
    display: none;
}

.album-card__body {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 1rem;
}

.album-card h2,
.album-card p {
    margin-left: 1rem;
    margin-right: 1rem;
}

.album-card h2 {
    margin-top: 1rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.album-card p {
    color: var(--color-muted);
    margin-bottom: 1.1rem;
}

.album-card__body h2,
.album-card__body p {
    margin-left: 0;
    margin-right: 0;
}

.album-card__body h2 {
    margin-top: 0;
}

.album-card__body p {
    margin-bottom: 0.45rem;
}

.album-card__meta,
.album-detail-meta p {
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0 0 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.breadcrumb a {
    color: var(--color-accent-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumb span {
    min-width: 0;
}

.breadcrumb__separator {
    color: rgba(91, 81, 74, 0.58);
    font-weight: 850;
}

.album-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.album-detail-meta p,
.album-back-link {
    margin-bottom: 0;
}

.album-back-link {
    margin-top: 0.35rem;
}

.album-detail-meta__link {
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.album-detail-meta__link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.album-path-box {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.album-path-box p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.album-back-link--bottom {
    text-align: center;
}

.album-photos-heading {
    margin: 1.5rem 0 0.9rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-ink);
}

.public-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.public-photo-tile {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(185, 142, 101, 0.28);
    border-radius: 0.5rem;
    background: var(--color-paper);
    box-shadow: 0 10px 24px rgba(43, 43, 43, 0.09);
}

.public-photo-tile__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #3d332d;
}

.public-photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease, filter 180ms ease;
}

.public-photo-tile:hover img,
.public-photo-tile:focus-within img {
    filter: saturate(1.03) contrast(1.02);
    transform: scale(1.012);
}

.public-photo-tile__caption {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
    padding: 0.52rem 0.62rem 0.58rem;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.25;
}

.public-photo-tile__caption svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.public-photo-tile__caption span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Klickbarer Foto-Trigger (oeffnet die Lightbox) */
.public-photo-tile__trigger {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: zoom-in;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.public-photo-tile__trigger:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.public-photo-tile__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #3d332d;
}

.public-photo-tile__zoom {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(43, 43, 43, 0.55);
    color: #fff;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.public-photo-tile__zoom svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-photo-tile:hover .public-photo-tile__zoom,
.public-photo-tile__trigger:focus-visible .public-photo-tile__zoom {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox / Grossansicht */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    opacity: 0;
    transition: opacity 200ms ease;
}

/* Wichtig: die Klassen-Regel oben hat hoehere Spezifitaet als die
   Browser-Regel [hidden]{display:none}. Ohne diese Zeile bliebe das
   Overlay zwar transparent (opacity:0), wuerde aber als position:fixed
   die ganze Seite ueberdecken und alle Klicks abfangen. */
.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 19, 16, 0.88);
    cursor: zoom-out;
}

.lightbox__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: min(100%, 1120px);
    max-height: 100%;
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    max-width: 100%;
    min-height: 0;
}

.lightbox__image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 3rem;
    min-height: 3rem;
    max-width: 100%;
}

.lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    background: #1c1714;
    transition: opacity 160ms ease;
}

.lightbox__image-wrap.is-loading .lightbox__image {
    opacity: 0.25;
}

.lightbox__spinner {
    position: absolute;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    opacity: 0;
    animation: lightbox-spin 720ms linear infinite;
}

.lightbox__image-wrap.is-loading .lightbox__spinner {
    opacity: 1;
}

@keyframes lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem 0.85rem;
    color: rgba(255, 253, 248, 0.92);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.lightbox__caption-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.85rem;
}

.lightbox__filename {
    overflow-wrap: anywhere;
}

.lightbox__counter {
    color: rgba(255, 253, 248, 0.6);
    font-variant-numeric: tabular-nums;
}

.lightbox__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.1rem;
    font-size: 0.82rem;
    color: rgba(255, 253, 248, 0.6);
}

.lightbox__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lightbox__meta-item svg {
    width: 0.9em;
    height: 0.9em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.lightbox__download {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}

.lightbox__download:hover {
    opacity: 0.8;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 23, 20, 0.6);
    color: #fff;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.lightbox__close svg,
.lightbox__nav svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox__close {
    top: -0.4rem;
    right: -0.4rem;
    width: 2.6rem;
    height: 2.6rem;
}

.lightbox__close svg {
    width: 1.2rem;
    height: 1.2rem;
}

.lightbox__nav {
    top: 50%;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
}

.lightbox__nav svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox__nav--prev {
    left: -0.4rem;
}

.lightbox__nav--next {
    right: -0.4rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: var(--color-accent);
}

.lightbox__nav--prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.lightbox__nav--next:hover {
    transform: translateY(-50%) translateX(2px);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

body.has-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .lightbox__nav {
        top: auto;
        bottom: -0.25rem;
        transform: none;
    }

    .lightbox__nav--prev {
        left: 0.5rem;
    }

    .lightbox__nav--next {
        right: 0.5rem;
    }

    .lightbox__nav--prev:hover,
    .lightbox__nav--next:hover {
        transform: none;
    }

    .lightbox__image {
        max-height: calc(100vh - 11rem);
    }

    .lightbox__caption {
        padding: 0 3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__image,
    .public-photo-tile__zoom {
        transition: none;
    }

    .lightbox__spinner {
        animation-duration: 1600ms;
    }
}

.event-years {
    display: grid;
    gap: 1.15rem;
}

.event-year {
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(43, 43, 43, 0.08);
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.event-year h2 {
    margin-bottom: 1.15rem;
    color: var(--color-accent-dark);
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.event-series-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.event-series {
    display: grid;
    align-content: start;
    border: 1px solid rgba(185, 142, 101, 0.28);
    border-radius: 0.5rem;
    background: #FFFDF8;
    box-shadow: 0 8px 18px rgba(43, 43, 43, 0.055);
}

.event-series__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(185, 142, 101, 0.24);
    background: linear-gradient(90deg, #FFF9F1, rgba(255, 249, 241, 0.48));
}

.event-series__header .eyebrow {
    margin-bottom: 0.25rem;
    color: var(--color-accent-dark);
    font-size: 0.7rem;
}

.event-series__header h3 {
    margin-bottom: 0;
    color: var(--color-ink);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.15;
}

.event-series__link {
    flex: 0 0 auto;
    color: var(--color-accent-dark);
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
}

.event-series__link:hover {
    text-decoration: underline;
}

.event-list {
    display: grid;
}

.event-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.62rem;
    align-items: center;
    padding: 0.48rem 1rem;
    background: transparent;
}

.event-item + .event-item {
    border-top: 1px solid rgba(185, 142, 101, 0.18);
}

.event-item--shared {
    background: rgba(255, 249, 241, 0.62);
    padding-block: 0.58rem;
}

.event-item h4 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.24rem;
    align-items: baseline;
    margin-bottom: 0.04rem;
    color: var(--color-ink);
    font-size: 0.96rem;
    line-height: 1.16;
}

.event-item h4 time {
    color: var(--color-accent-dark);
    font-weight: 900;
}

.event-item p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.3;
}

.event-item__hint {
    display: inline-flex;
    margin-top: 0.18rem;
    border-left: 3px solid rgba(192, 57, 43, 0.38);
    padding-left: 0.45rem;
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.event-notice {
    margin-bottom: 1.25rem;
}

.event-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.event-links--compact {
    justify-self: end;
    margin-top: 0;
}

.event-links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border: 1px solid rgba(192, 57, 43, 0.34);
    border-radius: 0.35rem;
    padding: 0.3rem 0.55rem;
    background: #fff9f1;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.event-links--compact a {
    min-height: 1.8rem;
    border-color: rgba(142, 43, 32, 0.22);
    padding: 0.22rem 0.45rem;
    color: var(--color-accent-dark);
    background: rgba(255, 249, 241, 0.64);
    font-size: 0.82rem;
}

.event-series__empty {
    margin: 0;
    padding: 0.72rem 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.event-disclaimer {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-top: 0.8rem;
    text-align: right;
}

.public-card-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.public-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-info-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.public-info-card h2,
.content-panel--note h2,
.public-empty-state h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.content-panel--note {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.legal-content {
    gap: 0.75rem;
}

.legal-content h2,
.legal-content h3 {
    margin: 0.25rem 0 0;
}

.legal-content ul {
    margin: 0;
    padding-left: 1.2rem;
}

.legal-content a {
    color: var(--color-accent);
    font-weight: 700;
}

.legal-content a:hover {
    color: var(--color-accent-dark);
}

.public-social-link__item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem 0.6rem 0.75rem;
    border: 1.5px solid rgba(91, 81, 74, 0.22);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.7);
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s;
}

.public-social-link__item:hover {
    border-color: var(--color-accent);
    background: #fff;
    color: var(--color-accent);
}

.public-social-link__item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.public-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-items: center;
    padding-top: 0.25rem;
}

.public-social-link {
    width: 3.25rem;
    height: 3.25rem;
}

.public-social-link svg {
    width: 1.55rem;
    height: 1.55rem;
}

.public-social-link--first {
    grid-column: 1;
}

.public-social-link--last {
    grid-column: 3;
}

.public-empty-state {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.public-empty-state__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.4rem;
    background: var(--color-primary);
}

.public-empty-state__icon::before {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #ffffff;
    border-top-width: 4px;
    border-radius: 0.18rem;
    content: "";
}

.check-list {
    padding-left: 1.1rem;
}

.check-list li + li {
    margin-top: 0.45rem;
}

.site-footer {
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.95rem 0;
}

.site-footer p,
.site-footer a,
.site-footer span {
    font-size: 0.86rem;
    line-height: 1.35;
}

.site-footer p {
    margin-bottom: 0;
    color: #ffffff;
    font-weight: 800;
}

.footer-brand {
    display: grid;
    gap: 0.12rem;
}

.footer-brand span,
.footer-brand a {
    color: rgba(255, 255, 255, 0.82);
    margin-left: 1.1rem;
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 600;
    text-decoration: none;
}

.footer-brand .footer-attribution {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.24rem;
    align-items: baseline;
}

.footer-brand .footer-attribution a {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 850;
}

.footer-brand a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 750;
    text-decoration: none;
}

.footer-nav a + a::before {
    display: inline-block;
    margin: 0 0.65rem;
    color: rgba(255, 255, 255, 0.58);
    content: "|";
}

.footer-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.55rem;
}

.footer-social__link {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.14);
}

.footer-social__link svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-social__link:hover {
    color: var(--color-primary);
    background: #ffffff;
    transform: translateY(-1px);
}

.footer-social__link.is-disabled {
    opacity: 0.9;
}

.admin-body {
    min-height: 100vh;
    background: #eef1f4;
}

.admin-header {
    color: #ffffff;
    background: #111820;
    border-bottom: 4px solid var(--color-accent);
}

.admin-header__inner,
.admin-shell {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
}

.admin-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.admin-brand {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-brand:hover {
    color: #ffffff;
}

.admin-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
}

.admin-shell {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 0 3rem;
}

.admin-sidebar,
.admin-main {
    min-width: 0;
}

.admin-main--login {
    width: min(100% - 2rem, var(--content-width));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-soft);
    padding: 0.65rem;
}

.admin-panel {
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.admin-panel--note {
    margin-top: 1rem;
}

.admin-panel--gallery-export {
    margin-bottom: 1rem;
}

.admin-panel--note h2 {
    font-size: 1.15rem;
}

.admin-panel--narrow {
    max-width: 28rem;
    margin: 0 auto;
}

.admin-about-panel h2 {
    margin-bottom: 0.65rem;
    font-size: 1.15rem;
    font-weight: 750;
}

.admin-about-panel address {
    font-style: normal;
}

.admin-about-contact {
    display: grid;
    gap: 1rem;
    margin-top: 0.35rem;
}

.admin-about-contact address {
    line-height: 1.55;
}

.admin-about-contact-list {
    display: grid;
    gap: 0.45rem;
    max-width: 35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-about-contact-list li {
    display: grid;
    grid-template-columns: 1rem 5rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    border-top: 1px solid rgba(91, 81, 74, 0.12);
    padding-top: 0.45rem;
}

.admin-about-contact-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-about-contact-list svg {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--color-muted);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.admin-about-contact-list span {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-about-contact-list a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-about-info-list {
    display: grid;
    gap: 0.45rem;
    max-width: 34rem;
    margin: 0 0 1rem;
}

.admin-about-info-list div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: baseline;
    border-top: 1px solid rgba(91, 81, 74, 0.12);
    padding-top: 0.45rem;
}

.admin-about-info-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-about-info-list dt {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-about-info-list dd {
    margin: 0;
    color: var(--color-ink);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.admin-page-list {
    display: grid;
    gap: 0.85rem;
}

.admin-page-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fffdf8;
}

.admin-page-list__content {
    min-width: 0;
}

.admin-page-list__content h3 {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}

.admin-page-list__content p {
    margin-bottom: 0.2rem;
}

.admin-page-list__content span,
.admin-page-list__meta {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.admin-page-list__content code {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.admin-page-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: end;
}

.admin-page-list__actions .admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.35rem;
    min-height: 2rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(91, 81, 74, 0.28);
    border-radius: 0.35rem;
    color: var(--color-muted);
    background: rgba(255, 249, 241, 0.78);
    font-size: 0.92rem;
    line-height: 1.2;
}

.admin-page-list__actions .admin-action-link:hover {
    color: var(--color-ink);
    background: #ffffff;
    border-color: rgba(91, 81, 74, 0.42);
    text-decoration: none;
}

.admin-album-tree {
    display: grid;
    gap: 0.42rem;
}

.admin-album-tree--muted {
    gap: 0.38rem;
}

.admin-album-tree--js [data-album-tree-row].is-tree-hidden {
    display: none;
}

.admin-album-row {
    --album-depth-offset: 0rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin-left: var(--album-depth-offset);
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.45rem;
    padding: 0.52rem 0.68rem;
    background: #fffdf8;
}

.admin-album-row--depth-1 {
    --album-depth-offset: 1.35rem;
}

.admin-album-row--depth-2 {
    --album-depth-offset: 2.7rem;
}

.admin-album-row--depth-3,
.admin-album-row--depth-4 {
    --album-depth-offset: 4.05rem;
}

.admin-album-row.is-muted-row {
    background: #fbf4ea;
}

.admin-album-row__content {
    display: flex;
    gap: 0.52rem;
    align-items: flex-start;
    min-width: 0;
}

.admin-album-drag-handle {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.7rem;
    min-width: 1.5rem;
    margin-top: 0.04rem;
    border: 1px solid rgba(91, 81, 74, 0.22);
    border-radius: 0.3rem;
    color: var(--color-muted);
    background: #fbf7f0;
    cursor: grab;
    padding: 0;
    touch-action: none;
}

.admin-album-drag-handle:hover,
.admin-album-drag-handle:focus-visible {
    color: var(--color-primary);
    border-color: rgba(142, 43, 32, 0.4);
    background: #ffffff;
}

.admin-album-drag-handle:focus-visible {
    outline: 3px solid rgba(142, 43, 32, 0.24);
    outline-offset: 2px;
}

.admin-album-drag-handle:active {
    cursor: grabbing;
}

.admin-grip-icon {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
    stroke: none;
}

.admin-album-row.is-dragging {
    opacity: 0.5;
}

.admin-album-row.is-drop-before {
    box-shadow: 0 -2px 0 0 var(--color-primary);
}

.admin-album-row.is-drop-after {
    box-shadow: 0 2px 0 0 var(--color-primary);
}

.admin-album-tree-status {
    margin: 0.5rem 0 0;
    min-height: 1.1rem;
    color: #4f6f53;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-album-tree-status.is-error {
    color: #842417;
}

.admin-album-path {
    margin: 0.15rem 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
}

.admin-photo-manage {
    margin: 0;
}

.admin-photo-actionbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    background: var(--color-soft);
}

.admin-photo-actionbar__all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 750;
}

.admin-photo-actionbar__count {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-photo-actionbar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-photo-actionbar__group--delete {
    margin-left: auto;
}

.admin-photo-actionbar select {
    min-width: 12rem;
    max-width: 100%;
}

/* Gebrandeter Bestaetigungsdialog (ersetzt das native confirm() bei destruktiven Aktionen). */
.confirm-dialog {
    max-width: 28rem;
    width: calc(100% - 2rem);
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 0.6rem;
    background: var(--color-panel);
    color: var(--color-ink);
    box-shadow: 0 16px 44px rgba(28, 24, 21, 0.28);
}

.confirm-dialog::backdrop {
    background: rgba(28, 24, 21, 0.45);
}

.confirm-dialog__box {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 1.25rem 1.35rem;
}

.confirm-dialog__title {
    margin: 0;
    font-size: 1.15rem;
}

.confirm-dialog__text {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.45;
}

.confirm-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.confirm-dialog__actions .button {
    min-width: 0;
}

.admin-photo-tile {
    position: relative;
    margin: 0;
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.5rem;
    background: #fffdf8;
    overflow: hidden;
}

.admin-photo-tile__select {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 2;
    display: inline-flex;
    padding: 0.2rem;
    border-radius: 0.3rem;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 1px 2px rgba(28, 24, 21, 0.18);
    cursor: pointer;
}

.admin-photo-tile__select input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.admin-photo-tile.is-selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.35);
}

.admin-photo-tile.is-muted {
    opacity: 0.72;
    background: #f5efe6;
}

.admin-photo-tile__image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: #efe7db;
}

.admin-photo-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-photo-tile__placeholder {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-photo-tile__caption {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.55rem;
}

.admin-photo-tile__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-ink);
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.admin-photo-tile__badge {
    flex: none;
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
    color: #842417;
    background: rgba(132, 36, 23, 0.12);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-photo-tile.is-cover {
    border-color: #b07d3f;
    box-shadow: 0 0 0 2px rgba(176, 125, 63, 0.45);
}

.admin-photo-tile__cover-flag {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    background: #b07d3f;
    color: #fffaf2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 2px rgba(28, 24, 21, 0.28);
}

.admin-photo-tile__actions {
    display: flex;
    justify-content: center;
    padding: 0 0.55rem 0.5rem;
}

.admin-photo-tile__cover-btn {
    width: 100%;
}

.admin-photo-tile__cover-state {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a5d23;
}

.admin-photo-tile__cover-state--muted {
    color: var(--color-muted);
    font-weight: 600;
}

.admin-photo-actionbar__group--cover {
    margin-left: auto;
}

.admin-child-album-list {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-child-album-list a {
    display: block;
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.45rem;
    padding: 0.5rem 0.68rem;
    background: #fffdf8;
    text-decoration: none;
    color: inherit;
}

.admin-child-album-list a:hover,
.admin-child-album-list a:focus-visible {
    border-color: rgba(142, 43, 32, 0.4);
    background: #ffffff;
}

.admin-child-album-list__meta {
    display: block;
    color: var(--color-accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-child-album-list__title {
    display: block;
    margin-top: 0.05rem;
    font-size: 1rem;
    font-weight: 700;
}

.admin-publish__pending {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.admin-publish__done {
    margin: 0;
    color: #4f6f53;
    font-weight: 700;
}

.admin-publish__bar {
    height: 0.55rem;
    margin: 0 0 0.5rem;
    border-radius: 999px;
    background: #efe7db;
    overflow: hidden;
}

.admin-publish__bar-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--color-primary);
    transition: width 0.25s ease;
}

.admin-publish__status {
    margin: 0 0 0.6rem;
    min-height: 1.1rem;
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.target-cascade {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
}

.target-cascade__field {
    display: grid;
    gap: 0.25rem;
}

.target-cascade__field label {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.target-cascade__field select {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid rgba(91, 81, 74, 0.28);
    border-radius: 0.4rem;
    padding: 0.4rem 0.55rem;
    color: var(--color-ink);
    background: #ffffff;
    font: inherit;
}

.target-cascade__field select:focus-visible {
    outline: 3px solid rgba(192, 57, 43, 0.28);
    outline-offset: 2px;
}

.admin-album-row__branch {
    width: 1rem;
    height: 1rem;
    border-left: 2px solid rgba(142, 43, 32, 0.24);
    border-bottom: 2px solid rgba(142, 43, 32, 0.24);
    margin-top: 0.2rem;
}

.admin-album-row--depth-0 .admin-album-row__branch {
    border: 0;
    border-radius: 0.25rem;
    background: var(--color-primary);
}

.admin-album-tree-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1.16rem;
    height: 1.16rem;
    min-width: 1.16rem;
    margin-top: 0.12rem;
    border: 1px solid rgba(142, 43, 32, 0.34);
    border-radius: 0.28rem;
    color: var(--color-primary);
    background: #ffffff;
    cursor: pointer;
    padding: 0;
}

.admin-album-tree-toggle:hover,
.admin-album-tree-toggle:focus-visible {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.admin-album-tree-toggle:focus-visible {
    outline: 3px solid rgba(142, 43, 32, 0.24);
    outline-offset: 2px;
}

.admin-album-tree-toggle__icon {
    position: relative;
    width: 0.62rem;
    height: 0.62rem;
}

.admin-album-tree-toggle__icon::before,
.admin-album-tree-toggle__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.62rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.admin-album-tree-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.admin-album-tree-toggle[aria-expanded="true"] .admin-album-tree-toggle__icon::after {
    opacity: 0;
}

.admin-album-row__main {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-album-row__type,
.admin-album-row__slug,
.admin-album-row__parent {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.admin-album-row__type {
    color: var(--color-accent-dark);
    font-weight: 850;
    text-transform: uppercase;
}

.admin-album-row__main h3 {
    margin: 0.05rem 0 0;
    font-size: 1rem;
    line-height: 1.2;
}

.admin-album-photo-count {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

.admin-album-row__slug code {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
}

.admin-album-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    align-items: center;
    justify-content: flex-end;
}

.admin-album-sort-form {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.32rem;
    align-items: center;
    margin: 0;
}

.admin-album-visibility-form {
    margin: 0;
}

.admin-album-sort-form label {
    display: inline-flex;
    gap: 0.32rem;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-sort-label {
    white-space: nowrap;
}

.admin-sort-input {
    width: 3.2rem;
    min-height: 2.15rem;
    border: 1px solid rgba(91, 81, 74, 0.28);
    border-radius: 0.35rem;
    padding: 0.22rem 0.32rem;
    color: var(--color-ink);
    background: #ffffff;
    font: inherit;
    text-align: center;
}

.admin-icon-button {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    min-width: 2.2rem;
    border: 1px solid rgba(91, 81, 74, 0.28);
    border-radius: 0.35rem;
    color: var(--color-muted);
    background: rgba(255, 253, 248, 0.82);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: none;
}

.admin-icon-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.admin-icon-button--visibility {
    color: #4f6f53;
    border-color: rgba(79, 111, 83, 0.3);
}

.admin-icon-button--visibility-muted {
    color: var(--color-muted);
    border-color: rgba(91, 81, 74, 0.22);
    background: #f2eee8;
}

/* Foto-Icon hebt sich ab, wenn das Album direkt Fotos enthaelt (gruen = Inhalt vorhanden). */
.admin-icon-button--has-photos {
    color: #1d6b3f;
    border-color: #a9d8bd;
    background: #eefaf3;
}

.admin-icon-button--has-photos:hover {
    color: #14512f;
    border-color: #84c7a3;
    background: #ffffff;
}

.admin-icon-button--save.is-unchanged {
    color: rgba(91, 81, 74, 0.48);
    border-color: rgba(91, 81, 74, 0.16);
    background: #f2eee8;
    cursor: default;
}

.admin-icon-button--save.is-changed {
    color: #ffffff;
    border-color: rgba(142, 43, 32, 0.72);
    background: var(--color-primary);
}

.admin-icon-button:hover {
    color: var(--color-ink);
    background: #ffffff;
    border-color: rgba(91, 81, 74, 0.42);
    text-decoration: none;
}

.admin-icon-button--save.is-unchanged:hover {
    color: rgba(91, 81, 74, 0.58);
    border-color: rgba(91, 81, 74, 0.2);
    background: #f2eee8;
}

.admin-icon-button--save.is-changed:hover {
    color: #ffffff;
    border-color: rgba(142, 43, 32, 0.82);
    background: #8e2b20;
}

.admin-icon-button--visibility:hover {
    color: #254529;
    border-color: rgba(79, 111, 83, 0.45);
}

.admin-icon-button--visibility-muted:hover {
    color: var(--color-ink);
    border-color: rgba(91, 81, 74, 0.38);
}

.admin-icon-button:focus-visible,
.admin-sort-input:focus-visible {
    outline: 3px solid rgba(192, 57, 43, 0.28);
    outline-offset: 2px;
}

.admin-icon-button--danger {
    color: #842417;
    border-color: rgba(132, 36, 23, 0.34);
    background: rgba(255, 249, 241, 0.78);
}

.admin-icon-button--danger:hover {
    color: #ffffff;
    background: #842417;
    border-color: #842417;
}

.admin-section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

section[aria-labelledby="admin-upload-scan-status"] {
    padding: 1rem;
}

section[aria-labelledby="admin-upload-scan-status"] .admin-section-heading {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

section[aria-labelledby="admin-upload-scan-status"] h2 {
    font-size: 1.05rem;
    line-height: 1.2;
}

/* Status "Lesbar" sitzt als Status (nicht als zweiter Button) mit etwas Abstand
   hinter dem zweizeiligen Prüfstatus-Block; "Neu scannen" bleibt die Aktion rechts. */
.admin-scan-status-lead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

section[aria-labelledby="admin-upload-scan-status"] .muted {
    font-size: 0.82rem;
    line-height: 1.3;
}

.admin-section-heading__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

section[aria-labelledby="admin-upload-scan-status"] .admin-section-heading__actions {
    gap: 0.38rem;
}

.admin-section-heading h2,
.admin-section-heading p {
    margin-bottom: 0.25rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.admin-stats-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
    gap: 0.6rem;
}

.admin-stats-grid div {
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    padding: 0.9rem;
    background: var(--color-soft);
}

.admin-stats-grid--compact div {
    border-radius: 0.55rem;
    padding: 0.7rem 0.8rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(28, 24, 21, 0.05);
}

.admin-stats-grid dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-stats-grid--compact dt {
    min-height: 2.4em; /* reserviert 2 Zeilen, damit die Zahlen aller Kacheln auf gleicher Hoehe starten */
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.admin-stats-grid dd {
    margin: 0.25rem 0 0;
    font-size: 1.3rem;
    font-weight: 850;
}

.admin-stats-grid--compact dd {
    margin-top: 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ink);
    overflow-wrap: break-word;
}

/* "Neu scannen" folgt jetzt dem regulaeren Sekundaer-Button (rote Outline, Versalien,
   abgerundetes Rechteck) statt einer grauen Pille -- nur die Groesse wird fuer die
   Kopfzeile angepasst, Farben/Hover kommen aus .button--secondary. */
.admin-scan-refresh {
    min-width: 0;
    min-height: 2.1rem;
    padding: 0.4rem 0.95rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

section[aria-labelledby="admin-upload-scan-status"] .status-pill {
    gap: 0.4rem;
    min-height: 2.1rem;
    padding: 0.2rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
}

/* Status als ruhige Anzeige mit farbigem Punkt (gruen = lesbar, rot = nicht lesbar),
   auf Button-Hoehe -- klar als Status statt als zweiter Button lesbar. */
section[aria-labelledby="admin-upload-scan-status"] .status-pill::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.admin-panel--upload-workflow {
    overflow: hidden;
}

.admin-warning,
.admin-warning-list {
    border: 1px solid #ead08f;
    border-radius: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
    color: #765400;
    background: #fff8e5;
}

.admin-warning-list {
    display: grid;
    gap: 0.35rem;
}

.admin-warning-list p {
    margin-bottom: 0;
}

.admin-login {
    min-height: calc(100vh - 10rem);
    display: grid;
    align-items: center;
}

.admin-form {
    display: grid;
    gap: 0.75rem;
}

.admin-form label {
    font-weight: 750;
}

.admin-form .form-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    justify-content: start;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 0.35rem;
    padding: 0.65rem 0.75rem;
    color: var(--color-ink);
    background: #ffffff;
    font: inherit;
}

.admin-form input {
    min-height: 2.7rem;
}

.admin-form input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;
    padding: 0;
}

.admin-form select {
    min-height: 2.7rem;
}

.admin-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.admin-form .input--date {
    max-width: 11.5rem;
}

.admin-form .input--readonly-preview {
    border-color: #ddd4c8;
    color: #6f675f;
    background: #f5f1eb;
}

.admin-form .form-label {
    display: block;
    font-weight: 750;
}

.admin-form .radio-stack {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.admin-login-back-link {
    justify-self: start;
    color: var(--color-muted);
    font-weight: 800;
    text-decoration: none;
}

.admin-login-back-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.form-error {
    border: 1px solid #efb2a8;
    border-radius: 0.4rem;
    padding: 0.75rem 0.9rem;
    color: #842417;
    background: #fff1ee;
}

.field-error,
.field-help {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
}

.field-error {
    color: #842417;
    font-weight: 600;
    font-size: 1rem;
}

.field-help {
    color: var(--color-muted);
}

/* ── Entdecken-Seite ──────────────────────────────────────────── */

.discover-section {
    max-width: var(--content-width);
    margin: 0 auto 3rem;
    padding: 0 var(--space-page);
}

.discover-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.6rem;
}

.discover-section__header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.discover-section__link {
    font-size: 0.875rem;
    color: var(--color-accent);
    white-space: nowrap;
}

/* Foto-Grid: 4 Spalten Desktop, 2 Mobile */
.discover-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.discover-photo-grid__item {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

.discover-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.discover-photo-grid__item:hover img {
    transform: scale(1.04);
}

.discover-photo-grid__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Album-Grid: 3 Kacheln Desktop, 2 Mobile */
.discover-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.discover-album-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.discover-album-card-wrap .discover-album-card {
    width: 100%;
}

.discover-album-card__breadcrumb {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.1rem;
}

.discover-album-card__breadcrumb:hover {
    color: var(--color-accent);
}

.discover-album-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-accent);
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.discover-album-card:hover {
    transform: translateY(-2px);
}

.discover-album-card--photo {
    background-image: var(--album-preview-image);
    background-size: cover;
    background-position: center;
}

.discover-album-card--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

.discover-album-card__initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.35;
}

.discover-album-card--photo .discover-album-card__initial {
    display: none;
}

.discover-album-card__label {
    position: relative;
    z-index: 1;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.discover-album-card__label strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.discover-album-card__label small {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* Serien-Liste */
.discover-series-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.discover-series-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.discover-series-item:first-child {
    border-top: 1px solid var(--color-border);
}

.discover-series-item__cover {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-card);
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
}

.discover-series-item__cover--photo {
    background-image: var(--series-preview-image);
    background-size: cover;
    background-position: center;
}

.discover-series-item__cover--photo span {
    display: none;
}

.discover-series-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.discover-series-item__body strong a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
}

.discover-series-item__body strong a:hover {
    color: var(--color-accent);
}

.discover-series-item__body small {
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .discover-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover-album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-field {
    display: grid;
    gap: 0.15rem;
}

.design-slot {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.design-preview {
    margin: 0;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-header-soft);
}

.design-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.design-preview--logo {
    background:
        repeating-conic-gradient(#e9e2d6 0% 25%, #f6f1e8 0% 50%) 0 / 18px 18px;
}

.design-preview--logo img {
    padding: 1rem;
    box-sizing: border-box;
}

.design-preview--hero img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.design-preview figcaption {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
    background: #fff;
    border-top: 1px solid var(--color-line);
}

.design-form {
    margin: 0;
}

@media (max-width: 720px) {
    .design-slot {
        grid-template-columns: 1fr;
    }
}

.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 0.35rem;
    padding: 0.65rem 0.75rem;
    color: var(--color-ink);
    background: #ffffff;
    font: inherit;
}

.form-field select {
    min-height: 2.7rem;
}

.form-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-field .textarea--page-content {
    min-height: 24rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.form-field--checkbox {
    align-content: end;
}

.form-field--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.7rem;
    font-weight: 750;
}

.form-field--checkbox input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.5fr);
    gap: 1rem;
}

.form-grid--top {
    align-items: start;
}

.form-grid--event {
    grid-template-columns: minmax(9.5rem, 12rem) minmax(20rem, 1fr);
    align-items: start;
}

.form-grid--import-target {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.form-field--target-album {
    max-width: 42rem;
}

.form-inline-control {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.form-inline-control .button {
    width: auto;
    white-space: nowrap;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.form-actions--inline {
    padding-top: 0;
    align-items: center;
    flex-shrink: 0;
}

.admin-panel--danger .form-actions {
    align-items: center;
}

.admin-panel--danger .form-actions form {
    margin: 0;
}

.admin-panel--danger .form-actions .button {
    min-height: 2.4rem;
    min-width: 9.8rem;
    padding: 0.52rem 0.9rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.2;
}

.admin-panel--danger .form-actions .button--secondary {
    color: var(--color-muted);
    border-color: rgba(91, 81, 74, 0.32);
    background: rgba(255, 253, 248, 0.82);
}

.admin-panel--danger .form-actions .button--secondary:hover {
    color: var(--color-ink);
    border-color: rgba(91, 81, 74, 0.48);
    background: #ffffff;
}

.button--small {
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button--small.button--secondary {
    border: 1px solid rgba(192, 57, 43, 0.58);
}

.admin-nav {
    display: grid;
    gap: 0.35rem;
}

.admin-nav__link {
    display: block;
    border-radius: 0.35rem;
    padding: 0.6rem 0.7rem;
    color: var(--color-ink);
    font-weight: 700;
    text-decoration: none;
}

.admin-nav__link--child {
    position: relative;
    margin-left: 0.75rem;
    border-left: 1px solid rgba(91, 81, 74, 0.22);
    padding: 0.45rem 0.65rem 0.45rem 1rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.admin-nav__link--child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.48rem;
    height: 1px;
    background: rgba(91, 81, 74, 0.34);
}

.admin-nav__link.has-active-child {
    color: var(--color-accent-dark);
    background: rgba(192, 57, 43, 0.08);
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
    color: #ffffff;
    background: var(--color-accent);
}

.admin-version {
    display: grid;
    gap: 0.1rem;
    border-top: 1px solid var(--color-line);
    margin-top: 0.8rem;
    padding: 0.85rem 0.7rem 0.2rem;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.admin-version strong {
    color: var(--color-ink);
    font-size: 0.86rem;
}

.admin-page-header {
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-soft);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.admin-page-header--with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Textspalte darf schrumpfen, damit lange Titel umbrechen statt den Aktionsbutton zu ueberlappen. */
.admin-page-header--with-action > div {
    min-width: 0;
}

.admin-page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    overflow-wrap: anywhere;
}

/* Album-Inhaltsansicht: der Titel kommt vom Nutzer und kann beliebig lang sein.
   Die Aktion deshalb unter den Kopf stellen (volle Titelbreite, nie eine Kollision
   mit dem Button). Die Header mit festen Kurztiteln bleiben nebeneinander. */
section[aria-labelledby="admin-album-photos-title"].admin-page-header--with-action {
    display: block;
}

section[aria-labelledby="admin-album-photos-title"].admin-page-header--with-action > .button {
    margin-top: 0.9rem;
}

.admin-page-header p {
    max-width: 46rem;
    color: var(--color-muted);
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-groups {
    display: grid;
    gap: 1.25rem;
}

.admin-dashboard-group {
    display: grid;
    gap: 0.7rem;
}

.admin-dashboard-group > h2 {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-module-card {
    display: grid;
    align-content: start;
    gap: 0.85rem;
    min-height: 13rem;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-soft);
    padding: 1.15rem;
}

.admin-module-card__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.admin-module-card h2,
.admin-module-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-module-card p {
    color: var(--color-muted);
}

.admin-module-card__header span {
    flex: 0 0 auto;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: var(--color-muted);
    background: var(--color-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-module-card__link {
    align-self: end;
    justify-self: start;
    color: var(--color-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.admin-module-card__link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.admin-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.35rem;
    border: 1px solid rgba(142, 43, 32, 0.14);
    border-radius: 0.45rem;
    margin-bottom: 1.25rem;
    padding: 0.7rem 0.85rem;
    color: var(--color-muted);
    background: rgba(255, 253, 248, 0.78);
}

.admin-stats-strip p {
    margin: 0;
}

.admin-stats-strip strong {
    color: var(--color-ink);
    font-weight: 900;
}

.admin-system-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.admin-system-card--paths {
    grid-row: span 2;
}

.admin-system-card--seo {
    grid-column: 2;
}

.admin-system-card--backup {
    grid-column: 1 / -1;
}

.admin-system-card {
    display: grid;
    gap: 0.85rem;
}

.admin-system-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.admin-status-table {
    display: grid;
    gap: 0.55rem;
}

.admin-status-row {
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    border-top: 1px solid rgba(91, 81, 74, 0.12);
    padding-top: 0.55rem;
}

.admin-status-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    color: var(--color-muted);
    background: var(--color-soft);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-status-badge--ok {
    border-color: rgba(79, 111, 83, 0.24);
    color: #254529;
    background: #eef7ef;
}

.admin-status-badge--notice {
    border-color: rgba(153, 112, 39, 0.24);
    color: #765400;
    background: #fff8e5;
}

.admin-status-badge--check {
    border-color: rgba(132, 36, 23, 0.24);
    color: #842417;
    background: #fff1ee;
}

.admin-status-row__content {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.admin-status-row__content strong,
.admin-status-row__content span,
.admin-status-row__content p {
    overflow-wrap: anywhere;
}

.admin-status-row__content span,
.admin-status-row__content p {
    color: var(--color-muted);
}

.admin-status-row__content p {
    margin: 0;
    font-size: 0.9rem;
}

.admin-flash {
    border: 1px solid var(--color-line);
    border-radius: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #ffffff;
    font-weight: 750;
}

.admin-flash--success {
    border-color: #a9d8bd;
    color: #1d6b3f;
    background: #eefaf3;
}

.admin-flash--error {
    border-color: #efb2a8;
    color: #842417;
    background: #fff1ee;
}

.admin-maintenance-notice {
    border: 1px solid #ead08f;
    border-radius: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    color: #765400;
    background: #fff8e5;
    font-weight: 750;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    background: var(--color-panel);
}

.admin-table-wrap--no-scroll {
    overflow-x: visible;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 56rem;
}

.admin-table--upload {
    min-width: 72rem;
}

.admin-table--import {
    min-width: 92rem;
}

.admin-table--events {
    min-width: 0;
}

.admin-table--compact {
    min-width: 0;
}

.admin-table--upload-simple {
    table-layout: fixed;
}

.admin-table--upload-simple th,
.admin-table--upload-simple td,
.admin-table--import-items th,
.admin-table--import-items td {
    padding: 0.42rem 0.6rem;
    overflow-wrap: anywhere;
}

.admin-table--upload-simple td,
.admin-table--import-items td {
    font-size: 0.88rem;
    vertical-align: middle;
}

.admin-table--upload-simple th:first-child,
.admin-table--upload-simple td:first-child {
    width: 6rem;
}

/* Dateiname einzeilig halten; bei Extremlaenge sauber kuerzen statt umbrechen. */
.admin-table--upload-simple th:nth-child(2),
.admin-table--upload-simple td:nth-child(2) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-table--upload-simple th:nth-child(3),
.admin-table--upload-simple td:nth-child(3) {
    width: 5.5rem;
}

.admin-check-all {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.16rem 0.34rem;
    align-items: center;
    justify-content: start;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: none;
}

.admin-check-all__heading {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.admin-check-all input {
    flex: none;
    width: 1rem;
    height: 1rem;
    min-height: 1rem;
    padding: 0;
}

.admin-table--upload-simple input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-height: 1rem;
    padding: 0;
}

/* Kopfzeile als getoenter Band heben sich vom weissen Body ab. */
.admin-table--upload-simple thead th,
.admin-table--import-items thead th,
.admin-table--import-log thead th {
    background: #f0e7d8;
    border-bottom: 2px solid rgba(91, 81, 74, 0.22);
    color: #6b5d4f;
    font-weight: 800;
}

.admin-table--upload-simple th:first-child {
    background: #f0e7d8;
}

.admin-table--import-items {
    min-width: 0;
    table-layout: fixed;
}

/* Dateiname einzeilig halten (wie in der Upload-Tabelle). */
.admin-table--import-items th:nth-child(1),
.admin-table--import-items td:nth-child(1) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-table--import-items th:nth-child(2),
.admin-table--import-items td:nth-child(2) {
    width: 5.5rem;
}

.admin-table--import-items th:nth-child(3),
.admin-table--import-items td:nth-child(3) {
    width: 8rem;
}

.admin-table--import-items th:nth-child(4),
.admin-table--import-items td:nth-child(4) {
    width: 7.5rem;
}

/* "Stilllegen"-Button fuellt seine Zelle, statt die breite Standard-Button-Mindestbreite zu erzwingen. */
.admin-table--import-items td:nth-child(5) .button {
    min-width: 0;
    width: 100%;
    white-space: nowrap;
}

/* Import-Log-Liste: passt ohne horizontalen Scroll, gleicher Look wie die anderen Tabellen. */
.admin-table--import-log {
    min-width: 0;
    table-layout: fixed;
}

.admin-table--import-log th,
.admin-table--import-log td {
    padding: 0.42rem 0.6rem;
    overflow-wrap: break-word; /* Datum bricht am Leerzeichen statt mitten in der Zahl */
}

.admin-table--import-log td {
    font-size: 0.88rem;
    vertical-align: middle;
}

.admin-table--import-log th:nth-child(1),
.admin-table--import-log td:nth-child(1) {
    width: 6.5rem;
}

.admin-table--import-log th:nth-child(2),
.admin-table--import-log td:nth-child(2) {
    width: 8.5rem;
}

/* Galeriepfad einzeilig mit Ellipse; voller Pfad per Tooltip. Haelt die Zeilen flach. */
.admin-table--import-log th:nth-child(3),
.admin-table--import-log td:nth-child(3) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.admin-table--import-log th:nth-child(4),
.admin-table--import-log td:nth-child(4) {
    width: 5rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
    background: var(--color-panel);
}

.admin-table th {
    color: var(--color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.admin-table th:last-child,
.admin-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 1;
    width: 7rem;
    min-width: 7rem;
    box-shadow: -8px 0 14px rgba(43, 43, 43, 0.07);
}

.admin-table th:last-child {
    z-index: 2;
}

.admin-table-wrap--no-scroll .admin-table th:last-child,
.admin-table-wrap--no-scroll .admin-table td:last-child {
    position: static;
    width: auto;
    min-width: 0;
    box-shadow: none;
}

/* HINWEIS ist hier keine Sticky-Aktionsspalte: feste Breite setzen (gewinnt gegen die
   generische no-scroll-Regel oben), damit nur der Dateiname die Restbreite bekommt. */
.admin-table-wrap--no-scroll .admin-table--upload-simple th:nth-child(4),
.admin-table-wrap--no-scroll .admin-table--upload-simple td:nth-child(4) {
    width: 11rem;
}

.admin-table-wrap--no-scroll .admin-table--import-items th:nth-child(5),
.admin-table-wrap--no-scroll .admin-table--import-items td:nth-child(5) {
    width: 8rem;
}

.admin-table-wrap--no-scroll .admin-table--import-log th:nth-child(5),
.admin-table-wrap--no-scroll .admin-table--import-log td:nth-child(5) {
    width: 5.5rem;
}

.admin-table code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
}

.admin-table__meta {
    display: block;
    color: var(--color-muted);
    font-size: 0.86rem;
}

.admin-event-groups {
    display: grid;
    gap: 1.25rem;
}

.admin-event-year {
    display: grid;
    gap: 0.8rem;
}

.admin-event-year > h3 {
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 0.35rem;
    color: var(--color-ink);
    font-size: 1.35rem;
}

.admin-event-series-groups {
    display: grid;
    gap: 0.85rem;
}

.admin-event-series-card {
    border: 1px solid var(--color-line);
    border-radius: 0.5rem;
    background: #fffdf8;
}

.admin-event-series-card h4 {
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
}

.admin-event-list {
    display: grid;
}

.admin-event-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.55fr) minmax(10rem, 1fr) auto minmax(9rem, auto);
    gap: 0.75rem;
    align-items: center;
    border-bottom: 1px solid var(--color-line);
    padding: 0.65rem 0.9rem;
    background: #ffffff;
}

.admin-event-row:last-child {
    border-bottom: 0;
}

.admin-event-row__date {
    font-weight: 850;
}

.admin-event-row__location {
    min-width: 0;
}

.admin-action-link {
    border: 0;
    padding: 0;
    color: var(--color-accent-dark);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.admin-action-link:hover {
    text-decoration: underline;
}

.admin-action-link--danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(132, 36, 23, 0.28);
    border-radius: 0.35rem;
    color: #842417;
    background: rgba(255, 249, 241, 0.78);
}

.admin-action-link--danger:hover {
    color: #ffffff;
    background: #842417;
    border-color: #842417;
    text-decoration: none;
}

.admin-row-actions {
    display: grid;
    gap: 0.45rem;
    justify-content: start;
}

.admin-row-actions form {
    margin: 0;
}

.admin-row-actions--inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.admin-row-actions .admin-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.35rem;
    min-height: 2rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(91, 81, 74, 0.28);
    border-radius: 0.35rem;
    color: var(--color-muted);
    background: rgba(255, 253, 248, 0.82);
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
}

.admin-row-actions .admin-action-link:hover {
    color: var(--color-ink);
    background: #ffffff;
    border-color: rgba(91, 81, 74, 0.42);
    text-decoration: none;
}

.admin-row-actions .admin-action-link--danger {
    color: #842417;
    border-color: rgba(132, 36, 23, 0.34);
    background: rgba(255, 249, 241, 0.78);
}

.admin-row-actions .admin-action-link--danger:hover {
    color: #ffffff;
    background: #842417;
    border-color: #842417;
}

.admin-empty-state {
    border: 1px dashed var(--color-line);
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: var(--color-soft);
}

.admin-empty-state--compact {
    padding: 1rem;
}

.admin-empty-state h3 {
    margin-bottom: 0.35rem;
}

.admin-panel--danger {
    border-color: #efb2a8;
    background: #fff8f5;
}

.is-muted-row {
    color: var(--color-muted);
}

.is-muted-row td {
    background: #fbf4ea;
}

.target-preview {
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--color-line);
    border-radius: 0.45rem;
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    background: var(--color-soft);
}

.target-preview span,
.detail-grid dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.target-preview code,
.detail-grid code {
    overflow-wrap: anywhere;
}

.target-preview code {
    display: block;
    margin-left: 0.85rem;
    padding-left: 0.55rem;
    border-left: 2px solid rgba(142, 43, 32, 0.18);
    font-size: 0.92rem;
    line-height: 1.45;
}

.planned-gallery-assignment {
    display: grid;
    gap: 0.52rem;
    margin-top: 0.85rem;
    padding: 0;
    background: transparent;
}

.planned-gallery-assignment h3 {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 850;
    text-transform: uppercase;
}

.planned-gallery-assignment__path {
    display: grid;
    gap: 0.38rem;
}

.planned-gallery-assignment__row {
    --planned-depth-offset: 0rem;
    display: grid;
    grid-template-columns: 1.08rem minmax(0, 1fr);
    gap: 0.52rem;
    align-items: start;
    margin-left: var(--planned-depth-offset);
    border: 1px solid rgba(185, 142, 101, 0.32);
    border-radius: 0.45rem;
    padding: 0.48rem 0.62rem;
    background: #fffdf8;
}

.planned-gallery-assignment__row--depth-1 {
    --planned-depth-offset: 1.35rem;
}

.planned-gallery-assignment__row--depth-2 {
    --planned-depth-offset: 2.7rem;
}

.planned-gallery-assignment__row--depth-3,
.planned-gallery-assignment__row--depth-4 {
    --planned-depth-offset: 4.05rem;
}

.planned-gallery-assignment__branch {
    width: 1rem;
    height: 1rem;
    border-left: 2px solid rgba(142, 43, 32, 0.24);
    border-bottom: 2px solid rgba(142, 43, 32, 0.24);
    margin-top: 0.2rem;
}

.planned-gallery-assignment__row--depth-0 .planned-gallery-assignment__branch {
    border: 0;
    border-radius: 0.25rem;
    background: var(--color-primary);
}

.planned-gallery-assignment__content {
    min-width: 0;
}

.planned-gallery-assignment__content p {
    margin: 0;
    color: var(--color-accent-dark);
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
}

.planned-gallery-assignment__content h4 {
    margin: 0.05rem 0 0;
    font-size: 0.98rem;
    line-height: 1.2;
}

.planned-gallery-assignment__row.is-selected {
    border-color: rgba(79, 111, 83, 0.32);
    color: var(--color-ink);
    background: #eefaf3;
}

.planned-gallery-assignment__row.is-selected .planned-gallery-assignment__content h4 {
    font-weight: 850;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.detail-grid div {
    border: 1px solid var(--color-line);
    border-radius: 0.45rem;
    padding: 0.85rem;
    background: var(--color-soft);
}

.detail-grid dd {
    margin: 0.25rem 0 0;
}

.admin-note-block {
    border-top: 1px solid var(--color-line);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.admin-note-block h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.detail-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    color: var(--color-muted);
    background: var(--color-soft);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill--ok {
    border-color: #a9d8bd;
    color: #1d6b3f;
    background: #eefaf3;
}

.status-pill--warn {
    border-color: #ead08f;
    color: #765400;
    background: #fff8e5;
}

.status-pill--danger {
    border-color: #efb2a8;
    color: #842417;
    background: #fff1ee;
}

@media (max-width: 820px) {
    .site-header__inner,
    .site-footer__inner,
    .hero,
    .section--split,
    .home-overview {
        grid-template-columns: 1fr;
    }

    .home-overview {
        grid-template-areas: none;
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .home-card--albums,
    .home-card--photos,
    .home-card--event {
        grid-area: auto;
    }

    .home-card--event {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }

    .home-card--event .home-card__header,
    .home-card--event .event-card-preview__image,
    .home-card--event .event-card-preview,
    .home-card--event .button--card {
        grid-area: auto;
    }

    .home-card--event .button--card {
        margin-left: 0;
    }

    .home-card--event .event-card-preview__image {
        min-height: 5.6rem;
    }

    .photo-strip {
        grid-template-columns: 1fr 2.1fr 1fr;
    }

    .event-series-list {
        grid-template-columns: 1fr;
    }

    .site-header__inner,
    .site-footer__inner {
        display: grid;
        justify-items: start;
    }

    .footer-actions {
        justify-content: flex-start;
    }

    .main-nav,
    .footer-nav {
        justify-content: flex-start;
    }

    .main-nav__dropdown-panel {
        position: static;
        width: 100%;
    }

    .hero--public {
        width: 100%;
        min-height: 29.5rem;
        margin-left: 0;
        transform: none;
    }

    .hero--public .hero__content {
        max-width: 100%;
        min-height: inherit;
        padding: 1.4rem;
    }

    .hero--public .hero__media {
        min-height: 100%;
    }

    .hero--public .hero__media img {
        object-position: 34% center;
    }

    .hero--public .hero__media::after {
        background:
            linear-gradient(90deg, rgba(244, 239, 230, 1) 0%, rgba(244, 239, 230, 0.95) 48%, rgba(244, 239, 230, 0.55) 82%, rgba(244, 239, 230, 0.24)),
            linear-gradient(0deg, rgba(244, 239, 230, 0.86), rgba(244, 239, 230, 0.16) 54%);
    }

    .hero--public h1 {
        font-size: clamp(2.45rem, 8vw, 3.65rem);
    }

    .event-teaser {
        grid-template-columns: 2.7rem minmax(0, 1fr) 1.8rem;
        width: min(100%, 38rem);
    }

    .event-teaser small {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        text-align: left;
    }

    .event-teaser strong {
        white-space: normal;
    }

    .event-teaser__link {
        grid-column: 3;
        grid-row: 1 / span 3;
    }

    .hero__visual {
        min-height: 0;
    }

    .photo-grid,
    .album-grid,
    .public-photo-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .admin-system-sections {
        grid-template-columns: 1fr;
    }

    .admin-status-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .admin-status-badge {
        justify-self: start;
    }

    .admin-page-header--with-action,
    .form-grid,
    .form-grid--event,
    .form-grid--import-target,
    .admin-stats-grid,
    .public-card-grid--two,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header--with-action {
        display: grid;
        justify-items: start;
    }

    .admin-section-heading {
        display: grid;
    }

    .admin-page-list__item {
        grid-template-columns: 1fr;
    }

    .admin-page-list__actions {
        justify-content: start;
    }

    .admin-album-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .admin-album-row--depth-1 {
        --album-depth-offset: 0.75rem;
    }

    .admin-album-row--depth-2,
    .admin-album-row--depth-3,
    .admin-album-row--depth-4 {
        --album-depth-offset: 1.5rem;
    }

    .planned-gallery-assignment__row--depth-1 {
        --planned-depth-offset: 0.75rem;
    }

    .planned-gallery-assignment__row--depth-2,
    .planned-gallery-assignment__row--depth-3,
    .planned-gallery-assignment__row--depth-4 {
        --planned-depth-offset: 1.5rem;
    }

    .admin-album-row__actions {
        justify-content: start;
    }

    .public-social-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .public-social-link--first,
    .public-social-link--last {
        grid-column: auto;
    }

    .form-inline-control {
        grid-template-columns: 1fr;
    }

    .admin-event-row {
        grid-template-columns: minmax(7rem, 0.8fr) minmax(8rem, 1fr);
    }

    .admin-event-row__status,
    .admin-row-actions--inline {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .site-header__inner,
    .site-footer__inner,
    .site-main {
        width: min(100% - 1rem, var(--content-width));
    }

    .main-nav__link {
        padding: 0.5rem 0.6rem;
    }

    .brand {
        min-width: 0;
    }

    .brand__logo {
        max-width: 100%;
        height: auto;
        max-height: 3.65rem;
    }

    .hero--public {
        min-height: 29rem;
    }

    .hero--public .hero__content {
        padding: 1rem;
    }

    .hero--public h1 {
        font-size: clamp(2rem, 10.5vw, 3rem);
    }

    .hero--public h1 span,
    .hero--public h1 strong {
        white-space: normal;
    }

    .hero--public .hero__media {
        min-height: 100%;
    }

    .hero__actions,
    .button {
        width: 100%;
    }

    .button {
        min-width: 0;
    }

    .event-teaser {
        grid-template-columns: 2.5rem minmax(0, 1fr) 1.8rem;
        padding: 0.6rem;
    }

    .event-card-preview {
        grid-template-columns: 5.35rem minmax(0, 1fr);
        gap: 0.85rem;
    }

    .home-card--event .button--card {
        margin-left: 0;
        width: auto;
    }

    .photo-grid,
    .album-grid,
    .public-photo-grid,
    .stats-grid,
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip {
        grid-template-rows: none;
        min-height: 0;
    }

    .photo-strip__item {
        aspect-ratio: 4 / 3;
    }

    .photo-strip__item--lead {
        grid-column: auto;
        grid-row: auto;
    }

    .public-empty-state {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .breadcrumb {
        margin-top: 0.65rem;
    }

    .event-series__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        align-items: start;
    }

    .event-links--compact {
        grid-column: auto;
        justify-self: start;
    }

    .home-card {
        min-height: 0;
    }

    .admin-header__inner,
    .admin-user {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table th:last-child,
    .admin-table td:last-child {
        min-width: 6.5rem;
    }

    .admin-table--events,
    .admin-table--compact,
    .admin-table--events tbody,
    .admin-table--compact tbody,
    .admin-table--events tr,
    .admin-table--compact tr,
    .admin-table--events td,
    .admin-table--compact td {
        display: block;
    }

    .admin-table--events thead,
    .admin-table--compact thead {
        display: none;
    }

    .admin-table--events tr,
    .admin-table--compact tr {
        border-bottom: 1px solid var(--color-line);
        padding: 0.35rem 0;
    }

    .admin-table--events td,
    .admin-table--compact td {
        border-bottom: 0;
        padding: 0.45rem 0.75rem;
    }

    .admin-event-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .admin-row-actions--inline {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .admin-album-row {
        --album-depth-offset: 0rem;
    }

    .detail-grid--compact {
        grid-template-columns: 1fr;
    }

}
