/* ============================================================
   Freibad-Prognose - Öffentlicher Bereich
   ============================================================ */

.public-body {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 50%, #eef5f0 100%);
    min-height: 100vh;
}

/* Header */
.public-header {
    background: linear-gradient(135deg, #0a6dc2 0%, #0d8ae8 100%);
    color: #fff;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(10,60,120,0.15);
}
.public-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.public-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.public-brand-icon {
    font-size: 2.4em;
    line-height: 1;
}
.public-brand h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}
.public-location {
    opacity: 0.85;
    font-size: 0.95em;
}
.capacity-badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
}
.capacity-green  { background: #d4edda; color: #155724; }
.capacity-amber  { background: #fff3cd; color: #856404; }
.capacity-red    { background: #f8d7da; color: #721c24; }

/* Main */
.public-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Notices */
.public-notices { margin-bottom: 20px; }
.public-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.95em;
}
.public-notice p { margin: 4px 0 0; }
.notice-info    { background: #e3f2fd; border-left: 4px solid #1976d2; }
.notice-warning { background: #fff8e1; border-left: 4px solid #f9a825; }
.notice-closure { background: #fce4ec; border-left: 4px solid #c62828; }
.notice-icon    { font-size: 1.3em; flex-shrink: 0; margin-top: 1px; }

/* Cards Grid */
.public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 700px) {
    .public-grid { grid-template-columns: 1fr; }
}

.public-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s;
}
.public-card:hover { transform: translateY(-2px); }
.public-card-icon {
    font-size: 2em;
    margin-bottom: 6px;
    line-height: 1;
}
.public-card-title {
    font-size: 0.85em;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.public-card-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #1a2330;
    margin: 2px 0 4px;
}
.public-card-na  { color: #aaa; }
.public-card-closed { color: #c0392b; font-size: 1.5em; }
.public-card-sub {
    font-size: 0.85em;
    color: #6b7785;
}

/* Weather Section */
.public-section {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.public-section h2 {
    margin: 0 0 16px;
    font-size: 1.1em;
    color: #1a2330;
}

.public-weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.public-weather-day {
    text-align: center;
    padding: 14px 10px;
    border-radius: 12px;
    background: #f8fafc;
}
.public-weather-day.today {
    background: #e3f2fd;
    border: 2px solid #90caf9;
}
.weather-day-name  { font-weight: 600; font-size: 0.95em; }
.weather-day-date  { font-size: 0.8em; color: #6b7785; margin-bottom: 6px; }
.weather-day-icon  { font-size: 2.2em; margin: 4px 0; }
.weather-day-temp  { margin: 4px 0; }
.temp-max { font-weight: 700; font-size: 1.3em; }
.temp-min { color: #6b7785; font-size: 1em; margin-left: 4px; }
.weather-day-text  { font-size: 0.8em; color: #555; }
.weather-day-rain  { font-size: 0.8em; color: #1976d2; margin-top: 2px; }
.weather-day-sun   { font-size: 0.8em; color: #e65100; margin-top: 2px; }

/* Forecast Bars */
.public-forecast-grid { display: flex; flex-direction: column; gap: 10px; }
.public-forecast-day {
    display: grid;
    grid-template-columns: 100px 60px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
}
@media (max-width: 600px) {
    .public-forecast-day { grid-template-columns: 80px 50px 1fr; }
    .forecast-count { grid-column: 1 / -1; font-size: 0.8em; }
}
.forecast-day-name { font-weight: 600; font-size: 0.9em; }
.forecast-day-date { font-size: 0.8em; color: #6b7785; }
.forecast-bar-wrap {
    height: 22px;
    background: #f0f2f5;
    border-radius: 11px;
    overflow: hidden;
}
.forecast-bar {
    height: 100%;
    border-radius: 11px;
    transition: width 0.5s ease;
}
.forecast-bar-low    { background: linear-gradient(90deg, #66bb6a, #43a047); }
.forecast-bar-medium { background: linear-gradient(90deg, #ffa726, #fb8c00); }
.forecast-bar-high   { background: linear-gradient(90deg, #ef5350, #c62828); }
.forecast-count { font-size: 0.85em; color: #555; white-space: nowrap; }

/* Opening Hours */
.public-hours-table {
    width: 100%;
    border-collapse: collapse;
}
.public-hours-table tr {
    border-bottom: 1px solid #f0f2f5;
}
.public-hours-table td {
    padding: 10px 12px;
    font-size: 0.95em;
}
.hours-day { font-weight: 600; width: 120px; }
.hours-closed { color: #c0392b; }
.hours-label { color: #6b7785; font-size: 0.85em; }
.today-row { background: #e3f2fd; }
.today-row .hours-day { color: #0a6dc2; }

/* Events */
.public-events { display: flex; flex-direction: column; gap: 12px; }
.public-event {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}
.event-date-badge {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: #0a6dc2;
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
}
.event-day   { display: block; font-size: 1.5em; font-weight: 700; line-height: 1.1; }
.event-month { display: block; font-size: 0.75em; text-transform: uppercase; }
.event-info p { margin: 4px 0 0; color: #555; font-size: 0.9em; }
.event-time  { color: #6b7785; font-size: 0.85em; margin-left: 8px; }

/* Footer */
.public-footer {
    background: #1a2330;
    color: #adb5c0;
    padding: 28px 20px;
    font-size: 0.85em;
    text-align: center;
}
.public-footer-inner { max-width: 900px; margin: 0 auto; }
.public-footer a { color: #9ec5e8; }
.public-footer p { margin: 4px 0; }
.public-footer-sub { font-size: 0.85em; opacity: 0.7; }
.public-footer-login { margin-top: 12px; opacity: 0.5; font-size: 0.8em; }
