/* ============================================
   GROUNDX TRAINER PORTAL STYLES - VERSION 20.0
   Features: Magic Link Login, Sterne-Badge, Studio-Filter
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    min-height: 100vh;
}

#gki-portal-root {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   MAGIC LINK LOGIN SCREEN
   ============================================ */

#gki-login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.gki-login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gki-login-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#gki-magic-link-form {
    margin-top: 30px;
}

.gki-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.gki-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.gki-input-wrapper input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gki-login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gki-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.gki-login-button:active {
    transform: translateY(0);
}

.gki-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Options Container */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.login-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.login-option:hover {
    border-color: #4A90E2;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.login-option h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-option p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.login-option input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.login-option input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.login-option button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-option button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.login-option button:active {
    transform: translateY(0);
}

.login-option.code-login {
    display: none; /* Versteckt bis Email gesendet */
}

.login-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-status p {
    margin: 0;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 15px;
}

.gki-login-success {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    color: #155724;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.gki-login-error {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   PORTAL HEADER
   ============================================ */

.gki-portal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gki-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;}
    /* ============================================
   GROUNDX TRAINER PORTAL STYLES - VERSION 20.0
   Features: Magic Link Login, Sterne-Badge, Studio-Filter
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    min-height: 100vh;
}

#gki-portal-root {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   MAGIC LINK LOGIN SCREEN
   ============================================ */

#gki-login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.gki-login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gki-login-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

#gki-magic-link-form {
    margin-top: 30px;
}

.gki-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.gki-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.gki-input-wrapper input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.gki-login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gki-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.gki-login-button:active {
    transform: translateY(0);
}

.gki-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Options Container */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.login-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.login-option:hover {
    border-color: #4A90E2;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.login-option h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-option p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.login-option input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.login-option input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.login-option button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-option button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.login-option button:active {
    transform: translateY(0);
}

.login-option.code-login {
    display: none; /* Versteckt bis Email gesendet */
}

.login-status {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-status p {
    margin: 0;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.login-divider span {
    padding: 0 15px;
}

.gki-login-success {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    color: #155724;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.gki-login-error {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    color: #721c24;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ============================================
   PORTAL HEADER
   ============================================ */

.gki-portal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gki-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* ============================================
   LOGOUT BUTTON - Rund mit SVG Icon
   ============================================ */

.gki-logout-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    padding: 0;
}

.gki-logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.gki-logout-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.gki-whatsapp-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.gki-whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.gki-whatsapp-button img {
    width: 56px;
    height: 56px;
}

/* ============================================
   TRAINER-BADGE (STERNE-SYSTEM)
   ============================================ */

.gki-trainer-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease;
}

.gki-trainer-badge-content {
    text-align: center;
    color: white;
}

.gki-trainer-stars {
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gki-trainer-level {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gki-trainer-count {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.gki-progress-container {
    margin-top: 20px;
}

.gki-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.gki-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.gki-progress-text {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FILTER BAR
   ============================================ */

.gki-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.gki-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.gki-filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-filter-group select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gki-filter-button {
    padding: 10px 30px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-filter-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Filter Mobile Accordion - Clean Professional Design */
@media (max-width: 768px) {
    .gki-filter-bar {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }
    
    /* Toggle: Volle Breite, kein Container drumherum */
    .gki-filter-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
        font-weight: 700;
        font-size: 18px;
        color: white;
        user-select: none;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        box-sizing: border-box;
        border: none;
        margin: 0;
    }
    
    .gki-filter-toggle:active {
        transform: scale(0.98);
    }
    
    .gki-filter-toggle-icon {
        transition: transform 0.3s ease;
        font-size: 22px;
        font-weight: bold;
    }
    
    /* Geöffnet: Nahtlos verbunden mit Content */
    .gki-filter-toggle.active {
        border-radius: 16px 16px 0 0;
        box-shadow: 0 0 0 0 transparent;
    }
    
    .gki-filter-toggle.active .gki-filter-toggle-icon {
        transform: rotate(180deg);
    }
    
    /* Content: Direkt darunter, KEIN extra Container */
    .gki-filter-content {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: white;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
        box-sizing: border-box;
        margin: 0;
        border-top: none;
    }
    
    .gki-filter-content.active {
        width: 100%;
        max-height: 1000px;
        padding: 28px 24px 32px 24px;
        box-sizing: border-box;
    }
    
    /* Filter-Groups: Volle Breite */
    .gki-filter-group {
        width: 100%;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 22px;
        box-sizing: border-box;
    }
    
    .gki-filter-group:last-of-type {
        margin-bottom: 24px;
    }
    
    .gki-filter-group label {
        width: 100% !important;
        font-size: 13px;
        font-weight: 700;
        color: #4a5568;
        margin-bottom: 10px;
        display: block;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        box-sizing: border-box;
    }
    
    /* Select-Felder: VOLLE BREITE */
    .gki-filter-group select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 16px 18px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        background: white;
        color: #2d3748;
        font-weight: 500;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 18px;
        padding-right: 45px;
        box-sizing: border-box;
    }
    
    .gki-filter-group select:focus {
        outline: none;
        border-color: #667eea;
        background: #f7fafc;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }
    
    /* Button: VOLLE BREITE */
    .gki-filter-button {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px;
        padding: 18px 24px;
        font-size: 17px;
        font-weight: 700;
        border-radius: 12px;
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
        color: white;
        box-shadow: 0 4px 16px rgba(66, 153, 225, 0.3);
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        border: none;
        box-sizing: border-box;
    }
    
    .gki-filter-button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
    }
}

/* Desktop: Toggle verstecken */
@media (min-width: 769px) {
    .gki-filter-toggle {
        display: none;
    }
}

/* ============================================
   PLAN CARDS
   ============================================ */

/* ============================================
   PLAN CARDS - NEU MIT BADGE-DESIGN
   ============================================ */

#gki-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ========================================
   PLAN KARTEN - BASIS
   ======================================== */

.gki-plan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gki-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gki-plan-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gki-plan-card-content {
    padding: 16px;
}

/* Abgeschlossen Badge - im Bild */
.gki-completed-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   KOMPAKTER TITEL MIT BADGES
   Format: #0006 | kraft [Studio] [⭐ 4.5]
   ======================================== */

.gki-plan-compact-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Seriennummer (#0006) */
.gki-plan-id {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

/* Divider (|) */
.gki-divider {
    font-size: 16px;
    font-weight: 400;
    color: #cbd5e0;
    margin: 0 -4px;
}

/* Fokus (kraft, Ausdauer, Mixed) */
.gki-plan-fokus {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    text-transform: capitalize;
}

/* ========================================
   BADGES - BASIS STYLE
   ======================================== */

.gki-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Studio Badge */
.gki-badge-studio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
}

.gki-plan-card:hover .gki-badge-studio {
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
    transform: translateY(-1px);
}

/* Bewertungs-Badges */
.gki-badge-rating {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gki-badge-excellent {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.gki-badge-good {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.gki-badge-poor {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.gki-plan-card:hover .gki-badge-rating {
    transform: translateY(-1px);
}

/* Plan Meta (RPE & Zeit) */
.gki-plan-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.gki-plan-meta span {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Alte Klassen wurden ersetzt durch .gki-plan-compact-title */
/* .gki-plan-number und .gki-plan-title sind deprecated */

.gki-plan-summary {
    display: none;
}

.gki-plan-button {
    display: none;
}


/* ============================================
   PLAN DETAIL VIEW
   ============================================ */

.gki-back-button {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4A90E2;
    color: #4A90E2;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.gki-back-button:hover {
    background: #4A90E2;
    color: white;
    transform: translateX(-5px);
}

/* ============================================
   PLAN DETAIL VIEW - Wie Screenshot 2
   ============================================ */

.gki-detail-header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gki-start-training-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.gki-start-training-btn:hover {
    background: #dc3545;
    color: white;
}

.gki-start-training-btn::before {
    content: '⚡';
    font-size: 20px;
}
/* ============================================
   MAIN TIMER & CONTROLS - VERSION 21.0
   ============================================ */

/* Workout Container - Hauptcontainer für Timer und Übungsliste */
.gki-workout-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Timer Wrapper - Weißer Hintergrund in Breite des 2x2 Grids */
.gki-timer-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Timer Container - Zentriert */
.gki-timer-container {
    text-align: center;
    margin-bottom: 20px;
}

.gki-timer-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gki-timer-display {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
}

/* Main Controls - 2x2 Grid */
.gki-main-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gki-main-controls button {
    width: 100%;
    height: 80px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-main-controls button svg {
    width: 32px;
    height: 32px;
}

/* Alle Buttons - Einheitliches Dunkelblau */
#gki-start-btn,
#gki-next-btn,
#gki-reset-btn,
#gki-finish-btn {
    background: #003366;
}

#gki-start-btn:hover,
#gki-next-btn:hover,
#gki-reset-btn:hover,
#gki-finish-btn:hover {
    background: #002244;
    transform: translateY(-2px);
}

#gki-start-btn:active,
#gki-next-btn:active,
#gki-reset-btn:active,
#gki-finish-btn:active {
    transform: scale(0.95);
}

/* Aktuelle Übung Display */
.gki-current-exercise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gki-exercise-name-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.gki-exercise-name-display {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.gki-exercise-countdown-display {
    font-size: 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}

.gki-video-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gki-video-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Übungsliste */
.gki-exercise-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.gki-exercise-list-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
}

.gki-exercise-section {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 16px 0 8px 0;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.gki-exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.gki-exercise-item:hover {
    background: #f9fafb;
}

.gki-exercise-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.gki-exercise-number {
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.gki-exercise-item.active .gki-exercise-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.gki-exercise-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.gki-exercise-value {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.gki-exercise-item.active .gki-exercise-value {
    color: white;
}

.gki-video-icon-small {
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

.gki-video-icon-small:hover {
    transform: scale(1.2);
}

.gki-exercise-item.active .gki-video-icon-small {
    filter: brightness(1.2);
}

/* Scrollbar Styling für Übungsliste */
.gki-exercise-list::-webkit-scrollbar {
    width: 6px;
}

.gki-exercise-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.gki-exercise-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.gki-exercise-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* LEGACY STYLES - Falls alte Elemente noch vorhanden sind */
.gki-main-timer-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-section-timer {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
}

#gki-exercise-controls {
    display: contents;
}
/* ============================================
   ACCORDION - Große Sections wie Screenshot 2
   ============================================ */

.gki-accordion {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.gki-accordion-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.gki-accordion-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gki-section-emoji {
    font-size: 28px;
}

.gki-accordion-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4A90E2;
    margin: 15px 0 10px 0;
}

.gki-section-timer {
    color: #4A90E2;
    font-weight: 700;
    margin-left: 10px;
}

.gki-accordion-icon {
    font-size: 24px;
    color: #4A90E2;
    transition: transform 0.3s ease;
}

.gki-accordion-header.active .gki-accordion-icon {
    transform: rotate(180deg);
}

.gki-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}

.gki-accordion-content.gki-accordion-open {
    max-height: 5000px;
    padding: 25px;
}

/* ============================================
   EXERCISE TABLE
   ============================================ */

.gki-exercise-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.gki-exercise-table thead {
    background: #f8f9fa;
}

.gki-exercise-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.gki-exercise-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.gki-exercise-table tbody tr {
    transition: all 0.3s ease;
}

.gki-exercise-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.gki-exercise-table tbody tr.active {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-left: 4px solid #28a745;
}

.gki-exercise-table tbody tr.in-pause {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
}

.gki-exercise-table tbody tr.in-transition {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #4A90E2;
}

.gki-exercise-name-clickable {
    color: #4A90E2;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gki-exercise-name-clickable:hover {
    color: #5568d3;
}

.gki-exercise-timer {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

.gki-pause-cell {
    font-weight: 600;
    color: #ffc107;
}

/* ============================================
   VIDEO POPUP
   ============================================ */

.gki-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.gki-video-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.gki-close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-close-video:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.gki-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gki-loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gki-no-results {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    #gki-plan-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #gki-portal-root {
        padding: 15px;
    }
    
    .gki-login-container {
        padding: 40px 30px;
    }
    
    .gki-login-title {
        font-size: 26px;
    }
    
    /* Mobile: Login Options */
    .login-options {
        gap: 20px;
    }
    
    .login-option {
        padding: 20px;
    }
    
    .login-option h3 {
        font-size: 16px;
    }
    
    .login-option p {
        font-size: 13px;
    }
    
    .gki-portal-header {
        font-size: 22px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gki-trainer-badge {
        padding: 20px;
    }
    
    .gki-trainer-stars {
        font-size: 36px;
    }
    
    .gki-trainer-level {
        font-size: 24px;
    }
    
    .gki-filter-bar {
        flex-direction: column;
    }
    
    .gki-filter-group {
        width: 100%;
    }
    
    #gki-plan-list {
        grid-template-columns: 1fr;
    }
    
    .gki-detail-title {
        font-size: 24px;
    }
    
    .gki-main-controls {
        max-width: 350px;
    }
    
    .gki-main-controls button {
        height: 70px;
    }
    
    .gki-main-controls button svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-timer-display {
        font-size: 36px;
    }
    
    .gki-exercise-countdown-display {
        font-size: 32px;
    }
    
    .gki-exercise-name-display {
        font-size: 20px;
    }
    
    .gki-current-exercise {
        padding: 20px;
    }
    
    .gki-exercise-list {
        max-height: 300px;
    }
    
    .gki-exercise-table {
        font-size: 14px;
    }
    
    .gki-exercise-table th,
    .gki-exercise-table td {
        padding: 10px 8px;
    }
    
    .gki-whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .gki-whatsapp-button img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .gki-login-container {
        padding: 30px 20px;
    }
    
    /* Extra kleine Screens: Login Options */
    .login-option {
        padding: 18px;
    }
    
    .login-option h3 {
        font-size: 15px;
    }
    
    .login-option input,
    .login-option button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .gki-detail-header {
        padding: 20px;
    }
    
    .gki-main-timer-bar {
        padding: 20px;
    }
    
    .gki-timer-wrapper {
        padding: 20px;
    }
    
    .gki-timer-display {
        font-size: 32px;
    }
    
    .gki-exercise-countdown-display {
        font-size: 28px;
    }
    
    .gki-exercise-name-display {
        font-size: 18px;
    }
    
    .gki-main-controls button {
        height: 56px;
    }
    
    .gki-main-controls button svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-accordion-header {
        padding: 15px;
    }
    
    .gki-accordion-content.gki-accordion-open {
        padding: 15px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden */
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .gki-whatsapp-button,
    .gki-back-button,
    .gki-main-controls,
    .gki-filter-bar {
        display: none !important;
    }
    
    .gki-accordion-content {
        max-height: none !important;
        padding: 20px !important;
    }
}

/* ============================================
   POPUP-SYSTEM
   ============================================ */

.gki-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.gki-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.gki-popup-header {
    padding: 25px 30px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gki-popup-icon {
    font-size: 32px;
}

.gki-popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    flex: 1;
}

.gki-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.gki-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.gki-popup-body {
    padding: 30px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.gki-popup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gki-popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.gki-popup-message p {
    margin: 0 0 15px 0;
}

.gki-popup-message strong {
    color: #0969da;
}

.gki-popup-actions {
    margin-top: 25px;
    text-align: center;
}

.gki-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gki-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.gki-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   PRIMARY & SECONDARY BUTTONS
   ============================================ */

.gki-primary-button,
.gki-secondary-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 10px;
}

.gki-primary-button {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gki-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gki-secondary-button {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-secondary-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   WORKOUT COMPLETE SCREEN
   ============================================ */

.gki-workout-complete {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
}

.gki-complete-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.gki-workout-complete h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gki-workout-complete p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.gki-complete-time {
    font-size: 24px !important;
    font-weight: 700;
    color: #4A90E2;
    margin: 30px 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .gki-popup-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .gki-popup-header {
        padding: 20px;
    }
    
    .gki-popup-header h2 {
        font-size: 20px;
    }
    
    .gki-popup-body {
        padding: 20px;
    }
}
/* ============================================
   VIDEO POPUP
   ============================================ */
.gki-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.gki-video-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.gki-video-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #252525;
    border-bottom: 1px solid #333;
}

.gki-video-popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.gki-video-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gki-video-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.gki-video-popup-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* Video-Link in Tabelle */
.gki-video-link {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.gki-video-link:hover {
    transform: scale(1.2);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .gki-video-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .gki-video-popup-header h3 {
        font-size: 16px;
    }
    
    .gki-video-popup-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
}

/* ==================================================
   TIMER-CONTROLS IN PLAN-DETAILS
   ================================================== */

.gki-timer-controls {
    width: 100%;
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gki-total-timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.gki-timer-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gki-total-timer {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #1a1a1a;
    text-shadow: none;
}

.gki-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gki-control-btn {
    padding: 18px;
    border: none;
    border-radius: 10px;
    background: #1e3a8a;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-control-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.gki-control-btn:active {
    transform: translateY(0);
}

.gki-control-btn svg {
    width: 28px;
    height: 28px;
}

.gki-btn-pause {
    background: rgba(243, 156, 18, 0.3);
}

.gki-btn-pause:hover {
    background: rgba(243, 156, 18, 0.5);
}

.gki-btn-play {
    background: #1e3a8a;
}

.gki-btn-play:hover {
    background: #2563eb;
}

.gki-btn-skip {
    background: #1e3a8a;
}

.gki-btn-skip:hover {
    background: #2563eb;
}

.gki-btn-reset {
    background: #1e3a8a;
}

.gki-btn-reset:hover {
    background: #2563eb;
}

.gki-btn-finish {
    background: #1e3a8a;
}

.gki-btn-finish:hover {
    background: #2563eb;
}

/* ==================================================
   TIMER IN TABELLEN
   ================================================== */

.gki-exercise-table tbody tr {
    transition: all 0.3s ease;
}

.gki-exercise-table tbody tr.gki-timer-active {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.gki-timer-running {
    color: #e74c3c !important;
    font-weight: bold !important;
    font-size: 1.15em !important;
    font-family: 'Courier New', monospace !important;
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .gki-total-timer {
        font-size: 2.2em;
    }
    
    .gki-button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gki-control-btn {
        padding: 15px;
    }
    
    .gki-control-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-timer-controls {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gki-total-timer {
        font-size: 1.8em;
    }
    
    .gki-timer-label {
        font-size: 0.8em;
    }
}

/* ==================================================
   PWA INSTALL BUTTON
   ================================================== */

.gki-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-right: 10px;
}

.gki-pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.gki-pwa-install-btn:active {
    transform: translateY(0);
}

.gki-pwa-install-btn svg {
    flex-shrink: 0;
}

/* Für Login-Screen */
.gki-login-container .gki-pwa-install-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gki-pwa-install-btn span {
        display: none;
    }
    
    .gki-pwa-install-btn {
        padding: 12px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .gki-login-container .gki-pwa-install-btn {
        width: 100%;
        border-radius: 8px;
        padding: 12px 20px;
    }
    
    .gki-login-container .gki-pwa-install-btn span {
        display: inline;
    }
}

/* ============================================
   PORTAL-STYLES.CSS - Rating-Modal
   ============================================ */

/* Modal Overlay */
.gki-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gki-modal-overlay.show {
    opacity: 1;
}

/* Modal Content */
.gki-rating-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gki-modal-overlay.show .gki-rating-modal-content {
    transform: scale(1);
}

/* Modal Header */
.gki-rating-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gki-rating-header h2 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.gki-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gki-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.gki-rating-body {
    padding: 40px 30px;
}

.gki-rating-plan-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    text-align: center;
}

.gki-rating-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px 0;
    text-align: center;
}

/* Rating Stars */
.gki-rating-stars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gki-star {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.gki-star:hover {
    border-color: #fbbf24;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.gki-star.selected {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gki-star.selected .star-icon,
.gki-star.selected .star-label {
    color: white;
}

.gki-star[data-rating="1"],
.gki-star[data-rating="2"] {
    border-color: #e2e8f0;
}

.gki-star[data-rating="1"].selected,
.gki-star[data-rating="2"].selected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
}

.gki-star[data-rating="5"],
.gki-star[data-rating="6"] {
    border-color: #e2e8f0;
}

.gki-star[data-rating="5"].selected,
.gki-star[data-rating="6"].selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.star-icon {
    font-size: 48px;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.gki-star:hover .star-icon,
.gki-star.selected .star-icon {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.star-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: #64748b;
    transition: color 0.3s ease;
}

/* Comment Section */
.gki-rating-comment-section {
    margin-bottom: 30px;
}

.gki-rating-comment-section label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 16px;
}

.gki-rating-comment-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.gki-rating-comment-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Actions */
.gki-rating-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.gki-btn-primary,
.gki-btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gki-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.gki-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gki-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.gki-btn-secondary:hover {
    background: #e2e8f0;
}

/* Success Toast */
.gki-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.gki-success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .gki-rating-stars {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gki-rating-actions {
        flex-direction: column;
    }
    
    .gki-btn-primary,
    .gki-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gki-rating-stars {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ADMIN-STYLES.CSS - Rating-Anzeige in Tabelle
   ============================================ */

/* Studio-Plan gelber Punkt */
.plan-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plan-type-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.plan-type-dot.studio {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.plan-type-dot.kurs {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Rating Badge in Tabelle */
.plan-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-rating-badge.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.plan-rating-badge.good {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.plan-rating-badge.poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.plan-rating-badge.no-rating {
    background: #f1f5f9;
    color: #94a3b8;
}

.rating-count {
    font-size: 11px;
    opacity: 0.9;
    margin-left: 3px;
}

/* Needs Optimization Badge */
.needs-optimization-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.optimization-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.optimization-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.optimization-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.optimization-status.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Dashboard Rating Widget */
.gki-dashboard-rating-widget {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.gki-dashboard-rating-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.rating-top-plans,
.rating-needs-optimization {
    margin-bottom: 25px;
}

.rating-top-plans h4,
.rating-needs-optimization h4 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 15px 0;
}

.rating-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
}

.rating-plan-name {
    font-weight: 600;
    color: #1e293b;
}

.rating-plan-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.rating-plan-score.excellent {
    color: #10b981;
}

.rating-plan-score.poor {
    color: #ef4444;
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.needs-optimization-badge.processing {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   INLINE RATING AUF ABSCHLUSS-SEITE
   Füge in portal-styles.css ein
   ============================================ */

.gki-rating-inline {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 16px;
    border: 2px solid #c7d2fe;
}

.gki-rating-inline h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
}

.gki-rating-stars-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.gki-rating-stars-inline .rating-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    min-width: 56px;
    text-align: center;
}

.gki-rating-stars-inline .stars-container {
    display: flex;
    gap: 6px;
}

.gki-rating-stars-inline .rating-star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
    filter: grayscale(1);
}

.gki-rating-stars-inline .rating-star:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

.gki-rating-stars-inline .rating-star.selected {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.gki-rating-comment-inline {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-top: 15px;
    transition: border-color 0.2s;
}

.gki-rating-comment-inline:focus {
    outline: none;
    border-color: #6366f1;
}

.gki-rating-comment-inline::placeholder {
    color: #94a3b8;
}

/* Button disabled state */
.gki-primary-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.gki-primary-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Toast Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gki-toast {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 600px) {
    .gki-rating-stars-inline {
        flex-direction: column;
        gap: 15px;
    }
    
    .gki-rating-stars-inline .rating-label {
        min-width: auto;
    }
    
    .gki-rating-stars-inline .rating-star {
        font-size: 28px;
    }
}
/* ============================================
   BESCHREIBUNGS-ACCORDION
   ============================================ */
.gki-description-accordion .gki-accordion-content.gki-accordion-open {
    padding: 20px;
}

.gki-description-text {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.gki-description-text br {
    display: block;
    margin: 8px 0;
    content: "";
}


/* ============================================
   LOGOUT BUTTON - Rund mit SVG Icon
   ============================================ */

.gki-logout-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    padding: 0;
}

.gki-logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.gki-logout-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.gki-whatsapp-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.gki-whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.gki-whatsapp-button img {
    width: 56px;
    height: 56px;
}

/* ============================================
   TRAINER-BADGE (STERNE-SYSTEM)
   ============================================ */

.gki-trainer-badge {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease;
}

.gki-trainer-badge-content {
    text-align: center;
    color: white;
}

.gki-trainer-stars {
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gki-trainer-level {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gki-trainer-count {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.gki-progress-container {
    margin-top: 20px;
}

.gki-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.gki-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.gki-progress-text {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FILTER BAR
   ============================================ */

.gki-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.gki-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.gki-filter-group select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-filter-group select:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gki-filter-button {
    padding: 10px 30px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-filter-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}


/* ============================================
   PLAN DETAIL VIEW
   ============================================ */

.gki-back-button {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4A90E2;
    color: #4A90E2;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.gki-back-button:hover {
    background: #4A90E2;
    color: white;
    transform: translateX(-5px);
}

/* ============================================
   PLAN DETAIL VIEW - Wie Screenshot 2
   ============================================ */

.gki-detail-header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gki-start-training-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.gki-start-training-btn:hover {
    background: #dc3545;
    color: white;
}

.gki-start-training-btn::before {
    content: '⚡';
    font-size: 20px;
}
/* ============================================
   MAIN TIMER & CONTROLS - VERSION 21.0
   ============================================ */

/* Workout Container - Hauptcontainer für Timer und Übungsliste */
.gki-workout-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Timer Wrapper - Weißer Hintergrund in Breite des 2x2 Grids */
.gki-timer-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Timer Container - Zentriert */
.gki-timer-container {
    text-align: center;
    margin-bottom: 20px;
}

.gki-timer-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gki-timer-display {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
}

/* Main Controls - 2x2 Grid */
.gki-main-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gki-main-controls button {
    width: 100%;
    height: 80px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-main-controls button svg {
    width: 32px;
    height: 32px;
}

/* Alle Buttons - Einheitliches Dunkelblau */
#gki-start-btn,
#gki-next-btn,
#gki-reset-btn,
#gki-finish-btn {
    background: #003366;
}

#gki-start-btn:hover,
#gki-next-btn:hover,
#gki-reset-btn:hover,
#gki-finish-btn:hover {
    background: #002244;
    transform: translateY(-2px);
}

#gki-start-btn:active,
#gki-next-btn:active,
#gki-reset-btn:active,
#gki-finish-btn:active {
    transform: scale(0.95);
}

/* Aktuelle Übung Display */
.gki-current-exercise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gki-exercise-name-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.gki-exercise-name-display {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.gki-exercise-countdown-display {
    font-size: 42px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
}

.gki-video-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gki-video-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Übungsliste */
.gki-exercise-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.gki-exercise-list-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
}

.gki-exercise-section {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 16px 0 8px 0;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.gki-exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.gki-exercise-item:hover {
    background: #f9fafb;
}

.gki-exercise-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.gki-exercise-number {
    width: 28px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.gki-exercise-item.active .gki-exercise-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.gki-exercise-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.gki-exercise-value {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.gki-exercise-item.active .gki-exercise-value {
    color: white;
}

.gki-video-icon-small {
    cursor: pointer;
    font-size: 16px;
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}

.gki-video-icon-small:hover {
    transform: scale(1.2);
}

.gki-exercise-item.active .gki-video-icon-small {
    filter: brightness(1.2);
}

/* Scrollbar Styling für Übungsliste */
.gki-exercise-list::-webkit-scrollbar {
    width: 6px;
}

.gki-exercise-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.gki-exercise-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.gki-exercise-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* LEGACY STYLES - Falls alte Elemente noch vorhanden sind */
.gki-main-timer-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-section-timer {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
}

#gki-exercise-controls {
    display: contents;
}
/* ============================================
   ACCORDION - Große Sections wie Screenshot 2
   ============================================ */

.gki-accordion {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.gki-accordion-header:hover {
    background: rgba(102, 126, 234, 0.05);
}

.gki-accordion-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gki-section-emoji {
    font-size: 28px;
}

.gki-accordion-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4A90E2;
    margin: 15px 0 10px 0;
}

.gki-section-timer {
    color: #4A90E2;
    font-weight: 700;
    margin-left: 10px;
}

.gki-accordion-icon {
    font-size: 24px;
    color: #4A90E2;
    transition: transform 0.3s ease;
}

.gki-accordion-header.active .gki-accordion-icon {
    transform: rotate(180deg);
}

.gki-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}

.gki-accordion-content.gki-accordion-open {
    max-height: 5000px;
    padding: 25px;
}

/* ============================================
   EXERCISE TABLE
   ============================================ */

.gki-exercise-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.gki-exercise-table thead {
    background: #f8f9fa;
}

.gki-exercise-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.gki-exercise-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.gki-exercise-table tbody tr {
    transition: all 0.3s ease;
}

.gki-exercise-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.gki-exercise-table tbody tr.active {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-left: 4px solid #28a745;
}

.gki-exercise-table tbody tr.in-pause {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left: 4px solid #ffc107;
}

.gki-exercise-table tbody tr.in-transition {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #4A90E2;
}

.gki-exercise-name-clickable {
    color: #4A90E2;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.gki-exercise-name-clickable:hover {
    color: #5568d3;
}

.gki-exercise-timer {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

.gki-pause-cell {
    font-weight: 600;
    color: #ffc107;
}

/* ============================================
   VIDEO POPUP
   ============================================ */

.gki-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.gki-video-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.gki-close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-close-video:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.gki-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gki-loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gki-no-results {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    #gki-plan-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    #gki-portal-root {
        padding: 15px;
    }
    
    .gki-login-container {
        padding: 40px 30px;
    }
    
    .gki-login-title {
        font-size: 26px;
    }
    
    /* Mobile: Login Options */
    .login-options {
        gap: 20px;
    }
    
    .login-option {
        padding: 20px;
    }
    
    .login-option h3 {
        font-size: 16px;
    }
    
    .login-option p {
        font-size: 13px;
    }
    
    .gki-portal-header {
        font-size: 22px;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gki-trainer-badge {
        padding: 20px;
    }
    
    .gki-trainer-stars {
        font-size: 36px;
    }
    
    .gki-trainer-level {
        font-size: 24px;
    }
    
    .gki-filter-bar {
        flex-direction: column;
    }
    
    .gki-filter-group {
        width: 100%;
    }
    
    #gki-plan-list {
        grid-template-columns: 1fr;
    }
    
    .gki-detail-title {
        font-size: 24px;
    }
    
    .gki-main-controls {
        max-width: 350px;
    }
    
    .gki-main-controls button {
        height: 70px;
    }
    
    .gki-main-controls button svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-timer-display {
        font-size: 36px;
    }
    
    .gki-exercise-countdown-display {
        font-size: 32px;
    }
    
    .gki-exercise-name-display {
        font-size: 20px;
    }
    
    .gki-current-exercise {
        padding: 20px;
    }
    
    .gki-exercise-list {
        max-height: 300px;
    }
    
    .gki-exercise-table {
        font-size: 14px;
    }
    
    .gki-exercise-table th,
    .gki-exercise-table td {
        padding: 10px 8px;
    }
    
    .gki-whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .gki-whatsapp-button img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .gki-login-container {
        padding: 30px 20px;
    }
    
    /* Extra kleine Screens: Login Options */
    .login-option {
        padding: 18px;
    }
    
    .login-option h3 {
        font-size: 15px;
    }
    
    .login-option input,
    .login-option button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .gki-detail-header {
        padding: 20px;
    }
    
    .gki-main-timer-bar {
        padding: 20px;
    }
    
    .gki-timer-wrapper {
        padding: 20px;
    }
    
    .gki-timer-display {
        font-size: 32px;
    }
    
    .gki-exercise-countdown-display {
        font-size: 28px;
    }
    
    .gki-exercise-name-display {
        font-size: 18px;
    }
    
    .gki-main-controls button {
        height: 56px;
    }
    
    .gki-main-controls button svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-accordion-header {
        padding: 15px;
    }
    
    .gki-accordion-content.gki-accordion-open {
        padding: 15px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Kann später aktiviert werden */
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .gki-whatsapp-button,
    .gki-back-button,
    .gki-main-controls,
    .gki-filter-bar {
        display: none !important;
    }
    
    .gki-accordion-content {
        max-height: none !important;
        padding: 20px !important;
    }
}

/* ============================================
   POPUP-SYSTEM
   ============================================ */

.gki-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.gki-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.gki-popup-header {
    padding: 25px 30px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gki-popup-icon {
    font-size: 32px;
}

.gki-popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    flex: 1;
}

.gki-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.gki-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.gki-popup-body {
    padding: 30px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.gki-popup-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gki-popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.gki-popup-message p {
    margin: 0 0 15px 0;
}

.gki-popup-message strong {
    color: #0969da;
}

.gki-popup-actions {
    margin-top: 25px;
    text-align: center;
}

.gki-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gki-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.gki-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* ============================================
   PRIMARY & SECONDARY BUTTONS
   ============================================ */

.gki-primary-button,
.gki-secondary-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 10px;
}

.gki-primary-button {
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.gki-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gki-secondary-button {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gki-secondary-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   WORKOUT COMPLETE SCREEN
   ============================================ */

.gki-workout-complete {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease;
}

.gki-complete-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.gki-workout-complete h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gki-workout-complete p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.gki-complete-time {
    font-size: 24px !important;
    font-weight: 700;
    color: #4A90E2;
    margin: 30px 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .gki-popup-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .gki-popup-header {
        padding: 20px;
    }
    
    .gki-popup-header h2 {
        font-size: 20px;
    }
    
    .gki-popup-body {
        padding: 20px;
    }
}
/* ============================================
   VIDEO POPUP
   ============================================ */
.gki-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.gki-video-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
}

.gki-video-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #252525;
    border-bottom: 1px solid #333;
}

.gki-video-popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.gki-video-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.gki-video-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.gki-video-popup-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* Video-Link in Tabelle */
.gki-video-link {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.gki-video-link:hover {
    transform: scale(1.2);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .gki-video-popup-content {
        width: 95%;
        max-width: none;
    }
    
    .gki-video-popup-header h3 {
        font-size: 16px;
    }
    
    .gki-video-popup-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
}

/* ==================================================
   TIMER-CONTROLS IN PLAN-DETAILS
   ================================================== */

.gki-timer-controls {
    width: 100%;
    margin: 20px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gki-total-timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.gki-timer-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gki-total-timer {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #1a1a1a;
    text-shadow: none;
}

.gki-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gki-control-btn {
    padding: 18px;
    border: none;
    border-radius: 10px;
    background: #1e3a8a;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gki-control-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.gki-control-btn:active {
    transform: translateY(0);
}

.gki-control-btn svg {
    width: 28px;
    height: 28px;
}

.gki-btn-pause {
    background: rgba(243, 156, 18, 0.3);
}

.gki-btn-pause:hover {
    background: rgba(243, 156, 18, 0.5);
}

.gki-btn-play {
    background: #1e3a8a;
}

.gki-btn-play:hover {
    background: #2563eb;
}

.gki-btn-skip {
    background: #1e3a8a;
}

.gki-btn-skip:hover {
    background: #2563eb;
}

.gki-btn-reset {
    background: #1e3a8a;
}

.gki-btn-reset:hover {
    background: #2563eb;
}

.gki-btn-finish {
    background: #1e3a8a;
}

.gki-btn-finish:hover {
    background: #2563eb;
}

/* ==================================================
   TIMER IN TABELLEN
   ================================================== */

.gki-exercise-table tbody tr {
    transition: all 0.3s ease;
}

.gki-exercise-table tbody tr.gki-timer-active {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.gki-timer-running {
    color: #e74c3c !important;
    font-weight: bold !important;
    font-size: 1.15em !important;
    font-family: 'Courier New', monospace !important;
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .gki-total-timer {
        font-size: 2.2em;
    }
    
    .gki-button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gki-control-btn {
        padding: 15px;
    }
    
    .gki-control-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .gki-timer-controls {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gki-total-timer {
        font-size: 1.8em;
    }
    
    .gki-timer-label {
        font-size: 0.8em;
    }
}

/* ==================================================
   PWA INSTALL BUTTON
   ================================================== */

.gki-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-right: 10px;
}

.gki-pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.gki-pwa-install-btn:active {
    transform: translateY(0);
}

.gki-pwa-install-btn svg {
    flex-shrink: 0;
}

/* Für Login-Screen */
.gki-login-container .gki-pwa-install-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .gki-pwa-install-btn span {
        display: none;
    }
    
    .gki-pwa-install-btn {
        padding: 12px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .gki-login-container .gki-pwa-install-btn {
        width: 100%;
        border-radius: 8px;
        padding: 12px 20px;
    }
    
    .gki-login-container .gki-pwa-install-btn span {
        display: inline;
    }
}

/* ============================================
   PORTAL-STYLES.CSS - Rating-Modal
   ============================================ */

/* Modal Overlay */
.gki-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gki-modal-overlay.show {
    opacity: 1;
}

/* Modal Content */
.gki-rating-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gki-modal-overlay.show .gki-rating-modal-content {
    transform: scale(1);
}

/* Modal Header */
.gki-rating-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gki-rating-header h2 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.gki-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gki-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.gki-rating-body {
    padding: 40px 30px;
}

.gki-rating-plan-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    text-align: center;
}

.gki-rating-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 40px 0;
    text-align: center;
}

/* Rating Stars */
.gki-rating-stars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gki-star {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.gki-star:hover {
    border-color: #fbbf24;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.gki-star.selected {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gki-star.selected .star-icon,
.gki-star.selected .star-label {
    color: white;
}

.gki-star[data-rating="1"],
.gki-star[data-rating="2"] {
    border-color: #e2e8f0;
}

.gki-star[data-rating="1"].selected,
.gki-star[data-rating="2"].selected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
}

.gki-star[data-rating="5"],
.gki-star[data-rating="6"] {
    border-color: #e2e8f0;
}

.gki-star[data-rating="5"].selected,
.gki-star[data-rating="6"].selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.star-icon {
    font-size: 48px;
    margin-bottom: 10px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.gki-star:hover .star-icon,
.gki-star.selected .star-icon {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.star-label {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: #64748b;
    transition: color 0.3s ease;
}

/* Comment Section */
.gki-rating-comment-section {
    margin-bottom: 30px;
}

.gki-rating-comment-section label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 16px;
}

.gki-rating-comment-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.gki-rating-comment-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Actions */
.gki-rating-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.gki-btn-primary,
.gki-btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gki-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gki-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.gki-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gki-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.gki-btn-secondary:hover {
    background: #e2e8f0;
}

/* Success Toast */
.gki-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.gki-success-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .gki-rating-stars {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gki-rating-actions {
        flex-direction: column;
    }
    
    .gki-btn-primary,
    .gki-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gki-rating-stars {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ADMIN-STYLES.CSS - Rating-Anzeige in Tabelle
   ============================================ */

/* Studio-Plan gelber Punkt */
.plan-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plan-type-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.plan-type-dot.studio {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.plan-type-dot.kurs {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Rating Badge in Tabelle */
.plan-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-rating-badge.excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.plan-rating-badge.good {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.plan-rating-badge.poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.plan-rating-badge.no-rating {
    background: #f1f5f9;
    color: #94a3b8;
}

.rating-count {
    font-size: 11px;
    opacity: 0.9;
    margin-left: 3px;
}

/* Needs Optimization Badge */
.needs-optimization-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.optimization-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.optimization-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.optimization-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.optimization-status.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Dashboard Rating Widget */
.gki-dashboard-rating-widget {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
}

.gki-dashboard-rating-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.rating-top-plans,
.rating-needs-optimization {
    margin-bottom: 25px;
}

.rating-top-plans h4,
.rating-needs-optimization h4 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 15px 0;
}

.rating-plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
}

.rating-plan-name {
    font-weight: 600;
    color: #1e293b;
}

.rating-plan-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.rating-plan-score.excellent {
    color: #10b981;
}

.rating-plan-score.poor {
    color: #ef4444;
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.needs-optimization-badge.processing {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   INLINE RATING AUF ABSCHLUSS-SEITE
   Füge in portal-styles.css ein
   ============================================ */

.gki-rating-inline {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: 16px;
    border: 2px solid #c7d2fe;
}

.gki-rating-inline h3 {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
}

.gki-rating-stars-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.gki-rating-stars-inline .rating-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    min-width: 56px;
    text-align: center;
}

.gki-rating-stars-inline .stars-container {
    display: flex;
    gap: 6px;
}

.gki-rating-stars-inline .rating-star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
    filter: grayscale(1);
}

.gki-rating-stars-inline .rating-star:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

.gki-rating-stars-inline .rating-star.selected {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.gki-rating-comment-inline {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    margin-top: 15px;
    transition: border-color 0.2s;
}

.gki-rating-comment-inline:focus {
    outline: none;
    border-color: #6366f1;
}

.gki-rating-comment-inline::placeholder {
    color: #94a3b8;
}

/* Button disabled state */
.gki-primary-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.gki-primary-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Toast Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gki-toast {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 600px) {
    .gki-rating-stars-inline {
        flex-direction: column;
        gap: 15px;
    }
    
    .gki-rating-stars-inline .rating-label {
        min-width: auto;
    }
    
    .gki-rating-stars-inline .rating-star {
        font-size: 28px;
    }
}
/* ============================================
   WORKOUT TIMER - VERSION 3.0
   ============================================ */

.gki-timer-display {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gki-phase-title {
    position: absolute;
    top: 20px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gki-master-timer {
    font-size: 120px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.gki-timer-warning {
    color: #ef4444 !important;
    animation: pulse-warning 1s infinite;
}

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

.gki-exercise-display {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.gki-exercise-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.gki-exercise-time {
    font-size: 24px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.gki-progress-container {
    width: 100%;
    height: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.gki-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* ALTE timer-controls Definition entfernt - macht display: flex und überschreibt die richtige Definition */

.gki-timer-btn {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gki-timer-btn-pause {
    background: #fbbf24;
    color: #1e293b;
}

.gki-timer-btn-pause:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

.gki-timer-btn-stop {
    background: #ef4444;
    color: #ffffff;
}

.gki-timer-btn-stop:hover {
    background: #dc2626;
    transform: scale(1.05);
}

#gki-pause-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#gki-pause-overlay.show {
    display: flex;
}

.gki-pause-content {
    text-align: center;
}

.gki-pause-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.gki-pause-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .gki-master-timer {
        font-size: 80px;
    }
    
    .gki-exercise-name {
        font-size: 24px;
    }
    
    .gki-timer-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}



/* === GKI Pause-Strip layout exakt wie Zeichnung (Zeit | Balken | Label rechts) === */
.gki-pause-strip{ width:100%; margin:6px 0 12px; padding:0 8px; display:none; }
.gki-pause-row{ display:grid; grid-template-columns:110px 1fr auto; align-items:center; column-gap:12px; white-space:nowrap; }
.gki-pause-left{ min-width:110px; }
.gki-pause-time{ font-variant-numeric: tabular-nums; }
.gki-pause-bar{ height:10px; background:#e6f7ee; border-radius:9999px; overflow:hidden; }
.gki-pause-fill{ height:100%; width:0%; background:#22c55e; transition:width .25s linear; }
.gki-pause-label{ color:#111 !important; font-weight:700; justify-self:end; }

/* ========================================
   GKI: Zone-Timer und Zonenpausen-Styles
   ======================================== */

/* Zone Header mit Timer */
.gki-zone-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0 16px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gki-zone-title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gki-zone-live-timer {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.gki-zone-timer {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
}

.gki-zone-timer.gki-timer-warning {
    background: #ef4444;
    animation: pulse-warning 0.5s infinite;
}

/* Zonenpause Section */
.gki-zone-pause-section {
    margin: 16px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section Transition Pause (Warmup → Main, Main → Cooldown) */
.gki-section-transition-pause {
    margin: 16px 0;
    padding: 12px 16px;
    padding-left: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none; /* Initial versteckt, wird per JavaScript angezeigt */
}

.gki-zone-pause-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gki-zone-pause-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gki-zone-pause-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gki-zone-pause-info {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gki-zone-pause-timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    color: white;
}

.gki-zone-pause-label {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.gki-zone-pause-timer.gki-timer-warning {
    background: #ef4444;
    animation: pulse-warning 0.5s infinite;
}

/* Warning Animation */
@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive: Auf kleinen Screens Progress Bar über Timer */
@media (max-width: 480px) {
    .gki-zone-pause-section {
        padding: 6px 12px;
        margin: 12px 0;
    }
    
    .gki-zone-pause-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .gki-zone-pause-bar-container {
        flex: 0 0 100%;
        order: 1;
    }
    
    .gki-zone-pause-info {
        flex: 0 0 auto;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .gki-zone-pause-label {
        font-size: 12px;
    }
    
    .gki-zone-pause-timer {
        font-size: 14px;
        padding: 3px 8px;
    }
    
    /* Inline Pause Button mobil sichtbar */
    .gki-inline-pause-btn {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin-left: 8px;
        flex-shrink: 0;
    }
}

/* ========================================
   GKI: Section Timer & Aktive Zone Styles
   ======================================== */

/* Section Timer im Accordion Header */
.gki-section-timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 12px;
}

/* Aktive Zone Highlighting */
.gki-zone-header.gki-zone-active {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.gki-zone-pause-section.gki-zone-pause-active {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Pulse Animation für aktive Zone */
.gki-zone-active .gki-zone-timer {
    animation: pulse-active 2s infinite;
}

@keyframes pulse-active {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

/* Mobile Anpassungen für Section Timer */
@media (max-width: 768px) {
    .gki-section-timer {
        font-size: 14px;
        padding: 3px 8px;
    }
}

/* Flex-Layout für Accordion Header mit Timer */
.gki-accordion-header {
    gap: 16px;
}

.gki-accordion-header h3 {
    flex: 1;
}

.gki-section-timer {
    flex-shrink: 0;
}

.gki-accordion-icon {
    flex-shrink: 0;
}

/* Plan-Beschreibung spezielles Styling */
.gki-description-accordion {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gki-description-accordion .gki-accordion-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.gki-description-accordion .gki-accordion-header h3 {
    color: white;
}

.gki-description-accordion .gki-accordion-icon {
    color: white;
}

.gki-description-accordion.active .gki-accordion-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* ========================================
   GKI: Zirkel-Indicator
   ======================================== */

/* Timer + Circuit Wrapper (Desktop: horizontal, Mobile: vertikal) */
.gki-timer-circuit-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gki-circuit-indicator {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Zirkel-Indicator Animation bei Wechsel */
@keyframes circuit-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.gki-circuit-indicator.circuit-changed {
    animation: circuit-pulse 0.5s ease-in-out;
}

/* Mobile Anpassungen - Untereinander stapeln */
@media (max-width: 768px) {
    .gki-timer-circuit-wrapper {
        flex-direction: column !important;
        align-items: stretch !important; /* Volle Breite nutzen */
        gap: 6px !important;
    }
    
    .gki-section-timer {
        align-self: flex-start; /* Timer linksbündig */
    }
    
    .gki-circuit-indicator {
        align-self: flex-end; /* Zirkel rechtsbündig */
        font-size: 12px;
        padding: 3px 8px;
        margin-right: 0; /* Kein rechter Abstand auf Mobile */
    }
}

@media (max-width: 480px) {
    .gki-timer-circuit-wrapper {
        gap: 4px !important;
    }
    
    .gki-circuit-indicator {
        font-size: 11px;
        padding: 2px 6px;
    }
}
/* ============================================
   MOBILE-FIRST REDESIGN - ZUSÄTZLICHE STYLES
   Hinzugefügt: 02.11.2024
   Exercise Cards statt Tabellen
   ============================================ */

/* Tabellen verstecken (werden durch Cards ersetzt) */
.gki-exercise-table {
    display: none !important;
}

/* ============================================
   EXERCISE CARDS (Mobile-First)
   ============================================ */

.gki-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: transparent;
}

.gki-exercise-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    transition: all 0.3s ease;
    min-height: 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gki-exercise-card:active {
    transform: scale(0.98);
    border-color: #4F46E5;
}

.gki-exercise-card.active {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.gki-exercise-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gki-exercise-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gki-exercise-card .gki-exercise-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gki-exercise-card .gki-video-link {
    font-size: 20px;
    text-decoration: none;
    min-height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gki-exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6B7280;
}

.gki-exercise-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gki-exercise-card-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.gki-exercise-value {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.gki-exercise-reps {
    font-size: 22px;
    color: #4F46E5;
    font-weight: 800;
}

/* Mobile Optimierungen für Exercise Cards */
@media (max-width: 768px) {
    .gki-exercises-list {
        padding: 12px;
        gap: 10px;
    }
    
    .gki-exercise-card {
        padding: 14px;
        gap: 14px;
    }
    
    .gki-exercise-card-main {
        gap: 6px;
    }
    
    .gki-exercise-card .gki-exercise-name {
        font-size: 15px;
    }
    
    .gki-exercise-value {
        font-size: 13px;
    }
    
    .gki-exercise-reps {
        font-size: 20px;
    }
    
    .gki-exercise-meta {
        font-size: 13px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .gki-exercises-list {
        padding: 8px;
        gap: 8px;
    }
    
    .gki-exercise-card {
        padding: 12px;
    }
    
    .gki-exercise-value {
        font-size: 12px;
    }
    
    .gki-exercise-reps {
        font-size: 18px;
    }
}

/* ============================================
   TOUCH OPTIMIERUNGEN
   ============================================ */

/* Mindest-Touch-Größen für Mobile */
@media (max-width: 768px) {
    button,
    .gki-plan-card,
    .gki-accordion-header,
    select,
    input[type="button"],
    input[type="submit"] {
        min-height: 56px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .gki-control-btn {
        min-height: 56px;
        padding: 14px;
    }
    
    .gki-back-button,
    .gki-filter-button {
        min-height: 56px;
        padding: 12px 20px;
    }
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */

/* Mindestgröße für Inputs (verhindert Auto-Zoom auf iOS) */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    font-size: 16px !important;
}

/* Bessere Lesbarkeit auf Mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .gki-detail-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .gki-plan-title {
        font-size: 17px;
        line-height: 1.3;
    }
}

/* ============================================
   MOBILE-FIRST BUTTON IMPROVEMENTS
   ============================================ */

/* Größere Touch-Targets für alle wichtigen Buttons */
.gki-timer-btn,
.gki-control-btn,
.gki-back-button,
.gki-filter-button,
.gki-logout-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.gki-timer-btn:active,
.gki-control-btn:active,
.gki-back-button:active,
.gki-filter-button:active {
    transform: scale(0.95);
}

/* ============================================
   FOKUS-STYLES FÜR ACCESSIBILITY
   ============================================ */

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid #4F46E5;
    outline-offset: 2px;
}

/* ============================================
   PERFORMANCE OPTIMIERUNGEN
   ============================================ */

/* Reduced Motion für Nutzer-Präferenzen */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ENDE MOBILE-FIRST REDESIGN
   ============================================ */

/* ============================================
   DESIGN-HARMONISIERUNG - Timer, Header, Zones
   Hinzugefügt: 02.11.2024, 21:30 Uhr
   Macht alles konsistent mit Exercise Cards
   ============================================ */

/* ============================================
   TIMER CONTROLS - Moderne Card
   ============================================ */

.gki-timer-controls {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(79, 70, 229, 0.1) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.05) !important;
    margin-bottom: 24px !important;
}

.gki-total-timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.gki-timer-label {
    font-size: 11px;
    font-weight: 800;
    color: #6B7280;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.gki-total-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 42px !important;
    font-weight: 900 !important;
    color: #1F2937 !important;
    letter-spacing: -1px;
    line-height: 1;
}

/* Button Grid */
.gki-button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Control Buttons - Moderne Gradients */
.gki-control-btn {
    min-height: 56px !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.gki-control-btn:active {
    transform: scale(0.96) !important;
}

.gki-control-btn svg {
    width: 22px;
    height: 22px;
}

/* Play Button - Grün */
.gki-btn-play {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.gki-btn-play:active {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

/* Pause Button - Orange */
.gki-btn-pause {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

/* Skip Button - Blau */
.gki-btn-skip {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Reset Button - Grau */
.gki-btn-reset {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%) !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

/* Finish Button - Rot */
.gki-btn-finish {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* ============================================
   ACCORDION HEADER - Moderner Stil
   ============================================ */

.gki-accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 18px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2) !important;
    border: none !important;
}

.gki-accordion.active .gki-accordion-header {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3) !important;
}

.gki-accordion-header h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}

/* Section Timer in Header */
.gki-section-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

/* ============================================
   ZONE HEADER - Harmonischere Farben
   ============================================ */

.gki-zone-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%) !important;
    color: white;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    border-radius: 12px !important;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2) !important;
}

.gki-zone-header.gki-zone-active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.01);
}

.gki-zone-title {
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gki-zone-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 17px !important;
    font-weight: 800 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

/* ============================================
   ZIRKEL INDICATOR - Besser integriert
   ============================================ */

.gki-circuit-indicator {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: rgba(245, 158, 11, 0.95) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
    backdrop-filter: blur(10px);
}

/* ============================================
   PLAN HEADER - Konsistenter
   ============================================ */

.gki-detail-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    padding: 20px !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    border: 2px solid rgba(79, 70, 229, 0.05) !important;
}

.gki-detail-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1F2937 !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.gki-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
}

.gki-plan-meta span {
    background: rgba(79, 70, 229, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
}

/* ============================================
   BACK BUTTON - Moderner
   ============================================ */

.gki-back-button {
    min-height: 48px !important;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    color: #4B5563 !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    margin-bottom: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.gki-back-button:active {
    transform: translateX(-2px) scale(0.98) !important;
    border-color: #4F46E5 !important;
    background: rgba(79, 70, 229, 0.05) !important;
}

/* ============================================
   ZONENPAUSE - Harmonischer
   ============================================ */

.gki-zone-pause-section {
    margin: 16px 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(236, 72, 153, 0.2) !important;
}

.gki-zone-pause-section.gki-zone-pause-active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3) !important;
    transform: scale(1.01);
}

.gki-zone-pause-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

.gki-zone-pause-label {
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* ============================================
   MOBILE OPTIMIERUNGEN
   ============================================ */

@media (max-width: 768px) {
    .gki-total-timer {
        font-size: 36px !important;
    }
    
    .gki-timer-controls {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    
    .gki-control-btn {
        min-height: 52px !important;
        padding: 14px !important;
    }
    
    .gki-button-grid {
        gap: 8px;
    }
    
    .gki-detail-header {
        padding: 18px !important;
    }
    
    .gki-detail-title {
        font-size: 20px !important;
    }
    
    .gki-accordion-header {
        padding: 16px 18px !important;
    }
    
    .gki-zone-header {
        padding: 14px 18px !important;
    }
    
    .gki-zone-live-timer {
        font-size: 18px !important;
        padding: 6px 12px !important;
        min-width: 60px !important;
    }
}

@media (max-width: 480px) {
    .gki-total-timer {
        font-size: 32px !important;
    }
    
    .gki-timer-label {
        font-size: 10px;
    }
    
    .gki-control-btn {
        min-height: 48px !important;
        padding: 12px !important;
    }
    
    .gki-control-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   KONSISTENTE SCHATTEN FÜR ALLE CARDS
   ============================================ */

.gki-accordion,
.gki-timer-controls,
.gki-detail-header,
.gki-exercise-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}

.gki-accordion.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.1) !important;
}

/* ============================================
   ENDE DESIGN-HARMONISIERUNG
   ============================================ *//* ============================================
   DESIGN UPDATE v3.3 - Inline Timer + Zirkel
   Datum: 03.11.2024
   Änderung: Beide Werte auf einer Linie, OHNE Hintergrund
   ============================================ */

/* ============================================
   1. DUNKELBLAU HEADER + WEIẞE SCHRIFT
   ============================================ */

/* Accordion Header - Dunkelblau */
.gki-accordion-header {
    background: linear-gradient(135deg, #003d82 0%, #002654 100%) !important;
    padding: 18px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 61, 130, 0.3) !important;
    border: none !important;
}

.gki-accordion.active .gki-accordion-header {
    box-shadow: 0 4px 16px rgba(0, 61, 130, 0.4) !important;
}

.gki-accordion-header h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    color: white !important;
}

/* Section Timer - OHNE Hintergrund, inline */
.gki-section-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: white !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    display: inline-block !important;
    margin-right: 12px !important;
}

/* Zirkel Badge - OHNE Hintergrund, inline */
.gki-circuit-indicator {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: none !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    display: inline-block !important;
    margin-left: 0 !important;
}

/* Accordion Icon - Weiß */
.gki-accordion-icon {
    color: white !important;
    margin-left: 12px !important;
}

/* Zone Header - Dunkelblau */
.gki-zone-header {
    background: linear-gradient(135deg, #003d82 0%, #002654 100%) !important;
    color: white !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    border-radius: 12px !important;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 61, 130, 0.3) !important;
}

.gki-zone-header.gki-zone-active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.01);
}

.gki-zone-title {
    font-size: 16px !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gki-zone-timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
}

/* Override: Alle Texte in Headern weiß */
.gki-accordion-header,
.gki-accordion-header *,
.gki-zone-header,
.gki-zone-header * {
    color: white !important;
}

/* ============================================
   2. MOBILE OPTIMIERUNG - Kompakte Timer
   ============================================ */

@media (max-width: 768px) {
    /* Section Timer */
    .gki-section-timer {
        font-size: 13px !important;
        margin-right: 10px !important;
    }
    
    /* Zirkel Badge */
    .gki-circuit-indicator {
        font-size: 11px !important;
    }
    
    /* Zone Timer */
    .gki-zone-timer {
        font-size: 14px !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
    }
    
    /* Header Padding */
    .gki-accordion-header {
        padding: 14px 16px !important;
    }
    
    .gki-accordion-header h3 {
        font-size: 15px !important;
    }
    
    .gki-zone-header {
        padding: 12px 16px !important;
    }
    
    .gki-zone-title {
        font-size: 14px !important;
    }
    
    .gki-zone-live-timer {
        font-size: 16px !important;
        padding: 4px 10px !important;
        min-width: 55px !important;
    }
    
    /* Icon Abstand */
    .gki-accordion-icon {
        margin-left: 10px !important;
    }
}

/* Kleine Handys (iPhone SE) */
@media (max-width: 375px) {
    .gki-section-timer {
        font-size: 12px !important;
        margin-right: 8px !important;
    }
    
    .gki-circuit-indicator {
        font-size: 10px !important;
    }
    
    .gki-zone-timer {
        font-size: 13px !important;
        padding: 3px 8px !important;
    }
    
    .gki-accordion-header h3 {
        font-size: 14px !important;
    }
    
    .gki-accordion-icon {
        margin-left: 8px !important;
    }
}

/* ============================================
   Ende der Updates v3.3
   ============================================ */
/* ========================================
   RESPONSIVE - PLAN CARDS MIT BADGES
   ======================================== */

@media (max-width: 768px) {
    .gki-plan-card {
        margin-bottom: 16px;
    }
    
    .gki-plan-card-image {
        height: 180px;
    }
    
    .gki-plan-card-content {
        padding: 14px;
    }
    
    .gki-plan-compact-title {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .gki-plan-id,
    .gki-divider,
    .gki-plan-fokus {
        font-size: 15px;
    }
    
    .gki-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .gki-plan-meta {
        gap: 12px;
    }
    
    .gki-plan-meta span {
        font-size: 13px;
    }
    
    .gki-completed-badge {
        font-size: 12px;
        padding: 5px 12px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .gki-plan-card {
        margin-bottom: 14px;
        border-radius: 14px;
    }
    
    .gki-plan-card-image {
        height: 160px;
    }
    
    .gki-plan-card-content {
        padding: 12px;
    }
    
    .gki-plan-compact-title {
        gap: 5px;
        margin-bottom: 8px;
    }
    
    .gki-plan-id {
        font-size: 14px;
        font-weight: 700;
    }
    
    .gki-divider {
        font-size: 14px;
    }
    
    .gki-plan-fokus {
        font-size: 14px;
    }
    
    .gki-badge {
        font-size: 11px;
        padding: 3px 8px;
        border-radius: 10px;
    }
    
    .gki-plan-meta {
        gap: 10px;
    }
    
    .gki-plan-meta span {
        font-size: 12px;
    }
    
    .gki-completed-badge {
        font-size: 11px;
        padding: 4px 10px;
        top: 8px;
        left: 8px;
    }
}

/* Touch Feedback für Mobile */
@media (max-width: 768px) {
    .gki-plan-card:active {
        transform: scale(0.98);
    }
}

/* Desktop Hover */
@media (min-width: 769px) {
    .gki-plan-card:active {
        transform: translateY(-2px);
    }
}

/* ==============================================
   UNIVERSELLE BUTTON-GRÖSSE - ALLE HEADER BUTTONS
   56x56px FÜR PERFEKTE MOBILE DARSTELLUNG
============================================== */

/* Alle Button-Typen im Header */
.gki-header-buttons button,
.gki-header-buttons a,
.gki-attendance-button,
.gki-logout-button,
.gki-whatsapp-button,
#gki-attendance-btn,
#gki-calendar-btn,
#gki-logout-btn,
#gki-install-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 6px !important;
    flex-shrink: 0 !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Icon-Größen für alle Buttons - einheitlich 28x28px */
.gki-header-buttons button svg,
.gki-header-buttons a svg,
.gki-attendance-button svg,
.gki-logout-button svg,
.gki-whatsapp-button svg,
#gki-attendance-btn svg,
#gki-calendar-btn svg,
#gki-logout-btn svg,
#gki-install-btn svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

/* Hover-Effekt für alle Buttons */
.gki-header-buttons button:hover,
.gki-header-buttons a:hover,
#gki-attendance-btn:hover,
#gki-calendar-btn:hover,
#gki-logout-btn:hover,
#gki-install-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Active-State für alle Buttons */
.gki-header-buttons button:active,
.gki-header-buttons a:active,
#gki-attendance-btn:active,
#gki-calendar-btn:active,
#gki-logout-btn:active,
#gki-install-btn:active {
    transform: scale(0.95) !important;
}

/* ==============================================
   SPEZIFISCHE BUTTON-FARBEN
============================================== */

/* Anwesenheits-Button (Lila) */
#gki-attendance-btn,
.gki-attendance-button {
    background: #7C3AED !important;
}

#gki-attendance-btn:hover,
.gki-attendance-button:hover {
    background: #6D28D9 !important;
}

/* Kalender-Button (Orange) */
#gki-calendar-btn {
    background: #FF6B35 !important;
}

#gki-calendar-btn:hover {
    background: #E85A25 !important;
}

/* Logout-Button (Rot/Pink) */
#gki-logout-btn,
.gki-logout-button {
    background: #EF4444 !important;
}

#gki-logout-btn:hover,
.gki-logout-button:hover {
    background: #DC2626 !important;
}

/* WhatsApp-Button (Grün) */
.gki-whatsapp-button {
    background: #25D366 !important;
}

.gki-whatsapp-button:hover {
    background: #20BA5A !important;
}

/* Install-Button (Blau) */
#gki-install-btn {
    background: #3B82F6 !important;
}

#gki-install-btn:hover {
    background: #2563EB !important;
}

/* ==============================================
   HEADER CONTAINER ANPASSUNGEN
============================================== */

.gki-header-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

/* ==============================================
   MOBILE OPTIMIERUNG
============================================== */

@media (max-width: 768px) {
    /* Buttons bleiben 56x56px auf Tablets */
    .gki-header-buttons button,
    .gki-header-buttons a,
    #gki-attendance-btn,
    #gki-calendar-btn,
    #gki-logout-btn,
    #gki-install-btn {
        width: 56px !important;
        height: 56px !important;
        margin: 0 4px !important;
    }
    
    /* Icons bleiben 28x28px */
    .gki-header-buttons button svg,
    .gki-header-buttons a svg,
    #gki-attendance-btn svg,
    #gki-calendar-btn svg,
    #gki-logout-btn svg,
    #gki-install-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    /* Buttons bleiben 56x56px auch auf kleinen Smartphones */
    .gki-header-buttons button,
    .gki-header-buttons a,
    #gki-attendance-btn,
    #gki-calendar-btn,
    #gki-logout-btn,
    #gki-install-btn {
        width: 56px !important;
        height: 56px !important;
        margin: 0 3px !important;
    }
    
    /* Icons bleiben 28x28px */
    .gki-header-buttons button svg,
    .gki-header-buttons a svg,
    #gki-attendance-btn svg,
    #gki-calendar-btn svg,
    #gki-logout-btn svg,
    #gki-install-btn svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Kleinerer Gap auf sehr kleinen Screens */
    .gki-header-buttons {
        gap: 3px !important;
    }
}

/* ==============================================
   TOUCH-OPTIMIERUNG
============================================== */

@media (hover: none) and (pointer: coarse) {
    /* Touch-optimiert: 56x56px ist perfekt für Touch */
    .gki-header-buttons button,
    .gki-header-buttons a,
    #gki-attendance-btn,
    #gki-calendar-btn,
    #gki-logout-btn,
    #gki-install-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    /* Touch-Feedback verstärken */
    .gki-header-buttons button:active,
    .gki-header-buttons a:active {
        opacity: 0.8 !important;
    }
}

/* ==============================================
   DESKTOP OPTIMIERUNG (optional größer)
============================================== */

@media (min-width: 1024px) {
    /* Desktop kann optional größer sein, aber wir bleiben bei 56x56px */
    /* Falls du später Desktop größer haben willst, hier ändern */
}

/* ==============================================
   PRINT STYLES
============================================== */

@media print {
    .gki-header-buttons {
        display: none !important;
    }
}

/* ==============================================
   WICHTIGE HINWEISE
============================================== */

/*
 * MOBILE FIRST DESIGN:
 * ====================
 * Alle Buttons: 56x56px
 * Alle Icons:   28x28px
 * Gap:          6px (Desktop) / 3-4px (Mobile)
 * 
 * BUTTONS:
 * ========
 * ✓ Anwesenheit  (lila)   #7C3AED
 * 📅 Kalender    (orange) #FF6B35
 * 📤 Abmelden    (rot)    #EF4444
 * 💬 WhatsApp    (grün)   #25D366
 * 📥 Install     (blau)   #3B82F6
 * 
 * ALLE GLEICH GROSS: 56x56px
 */
/* ============================================
   MOBILE FIRST FIX - ALLE BUTTONS 56x56px
   Frank's Anforderung: Mobile ist wichtig!
   ============================================ */

/* KRITISCH: Alle Buttons auf 56x56px ERZWINGEN */
.gki-header-buttons button,
.gki-header-buttons a,
.gki-logout-button,
.gki-whatsapp-button,
.gki-attendance-button,
#gki-attendance-btn,
#gki-calendar-btn,
#gki-pwa-install-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
}

/* KRITISCH: Alle Icons auf 28x28px */
.gki-header-buttons button svg,
.gki-header-buttons a svg,
.gki-logout-button svg,
.gki-whatsapp-button svg,
.gki-attendance-button svg,
#gki-attendance-btn svg,
#gki-calendar-btn svg,
#gki-pwa-install-btn svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

/* WhatsApp Image Fix */
.gki-whatsapp-button img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

/* Install-Button: Kein Text auf Mobile */
.gki-pwa-install-btn span {
    display: none !important;
}

/* Install-Button: Rund wie andere */
.gki-pwa-install-btn {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    gap: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
}

/* Tooltip für Install-Button */
.gki-pwa-install-btn::after {
    content: 'App installieren';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.gki-pwa-install-btn:hover::after {
    opacity: 1;
}

/* Kalender-Button Farbe */
#gki-calendar-btn {
    background: #FF6B35 !important;
}

#gki-calendar-btn:hover {
    background: #E85A25 !important;
}

/* Anwesenheits-Button Farbe */
.gki-attendance-button,
#gki-attendance-btn {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
}

/* Header Gap */
.gki-header-buttons {
    gap: 8px !important;
}

/* MOBILE: Noch kritischer! */
@media (max-width: 768px) {
    .gki-header-buttons button,
    .gki-header-buttons a,
    .gki-logout-button,
    .gki-whatsapp-button,
    .gki-attendance-button,
    #gki-attendance-btn,
    #gki-calendar-btn,
    #gki-pwa-install-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
    
    .gki-header-buttons button svg,
    .gki-header-buttons a svg,
    #gki-attendance-btn svg,
    #gki-calendar-btn svg,
    #gki-pwa-install-btn svg,
    .gki-logout-button svg,
    .gki-whatsapp-button svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .gki-whatsapp-button img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .gki-pwa-install-btn span {
        display: none !important;
    }
    
    .gki-header-buttons {
        gap: 6px !important;
    }
}

@media (max-width: 480px) {
    .gki-header-buttons {
        gap: 4px !important;
    }
    
    /* Noch kritischer für kleine Screens */
    .gki-header-buttons button,
    .gki-header-buttons a,
    #gki-pwa-install-btn {
        width: 56px !important;
        height: 56px !important;
    }
}

/* Login-Container Install-Button Ausnahme */
.gki-login-container .gki-pwa-install-btn {
    width: 100% !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
}

.gki-login-container .gki-pwa-install-btn span {
    display: inline !important;
}

/* Ende Mobile First Fix */

/* ============================================
   WORDPRESS 6.x UPDATE FIX - CSS RESET
   Version: 1.0 - Dezember 2024
   Verhindert Theme/Block-Editor Überschreibungen
   ============================================ */

/* ==============================================
   KRITISCH: Root-Level Isolation
   Schützt Portal vor externen WordPress-Styles
============================================== */

#gki-portal-root,
#gki-portal-root *,
#gki-portal-root *::before,
#gki-portal-root *::after {
    box-sizing: border-box !important;
}

/* Portal-Hintergrund Reset */
#gki-portal-root {
    background: transparent !important;
    color: inherit !important;
}

/* ==============================================
   FILTER-BAR FIXES
============================================== */

#gki-portal-root .gki-filter-bar,
.gki-filter-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 20px !important;
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ==============================================
   SELECT/DROPDOWN FIXES - KRITISCH!
   Diese wurden vom WordPress Update überschrieben
============================================== */

#gki-portal-root .gki-filter-group select,
#gki-portal-root select,
.gki-filter-group select,
body .gki-filter-group select,
html .gki-filter-group select {
    background: white !important;
    background-color: white !important;
    color: #2d3748 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    padding-right: 45px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
    min-width: 150px !important;
    outline: none !important;
}

#gki-portal-root .gki-filter-group select:focus,
.gki-filter-group select:focus {
    border-color: #4A90E2 !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background-color: white !important;
}

#gki-portal-root .gki-filter-group select option,
.gki-filter-group select option {
    background: white !important;
    background-color: white !important;
    color: #2d3748 !important;
    padding: 10px !important;
}

/* ==============================================
   FILTER-GROUP FIXES
============================================== */

#gki-portal-root .gki-filter-group,
.gki-filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-width: 150px !important;
    background: transparent !important;
}

/* ==============================================
   LABEL FIXES
============================================== */

#gki-portal-root .gki-filter-group label,
.gki-filter-group label,
body .gki-filter-group label {
    color: #555 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: block !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==============================================
   FILTER BUTTON FIXES
============================================== */

#gki-portal-root .gki-filter-button,
.gki-filter-button {
    padding: 10px 30px !important;
    background: #4A90E2 !important;
    background-color: #4A90E2 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#gki-portal-root .gki-filter-button:hover,
.gki-filter-button:hover {
    background: #5568d3 !important;
    background-color: #5568d3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
}

/* ==============================================
   WORDPRESS BLOCK EDITOR OVERRIDES ENTFERNEN
============================================== */

#gki-portal-root .wp-block,
#gki-portal-root .has-background,
#gki-portal-root [class*="wp-block"],
#gki-portal-root [class*="has-"] {
    background: transparent !important;
    background-color: transparent !important;
}

/* Global WP Form Element Resets im Portal */
#gki-portal-root input,
#gki-portal-root select,
#gki-portal-root textarea,
#gki-portal-root button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* ==============================================
   PORTAL HEADER FIXES
============================================== */

#gki-portal-root .gki-portal-header,
.gki-portal-header {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 25px 30px !important;
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

/* ==============================================
   PLAN CARDS FIXES
============================================== */

#gki-portal-root .gki-plan-card,
.gki-plan-card {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

#gki-portal-root .gki-plan-card * {
    color: inherit !important;
}

/* ==============================================
   PLAN LIST CONTAINER FIXES
============================================== */

#gki-portal-root #gki-plan-list,
#gki-plan-list {
    background: transparent !important;
}

/* ==============================================
   MOBILE FILTER FIXES (max-width: 768px)
============================================== */

@media (max-width: 768px) {
    #gki-portal-root .gki-filter-bar,
    .gki-filter-bar {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    
    #gki-portal-root .gki-filter-toggle,
    .gki-filter-toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 20px 24px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 16px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25) !important;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: white !important;
        border: none !important;
    }
    
    #gki-portal-root .gki-filter-toggle.active,
    .gki-filter-toggle.active {
        border-radius: 16px 16px 0 0 !important;
    }
    
    #gki-portal-root .gki-filter-content,
    .gki-filter-content {
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: white !important;
        background-color: white !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15) !important;
    }
    
    #gki-portal-root .gki-filter-content.active,
    .gki-filter-content.active {
        max-height: 1000px !important;
        padding: 28px 24px 32px 24px !important;
    }
    
    #gki-portal-root .gki-filter-group,
    .gki-filter-group {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 22px !important;
    }
    
    #gki-portal-root .gki-filter-group label,
    .gki-filter-group label {
        width: 100% !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #4a5568 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    #gki-portal-root .gki-filter-group select,
    .gki-filter-group select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 16px 18px !important;
        padding-right: 45px !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        background: white !important;
        background-color: white !important;
        color: #2d3748 !important;
        font-weight: 500 !important;
    }
    
    #gki-portal-root .gki-filter-button,
    .gki-filter-button {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 18px 24px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
    }
}

/* ==============================================
   DESKTOP FILTER (min-width: 769px) 
============================================== */

@media (min-width: 769px) {
    #gki-portal-root .gki-filter-toggle,
    .gki-filter-toggle {
        display: none !important;
    }
    
    #gki-portal-root .gki-filter-content,
    .gki-filter-content {
        display: contents !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ==============================================
   LOGIN SCREEN FIXES
============================================== */

#gki-portal-root #gki-login-screen,
#gki-login-screen {
    background: transparent !important;
}

#gki-portal-root .gki-login-container,
.gki-login-container {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 50px 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    color: #1a1a1a !important;
}

#gki-portal-root .gki-login-container input,
.gki-login-container input {
    background: white !important;
    background-color: white !important;
    color: #1a1a1a !important;
    border: 2px solid #e0e0e0 !important;
}

/* ==============================================
   STATISTIK/INFO BOXES FIXES
============================================== */

#gki-portal-root .gki-stats-section,
.gki-stats-section {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    color: #1a1a1a !important;
}

/* ==============================================
   TEXT COLOR FIXES - Lesbarkeit sicherstellen
============================================== */

#gki-portal-root h1,
#gki-portal-root h2,
#gki-portal-root h3,
#gki-portal-root h4,
#gki-portal-root p,
#gki-portal-root span,
#gki-portal-root label,
#gki-portal-root div {
    color: inherit;
}

/* Spezifische Text-Elemente */
#gki-portal-root .gki-plan-title,
.gki-plan-title {
    color: #1a1a1a !important;
}

#gki-portal-root .gki-plan-meta,
.gki-plan-meta {
    color: #666 !important;
}

/* ==============================================
   WORDPRESS THEME RESET - Letzte Verteidigung
============================================== */

/* Entferne alle möglichen Theme-Hintergrund-Overrides */
.page-template-default #gki-portal-root,
.page #gki-portal-root,
body #gki-portal-root,
html body #gki-portal-root {
    background: transparent !important;
}

/* Verhindere Theme-Farben auf Form-Elementen */
body #gki-portal-root select,
body #gki-portal-root input,
body #gki-portal-root textarea {
    background-color: white !important;
    color: #2d3748 !important;
}

/* Block Theme Fixes */
.wp-site-blocks #gki-portal-root,
.is-layout-flow #gki-portal-root,
.is-layout-constrained #gki-portal-root {
    background: transparent !important;
}

/* ==============================================
   ENDE WORDPRESS UPDATE FIX
============================================== */

/* ==============================================
   INLINE PAUSE-BUTTON (neben Pausenanzeige)
   Pausiert/Startet das Training
============================================== */

.gki-inline-pause-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
    transition: all 0.3s ease !important;
}

.gki-inline-pause-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

.gki-inline-pause-btn:active {
    transform: scale(0.95) !important;
}

.gki-inline-pause-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
}

/* Button wenn pausiert - Grün (Play) */
.gki-inline-pause-btn.is-paused {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.gki-inline-pause-btn.is-paused:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

/* Pause-Info Container Anpassung für Button */
.gki-zone-pause-info {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .gki-inline-pause-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        margin-left: 12px !important;
    }
    
    .gki-inline-pause-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* KRITISCH: Mobile Fix für Pausenbutton-Sichtbarkeit */
@media (max-width: 480px) {
    /* Container muss horizontal bleiben für Button */
    .gki-zone-pause-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Progress Bar auf eigene Zeile */
    .gki-zone-pause-bar-container {
        flex: 0 0 100% !important;
        order: 1 !important;
        margin-bottom: 8px !important;
    }
    
    /* Info + Button zusammen auf zweiter Zeile */
    .gki-zone-pause-info {
        flex: 0 0 auto !important;
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    
    /* Button explizit sichtbar machen */
    .gki-inline-pause-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        margin-left: 10px !important;
        flex-shrink: 0 !important;
    }
    
    .gki-inline-pause-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Section Transition Pause mobile fix */
    .gki-section-transition-pause {
        padding-left: 16px !important;
    }
    
    .gki-section-transition-pause .gki-zone-pause-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}