/* LKW Fahrverbot Kalender – kalender.css */

#lkw-fahrverbot-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    margin: 0;
    padding: 1rem 0;
    color: #1a1a1a;
}
#lkw-fahrverbot-wrap * {
    box-sizing: border-box;
}

/* Header (volle Breite) */
.lkw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.lkw-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}
.lkw-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lkw-controls label {
    font-size: 13px;
    color: #666;
}
.lkw-controls select {
    font-size: 13px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* ===== Zwei-Spalten Layout ===== */
.lkw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
.lkw-col-left,
.lkw-col-right {
    min-width: 0;
}

@media (max-width: 820px) {
    .lkw-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Status Card */
.lkw-status-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    flex-wrap: wrap;
}
.lkw-status-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.lkw-status-icon.red    { background: #fee2e2; }
.lkw-status-icon.yellow { background: #fef3c7; }
.lkw-status-icon.green  { background: #dcfce7; }
.lkw-status-text { flex: 1; min-width: 160px; }
.lkw-status-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 2px;
}
.lkw-status-main {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 2px;
    color: #1a1a1a;
}
.lkw-status-sub {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.lkw-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.lkw-badge.red    { background: #fee2e2; color: #b91c1c; }
.lkw-badge.yellow { background: #fef3c7; color: #b45309; }
.lkw-badge.green  { background: #dcfce7; color: #15803d; }

/* Kalender Navigation */
.lkw-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}
.lkw-cal-nav button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 14px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    transition: background 0.1s;
}
.lkw-cal-nav button:hover { background: #f5f5f5; }
.lkw-cal-month {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    color: #1a1a1a;
}

/* Legende */
.lkw-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.lkw-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}
.lkw-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Kalender Grid */
.lkw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.lkw-cal-dow {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lkw-cal-day {
    /* Begrenzte Zellenhöhe statt aspect-ratio, damit Kalender kompakt bleibt */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.12s;
    user-select: none;
}
.lkw-cal-day:hover:not(.empty) { border-color: #999; }
.lkw-cal-day.empty {
    cursor: default;
    pointer-events: none;
}
.lkw-cal-day.today {
    border-color: #333 !important;
    font-weight: 700;
}
.lkw-cal-day.selected {
    border: 2px solid #1e40af !important;
}
.lkw-cal-day.verbot-full   { background: #fee2e2; color: #b91c1c; }
.lkw-cal-day.verbot-summer { background: #fef3c7; color: #b45309; }
.lkw-cal-day.free          { background: #f3f4f6; color: #1a1a1a; }

/* Section heading in right column */
.lkw-section-heading {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

/* Detail Tabelle */
.lkw-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 1rem;
}
.lkw-detail-table tr {
    border-bottom: 1px solid #f0f0f0;
}
.lkw-detail-table tr:last-child {
    border-bottom: none;
}
.lkw-detail-table td {
    padding: 8px 4px;
    vertical-align: top;
}
.lkw-detail-table td:first-child {
    color: #888;
    width: 42%;
}
.lkw-detail-table td:last-child {
    font-weight: 500;
    color: #1a1a1a;
}

/* Hinweis */
.lkw-api-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    line-height: 1.6;
}
.lkw-api-note a {
    color: #888;
}

/* Mobile */
@media (max-width: 480px) {
    .lkw-cal-day  { height: 38px; font-size: 12px; }
    .lkw-title    { font-size: 17px; }
    .lkw-status-main { font-size: 15px; }
}
