@font-face {
    font-family: 'Alex Brush';
    src: url('/assets/fonts/alex-brush.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #fff;
    --color-text: #33302c;
    --color-accent: #a8785a;
    --color-border: #e2d9d0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-hyphens: none;
    hyphens: none;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/assets/img/wasserzeichen.jpg') center / cover fixed no-repeat;
    opacity: 0.1;
    z-index: -1;
}

h1, h2, h3 {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}

.site-main h2:first-child {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
}

.site-header {
    padding: 2rem 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.wordmark {
    margin: 0 0 0.75rem;
    line-height: 1.1;
    text-align: center;
}

.wordmark-line {
    display: block;
    width: 100%;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 300;
    font-size: 1.3rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #8c8c8c;
}

.wordmark-und {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Alex Brush', cursive;
    font-size: 2.4rem;
    color: #3a3a3a;
    margin: -0.2rem 0;
}

.site-header nav a {
    margin: 0 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
}

.site-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: #766;
    font-size: 0.9rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 420px;
    margin-bottom: 2rem;
}

.form input,
.form select {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
}

.form button,
.rsvp-form button,
.gallery-actions button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    background: var(--color-accent);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.form button:disabled,
.rsvp-form button:disabled {
    opacity: 0.5;
    cursor: default;
}

.error {
    color: #b23b3b;
}

.success {
    color: #3b7a3b;
}

.cards {
    display: grid;
    gap: 1rem;
}

.card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
}

.rsvp-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.radio-option,
.checkbox-option {
    display: block;
    margin: 0.25rem 0;
}

fieldset {
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    margin-bottom: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--color-border);
    padding: 0.4rem 0.6rem;
    text-align: left;
    font-size: 0.9rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.checklist li.done .link-button {
    text-decoration: line-through;
    color: #888;
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.link-button.danger {
    color: #b23b3b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-grid figcaption {
    font-size: 0.8rem;
    color: #766;
}

.gallery-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.gallery-actions button.danger {
    background: #b23b3b;
}

/* Startseite - nahtloser Fluss, keine farbigen Bloecke */
.hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.hero h2 {
    font-weight: normal;
    font-size: clamp(2rem, 7vw, 3rem);
    margin: 0 0 1.5rem;
}

.hero-image img {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.intro-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.intro p {
    margin: 0;
}

.landing-gallery {
    padding: 1.5rem 0 2.5rem;
    text-align: center;
}

.landing-gallery h3 {
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 260px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 calc(50% - 110px);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 130px;
    height: 130px;
    scroll-snap-align: center;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
    opacity: 0.55;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.carousel-item.is-center {
    width: 220px;
    height: 220px;
    opacity: 1;
}

@media (max-width: 560px) {
    .hero-image img {
        border-radius: 4px;
    }
    .intro {
        flex-direction: column;
        text-align: center;
    }
    .carousel {
        height: 170px;
        padding: 0 calc(50% - 75px);
        gap: 0.75rem;
    }
    .carousel-item {
        width: 90px;
        height: 90px;
    }
    .carousel-item.is-center {
        width: 150px;
        height: 150px;
    }
}

.landing-cta {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-primary {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.7rem 1.5rem;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
