@font-face {
    font-family: 'Montserrat';
    src: url('fonts/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/static/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


/* Globale Stile */
body {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    color: #007B80;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.5rem;
}

.voting-section h2{
    margin-top: 0 !important;
}
p {
    margin-bottom: 1rem;
}

.feedback-section .comment-label {
    margin-bottom: 0 !important;
}



.centered-text {
    text-align: center;
}

/* Container und Karten */
.showcase-container, 
.voting-section, 
.result-group, 
.password-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.intro-text, 
.patient-intro {
    background-color: #f5f5ff;
    border-left: 4px solid #007B80;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

/* Header Display */
.header-display {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    position: relative;
}

.header-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-title {
    font-size: 1.75rem; /* Noch größer gemacht */
    margin-bottom: 10px;
    color: #007B80;
    text-align: center;
    font-weight: 600;
}

.header-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Navigation - nach unten verschoben */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertikale Zentrierung der Buttons */
    margin: 20px 0;
}

.nav-button, 
.submit-btn, 
.compare-btn,
.action-btn {
    background-color: #007B80;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px; /* Einheitliche Höhe für alle Buttons */
    line-height: 1; /* Vertikale Zentrierung des Textes */
}

.button-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Macht das Icon weiß */
}

.nav-button:hover, 
.submit-btn:hover, 
.compare-btn:hover,
.action-btn:hover {
    background-color: #005f63;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-button:active,
.submit-btn:active,
.compare-btn:active,
.action-btn:active {
    transform: translateY(1px);
}

.nav-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn, 
.compare-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    height: 50px; /* Einheitliche Höhe */
    line-height: 1; /* Vertikale Zentrierung des Textes */
}

.compare-btn {
    display: block;
    margin: 30px auto;
}

/* Progress Indicator */
.progress-indicator {
    text-align: center;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.2s;
    cursor: pointer;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: #007B80;
    transform: scale(1.2);
}

/* Header Grid */
.header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.header-option {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
}

.header-option:hover {
    border-color: #007B80;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-option.selected {
    border-color: #007B80;
    background-color: #f0f9f9;
}

.header-label {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #007B80;
    text-align: center;
}

/* Comments */
.feedback-section {
    margin-top: 30px; /* Größerer Abstand nach oben */
}

.comment-area {
    width: 100%;
    margin: 10px 0 20px; /* Weniger Abstand zwischen Label und Textfeld */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.comment-area:focus {
    border-color: #007B80;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 128, 0.1);
}

.comment-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
    color: #555;
}

/* Thank You */
.thank-you {
    display: none;
    padding: 30px;
    background-color: #f0f9f9;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
    border-left: 4px solid #007B80;
}

.thank-you h2 {
    color: #007B80;
}

/* Results Page */
.result-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.summary-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    width: 30%;
    min-width: 200px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikale Zentrierung */
    height: 130px; /* Feste Höhe für gleichmäßiges Aussehen */
}

.summary-card.winner {
    background-color: #f0f9f9;
    border-left: 4px solid #007B80;
}

.summary-card.winner .header-thumbnail {
	max-height: 95px;
	object-fit: cover;
	object-position: top;
}

.summary-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #007B80;
}

.summary-number.winner {
    color: #D60360;
}

.result-bar {
    height: 35px;
    background-color: #f0f0f0;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    background-color: #007B80;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    font-weight: bold;
    min-width: 40px;
}

.result-fill.winner {
    background-color: #D60360;
}

.result-label {
    margin-bottom: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: #555;
}

.header-thumbnail {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comment-card {
    background-color: #fff;
    border-left: 4px solid #007B80;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.comment-content {
    color: #333;
    line-height: 1.6;
}

/* Tab Navigation */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-button:last-child {
    border-radius: 0 4px 4px 0;
}

.tab-button.active {
    background-color: #007B80;
    color: white;
    border-color: #007B80;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Password Section */
.password-container {
    margin: 30px auto;
    max-width: 500px; /* Breiter gemacht */
    text-align: center;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.password-container input {
    padding: 10px;
    width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.password-container input:focus {
    border-color: #007B80;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 128, 0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    display: none; /* Close Button entfernt */
}

.modal-title {
    color: #007B80;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content {
    color: #333;
    line-height: 1.6;
}

.modal-button {
    background-color: #007B80;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-button:hover {
    background-color: #005f63;
}

/* Fade-Animation Styles */
.header-content-wrapper {
    position: relative;
    min-height: 500px; /* Increased height to accommodate buttons */
    padding: 0 60px; /* Increased padding for buttons */
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.header-content.active {
    opacity: 1;
    pointer-events: auto;
}

/* Verhindert Sprünge während des Fadens */
.header-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin-top: 20px;
}

.header-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Seitliche Navigationspfeile */
.side-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #007B80;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.side-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.side-nav-button:active {
    transform: translateY(-50%) scale(0.95);
}

.side-nav-button.prev {
    left: 0;
}

.side-nav-button.next {
    right: 0;
}

.side-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.sub-tabs {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .side-nav-button {
        width: 36px;
        height: 36px;
    }
    
    .header-content-wrapper {
        padding: 0 30px;
    }
    
    /* Optimierungen für Navigation-Buttons */
    .navigation {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .nav-button {
        font-size: 14px;
        padding: 8px 12px;
        height: 40px;
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .compare-btn {
        font-size: 14px;
        padding: 8px 15px;
        height: 40px;
        width: 100%;
        order: 3;
        margin: 15px 0 0 0;
    }
    
    /* Reduziere die Größe der Buttons auf der gesamten Seite für Mobilgeräte */
    .submit-btn, 
    .action-btn {
        font-size: 14px;
        padding: 8px 15px;
        height: 40px;
    }
    
    /* Anpassen der Tab-Buttons für kleine Bildschirme */
    .tab-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Anpassungen für Header-Elemente */
    .header-title {
        font-size: 1.4rem;
    }
    
    .header-description {
        font-size: 0.85rem;
    }
    
    /* Kleinere Abstände für mobile Geräte */
    .showcase-container, 
    .voting-section, 
    .result-group, 
    .password-container {
        padding: 15px;
    }
    
    /* Reduzierte Schriftgröße und Abstände in Ergebnissen */
    .summary-card {
        min-width: 150px;
        height: 110px;
        padding: 10px;
    }
    
    .summary-number {
        font-size: 24px;
    }
    
    /* Verbesserte Darstellung der Ergebnisgruppen */
    .result-group {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .result-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Optimierte Zusammenfassung */
    .result-summary {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .summary-card {
        width: 100%;
        height: auto;
        min-height: 90px;
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .summary-card.winner {
        order: -1; /* Gewinner-Karte zuerst anzeigen */
    }
    
    /* Verbesserte Balkendiagramme */
    .result-label {
        font-size: 14px;
    }
    
    .result-bar {
        height: 30px;
        margin-bottom: 12px;
    }
    
    .result-fill {
        padding-left: 8px;
        font-size: 14px;
    }
    
    /* Verbesserte Kommentar-Ansicht */
    .comment-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-content {
        font-size: 14px;
    }
    
    /* Verbesserte Tab-Navigation für Kommentare */
    .sub-tabs {
        flex-wrap: wrap;
    }
    
    .sub-tabs .tab-button {
        flex: 1 1 auto;
        min-width: 100px;
        padding: 8px 10px;
        font-size: 13px;
        text-align: center;
    }
    
    /* Gewinner-Header-Bild optimieren */
    .header-thumbnail {
        max-width: 120px;
    }
}

/* Zusätzliche Optimierungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-button, 
    .compare-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .header-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        width: 100%;
        margin-bottom: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .result-group {
        padding: 12px;
    }
    
    .summary-card {
        min-height: 80px;
        padding: 10px;
    }
    
    .summary-number {
        font-size: 20px;
    }
    
    .result-label {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .result-bar {
        height: 25px;
    }
    
    .result-fill {
        font-size: 12px;
    }
    
    /* Verbesserte Tab-Buttons für kleinste Bildschirme */
    .tab-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-button {
        flex: 1 1 auto;
        border-radius: 4px !important;
        margin-bottom: 5px;
        min-width: 90px;
    }
    
    .tab-button:first-child, 
    .tab-button:last-child {
        border-radius: 4px;
    }
    
    /* Aktionsbuttons optimieren */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
    }
}


/* Mobile Optimierungen */
@media (max-width: 768px) {
    /* Bestehende mobile Optimierungen bleiben erhalten */
    
    /* Zentrierte und kleinere Summary Cards */
    .result-summary {
        flex-direction: column;
        align-items: center; /* Horizontale Zentrierung */
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .summary-card {
        width: 85%; /* Etwas schmaler als volle Breite */
        max-width: 300px; /* Maximale Breite begrenzen */
        min-height: 80px; /* Geringere Höhe */
        padding: 12px;
        margin: 0 auto 12px auto; /* Horizontale Zentrierung mit Abstand */
        text-align: center; /* Text zentrieren */
    }
    
    .summary-number {
        font-size: 22px; /* Etwas kleinere Schrift */
        margin-bottom: 6px;
    }
}

/* Für sehr kleine Bildschirme weitere Anpassungen */
@media (max-width: 480px) {
    /* Bestehende Optimierungen für sehr kleine Bildschirme bleiben erhalten */
    
    .summary-card {
        width: 92%; /* Etwas breiter für sehr kleine Bildschirme */
        min-height: 70px; /* Noch geringere Höhe */
        padding: 10px;
    }
    
    .summary-number {
        font-size: 20px;
        margin-bottom: 4px;
    }
}