:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --background: #F7FFF7;
    --text: #2D3047;
    --font-heading: 'Comic Neue', cursive;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Übernommen von der ersten Definition */
    --primary-hover: #4f46e5; /* Übernommen von der ersten Definition */
    --success: #22c55e; /* Übernommen von der ersten Definition */
    --error: #ef4444; /* Übernommen von der ersten Definition */
    --surface: #ffffff; /* Übernommen von der ersten Definition */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body), system-ui, -apple-system, sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    font-family: Arial, sans-serif; /* Arial hinzufügen */
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

.progress-container {
    background: #eee;
    border-radius: 10px;
    height: 15px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group-selector {
    text-align: center;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.group-btn {
    padding: 1rem;
    margin: 0.2rem;
    border: none;
    border-radius: 15px;
    background: var(--surface);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.group-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.1;
}

.group-btn.current {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.group-btn.completed {
    background: var(--secondary);
    color: white;
}

.feedback {
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    animation: popIn 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    80% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.feedback::before {
    content: '✓';
    font-size: 1.5rem;
}

.feedback.correct {
    background: #E8FEE7;
    border: 3px solid var(--secondary);
    color: #166534;
}

.feedback.incorrect {
    background: #FFEEEE;
    border: 3px solid var(--primary);
    animation: shake 0.4s ease-in-out;
    color: #991b1b;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(10px); }
    50% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.feedback.incorrect::before {
    content: '✕';
}

.question {
    background-color: #ffefef;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.flashcard {
    perspective: 1000px;
    margin: 2rem auto;
    width: min(100%, 400px);
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 200px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--surface);
    border-radius: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.flashcard-back {
    transform: rotateY(180deg);
    background: var(--primary);
    color: white;
}

.input-container {
    text-align: center;
    margin-top: 1rem;
    position: relative;
    margin: 2rem 0;
}

.input-field {
    padding: 0.8rem;
    width: 80%;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.special-chars {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.char-btn {padding: 0.5rem 0.8rem;
    border: none;
    background: var(--accent);
    color: var(--text);
    font-size: 1rem;
    margin: 0.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.char-btn:active {
    transform: scale(0.95);
}

.top-button-container {
  display: flex;
  flex-wrap: wrap; /* Bricht die Buttons um, falls sie zu breit sind */
  justify-content: center; /* Zentriert die Buttons */
  gap: 0.5rem; /* Fügt Abstand zwischen den Buttons hinzu */
  max-width: 100%; /* Verhindert, dass der Container zu schmal wird */
  overflow: visible; /* Falls ein überlaufendes Element abgeschnitten wird */
}


.toggle-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 15px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: #e2e8f0;
    color: var(--text);
    transition: all 0.2s ease;
}

.toggle-btn:active {
    transform: scale(0.95);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.lang-switcher {
    text-align: right;
    margin-bottom: 1rem;
}

.lang-switcher a {
    text-decoration: none;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.reset-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 15px;
    background: var(--secondary);
    color: white;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    background: var(--error);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: background 0.2s;
}

.reset-btn:hover {
    background: #d32f2f;
}

        .toggle-video-btn {
            background: #6366f1;
            color: #fff;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: background 0.2s ease;
            display: block;
            margin: 0 auto 1.5rem auto;
        }
        .toggle-video-btn:hover {
            background: #4f46e5;
        }
        .video-section {
            margin: 20px 0;
            display: none;
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
        }
        .video-section iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

/* Schloss-Icon anpassen */
.toggle-video-btn span {
  font-size: 1.4rem; /* Etwas größere Icon-Größe */
  color: #ffd700; /* Gelb für das Schloss, damit es sichtbar bleibt */
}

/* Deaktivierter Button */
.toggle-video-btn:disabled {
  background-color: #888; /* Neutraler Grauton für deaktivierte Buttons */
  color: #ddd; /* Leicht abgedunkelte Schrift für bessere Lesbarkeit */
  cursor: not-allowed;
}

/* Hover-Effekt für bessere Interaktivität */
.toggle-video-btn:hover:not(:disabled) {
  background-color: #1E5A99; /* Etwas dunkler beim Hover */
}

/* Spezifische Anpassung für den "Start Next Lesson"-Button */
.start-next-lesson {
  background-color: #4CAF50; /* Sanftes Grün für positiven Effekt */
  color: white; /* Klare Schriftfarbe */
}

.start-next-lesson:hover {
  background-color: #3C8F40; /* Etwas dunkleres Grün für Hover */
}

/* Spezifische Anpassung für den Video-Button */
.video-btn {
  background-color: #4477AA; /* Etwas gedeckteres Blau */
}

.video-btn:hover {
  background-color: #365F8A; /* Leicht dunkler beim Hover */
}



/* Anpassungen für extra kleine Geräte */
@media (max-width: 400px) {
  .toggle-video-btn {
    font-size: 0.9rem;
    padding: 8px;
    width: 100%; /* Nimmt die volle Breite ein */
  }
}



.toggle-video-btn:hover {
    background: var(--primary-hover, #4f46e5);
}

.neumorphic {
    box-shadow: 9px 9px 18px #d1d5db,
                -9px -9px 18px #ffffff;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .input-field {
        width: 100%;
    }
    .group-btn {
        padding: 0.8rem;
        margin: 0.1rem;
    }
    body {
        padding: 1rem;
    }
    .container {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    h1 {
        font-size: 1.75rem;
    }
}

.final-summary {
    text-align: center;
    margin-top: 2rem;
}

.final-summary ul {
    list-style: none;
    padding: 0;
}

.final-summary li {
    margin: 0.5rem 0;
}

.next-lesson-button {
    margin-top: 2rem;
    text-align: center;
}

.next-lesson-button button {
    padding: 0.75rem 1.5rem;
    background: #020213;
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.next-lesson-button button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

footer {
    background-color: #e6f0ff; /* Helles Blau als Basis */
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 5px 5px 10px #a8c2d1, -5px -5px 10px #ffffff; /* Weiche neumorphe Schatten */
    font-family: 'Inter', sans-serif;
    color: #184a60; /* Dunkles Blau für Text */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 1.5rem;
    flex: 1 1 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #267396; /* Hellblau für Überschriften */
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #05688d;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4d89a2; /* Helles Blau für Link-Hover */
}

.wp-block-social-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.wp-block-social-links li {
    margin: 0 0.5rem;
}

.wp-block-social-links a {
    display: flex;
    align-items: center;
    color: #05688d;
    transition: color 0.3s ease;
}

.wp-block-social-links a:hover {
    color: #4d89a2;
}

.wp-block-social-links svg {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    fill: #05688d; /* Icons in Blau */
}

.wp-block-social-link-label {
    font-size: 0.9rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
    }

    .wp-block-social-links {
        justify-content: center;
    }
}


/* Responsives Video */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.question-section {
  background-color: #f5f5f5; /* Heller Hintergrund */
  border-radius: 8px; /* Abgerundete Ecken */
  padding: 1rem; /* Innenabstand */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sanfte Schatten */
  text-align: center; /* Text zentrieren */
  margin: 1rem auto; /* Abstand oben und unten */
  width: 90%; /* Breite auf 90% setzen */
  max-width: 600px; /* Maximale Breite für größere Bildschirme */
}

.question-section h2 {
  font-size: 1.5rem; /* Schriftgröße anpassen */
  color: #8b0000; /* Dunkle Schriftfarbe */
  margin-bottom: 1rem; /* Abstand unter der Überschrift */
}

.question-section p {
  font-size: 1.2rem; /* Etwas größere Schrift */
  color: #666; /* Graue Schriftfarbe für den Text */
  margin: 1rem 0; /* Abstand oberhalb und unterhalb des Texts */
}

