:root {
    --yellow: #ffd72e;
    --yellow-deep: #e8b800;
    --ink: #17211d;
    --muted: #61716c;
    --line: #e4e8e5;
    --paper: #fbfaf4;
    --white: #ffffff;
    --green: #154b40;
    --red: #d63a32;
    --shadow: 0 22px 70px rgba(23, 33, 29, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px clamp(18px, 4vw, 56px) 12px;
    color: var(--white);
    transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
    padding-block: 4px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand img {
    width: 192px;
    height: 192px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 700;
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 3px;
    content: "";
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 94vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media {
    background: url("../img/hero-rheinfall.jpg") center / cover no-repeat;
    transform: scale(1.04);
    animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 23, 19, 0.86), rgba(5, 23, 19, 0.46) 46%, rgba(5, 23, 19, 0.08)),
        linear-gradient(0deg, rgba(5, 23, 19, 0.72), rgba(5, 23, 19, 0.02) 54%);
}

.hero-content {
    width: min(900px, calc(100% - 36px));
    margin: 0 auto;
    padding: 150px 0 120px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--green);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 8vw, 7.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    font-size: 1.35rem;
}

.hero-text {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #10140f;
    background: var(--yellow);
    box-shadow: 0 12px 30px rgba(255, 215, 46, 0.32);
}

.btn.ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.btn.small {
    min-height: 36px;
    padding: 8px 12px;
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
    font-size: 0.85rem;
}

.btn.danger {
    color: var(--white);
    background: var(--red);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-card {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    padding: 14px 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 52px;
    height: 62px;
    object-fit: contain;
}

.hero-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.section {
    padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-copy {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-copy.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

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

.feature {
    min-height: 290px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(23, 33, 29, 0.07);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 36px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 50%;
    font-weight: 900;
}

.august-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    min-height: 640px;
    background: var(--white);
}

.august-image {
    min-height: 420px;
    background: url("../../uploads/gallery/nationalfeiertag.jpg") center / cover no-repeat;
}

.august-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 6vw, 82px);
}

.august-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.12rem;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin-top: 24px;
    padding: 14px 18px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(232, 184, 0, 0.2);
}

.date-badge span {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 950;
}

.date-badge small {
    font-weight: 850;
    text-transform: uppercase;
}

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

.gallery-item {
    position: relative;
    min-height: 310px;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: #dfe8e5;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(23, 33, 29, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.04) 58%);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-label {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    text-align: left;
}

.gallery-label strong,
.gallery-label small {
    display: block;
}

.gallery-label small {
    color: var(--yellow);
    font-weight: 850;
}

.contact-band {
    padding: 72px clamp(18px, 5vw, 72px);
    background: var(--yellow);
}

.contact-inner {
    display: flex;
    align-items: center;
    gap: clamp(34px, 5vw, 78px);
    max-width: 1320px;
    margin: 0 auto;
}

.contact-inner img {
    width: clamp(130px, 14vw, 210px);
    flex: 0 0 auto;
}

.contact-inner > div {
    flex: 1 1 560px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 26px clamp(18px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.82);
    background: #111816;
}

.site-footer a {
    color: var(--yellow);
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 32px;
    color: var(--white);
    background: rgba(8, 12, 10, 0.9);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-height: 78vh;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lightbox button {
    position: absolute;
    top: 20px;
    right: 26px;
    width: 46px;
    height: 46px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 215, 46, 0.34), rgba(255, 255, 255, 0.78)),
        url("../img/hero-rheinfall.jpg") center / cover no-repeat;
}

.auth-panel,
.admin-card {
    width: min(100%, 520px);
    padding: 32px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-logo {
    width: 130px;
    margin-bottom: 20px;
}

.form-stack,
.admin-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #cfd8d3;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.notice {
    margin: 18px 0;
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 750;
}

.notice.success {
    color: #0f4731;
    background: #dcf6e8;
}

.notice.error {
    color: #842018;
    background: #ffe2df;
}

.subtle-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-weight: 800;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    background: #f4f5ef;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    color: var(--white);
    background: #101816;
}

.admin-sidebar img {
    width: 120px;
    margin-bottom: 12px;
}

.admin-sidebar a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.admin-main {
    padding: clamp(22px, 4vw, 54px);
}

.admin-top {
    margin-bottom: 28px;
}

.admin-card {
    width: 100%;
    margin-bottom: 24px;
    background: var(--white);
    backdrop-filter: none;
}

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

.gallery-editor label:nth-child(6),
.gallery-editor label:nth-child(8),
.form-actions {
    grid-column: 1 / -1;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-gallery-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.admin-gallery-row {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f7f8f4;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-gallery-row img {
    width: 88px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-gallery-row span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

@keyframes heroDrift {
    from {
        transform: scale(1.04) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.09) translate3d(-1.4%, -1.2%, 0);
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        color: currentColor;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        color: var(--ink);
        background: var(--white);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 860px;
    }

    .hero-content {
        padding-bottom: 210px;
    }

    .hero-card {
        right: 18px;
        bottom: 28px;
        left: 18px;
        max-width: none;
    }

    .intro-grid,
    .gallery-grid,
    .august-band,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .gallery-editor,
    .admin-gallery-row {
        grid-template-columns: 1fr;
    }

    .admin-gallery-row img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 620px) {
    .brand span {
        display: none;
    }

    .hero-content {
        width: calc(100% - 28px);
    }

    .hero-actions,
    .contact-inner,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }

    .section,
    .contact-band {
        padding-inline: 14px;
    }
}
