/* Mobile Bug Fixes - Kritische Probleme beheben */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Import main variables from parent CSS */
:root {
    --primary-green: #48bb78;
    --secondary-green: #38a169;
    --primary-gray: #e2e8f0;
    --secondary-gray: #a0aec0;
    --darker-gray: #1a1a1a;
    --background: #1a202c;
    --background-light: #2d3748;
    --white: #ffffff;
    --text-muted: #718096;
    --surface-light: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --border-color: #4a5568;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #ed8936;
}

/* Login Section - Mobile Fixes */
.login-section {
    background: linear-gradient(135deg, var(--background) 0%, var(--darker-gray) 100%);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height für mobile */
    padding: 120px 0 40px;
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    width: 100%;
}

/* Login Card */
.login-card {
    background: var(--background-light);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    border-color: var(--primary-green);
}

/* Modal Styles - Mobile Bug Fixes */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--background-light);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
    margin: 0 auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 20px;
    position: relative;
}

.modal-title {
    color: var(--white);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.5;
}

.pin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pin-input {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.pin-input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--background);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.pin-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.pin-timer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pin-timer strong {
    color: var(--warning-color);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    flex: 1;
}

.btn-secondary:hover {
    border-color: var(--primary-green);
    background: rgba(72, 187, 120, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    border: none;
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(72, 187, 120, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-primary.loading .btn-text {
    opacity: 0.7;
}

.btn-primary.loading .btn-loader {
    display: block;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.logo-container {
    position: relative;
    z-index: 2;
}

.login-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0.1rem 0 0 0;
    font-weight: 500;
}

.login-content {
    padding: 2rem;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--secondary-gray);
    padding: 0.6rem 0.8rem;
    border-radius: 7px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(72, 187, 120, 0.1);
    color: var(--primary-green);
}

/* Features Panel */
.features-panel {
    background: rgba(72, 187, 120, 0.08);
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.features-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(72, 187, 120, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(72, 187, 120, 0.08);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.3rem 0;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--secondary-gray);
    margin: 0;
    line-height: 1.4;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.2rem 0;
    text-align: center;
}

.login-description {
    color: var(--secondary-gray);
    text-align: center;
    margin: 0 0 1.2rem 0;
    font-size: 0.95rem;
}

/* Privacy Info */
.privacy-info {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 0 1rem 0;
    position: relative;
}

.privacy-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-text {
    flex: 1;
}

.privacy-text strong {
    color: var(--primary-green);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.privacy-text p {
    color: var(--secondary-gray);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.privacy-close {
    background: none;
    border: none;
    color: var(--secondary-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.privacy-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group {
    position: relative;
}

/* Form Row für 2-spaltige Felder */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-row .form-group {
    margin: 0;
}

.register-field {
    margin-bottom: 0.8rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.label-icon {
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px; /* Verhindert Zoom auf iOS */
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.form-input.error {
    border-color: var(--error-color);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: rgba(72, 187, 120, 0.1);
    color: var(--primary-green);
}

.toggle-icon {
    font-size: 1.2rem;
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--secondary-gray);
    font-size: 0.95rem;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--background);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-mark {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.forgot-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.3rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

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

.login-btn.loading {
    pointer-events: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--secondary-gray);
    margin: 0 0 1rem 0;
}

.register-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Info Panel */
.info-panel {
    background: rgba(72, 187, 120, 0.05);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.info-content {
    height: 100%;
}

.info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(72, 187, 120, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(72, 187, 120, 0.05);
    border-color: var(--primary-green);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.25rem 0;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--secondary-gray);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */
/* KRITISCHER Mobile Layout Fix */
@media (max-width: 768px) {
    .login-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .features-panel {
        order: 2 !important;
        display: block !important;
        width: 100% !important;
    }
    
    .login-card {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Zusätzlicher Fix für sehr breite mobile Bildschirme */
@media (max-width: 1024px) {
    .login-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 80px 15px 30px;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0 10px;
    }
    
    /* WICHTIG: Layout Fix für mobile Geräte */
    .login-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
        max-width: 100% !important;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .login-card {
        order: 1 !important;
        border-radius: 16px;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Features Panel Mobile Fix */
    .features-panel {
        order: 2 !important;
        padding: 1.5rem;
        border-radius: 16px;
        margin-top: 1rem;
        width: 100% !important;
        max-width: none !important;
        display: block !important;
    }
    
    .features-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .features-list {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
    }
    
    .feature-icon {
        font-size: 1.4rem;
        margin-right: 0.75rem;
    }
    
    .feature-text h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .login-header {
        padding: 1.5rem 1.5rem 1rem;
        text-align: center;
    }
    
    .login-logo {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-content {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .login-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Tab-Navigation mobile optimiert */
    .tab-navigation {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        width: 100%;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 10px;
        text-align: center;
        font-weight: 600;
    }
    
    /* Form Elements mobil optimiert */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .label-icon {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 1rem 1rem;
        font-size: 1rem;
        min-height: 50px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .password-input-container {
        position: relative;
        width: 100%;
    }
    
    .password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .toggle-icon {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .checkbox-container {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .checkbox-mark {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
    }
    
    .forgot-link {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .login-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 52px;
        width: 100%;
        border-radius: 12px;
        margin-top: 1rem;
        font-weight: 600;
    }
    
    /* Entferne doppelte Features Panel Regel */
}

@media (max-width: 480px) {
    .login-section {
        padding: 60px 10px 20px;
    }
    
    .login-card {
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .login-header {
        padding: 1rem;
    }
    
    .login-logo {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
    }
    
    .login-content {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .login-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    /* Tab-Navigation für kleine Bildschirme */
    .tab-navigation {
        gap: 0.25rem;
        margin-bottom: 1.25rem;
    }
    
    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 8px;
    }
    
    /* Formulare für sehr kleine Bildschirme */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .label-icon {
        font-size: 0.95rem;
    }
    
    .password-toggle {
        right: 10px;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .toggle-icon {
        font-size: 1.1rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }
    
    .checkbox-container {
        font-size: 0.9rem;
        min-height: 44px;
        padding: 0.4rem 0;
    }
    
    .checkbox-mark {
        width: 18px;
        height: 18px;
        margin-right: 0.6rem;
    }
    
    .forgot-link {
        font-size: 0.9rem;
        padding: 0.6rem 0;
        min-height: 44px;
    }
    
    .login-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-radius: 10px;
        margin-top: 0.75rem;
    }
    
    /* Features-Panel kompakter */
    .features-panel {
        padding: 1rem;
        margin-top: 0.75rem;
        border-radius: 12px;
    }
    
    .features-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .features-list {
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .feature-icon {
        font-size: 1.2rem;
        margin-right: 0.6rem;
    }
    
    .feature-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .feature-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .social-login {
        gap: 0.75rem;
    }
    
    .info-panel {
        padding: 1rem;
    }
}

/* Modal Mobile Optimierung */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 60px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 16px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
        background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    }
    
    .modal-title {
        font-size: 1.4rem;
        text-align: center;
        margin: 0;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 28px;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        text-align: center;
    }
    
    .pin-form {
        gap: 1.5rem;
    }
    
    .pin-input {
        font-size: 1.4rem;
        padding: 1.25rem;
        letter-spacing: 4px;
        min-height: 60px;
        border-radius: 12px;
        text-align: center;
        font-weight: 700;
        background: var(--surface-light);
    }
    
    .pin-timer {
        font-size: 0.9rem;
        text-align: center;
        margin: 1rem 0;
        padding: 0.75rem;
        background: rgba(237, 137, 54, 0.1);
        border-radius: 8px;
        border: 1px solid var(--warning-color);
    }
    
    .pin-timer strong {
        font-size: 1.1rem;
        display: block;
        margin-top: 0.25rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        padding: 1rem;
        min-height: 52px;
        font-size: 1rem;
        border-radius: 12px;
        font-weight: 600;
    }
    
    .btn-secondary {
        order: 2;
        background: transparent;
        border: 2px solid var(--border-color);
    }
    
    .btn-primary {
        order: 1;
        background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 5px;
        padding-top: 40px;
    }
    
    .modal-content {
        width: calc(100vw - 10px);
        max-height: calc(100vh - 80px);
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .pin-input {
        font-size: 1.2rem;
        padding: 1rem;
        letter-spacing: 3px;
        min-height: 56px;
        border-radius: 10px;
    }
    
    .pin-timer {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .pin-timer strong {
        font-size: 1rem;
    }
    
    .modal-actions {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 0.875rem;
        min-height: 48px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
}

/* Touch-optimierte Hover-States deaktivieren */
@media (hover: none) and (pointer: coarse) {
    .login-btn:hover,
    .tab-btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .password-toggle:hover,
    .modal-close:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-item:hover {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(72, 187, 120, 0.2);
    }
    
    .login-card:hover {
        border-color: var(--border-color);
        transform: none;
    }
    
    .forgot-link:hover {
        text-decoration: none;
    }
}

/* iOS Safari spezifische Fixes */
@supports (-webkit-touch-callout: none) {
    .form-input,
    .pin-input {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }
    
    .login-btn,
    .btn-primary,
    .btn-secondary {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 12px;
    }
    
    @media (max-width: 480px) {
        .form-input,
        .pin-input {
            border-radius: 10px;
        }
        
        .login-btn,
        .btn-primary,
        .btn-secondary {
            border-radius: 10px;
        }
    }
}

/* Verbesserter Focus für Accessibility */
@media (max-width: 768px) {
    .form-input:focus,
    .pin-input:focus {
        outline: 3px solid rgba(72, 187, 120, 0.4);
        outline-offset: 2px;
    }
    
    .tab-btn:focus,
    .login-btn:focus,
    .btn-primary:focus,
    .btn-secondary:focus {
        outline: 3px solid rgba(72, 187, 120, 0.4);
        outline-offset: 2px;
    }
    
    .password-toggle:focus {
        outline: 2px solid rgba(72, 187, 120, 0.6);
        outline-offset: 1px;
        border-radius: 4px;
    }
}