/**
 * Public-Layout-Styles (public.php)
 *
 * Styles fuer oeffentlich zugaengliche Seiten (Startseite, Buchungsformulare).
 * BFSG/WCAG 2.1 Level AA konform.
 */

/* =================================================================
 * CSS Custom Properties
 * ================================================================= */
:root {
    --primary-dark: #1a2332;
    --primary-blue: #0d6efd;
    --primary-blue-hover: #0b5ed7;
    --accent-gradient: linear-gradient(135deg, #1a2332 0%, #2c3e55 50%, #0d6efd 100%);
    --accent-gradient-subtle: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    --card-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    --header-height: 64px;
    --focus-ring-color: #0d6efd;
    --focus-ring-width: 3px;
    --focus-ring-offset: 2px;
}

/* =================================================================
 * Globale Stile
 * ================================================================= */
body {
    background-color: #f4f6f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #2d3748;
}

/* Fokus-Indikator (WCAG 2.1 AA) */
*:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* =================================================================
 * Header
 * ================================================================= */
.public-header {
    background: var(--primary-dark);
    min-height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.public-header .navbar-brand {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.public-header .navbar-brand:hover,
.public-header .navbar-brand:focus {
    color: #ffffff;
    opacity: 0.9;
}

.public-header .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.public-header .navbar-brand .brand-text {
    line-height: 1.2;
}

.public-header .navbar-brand .brand-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

.public-header .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.public-header .nav-link:hover,
.public-header .nav-link:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.public-header .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.public-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.public-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =================================================================
 * Hauptbereich
 * ================================================================= */
.public-main {
    flex: 1;
    padding: 0;
}

/* Content-Bereich mit Padding (nicht fuer Hero) */
.public-content {
    padding: 2.5rem 0;
}

/* =================================================================
 * Footer
 * ================================================================= */
.public-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-size: 0.85rem;
}

.public-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.public-footer a:hover,
.public-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.public-footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.25rem 0;
}

/* =================================================================
 * Komponenten
 * ================================================================= */

/* Karten mit Hover-Effekt */
.feature-card {
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Icon-Container in Karten */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.feature-icon.icon-blue {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-blue);
}

.feature-icon.icon-green {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.feature-icon.icon-amber {
    background: rgba(255, 193, 7, 0.15);
    color: #cc9a06;
}

.feature-icon.icon-purple {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

/* Info-Karten */
.info-card {
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

/* Formular-Karten */
.form-card {
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.form-card .card-header {
    background: var(--accent-gradient-subtle);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.25rem 1.5rem;
}

.form-card .card-body {
    padding: 1.5rem;
}

/* Flash-Messages (verbessert) */
.flash-container .alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* =================================================================
 * Responsive
 * ================================================================= */
@media (max-width: 767.98px) {
    .public-content {
        padding: 1.5rem 0;
    }
}

/* =================================================================
 * Druckansicht
 * ================================================================= */
@media print {
    .public-header,
    .public-footer,
    .flash-container {
        display: none !important;
    }
    .public-main {
        padding: 0 !important;
    }
    body {
        background: #ffffff !important;
    }
}
