/* Globale Stile */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Navbar Stile */
.navbar-dark.bg-danger {
    background-color: #E30613 !important;
}

/* Karten Stile */
.card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Tabellen Stile */
.table {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #E30613;
}

/* Button Stile */
.btn-danger {
    background-color: #E30613;
    border-color: #E30613;
}

.btn-danger:hover {
    background-color: #c70512;
    border-color: #c70512;
}

/* Quiz Stile */
.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.list-group-item:hover {
    border-left-color: #E30613;
    background-color: #f8f9fa;
}

.list-group-item-success {
    border-left-color: #28a745;
}

/* Responsive Anpassungen */
/* Für große Desktops */
@media (min-width: 1400px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1600px;
    }
    
    .table {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-text {
        font-size: 1.1rem;
    }
}

/* Tablet-Anpassungen */
@media (max-width: 992px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.95rem;
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* Smartphone-Anpassungen */
@media (max-width: 576px) {
    /* Allgemeine Reduzierung von Abständen für Smartphones */
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col, [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Größere Touch-Flächen für mobile Geräte */
    .btn {
        padding: 0.6rem 1rem;
        min-height: 48px;
    }
    
    /* Reduzierte Margins und Paddings für mobile Geräte */
    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
        margin-bottom: 0.75rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Praxisstation Styles */
.praxisstation-app {
    max-width: 1024px;
    margin: 0 auto;
    padding: 1rem;
}

/* Tablet-optimierte Buttons */
.bewertung-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.bewertung-button {
    padding: 1.5rem;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    touch-action: manipulation;
}

.bewertung-button i {
    font-size: 2rem;
}

.bewertung-button.erfüllt {
    background-color: #28a745;
    color: white;
}

.bewertung-button.teilweise {
    background-color: #ffc107;
    color: #212529;
}

.bewertung-button.nicht-erfüllt {
    background-color: #dc3545;
    color: white;
}

.bewertung-button:active {
    transform: scale(0.95);
}

.bewertung-button.active {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px currentColor;
}

/* Kriterien-Karten */
.kriterium-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kriterium-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Kommentar-Bereich */
.kommentar-field {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.kommentar-field textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Vorschau-Tabelle */
.preview-table {
    font-size: 1.1rem;
}

.preview-table th {
    background: #f8f9fa;
    padding: 1rem;
}

.preview-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Status-Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    text-align: center;
    min-width: 120px;
    display: inline-block;
}

/* Stations-Typ Badge */
.station-type {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.station-type i {
    font-size: 1rem;
}

.station-type.quiz {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.station-type.quiz:hover {
    background-color: #bbdefb;
}

.station-type.praxis {
    background-color: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd0;
}

.station-type.praxis:hover {
    background-color: #f8bbd0;
}

/* Aktionen Button-Gruppe */
.btn-group-station {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-group-station .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-group-station .btn i {
    font-size: 1rem;
}

.btn-group-station .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-group-station .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-group-station .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-group-station .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transform: translateY(-2px);
}

.status-badge.erfüllt {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.teilweise {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.nicht-erfüllt {
    background-color: #f8d7da;
    color: #721c24;
}

/* Button Group und Badge Styles */
.btn-group {
    gap: 0.5rem;
}

.badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
}

/* Tablet-spezifische Anpassungen */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-fluid {
        padding: 1.5rem;
    }
    
    .bewertung-button {
        padding: 2rem;
        font-size: 1.4rem;
    }
    
    .bewertung-button i {
        font-size: 2.5rem;
    }
    
    .kriterium-card {
        padding: 2rem;
    }
    
    .kommentar-field textarea {
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
}

/* Animations für Station Formular */
#praxisFelder {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Sticky Sidebar Card für Bewertungsvorschau */
.sidebar-sticky-card {
    position: sticky;
    top: 1rem;
}

/* Jux-Bewertung Styles */
.number-input {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chart und Timeline Styles */
.chart-container {
    height: 300px;
    margin-bottom: 30px;
}

/* Timeline Styles für Event-Logs */
.timeline, .activity-timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before, .activity-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #007bff;
}

.timeline-item, .activity-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-item::before, .activity-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #007bff;
}

.timeline-time, .activity-time {
    font-size: 0.9rem;
    color: #6c757d;
}

.timeline-content, .activity-content {
    margin-top: 5px;
}

.number-input input {
    width: 60px;
    text-align: center;
    font-size: 18px;
    margin: 0 10px;
}

.number-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}

.category-card {
    margin-bottom: 1.5rem;
    border-left: 5px solid #007bff;
}

.category-header {
    cursor: pointer;
    padding: 15px;
}

.category-body {
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,.125);
}

/* Praxisstationen Thematische Gruppierung */
.praxis-stationen-container {
    margin-bottom: 2rem;
}

.praxis-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 12px;
    border-left: 5px solid #28a745;
}

.praxis-header i {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 0.75rem;
}

.praxis-header h4 {
    margin: 0;
    color: #155724;
    font-weight: 600;
}

/* Thematische Accordion-Gruppen */
.praxis-accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.praxis-accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.praxis-accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.praxis-accordion-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 0;
}

.praxis-accordion-button {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.praxis-accordion-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.praxis-accordion-button:hover::before {
    opacity: 1;
}

.praxis-accordion-button:not(.collapsed) {
    background: rgba(255,255,255,0.15);
}

.praxis-accordion-button .thema-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.praxis-accordion-button .thema-icon {
    font-size: 1.3rem;
    opacity: 0.9;
}

.praxis-accordion-button .thema-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.praxis-accordion-button .station-count-badge {
    background: rgba(255,255,255,0.25);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: 1rem;
}

.praxis-accordion-collapse {
    background: #ffffff;
    border-top: 1px solid rgba(40, 167, 69, 0.2);
}

.praxis-accordion-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Praxisstation Karten innerhalb der Themen */
.praxis-station-card {
    background: #ffffff;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.praxis-station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.praxis-station-card:hover {
    border-color: #28a745;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-3px);
}

.praxis-station-card .card-body {
    padding: 1.5rem;
    position: relative;
}

.praxis-station-card .card-title {
    color: #155724;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.praxis-station-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.praxis-station-badge i {
    font-size: 0.9rem;
}

.praxis-station-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.praxis-station-info i {
    color: #28a745;
    font-size: 0.9rem;
}

.praxis-punkte-info {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.praxis-punkte-info .punkte-label {
    font-size: 0.8rem;
    color: #1976d2;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.praxis-punkte-info .punkte-wert {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d47a1;
}

.praxis-station-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8f5e8;
    padding: 1rem 1.5rem;
}

.praxis-bewerten-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.praxis-bewerten-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.praxis-bewerten-btn i {
    font-size: 1rem;
}

.praxis-bewerten-btn.neu-bewerten {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #212529;
}

.praxis-bewerten-btn.neu-bewerten:hover {
    background: linear-gradient(135deg, #e0a800, #ff8f00);
    color: #212529;
}

/* Responsive Anpassungen für Praxisstationen */
@media (max-width: 768px) {
    .praxis-accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .praxis-accordion-button .thema-title {
        font-size: 1rem;
    }
    
    .praxis-accordion-button .station-count-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .praxis-station-card .card-body {
        padding: 1.25rem;
    }
    
    .praxis-bewerten-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .praxis-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .praxis-accordion-item {
        margin-bottom: 0.75rem;
    }
    
    .praxis-accordion-body {
        padding: 1rem;
    }
    
    .praxis-station-card .card-body {
        padding: 1rem;
    }
}

/* Themen-spezifische Farbvariationen */
.praxis-accordion-item[data-thema="Erste Hilfe"] .praxis-accordion-header {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.praxis-accordion-item[data-thema="Sanitätsdienst"] .praxis-accordion-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.praxis-accordion-item[data-thema="Katastrophenschutz"] .praxis-accordion-header {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
}

.praxis-accordion-item[data-thema="Soziale Arbeit"] .praxis-accordion-header {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.praxis-accordion-item[data-thema="Jugendarbeit"] .praxis-accordion-header {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

/* Sortier-Optionen */
.praxis-sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.praxis-sort-controls label {
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.praxis-sort-controls select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    background: white;
}
