/* Globales box-sizing: verhindert padding-bedingtes Overflow auf Mobile */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #a8dadc;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ─── Zwei-Spalten-Layout ─── */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1020px;
    width: 100%;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 700px;
    width: 100%;
    position: relative;
    flex: 1;
}

/* ─── Mobile ≤ 600px ─── */
@media (max-width: 600px) {
    body {
        padding: 16px;
        align-items: flex-start;
    }

    .layout {
        flex-direction: column;
        gap: 16px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 14px;
        max-width: 100%;
    }

    .video-wrapper {
        margin: 12px 0;
    }

    button {
        width: 100%;
    }

    .lang-btn {
        width: auto;          /* lang-btn überschreibt button-width */
    }
}

/* Tablet 601–768px: Sidebar wandert unter die Karte */
@media (min-width: 601px) and (max-width: 768px) {
    .layout { flex-direction: column; }
}

h1 {
    margin-top: 0;
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.wave-hand {
    display: inline-block;
    font-size: clamp(28px, 5vw, 40px);
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.waving {
    animation: wave 0.6s ease 0s 3;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(-20deg); }
    75% { transform: rotate(20deg); }
    100% { transform: rotate(0deg); }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

button {
    background: #ff5e62;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

button:active {
    transform: scale(0.95);
}

.lang-btn {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
    position: absolute;
    top: 16px;
    right: 16px;
    /* Überschreibt die globale button-Regel */
    width: auto;
}

.lang-btn:hover  { color: #222; border-color: #999;
                   transform: none; box-shadow: none; }
.lang-btn:active { color: #222; transform: none; }

/* ─── Seitenleiste ─── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 24px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        padding: 16px;
        border-radius: 14px;
    }
}

/* ─── FAQ-Gruppe: Titel als Klapp-Toggle ─── */
.faq-group {
    /* <details> hat kein eigenes Styling */
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Als <summary> nutzbar */
    list-style: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title::-webkit-details-marker { display: none; }

.sidebar-title::after {
    content: '▾';
    font-size: 13px;
    transition: transform 0.2s ease;
}

.faq-group[open] > .sidebar-title::after {
    transform: rotate(-180deg);
}

.faq-list {
    margin-top: 12px;
}

/* ─── FAQ Accordion (natives <details>) ─── */
.faq-item {
    border-top: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    list-style: none;           /* Standard-Dreieck entfernen */
    user-select: none;
    -webkit-user-select: none;
}

/* Webkit-spezifischer Marker entfernen (Safari) */
.faq-question::-webkit-details-marker { display: none; }

/* Custom +/× Icon */
.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #ff5e62;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

details[open] > .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 0 14px 0;
    margin: 0;
}

/* ─── Visitor Counter ─── */
.visit-count {
    margin: 14px 0 0;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.04em;
    min-height: 1em; /* verhindert Layout-Sprung beim Laden */
}
