/* ============================================
   FHStart - Custom Styles
   ============================================ */

/* Root Color Variables */
:root {
    --primary-dark: #1e3a8a;
    --primary-light: #1e40af;
    --amazon-orange: #FF9900;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

/* ============================================
   General Styles
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 64, 175, 0.8));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ============================================
   Navigation & Header
   ============================================ */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-link {
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--amazon-orange) !important;
}

.dropdown-menu {
    border-top: 2px solid var(--amazon-orange);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

/* ============================================
   Cards & Sections
   ============================================ */

.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--amazon-orange);
}

/* ============================================
   Message/Notification Cards
   ============================================ */

.message-card {
    border-left: 4px solid var(--primary-dark);
    background-color: #f0f4f8;
}

.message-card-danger {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.message-card-danger .card-title {
    color: #dc3545;
}

.message-card-warning {
    border-left-color: #ffc107;
    background-color: #fffbf0;
}

.message-card-warning .card-title {
    color: #ff9800;
}

.message-card-success {
    border-left-color: #28a745;
    background-color: #f0f8f5;
}

.message-card-success .card-title {
    color: #28a745;
}

.message-card-info {
    border-left-color: #17a2b8;
    background-color: #f0f7fa;
}

.message-card-info .card-title {
    color: #17a2b8;
}

/* ============================================
   Book Cards & Publications
   ============================================ */

.book-card {
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.book-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.book-cover-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid var(--border-color);
}

.book-cover-placeholder i {
    opacity: 0.6;
}

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

.book-card .card-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-amazon {
    background-color: var(--amazon-orange);
    border-color: var(--amazon-orange);
    color: white;
    font-weight: 600;
}

.btn-amazon:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* ============================================
   Tables
   ============================================ */

.table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: var(--bg-light);
    cursor: pointer;
}

.table thead {
    background-color: #343a40;
    color: white;
}

.table-dark {
    background-color: #343a40 !important;
}

.table-dark th {
    border-bottom: 2px solid #495057;
    font-weight: 600;
}

.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Forms
   ============================================ */

.form-label {
    color: var(--text-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.625rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-check-input {
    margin-top: 0.3rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-check-input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.fragebogen-form {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

/* ============================================
   Accordion
   ============================================ */

.accordion-button {
    padding: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background-color: white;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    box-shadow: none;
    border-bottom: 2px solid var(--primary-dark);
}

.accordion-button:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e3a8a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
}

.accordion-item:first-child {
    border-radius: 0.375rem;
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #e7f3ff;
    color: #004085;
    border-left: 4px solid #0c5aa0;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert a {
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */

footer {
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

p {
    line-height: 1.6;
    color: var(--text-light);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.sticky-top {
    top: 2rem !important;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 250px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .btn-group-vertical .btn {
        width: 100%;
    }

    .sticky-top {
        top: 0.5rem !important;
    }

    .fragebogen-form {
        padding: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-section {
        min-height: 200px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .book-card {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for better keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}
