body {
    background-color: #fffffb;
    color: #0f0f0b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Akzentfarben */
.accent-rot {
    color: #ac1e1d !important;
}

.accent-blau {
    color: #143e7a !important;
}

/* Header */
header {
    border-bottom: 2px solid #ac1e1d;
}

.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease;
}

.header-link:hover {
    opacity: 0.9;
    color: inherit;
    text-decoration: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    height: 40px;
    margin-right: 15px;
}

.header-text h1 {
    font-size: 2rem;
    color: #14140e;
    margin: 0;
}

.header-text h2 {
    font-size: 1.2rem;
    color: #143e7a;
    margin: 0;
}

/* Main */
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Container für Inhaltsseiten */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

.content h2 {
    color: #ac1e1d;
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.content h3 {
    color: #ac1e1d;
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
    text-align: center;
}

/* Spezielle H3-Überschriften für Prüfungsprogramm */
.content h3.programm-section {
    color: #143e7a;
}

.content h4 {
    color: #143e7a;
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #143e7a;
    padding-bottom: 5px;
}

.content h5 {
    color: #143e7a;
    font-size: 1.1rem;
    margin: 15px 0 8px 0;
    font-weight: bold;
}

.content h6 {
    color: #2c2c2c;
    font-size: 1rem;
    margin: 12px 0 6px 0;
    font-weight: bold;
}

.content p {
    margin: 10px 0;
    text-align: justify;
}

.content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.content li {
    margin: 8px 0;
    line-height: 1.5;
}

.content strong {
    color: #ac1e1d;
    font-weight: bold;
}

.content em {
    color: #143e7a;
    font-style: italic;
}

/* Top Navigation */
.top-navigation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .top-navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

.top-navigation .btn-back {
    background-color: #143e7a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.top-navigation .btn-back:hover {
    background-color: #0f2d5a;
    color: white;
    text-decoration: none;
}

.top-navigation .btn-next {
    background-color: #ac1e1d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.top-navigation .btn-next:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
}

.top-navigation .btn-center {
    background-color: #ac1e1d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 2;
    text-align: center;
}

.top-navigation .btn-center:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
}

/* Back Link */
.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-link .btn {
    background-color: #ac1e1d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-link .btn:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
}

/* Bottom Navigation */
.bottom-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.bottom-navigation .btn-back {
    background-color: #143e7a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.bottom-navigation .btn-back:hover {
    background-color: #0f2d5a;
    color: white;
    text-decoration: none;
}

.bottom-navigation .btn-next {
    background-color: #ac1e1d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    text-align: center;
}

.bottom-navigation .btn-next:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
}

.bottom-navigation .btn-center {
    background-color: #ac1e1d;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 2;
    text-align: center;
}

.bottom-navigation .btn-center:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    border-top: 2px solid #ac1e1d;
    margin-top: auto;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

footer a {
    color: #143e7a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Gürtel-Container */
.belt-container {
    max-width: 800px;
    margin: 0 auto;
}

.belt-container .card-link {
    margin-bottom: 10px;
    display: block;
}

/* Gürtel-Cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 60px;
    display: flex;
    align-items: center;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    flex-direction: column;
    text-align: center;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0f0f0b;
}

.card-text {
    margin: 0;
    font-size: 1rem;
    color: #0f0f0b;
}

/* Gürtel-Farben */
.kub-9 { background-color: #f8f9fa; } /* Weiß */
.kub-8 { background-color: #ffd700; } /* Gold */
.kub-7 { background: linear-gradient(to right, #ffd700 50%, #143e7a 50%); } /* Gold-Blau */
.kub-6 { background-color: #143e7a; } /* Blau (Akzentfarbe 2) */
.kub-5 { background: linear-gradient(to right, #143e7a 50%, #ac1e1d 50%); } /* Blau-Rot */
.kub-4 { background: linear-gradient(to right, #ac1e1d 33%, #143e7a 33%, #143e7a 66%, #ac1e1d 66%); } /* Rot-Blau-Rot */
.kub-3 { background-color: #ac1e1d; } /* Rot (Akzentfarbe 1) */
.kub-2 { background: linear-gradient(to right, #ac1e1d 50%, #2c2c2c 50%); } /* Rot-Schwarz */
.kub-1 { background: linear-gradient(to right, #2c2c2c 33%, #ac1e1d 33%, #ac1e1d 66%, #2c2c2c 66%, #2c2c2c 100%); } /* Schwarz-Rot-Schwarz */

/* Dan-Grade */
.dan-1, .dan-2, .dan-3, .dan-4, .dan-5 {
    background-color: black;
    color: #ac1e1d;
}

.dan-1 .card-title,
.dan-2 .card-title,
.dan-3 .card-title,
.dan-4 .card-title,
.dan-5 .card-title,
.dan-1 .card-text,
.dan-2 .card-text,
.dan-3 .card-text,
.dan-4 .card-text,
.dan-5 .card-text {
    color: #ac1e1d;
}

.dan-stars {
    font-size: 1.5rem;
    color: #ac1e1d;
    font-weight: bold;
}

/* Dan-Karten spezielle Anordnung */
.dan-1 .card-body,
.dan-2 .card-body,
.dan-3 .card-body,
.dan-4 .card-body,
.dan-5 .card-body {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
}

/* Kub-Grade 9: Schriftfarbe #2c2c2c */
.kub-9 .card-title,
.kub-9 .card-text {
    color: #2c2c2c;
}

/* Kub-Grade 8-1: Schriftfarbe #fffffb */
.kub-8 .card-title,
.kub-8 .card-text,
.kub-7 .card-title,
.kub-7 .card-text,
.kub-6 .card-title,
.kub-6 .card-text,
.kub-5 .card-title,
.kub-5 .card-text,
.kub-4 .card-title,
.kub-4 .card-text,
.kub-3 .card-title,
.kub-3 .card-text,
.kub-2 .card-title,
.kub-2 .card-text,
.kub-1 .card-title,
.kub-1 .card-text {
    color: #fffffb;
}

/* Startseite */
.logo-container {
    text-align: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container img {
    height: 250px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    color: #1d4482;
}

.loading-text {
    font-size: 0.9rem;
    color: #b12320;
    margin-top: 20px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 0 15px;
    }
    
    .content h2 {
        font-size: 1.6rem;
    }
    
    .content h3 {
        font-size: 1.3rem;
    }
    
    .content h4 {
        font-size: 1.1rem;
    }
    
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-text h2 {
        font-size: 1rem;
    }
    
    .header-logo {
        height: 30px;
    }

    .top-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .top-navigation .btn-back,
    .top-navigation .btn-next,
    .top-navigation .btn-center {
        flex: none;
        width: 100%;
    }

    .bottom-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .bottom-navigation .btn-back,
    .bottom-navigation .btn-next,
    .bottom-navigation .btn-center {
        flex: none;
        width: 100%;
    }
}

/* Gürtel-Indikator für einzelne Seiten */
.belt-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px auto 30px auto;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    background: white;
    border: 2px solid #e0e0e0;
}

.belt-indicator .belt-color {
    width: 60px;
    height: 20px;
    border-radius: 10px;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.belt-indicator .belt-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c2c2c;
    flex: 1;
    text-align: center;
}

.belt-indicator .btn-back,
.belt-indicator .btn-next {
    background-color: #143e7a;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.belt-indicator .btn-back:hover,
.belt-indicator .btn-next:hover {
    background-color: #0f2d5a;
    color: white;
    text-decoration: none;
}

.belt-indicator .btn-next {
    background-color: #ac1e1d;
}

.belt-indicator .btn-next:hover {
    background-color: #8a1a19;
}

/* Gürtel-Indikator Farben */
.belt-indicator.kub-9 .belt-color { background-color: #f8f9fa; border: 1px solid #d0d0d0; }
.belt-indicator.kub-8 .belt-color { background-color: #ffd700; }
.belt-indicator.kub-7 .belt-color { background: linear-gradient(to right, #ffd700 50%, #143e7a 50%); }
.belt-indicator.kub-6 .belt-color { background-color: #143e7a; }
.belt-indicator.kub-5 .belt-color { background: linear-gradient(to right, #143e7a 50%, #ac1e1d 50%); }
.belt-indicator.kub-4 .belt-color { background: linear-gradient(to right, #ac1e1d 33%, #143e7a 33%, #143e7a 66%, #ac1e1d 66%); }
.belt-indicator.kub-3 .belt-color { background-color: #ac1e1d; }
.belt-indicator.kub-2 .belt-color { background: linear-gradient(to right, #ac1e1d 50%, #2c2c2c 50%); }
.belt-indicator.kub-1 .belt-color { background: linear-gradient(to right, #2c2c2c 33%, #ac1e1d 33%, #ac1e1d 66%, #2c2c2c 66%, #2c2c2c 100%); }

.belt-indicator.dan-1 .belt-color,
.belt-indicator.dan-2 .belt-color,
.belt-indicator.dan-3 .belt-color,
.belt-indicator.dan-4 .belt-color,
.belt-indicator.dan-5 .belt-color {
    background-color: black;
    border: 1px solid #333;
}

/* Dan-Sterne in der Gürtelfarbe */
.belt-indicator.dan-1 .belt-color::after,
.belt-indicator.dan-2 .belt-color::after,
.belt-indicator.dan-3 .belt-color::after,
.belt-indicator.dan-4 .belt-color::after,
.belt-indicator.dan-5 .belt-color::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ac1e1d;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
}

.belt-indicator.dan-1 .belt-color::after { content: "✶"; }
.belt-indicator.dan-2 .belt-color::after { content: "✶✶"; }
.belt-indicator.dan-3 .belt-color::after { content: "✶✶✶"; }
.belt-indicator.dan-4 .belt-color::after { content: "✶✶✶✶"; }
.belt-indicator.dan-5 .belt-color::after { content: "✶✶✶✶✶"; }

/* Responsive Design für Gürtel-Indikator */
@media (max-width: 768px) {
    .belt-indicator {
        margin: 15px auto 25px auto;
        padding: 12px 20px;
        max-width: 350px;
    }
    
    .belt-indicator .belt-color {
        width: 50px;
        height: 18px;
        margin-right: 12px;
    }
    
    .belt-indicator .belt-text {
        font-size: 1rem;
    }
    
    /* Kleinere Sterne auf mobilen Geräten */
    .belt-indicator.dan-1 .belt-color::after,
    .belt-indicator.dan-2 .belt-color::after,
    .belt-indicator.dan-3 .belt-color::after,
    .belt-indicator.dan-4 .belt-color::after,
    .belt-indicator.dan-5 .belt-color::after {
        font-size: 14px;
    }
    
    .dan-stars {
        font-size: 1.3rem;
    }
}

/* Kick-Bilder Styling */
.kick-section img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kick-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
}

.kick-section h3 {
    color: #ac1e1d;
    border-bottom: 2px solid #143e7a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Responsive Design für Kick-Bilder */
@media (max-width: 768px) {
    .kick-section img {
        max-width: 300px;
    }
    
    .kick-section {
        padding: 15px;
        margin-bottom: 30px;
    }
}

/* Video-Links Styling */
.video-links {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ac1e1d;
}

.video-links h4 {
    color: #143e7a;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.video-links h4::before {
    content: "▶";
    color: #ac1e1d;
    margin-right: 8px;
    font-size: 1.2rem;
}

.video-link {
    display: inline-block;
    background-color: #ac1e1d;
    color: white;
    padding: 8px 16px;
    margin: 5px 10px 5px 0;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-link:hover {
    background-color: #8a1a19;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-link::after {
    content: " ↗";
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Design für Video-Links */
@media (max-width: 768px) {
    .video-links {
        padding: 12px;
    }
    
    .video-link {
        display: block;
        margin: 8px 0;
        text-align: center;
    }
}

/* Info-Seite Styling */
.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    color: #143e7a;
    border-bottom: 2px solid #ac1e1d;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.info-card {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    color: #ac1e1d;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.info-card ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-card li {
    margin: 8px 0;
    line-height: 1.5;
}

.info-card a {
    color: #143e7a;
    text-decoration: none;
    font-weight: bold;
}

.info-card a:hover {
    color: #ac1e1d;
    text-decoration: underline;
}
