:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;

    --green-bg: #e8f7ec;
    --green-border: #2e9f53;

    --yellow-bg: #fff8db;
    --yellow-border: #d4a500;

    --red-bg: #fdeaea;
    --red-border: #c0392b;

    --gray-bg: #eeeeee;
    --gray-border: #999999;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   LAYOUT (mobile first)
   ========================= */

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
    align-items: start;
}

.sidebar {
    position: static;
}

.content {
    min-width: 0;
}

/* =========================
   TYPO / HEADER
   ========================= */

h1 {
    margin: 0 0 0.25rem 0;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

/* =========================
   FILTER
   ========================= */

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-form select {
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 1rem;
    width: 100%;
}

.reset-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.reset-link:hover {
    text-decoration: underline;
}

.preview-hint {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* =========================
   BÄDER LISTE
   ========================= */

.bath-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* =========================
   BÄDER CARD
   ========================= */

.bath-card {
    background: var(--card);
    border-left: 8px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Statusfarben */

.status-open {
    background: var(--green-bg);
    border-left-color: var(--green-border);
}

.status-restricted {
    background: var(--yellow-bg);
    border-left-color: var(--yellow-border);
}

.status-closed {
    background: var(--red-bg);
    border-left-color: var(--red-border);
}

.status-out-of-season {
    background: var(--gray-bg);
    border-left-color: var(--gray-border);
    color: #555;
}

/* =========================
   CARD HEADER
   ========================= */

.bath-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bath-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.badge {
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================
   CONTENT
   ========================= */

.opening-hours {
    font-weight: 600;
    margin: 0.5rem 0 0.2rem;
}

.message {
    margin: 0.7rem 0 0;
}

.next-open {
    margin: 0.7rem 0 0;
    font-weight: 600;
}

/* =========================
   LISTS
   ========================= */

.restrictions,
.notes {
    margin-top: 0.6rem;
}

.restrictions-title,
.notes-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.restrictions ul,
.notes ul {
    margin: 0;
    padding-left: 1.2rem;
}

.restrictions li,
.notes li {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.time {
    font-weight: 600;
}

/* =========================
   DESKTOP (>= 900px)
   ========================= */

@media (min-width: 900px) {
    .layout {
        grid-template-columns: minmax(240px, 15%) 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .sidebar {
        position: sticky;
        top: 1rem;
    }
}

/* =========================
   VERY WIDE (>= 1400px)
   ========================= */

@media (min-width: 1400px) {
    .bath-list {
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================
   Forms
   ========================= */

.filter-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-form select,
.filter-form input[type="date"] {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 1rem;
    width: 100%;
    color: var(--text);
}

.filter-form select:focus,
.filter-form input[type="date"]:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.field-hint {
    color: var(--muted);
    font-size: 0.8rem;
}
/* =========================
   Opening Mode Badge
   ========================= */

.mode-badge {
    margin-left: 0.35rem;
}

/* =========================
   Detailansicht
   ========================= */

.bath-link,
.detail-link {
    color: inherit;
    text-decoration: none;
}

.bath-link:hover,
.detail-link:hover {
    text-decoration: underline;
}

.detail-link-wrap {
    margin-top: 0.8rem;
}

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

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.schedule-table th,
.schedule-table td {
    text-align: left;
    padding: 0.55rem 0;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.schedule-table th {
    width: 180px;
    font-weight: 600;
}

.schedule-table thead th {
    text-align: left;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 700;
}
/* =========================
   Saison-Info
   ========================= */
.season-info {
    margin-top: 0.75rem;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.season-title {
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
}

.season-info p {
    margin: 0;
}