/**
 * IT-WALKER QUIZ - MAIN STYLESHEET
 * Design kombiniert: lernspiel.enkyl.de + it-walker.de Farben
 */

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url('../images/koepfe.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
}

/* ============================================================================
   IT-WALKER GRADIENT
   ============================================================================ */
.gradient-bg {
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    color: #FFFFFF;
}

.gradient-text {
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */
.container {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.container-small {
    max-width: 500px;
}

.container-large {
    max-width: 1200px;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #333;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

p {
    margin-bottom: 15px;
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #5B89E8;
    box-shadow: 0 0 5px rgba(91, 137, 232, 0.5);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 137, 232, 0.4);
}

.btn-secondary {
    background: rgba(249, 249, 249, 0.8);
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background: #e9e9e9;
}

.btn-success {
    background: #4CAF50;
    color: #FFFFFF;
}

.btn-danger {
    background: #F44336;
    color: #FFFFFF;
}

.btn-warning {
    background: #FF9800;
    color: #FFFFFF;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* ============================================================================
   QUIZ COMPONENTS
   ============================================================================ */
.quiz-container {
    position: relative;
}

.question {
    font-size: 1.3em;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
}

.options {
    display: grid;
    gap: 15px;
}

.option {
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s;
    position: relative;
}

.option:hover {
    background: #e9e9e9;
    border-color: #5B89E8;
    transform: translateX(5px);
}

.option.selected {
    background: #E3F2FD;
    border-color: #5B89E8;
}

.option.correct {
    background: #C8E6C9;
    border-color: #4CAF50;
    color: #1B5E20;
    font-weight: bold;
    animation: correctPulse 0.5s;
}

.option.incorrect {
    background: #FFCDD2;
    border-color: #F44336;
    color: #B71C1C;
    font-weight: bold;
    animation: incorrectShake 0.5s;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */
.progress-container {
    width: 100%;
    height: 10px;
    background: #E0E0E0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7C6FD6 0%, #5B89E8 100%);
    transition: width 0.3s;
}

/* ============================================================================
   CARDS
   ============================================================================ */
.card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 1.3em;
    font-weight: bold;
}

.card-body {
    line-height: 1.8;
}

/* ============================================================================
   ALERTS
   ============================================================================ */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background: #C8E6C9;
    border-color: #4CAF50;
    color: #1B5E20;
}

.alert-error {
    background: #FFCDD2;
    border-color: #F44336;
    color: #B71C1C;
}

.alert-warning {
    background: #FFE0B2;
    border-color: #FF9800;
    color: #E65100;
}

.alert-info {
    background: #BBDEFB;
    border-color: #2196F3;
    color: #0D47A1;
}

/* ============================================================================
   NAVIGATION (Fixed Right)
   ============================================================================ */
/* ============================================================================
   MOBILE NAVIGATION (ÜBERALL SICHTBAR - DESKTOP + MOBILE!)
   ============================================================================ */
.mobile-top-nav {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-logo {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: bold;
}

.mobile-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-burger span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
}

.mobile-sidebar {
    position: fixed;
    top: 50px;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar a, .mobile-sidebar .btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* FIXED-NAV RECHTS (ÜBERALL AUSGEBLENDET!) */
.fixed-nav {
    display: none !important;
}

body {
    padding-top: 50px;
}

/* ============================================================================
   FOOTER LOGO
   ============================================================================ */
.footer-logo {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

/* WASSERZEICHEN LOGO (HINTERGRUND - ZENTRIERT) */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('../images/W3_s.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: -2;
    pointer-events: none;
}

/* ============================================================================
   TABLES
   ============================================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead {
    background: linear-gradient(135deg, #7C6FD6 0%, #5B89E8 100%);
    color: #FFFFFF;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

tbody tr:hover {
    background: #F5F5F5;
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.text-success { color: #4CAF50; }
.text-error { color: #F44336; }
.text-warning { color: #FF9800; }
.text-info { color: #2196F3; }

.bold { font-weight: bold; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .footer-logo {
        bottom: 50px;
    }
    
    .footer-logo img {
        max-width: 150px;
    }
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.quiz-footer {
    margin-top: 50px;
    padding: 30px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid #7C6FD6;
}

.footer-links {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links a {
    color: #7C6FD6;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0 5px;
}

.footer-links a:hover {
    color: #5B89E8;
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
    padding: 0 5px;
}

.footer-copyright {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
