/* Account Portal v2 - Design von moin2 übernommen */
:root {
    --primary-color: #B7B746;      /* Oliv-Gold - HAUPTFARBE */
    --secondary-color: #C8A2C8;    /* Sanftes Lila - für Gradients */
    --accent-color: #B7B746;       /* Oliv-Gold für Akzente */
    --text-primary: #2C2C2E;       /* Wärmeres Schwarz */
    --text-secondary: #6d6d70;
    --background: #f2f2f7;
    --surface: #ffffff;
    --border-color: #c6c6c8;
    --error-color: #ff3b30;
    --success-color: #8FBC8F;      /* Dezentes Grün statt knalliges Grün */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

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

.container-sm {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Progress Bar - Sauber implementiert nach moin2 */
.progress-container {
    background: var(--surface);
    padding: 30px 0;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-line-active {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.5s ease;
    z-index: 2;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.progress-step.active .progress-step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.progress-step.completed .progress-step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.progress-step-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .progress-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 30px;
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control,
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px; /* Apple-like form padding */
    font-size: 16px; /* Standard body text */
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* iOS-like radius */
    background: var(--surface);
    transition: var(--transition);
    -webkit-appearance: none;
    min-height: 44px; /* Apple minimum */
}

/* Verstecke Spinner bei number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.form-control:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(183, 183, 70, 0.15);  /* Oliv-Gold Focus */
    transform: scale(1.01);
}

/* Live Feedback für Form-Validierung */
.form-input.valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.1);
}

.form-input.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.1);
    animation: shake 0.5s ease;
}

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

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 6px;
}

.form-helper {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* Character Counter */
.character-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.character-counter.warning {
    color: var(--error-color);
}

/* Buttons - Apple-like elegance */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px; /* Apple-like proportions */
    font-size: 16px; /* Standard readable size */
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px; /* Subtle radius like iOS */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    min-height: 44px; /* Apple HIG minimum */
    position: relative;
    overflow: hidden;
}

/* Ripple Effect für Micro-Interactions */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.btn:active::before {
    transform: scale(1);
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(183, 183, 70, 0.2);  /* Oliv-Gold Hover */
    opacity: 0.9;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Success State Animation für wichtige Actions */
.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    font-size: 24px;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px; /* Apple-like large button */
    font-size: 17px; /* iOS body text size */
    min-height: 50px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 12px;
    width: 50px;
    height: 50px;
}

/* PIN Code Display */
.pin-display {
    background: linear-gradient(135deg, rgba(183, 183, 70, 0.1) 0%, rgba(200, 162, 200, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.pin-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pin-code {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

.pin-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.pin-input {
    width: 48px;
    height: 56px;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    transition: var(--transition);
}

.pin-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(183, 183, 70, 0.1);  /* Oliv-Gold PIN Focus */
}

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--surface);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(183, 183, 70, 0.05);  /* Oliv-Gold Upload Hover */
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-input {
    display: none;
}

/* Photo Preview - Verbessert für vollständige Darstellung */
.photo-preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.photo-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.photo-preview img {
    width: 100%;
    max-height: 400px; /* Maximale Höhe statt feste */
    object-fit: contain; /* Ganzes Foto zeigen ohne Beschnitt */
    background: #f8f9fa; /* Hintergrund falls Foto nicht Container füllt */
}

.photo-preview-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 15px 10px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.photo-preview:hover .photo-preview-caption {
    opacity: 1;
}

.photo-preview-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.photo-preview-remove:hover {
    background: white;
    transform: scale(1.1);
}

/* Neues Photo Upload Layout - Konsistent ohne Layout-Sprünge */
.photo-upload-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--surface);
}

.photo-upload-header {
    margin-bottom: 15px;
}

.photo-label {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-success {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
}

.photo-examples {
    margin-top: 8px;
}

.photo-examples small {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.photo-upload-area {
    /* Container für Upload-Area oder Preview */
}

.photo-preview-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-replace {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 14px;
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.upload-progress p {
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Review Section */
.review-section {
    margin-bottom: 30px;
}

.review-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.review-value {
    font-size: 18px;
    color: var(--text-primary);
}

/* Desktop Review Items */
.review-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
}

.review-item-container.review-item-message,
.review-item-container.review-item-photos {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
}

.review-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-item-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.review-item-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Desktop auch clean ohne Buttons */

.review-item-message-text {
    background: rgba(0,0,0,0.02);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
}

.review-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.review-photo-small {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
}

.review-photo-small img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.review-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.review-photo {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.review-photo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.review-photo .photo-preview-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px 15px 10px;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.review-photo:hover .photo-preview-caption {
    opacity: 1;
}

.review-photo img {
    width: 100%;
    max-height: 400px; /* Maximale Höhe statt feste für volle Sichtbarkeit */
    object-fit: contain; /* Ganzes Foto zeigen ohne Beschnitt */
    background: #f8f9fa; /* Hintergrund falls Foto nicht Container füllt */
}

/* Success State */
.success-container {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 1s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: white;
}

.success-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.success-message {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Loading State & Performance UX */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Upload Loading Overlay */
.upload-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upload-loading-content {
    text-align: center;
    color: var(--primary-color);
}

.upload-loading-content .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 122, 255, 0.2);
    border-top-color: var(--primary-color);
    margin: 0 auto 12px;
}

.upload-loading-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* SKELETON LOADING für bessere gefühlte Performance */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(183, 183, 70, 0.1) 25%, 
        rgba(183, 183, 70, 0.2) 50%, 
        rgba(183, 183, 70, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-button {
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.skeleton-input {
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text.small {
    width: 60%;
    height: 16px;
}

.skeleton-text.large {
    width: 80%;
    height: 24px;
}

/* OPTIMISTIC UI - Button States für sofortiges Feedback */
.btn-optimistic {
    position: relative;
    overflow: hidden;
}

.btn-optimistic::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-optimistic.processing::after {
    left: 100%;
}

/* Smooth Fade-in für neue Inhalte */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

/* Form Container */
.form-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    max-width: 500px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-main {
    margin-top: 30px;
}

.form-help {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

.form-help i {
    font-size: 16px;
}

.form-actions {
    margin-top: 30px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(183, 183, 70, 0.05) 0%, rgba(183, 183, 70, 0.1) 100%);
    border: 1px solid rgba(183, 183, 70, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 40px;
    text-align: center;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-box a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Debug Section */
.debug-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

.debug-section h3 {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 16px;
}

.debug-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start; /* Von center auf flex-start für bessere Mehrzeiligkeit */
    gap: 12px;
    word-break: break-word; /* Lange Wörter umbrechen */
    white-space: pre-line; /* Zeilenumbrüche beachten */
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error,
.alert-danger {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: var(--error-color);
}

.alert-success {
    background: rgba(143, 188, 143, 0.1);
    border: 1px solid rgba(143, 188, 143, 0.2);
    color: #4a7c59;
}

.alert-info {
    background: rgba(200, 162, 200, 0.1);  /* Sanftes Lila wie in moin2 */
    border: 1px solid rgba(200, 162, 200, 0.2);
    color: var(--primary-color);
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Alert Inhalt - für mehrzeilige Nachrichten */
.alert > div {
    flex: 1;
    line-height: 1.5;
}

.alert ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

/* Button Enhancements */
.btn-primary {
    width: 100%;
}

.btn-primary i {
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Boxicons Sizing */
.bx, i[class*="bx-"] {
    font-size: 20px !important;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Larger Boxicons for buttons */
.btn .bx, .btn i[class*="bx-"] {
    font-size: 24px !important;
    width: 24px;
    height: 24px;
}

/* Large Boxicons for mobile touch targets */
@media (max-width: 768px) {
    .bx, i[class*="bx-"] {
        font-size: 22px !important;
    }
    
    .btn .bx, .btn i[class*="bx-"] {
        font-size: 26px !important;
        width: 26px;
        height: 26px;
    }
    
    /* Upload success icons */
    .upload-success .bx {
        font-size: 18px !important;
        color: var(--success-color);
    }
    
    /* Photo preview icons */
    .photo-preview-caption .bx {
        font-size: 16px !important;
    }
    
    /* Photo Tips Mobile - untereinander für bessere Lesbarkeit */
    .photo-tips-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Vollbild-Modal für Fotos */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
}

.photo-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.photo-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.photo-modal-close:hover {
    transform: scale(1.1);
    background: #f1f1f1;
}

.photo-modal-info {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ACCESSIBILITY & INCLUSION OPTIMIERUNGEN */
/* Fokus-Indikatoren für Keyboard-Navigation */
.btn:focus-visible,
.form-input:focus-visible,
.form-textarea:focus-visible,
.pin-input:focus-visible,
.upload-area:focus-visible,
details summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-input,
    .form-textarea {
        border: 3px solid var(--text-primary);
    }
    
    .pin-input {
        border: 3px solid var(--text-primary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ECHTES iOS MOBILE DESIGN */
@media (max-width: 768px) {
    /* iOS Card Design */
    .card {
        padding: 20px;
        margin: 0 16px 16px 16px;
        border-radius: 10px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .card-title {
        font-size: 28px;
        font-weight: 700;
        -webkit-font-smoothing: antialiased;
    }
    
    /* iOS Button System */
    .btn {
        padding: 12px 20px;
        font-size: 17px;
        min-height: 44px;
        border-radius: 10px;
        font-weight: 600;
        letter-spacing: -0.24px;
    }
    
    .btn-large {
        padding: 16px 20px;
        font-size: 17px;
        min-height: 50px;
        border-radius: 10px;
    }
    
    .btn-primary {
        background: var(--primary-color);
        border: none;
    }
    
    .btn-secondary {
        background: rgba(142, 142, 147, 0.12);
        color: var(--primary-color);
        border: none;
    }
    
    /* iOS Form System */
    .form-input,
    .form-textarea,
    select.form-control {
        padding: 12px 16px;
        font-size: 17px;
        min-height: 44px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--surface);
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Select-spezifisches Styling für Mobile */
    select.form-control {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 14 8"><path d="M1 1l6 6 6-6" stroke="%23666" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 14px;
        padding-right: 40px;
    }
    
    .form-input:focus,
    .form-textarea:focus,
    select.form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color);
        background-color: var(--surface);
    }
    
    /* iOS PIN Input System */
    .pin-input-container {
        gap: 8px;
    }
    
    .pin-input {
        width: 44px;
        height: 54px;
        font-size: 24px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--surface);
        text-align: center;
        font-weight: 600;
        -webkit-appearance: none;
    }
    
    .pin-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 1px var(--primary-color);
    }
    
    /* iOS Safe Areas */
    body {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
    
    /* iOS Header */
    .header {
        background: rgba(248, 248, 248, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
        padding: 12px 0;
    }
    
    /* iOS Modal */
    .photo-modal-content {
        padding: 20px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .photo-modal img {
        border-radius: 10px;
    }
    
    .photo-modal-close {
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 32px;
        height: 32px;
        border-radius: 16px;
        border: none;
    }
    
    /* iOS Typography */
    h1, h2, h3, h4, h5, h6 {
        letter-spacing: -0.24px;
        -webkit-font-smoothing: antialiased;
    }
    
    /* iOS Spacing */
    .container {
        padding: 0 16px;
    }
    
    /* iOS Settings Style - ELEGANT */
    .review-item-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px !important;
        background: var(--surface) !important;
        border: none !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
        gap: 16px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        
        /* Touch Events erlauben */
        pointer-events: auto !important;
        position: relative !important;
    }
    
    .review-item-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        flex: 1 !important;
    }
    
    /* Simplified - kein header mehr nötig */
    
    .review-item-label {
        color: var(--text-secondary) !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.6px !important;
        margin-bottom: 2px !important;
    }
    
    .review-item-value {
        color: var(--text-primary) !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
    }
    
    /* Keine Buttons mehr - cleaner! */
    
    /* Message Container */
    .review-item-container.review-item-message .review-item-header {
        margin-bottom: 0 !important;
    }
    
    .review-item-message-text {
        background: rgba(142, 142, 147, 0.08) !important;
        padding: 16px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        color: var(--text-primary) !important;
        line-height: 1.45 !important;
        max-height: none !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        border: 1px solid rgba(142, 142, 147, 0.12) !important;
    }
    
    /* Photos Container */
    .review-item-container.review-item-photos .review-item-header {
        margin-bottom: 0 !important;
    }
    
    .review-photos-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 0 !important;
    }
    
    .review-photo-small {
        cursor: pointer !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        aspect-ratio: 4/3 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        transition: transform 0.2s ease !important;
    }
    
    .review-photo-small:active {
        transform: scale(0.95) !important;
    }
    
    .review-photo-small img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 28px;
    }
    
    .progress-steps {
        padding: 0 20px;
    }
    
    .progress-step-label {
        font-size: 10px;
    }
    
    .pin-code {
        font-size: 36px;
    }
    
    .pin-input {
        width: 50px;
        height: 60px;
        font-size: 24px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .review-photos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-container {
        padding: 20px 0;
    }
    
    .progress-step-label {
        display: none;
    }
    
    .pin-input-container {
        gap: 8px;
    }
    
    .pin-input {
        width: 45px;
        height: 55px;
    }
}

/* Form Sections - Strukturierung für bessere Übersicht */
.form-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Persönliche Daten Section - Grün-Ton für Pflichtfelder */
.form-section-personal {
    background: rgba(143, 188, 143, 0.1); /* Grün-Ton etwas intensiver */
    border-color: rgba(143, 188, 143, 0.25);
    box-shadow: 0 4px 12px rgba(143, 188, 143, 0.12);
}

/* Kontaktdaten Section - Gleicher Grün-Ton für Pflichtfelder */
.form-section-contact {
    background: rgba(143, 188, 143, 0.1); /* Gleicher Grün-Ton */
    border-color: rgba(143, 188, 143, 0.25);
    box-shadow: 0 4px 12px rgba(143, 188, 143, 0.12);
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    font-size: 22px;
    color: var(--primary-color);
}

.form-section-title small {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Optional Sections mit dezentem Hintergrund */
.form-section-optional {
    background: rgba(183, 183, 70, 0.08); /* Stärkerer Olive-Ton für besseren Kontrast */
    border-color: rgba(183, 183, 70, 0.25);
    box-shadow: 0 4px 12px rgba(183, 183, 70, 0.1);
}

/* Form Actions nebeneinander */
.form-actions-row {
    display: flex !important;
    gap: 16px !important;
    margin-top: 30px;
}

.form-actions-row .btn {
    flex: 1;
}

.form-actions-row .btn-secondary {
    max-width: 150px;
}

/* Checkbox Styling - Größer und benutzerfreundlicher */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    transform: scale(1);
    transition: transform 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:active {
    transform: scale(0.95);
}

.checkbox-wrapper label {
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* Mobile Anpassungen */
@media (max-width: 576px) {
    .form-actions-row {
        flex-direction: column;
    }
    
    .form-actions-row .btn-secondary {
        max-width: none;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 16px;
    }
}

/* Cache-Buster: 1763036910 */
