:root {
    --primary: #0b5ed7;
    --primary-2: #1d4ed8;
    --accent: #d62828;
    --bg: #eff4ff;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --border: #d0d6e4;
    --radius: 18px;
    --shadow: 0 18px 48px rgba(2, 15, 46, .12);
    --success: #1f7a1f;
    --warning: #f59e0b;
    --danger: #d62828;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1000px 360px at 15% -10%, rgba(13, 110, 253, .22), transparent 60%),
        radial-gradient(800px 360px at 85% -20%, rgba(214, 40, 40, .18), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(720px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .88);
    border-bottom: 3px solid var(--primary);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

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

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(13, 94, 215, .28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    letter-spacing: .02em;
}

.brand-copy span {
    color: var(--muted);
    font-size: .95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    position: relative;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
}

.page-shell {
    padding-bottom: 56px;
}

.hero {
    margin: 28px auto 0;
    padding: 52px 0 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 24px;
    align-items: stretch;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}

.hero p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.lead-text {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11, 94, 215, .09);
    color: var(--primary);
    font-size: .92rem;
    font-weight: 700;
}

.section {
    padding: 16px 0 28px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head.compact {
    margin-bottom: 12px;
}

.section h1,
.section h2,
.section h3,
.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

.card,
.feature-callout {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-grid {
    margin-top: 18px;
}

.admin-layout,
.booking-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 20px;
}

.stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

.room-card,
.room-select {
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.room-card:hover,
.room-select:hover,
.room-select.selected {
    transform: translateY(-2px);
    border-color: rgba(11, 94, 215, .35);
    box-shadow: 0 22px 52px rgba(2, 15, 46, .14);
}

.card-badge,
.pill,
.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
}

.card-badge,
.pill {
    background: #edf4ff;
    color: var(--primary);
}

.pill-positive {
    background: rgba(31, 122, 31, .12);
    color: var(--success);
}

.meta-row,
.stats-row,
.actions,
.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-row {
    margin-top: 18px;
}

.stats-row {
    color: var(--muted);
    font-weight: 600;
    margin-top: 10px;
}

.feature-list {
    margin: 16px 0 0;
    padding-left: 18px;
    line-height: 1.8;
}

.room-image-wrap,
.room-thumb-wrap {
    overflow: hidden;
    margin: -24px -24px 18px;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(180deg, #edf4ff, #ffffff);
}

.room-image,
.room-thumb,
.detail-image {
    display: block;
    width: 100%;
    height: auto;
}

.room-thumb-wrap {
    margin: -24px -24px 16px;
}

.room-thumb {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.room-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.detail-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.detail-copy p {
    margin: 0;
    line-height: 1.7;
}

.mini-facts {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 700;
}

.step-card {
    position: relative;
    padding-top: 72px;
}

.step-number {
    position: absolute;
    left: 24px;
    top: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.info-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #edf4ff;
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    background: #111827;
    color: #fff;
}

.button.ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
}

.button.danger {
    background: var(--danger);
    color: #fff;
}

.flash {
    margin-top: 18px;
    border-radius: 16px;
    padding: 14px 18px;
    font-weight: 700;
}

.flash-success {
    background: rgba(31, 122, 31, .12);
    color: var(--success);
}

.flash-error {
    background: rgba(214, 40, 40, .12);
    color: var(--danger);
}

.muted {
    color: var(--muted);
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label span {
    display: block;
    margin-bottom: 8px;
    font-size: .95rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
}

textarea {
    resize: vertical;
}

.list-row,
.list-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.list-row + .list-row,
.list-card + .list-card {
    border-top: 1px solid rgba(208, 214, 228, .9);
    margin-top: 14px;
    padding-top: 14px;
}

.list-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(208, 214, 228, .9);
    text-align: left;
    vertical-align: top;
}

.status {
    color: #fff;
    background: var(--warning);
}

.status-bestaetigt {
    background: var(--success);
}

.status-abgelehnt,
.status-storniert {
    background: var(--danger);
}

.status-offen {
    background: var(--warning);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.site-footer {
    border-top: 1px solid rgba(208, 214, 228, .9);
    padding: 24px 0 42px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contract-item + .contract-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(208, 214, 228, .9);
}

#booking-calendar {
    min-height: 620px;
}

@media (max-width: 960px) {
    .hero-grid,
    .admin-layout,
    .booking-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hamburger {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        padding: 16px;
        border-radius: 18px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, .96);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: start;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .list-card {
        flex-direction: column;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
