:root {
    --cal-primary: #003366;
    --cal-secondary: #0055aa;
    --cal-accent: #00aaff;
    --cal-bg: #f8fbff;
    --cal-card: #ffffff;
    --cal-border: #dbe7f3;
    --cal-text: #1f2937;
    --cal-muted: #64748b;
    --cal-success: #047857;
    --cal-warning: #92400e;
}

* {
    box-sizing: border-box;
}

.cal-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--cal-text);
    background: var(--cal-bg);
}

.cal-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 170, 238, 0.13), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef8ff 50%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 51, 102, 0.10);
}

.cal-hero__inner,
.cal-container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}

.cal-hero__inner {
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 40px;
    align-items: center;
    padding: 48px 0;
}

.cal-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    color: #005b99;
    background: rgba(0, 170, 238, 0.12);
    border: 1px solid rgba(0, 170, 238, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cal-hero h1,
.cal-card h1 {
    margin: 0 0 16px;
    color: var(--cal-primary);
    font-size: 2.6rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.cal-hero p {
    max-width: 720px;
    margin: 0;
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
}

.cal-hero__badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 51, 102, 0.10);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.10), inset 0 0 0 14px rgba(0, 170, 238, 0.08);
    font-size: 4rem;
}

.cal-section {
    padding: 56px 0;
}

.cal-narrow {
    max-width: 560px;
}

.cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 34px;
    align-items: start;
}

.cal-card,
.cal-side,
.cal-message {
    background: var(--cal-card);
    border: 1px solid var(--cal-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.cal-card {
    padding: 34px;
}

.cal-side {
    padding: 26px;
}

.cal-card h2,
.cal-side h2 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    color: var(--cal-primary);
    font-size: 1.35rem;
    letter-spacing: 0;
}

.cal-card h2:not(:first-of-type) {
    margin-top: 34px;
}

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

.cal-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 700;
}

.cal-field span {
    color: var(--cal-text);
}

.cal-field input,
.cal-field select,
.cal-field textarea,
.cal-admin-day input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--cal-border);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    color: var(--cal-text);
    background: #ffffff;
}

.cal-field textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.cal-field input:focus,
.cal-field select:focus,
.cal-field textarea:focus,
.cal-admin-day input:focus {
    border-color: var(--cal-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 170, 238, 0.12);
}

.cal-slots {
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--cal-border);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--cal-muted);
    font-weight: 500;
}

.cal-slots.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.cal-slot {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #c7e7ff;
    border-radius: 8px;
    background: #eef8ff;
    color: var(--cal-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cal-slot:hover,
.cal-slot.is-selected {
    background: var(--cal-primary);
    border-color: var(--cal-primary);
    color: #ffffff;
}

.cal-submit {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    background: var(--cal-primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.cal-submit--compact {
    width: auto;
    min-height: 44px;
    padding: 0 20px;
}

.cal-success-actions {
    margin-top: 18px;
}

.dwo-shield-box {
    margin: 18px 0;
}

.dwo-shield-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dwo-shield-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.cal-submit:hover {
    background: var(--cal-secondary);
}

.cal-side ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.7;
}

.cal-message {
    padding: 16px 18px;
    margin-bottom: 20px;
    line-height: 1.55;
}

.cal-message--success {
    border-left: 5px solid #059669;
    background: #f0fdf4;
    color: #14532d;
}

.cal-message--warning {
    border-left: 5px solid #f59e0b;
    background: #fffbeb;
    color: var(--cal-warning);
}

.cal-hp {
    display: none;
}

.cal-admin-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid var(--cal-border);
    border-radius: 8px;
    background: #ffffff;
}

.cal-admin-nav strong {
    margin-right: auto;
    color: var(--cal-primary);
}

.cal-admin-nav a {
    color: var(--cal-primary);
    font-weight: 800;
    text-decoration: none;
}

.cal-table-wrap {
    overflow-x: auto;
}

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

.cal-table th,
.cal-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5edf6;
    text-align: left;
    vertical-align: top;
}

.cal-table th {
    color: var(--cal-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.cal-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: #e0f2fe;
    color: #075985;
}

.cal-status--erledigt {
    background: #dcfce7;
    color: #166534;
}

.cal-status--storniert {
    background: #fee2e2;
    color: #991b1b;
}

.cal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 210px;
}

.cal-actions form {
    margin: 0;
}

.cal-action {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.cal-action--done {
    background: #dcfce7;
    color: #166534;
}

.cal-action--cancel {
    background: #ffedd5;
    color: #9a3412;
}

.cal-action--delete {
    background: #fee2e2;
    color: #991b1b;
}

.cal-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 800;
}

.cal-admin-day {
    display: grid;
    grid-template-columns: 160px repeat(4, minmax(120px, 1fr));
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #fbfdff;
}

.cal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 34px;
    color: var(--cal-muted);
    font-size: 0.92rem;
}

.cal-footer a {
    color: var(--cal-primary);
    font-weight: 800;
    text-decoration: none;
}

.cal-footer a:hover {
    color: var(--cal-accent);
}

@media (max-width: 860px) {
    .cal-hero__inner,
    .cal-layout,
    .cal-row,
    .cal-admin-day {
        grid-template-columns: 1fr;
    }

    .cal-hero h1,
    .cal-card h1 {
        font-size: 2rem;
    }

    .cal-hero__badge {
        width: 112px;
        height: 112px;
        font-size: 3rem;
    }

    .cal-card {
        padding: 24px;
    }
}
