body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

a {
    color: white;
    text-decoration: none;
}

header {
    background: #1f2a44;
    color: white;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    position: relative;
}

header img {
    height: 80px;
}

.lang-switcher-wrap {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lang-globe-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.lang-globe-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #2d3035;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    z-index: 1000;
    display: none;
    min-width: 140px;
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    padding: 8px 16px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
    color: #e30613;
}

.header_title {
    margin-right: 100px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../img/background2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-button {
    background: #e30613;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.section {
    padding: 30px 20px;
    text-align: center;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    background: white;
    margin: 10px;
    padding: 20px;
    width: 280px;
    border-radius: 8px;
}

footer {
    background: #1f2a44;
    color: white;
    text-align: center;
    padding: 20px;
}

.gallery-section {
    background: #f5f5f5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 24px auto 0;
}

.gallery-item-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #ddd;
}

.gallery-item img,
.gallery-item video,
.gallery-item .editable-img,
.gallery-item .editable-img img,
.gallery-item .editable-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    margin: 8px 0 0;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

@media (max-width: 700px) {
    .header_title {
        margin-right: 60px;
        font-size: 0.9em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.iframe-wrapper {
    position: relative;
    height: 600px;
}

.iframe-placeholder {
    position: absolute;
    inset: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iframe-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.iframe-placeholder-text {
    position: absolute;
    color: #333;
    font-size: 1rem;
}

/* ── Slideshow ── */
.slideshow-section {
    padding: 20px 0 20px 30px;
    background: #f5f5f5;
}

.showcase-section {
    padding-top: 0;
}

.slideshow-outer {
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Video-Lade-Spinner ── */
.media-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.media-video-loading {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

/* ── Admin: Video-Badge ── */
.media-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.85em;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
    line-height: 1.4;
}

/* ── Admin: Slideshow Größenhinweis ── */
.slide-size-hint {
    font-size: 0.75em;
    color: #aaa;
    margin-left: 8px;
}

.slide-empty-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 15px;
    font-family: sans-serif;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.dot.active {
    background: #e30613;
}

.slide-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.slide-delete-btn:hover {
    background: #e30613;
}

.gallery-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.gallery-delete-btn:hover {
    background: #e30613;
}

.slide-admin-bar {
    margin-top: 10px;
    text-align: center;
}

#slide-add-btn {
    background: #1f2a44;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

#slide-add-btn:hover {
    background: #2d3f60;
}

#slide-add-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ── FAQ ── */
.faq-section {
    background: #f7fafc;
    text-align: left;
}

.faq-wrap {
    max-width: 1080px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 28px;
}

.faq-eyebrow {
    display: inline-block;
    background: #e9f2f9;
    border: 1px solid #dbe4ec;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: #1f4e79;
    margin-bottom: 12px;
}

.faq-section h2 {
    font-size: clamp(24px, 4vw, 36px);
    color: #163a59;
    margin: 0 0 10px;
}

.faq-intro-text {
    color: #444;
    font-size: 17px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-intro-card {
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 28px;
    color: #444;
    font-size: 15px;
}

.faq-cat {
    margin-top: 32px;
}

.faq-cat h3 {
    font-size: 22px;
    color: #163a59;
    margin: 0 0 6px;
}

.faq-lead {
    color: #6b7280;
    margin: 0 0 14px;
    font-size: 14px;
}

.faq-group {
    display: grid;
    gap: 12px;
}

.faq-section details {
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    overflow: hidden;
}

.faq-section summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 20px;
    font-weight: 700;
    color: #163a59;
    position: relative;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f2f9;
    color: #1f4e79;
    font-size: 18px;
    font-weight: 700;
}

.faq-section details[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 20px 18px;
    color: #374151;
    border-top: 1px solid #eef3f7;
}

.faq-answer p {
    margin: 12px 0 0;
}

.faq-cta {
    margin-top: 36px;
    background: linear-gradient(135deg, #eef6fc, #ffffff);
    border: 1px solid #dbe4ec;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}

.faq-cta h3 {
    margin: 0 0 10px;
    color: #163a59;
    font-size: 22px;
}

.faq-cta p {
    margin: 0 0 18px;
    color: #444;
}

.admin-logout-btn {
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 5px 12px;
    text-decoration: none;
    transition: background 0.2s;
    margin-right: 100px;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}