:root {
    --green-velvet: #1e4d3a;
    --green-velvet-acc: #2f6d55;
    --wood-dark: #4a2f21;
    --cream: #f6f2ea;
    --stone: #3a3a3a;
    --gold-warm: #b38728;
    --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Georgia", "Times New Roman", serif;
    --radius-soft: 12px;
    --shadow-soft: 0 12px 40px rgba(30, 77, 58, 0.12);
    --shadow-hover: 0 16px 46px rgba(30, 77, 58, 0.2);
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--stone);
    background-color: var(--cream);
}

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

a:hover,
a:focus {
    text-decoration: none;
}

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

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

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 3px solid var(--green-velvet-acc);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--green-velvet);
    color: var(--cream);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    filter: brightness(1.05);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background: var(--wood-dark);
    color: var(--cream);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    filter: brightness(1.1);
}

.btn--ghost {
    background: transparent;
    color: var(--green-velvet);
    border: 1px solid rgba(30, 77, 58, 0.3);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--green-velvet);
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    border-top: 3px solid var(--gold-warm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30, 77, 58, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-header__brand img {
    height: 44px;
    width: auto;
}

.nav {
    position: fixed;
    inset: 0;
    background: rgba(30, 77, 58, 0.95);
    padding: 6rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.nav--open {
    transform: translateX(0);
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav__link {
    color: var(--cream);
    font-size: 1.2rem;
    font-weight: 600;
}

.nav__link--active {
    color: var(--gold-warm);
}

.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem;
}

.nav-toggle__bar {
    width: 24px;
    height: 3px;
    background: var(--stone);
    border-radius: 999px;
}

.nav-toggle[aria-expanded="true"] + .nav {
    transform: translateX(0);
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    align-items: center;
    padding: clamp(4rem, 10vw, 8rem) 0 6rem;
    background: linear-gradient(135deg, var(--green-velvet), var(--green-velvet-acc));
    color: var(--cream);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(74, 47, 33, 0.55), transparent 55%),
        repeating-linear-gradient(45deg, rgba(74, 47, 33, 0.2) 0, rgba(74, 47, 33, 0.2) 10px, rgba(179, 135, 40, 0.1) 10px, rgba(179, 135, 40, 0.1) 18px);
    opacity: 0.45;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.2rem;
}

.hero__eyebrow {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    margin: 0;
}

.hero__subtitle {
    max-width: 36rem;
    font-size: 1.1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1.5rem;
    color: var(--green-velvet);
}

.section__subtitle {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.about__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.team {
    display: grid;
    gap: 2rem;
}

.team__item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-soft);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.team__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 77, 58, 0.4), rgba(179, 135, 40, 0.4));
}

.team__name {
    font-weight: 700;
    color: var(--green-velvet);
    margin: 0;
}

.team__role {
    margin: 0.25rem 0 0;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hours-table th,
.hours-table td {
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(58, 58, 58, 0.1);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.tile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tile {
    background: #fff;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 3px solid var(--gold-warm);
}

.tile__title {
    font-weight: 700;
    color: var(--green-velvet);
    margin: 0;
}

.tile__text {
    margin: 0;
}

/* Menu */
.menu-section {
    padding: 3rem 0;
}

.menu-section__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2rem;
    color: var(--green-velvet);
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: #fff;
    border-radius: var(--radius-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-item__name {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    color: var(--wood-dark);
}

.menu-item__description {
    font-size: 0.95rem;
    color: rgba(58, 58, 58, 0.8);
}

/* Reservation */
.form {
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-weight: 600;
}

.form__input,
.form__textarea,
.form__select {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-soft);
    border: 1px solid rgba(58, 58, 58, 0.2);
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__textarea {
    min-height: 140px;
    resize: vertical;
}

.form__input:focus-visible,
.form__textarea:focus-visible,
.form__select:focus-visible {
    border-color: var(--green-velvet-acc);
    box-shadow: 0 0 0 3px rgba(47, 109, 85, 0.25);
    outline: none;
}

.form__hint {
    font-size: 0.85rem;
    color: rgba(58, 58, 58, 0.7);
}

.form__error {
    color: #b7322c;
    font-size: 0.85rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
}

.alert--success {
    background: rgba(47, 109, 85, 0.12);
    color: var(--green-velvet);
}

.alert--error {
    background: rgba(183, 50, 44, 0.12);
    color: #b7322c;
}

/* Events */
.events__list {
    display: grid;
    gap: 1.5rem;
}

.events__item {
    background: #fff;
    border-radius: var(--radius-soft);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
}

.events__date {
    font-weight: 700;
    color: var(--green-velvet);
}

/* Admin */
.admin {
    padding: 4rem 0 6rem;
}

.admin__card {
    background: #fff;
    border-radius: var(--radius-soft);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.admin__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin__table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.admin__table th,
.admin__table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(58, 58, 58, 0.1);
    font-size: 0.95rem;
}

.admin__table tbody tr:hover {
    background: rgba(30, 77, 58, 0.05);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge--neu {
    background: rgba(179, 135, 40, 0.15);
    color: var(--gold-warm);
}

.status-badge--bestätigt {
    background: rgba(47, 109, 85, 0.15);
    color: var(--green-velvet);
}

.status-badge--storniert {
    background: rgba(183, 50, 44, 0.15);
    color: #b7322c;
}

.status-badge--erledigt {
    background: rgba(58, 58, 58, 0.15);
    color: var(--stone);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, rgba(30, 77, 58, 0.9), rgba(47, 109, 85, 0.95)), url('/assets/wood-texture.jpg');
    background-size: cover;
    background-blend-mode: multiply;
    color: var(--cream);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
}

.site-footer__title {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: 1.8rem;
}

.site-footer__subtitle {
    margin: 0 0 0.75rem;
    font-weight: 600;
}

.site-footer__text {
    margin: 0 0 0.75rem;
}

.site-footer__link {
    color: var(--cream);
    text-decoration: underline;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.site-footer__bottom {
    margin-top: 2rem;
    border-top: 1px solid rgba(246, 242, 234, 0.2);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.site-footer__copy {
    margin: 0;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

/* Utilities */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 77, 58, 0.1);
    color: var(--green-velvet);
    font-weight: 600;
    font-size: 0.85rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-2 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.nav-open {
    overflow: hidden;
}

/* Media Queries */
@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__actions {
        gap: 1.4rem;
    }

    .nav {
        position: static;
        transform: none !important;
        background: transparent;
        padding: 0;
    }

    .nav__list {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .nav__link {
        color: var(--stone);
        font-size: 1rem;
    }

    .nav-toggle {
        display: none;
    }

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

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1200px) {
    .hero__subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 5rem 0;
    }
}
