/* Badge Styles */
.fs-badges {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fs-badge {
    background-color: #6c757d;
    /* Default/Other: Grey */
    color: #ffffff !important; /* Schrift immer weiß, auch wenn Theme global Farbe setzt */
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
    display: inline-block;
}

.fs-badge.fs-type-airplane {
    background-color: #003c64;
    /* Darker Blue */
}

.fs-badge.fs-type-helicopter {
    background-color: #0073aa;
    /* Standard Blue */
}

.fs-badge.fs-type-glider {
    background-color: #46b450;
    /* Green */
}

.fs-badge:hover {
    opacity: 0.9;
}

/* Falls Badges als Links ausgegeben werden oder Links enthalten,
   erzwingen wir auch dort weiße Schrift und keine Unterstreichung. */
.fs-badge a,
a.fs-badge,
.fs-badge span.glossaryLink,
.fs-badge a.glossaryLink {
    color: #ffffff !important;
    text-decoration: none !important;
}

.fs-badge a:hover,
a.fs-badge:hover,
.fs-badge span.glossaryLink:hover,
.fs-badge a.glossaryLink:hover {
    color: #ffffff !important;
    text-decoration: underline !important; /* dezenter Hover, Schrift bleibt weiß */
}

/* Search Results Styles */
.fs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.fs-results-header select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.search_results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fs-school-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}

.fs-school-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.fs-school-card-header {
    margin-bottom: 15px;
}

.fs-school-card-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.fs-school-card-location {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.fs-school-card-location img {
    width: 20px;
    height: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.fs-school-card-badges {
    margin-top: 15px;
    margin-bottom: 10px;
}

.fs-school-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.fs-school-card-footer .button {
    display: inline-block;
    padding: 6px 16px;
    background: #35639e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.fs-school-card-footer .button:hover {
    background: #1e4a7a;
    color: #fff;
}

.fs-sponsored-badge {
    background: #ffd700;
    color: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-right: 8px;
    font-weight: bold;
    display: inline-block;
}

/* Detail Page Styles */
.fs-detail-wrapper {
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* H1 - Hyphens für alle Überschriften */
.fs-detail-wrapper h1 {
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
}



.fs-detail-view {
    max-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

.fs-detail-header {
    margin-bottom: 30px;
}

.fs-detail-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.2;
}

.fs-back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #35639e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.fs-back-button:hover {
    background: #1e4a7a;
    color: #fff;
}

.fs-detail-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.fs-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.fs-info-section h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #35639e;
    border-bottom: 2px solid #35639e;
    padding-bottom: 8px;
}

.fs-info-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.fs-info-section a {
    color: #35639e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fs-info-section a:hover {
    color: #1e4a7a;
    text-decoration: underline;
}

.fs-description-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.fs-description-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.fs-description-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
}

.fs-description-content p {
    margin-bottom: 15px;
}

.fs-description-content ul,
.fs-description-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.fs-videos-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.fs-videos-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.fs-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 30px;
    margin-top: 20px;
}

.fs-video-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fs-video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* DSGVO-konformer Video-Placeholder */
.fs-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.fs-video-placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    background-repeat: no-repeat;
    position: relative;
}

.fs-video-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.fs-video-placeholder:hover .fs-video-placeholder-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.fs-video-placeholder-icon {
    font-size: 4em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.fs-video-placeholder-text {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.fs-video-placeholder-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85em;
    margin: 0;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.fs-video-placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #35639e 0%, #1e4a7a 100%);
    color: #fff;
}

.fs-video-link {
    display: inline-block;
    padding: 15px 25px;
    background: #35639e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 0;
    transition: background 0.3s ease;
}

.fs-video-link:hover {
    background: #1e4a7a;
    color: #fff;
}

.fs-map-button {
    display: inline-block;
    padding: 12px 24px;
    background: #35639e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.fs-map-button:hover {
    background: #1e4a7a;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search_results {
        grid-template-columns: 1fr;
    }
    
    .fs-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fs-info-grid {
        grid-template-columns: 1fr;
    }
    
    .fs-school-card {
        padding: 15px;
        margin: 0;
    }
    
    .fs-detail-card {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .fs-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fs-video-item {
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio bleibt gleich */
    }
    
    .fs-video-placeholder-icon {
        font-size: 3em;
        margin-bottom: 10px;
    }
    
    .fs-video-placeholder-text {
        font-size: 1em;
        margin: 0 0 8px 0;
        padding: 0 15px;
    }
    
    .fs-video-placeholder-note {
        font-size: 0.75em;
        padding: 0 15px;
    }
    
    .fs-detail-header h1 {
        font-size: 2em;
    }
    
    .fs-detail-wrapper {
        padding: 10px 0;
    }
    
    .fs-detail-view {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .fs-video-grid {
        gap: 15px;
    }
    
    .fs-video-placeholder-icon {
        font-size: 2.5em;
        margin-bottom: 8px;
    }
    
    .fs-video-placeholder-text {
        font-size: 0.9em;
        margin: 0 0 6px 0;
        padding: 0 10px;
    }
    
    .fs-video-placeholder-note {
        font-size: 0.7em;
        padding: 0 10px;
    }
    
    .fs-video-placeholder-overlay {
        padding: 10px;
    }
}
