/* ============================================
   MOBILE APP STYLES - Kunden-App
   ============================================ */

.mobile-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--carbon-900);
    position: relative;
    overflow-x: hidden;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--carbon-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-logo {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: var(--space-xl);
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
}

.splash-logo::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid transparent;
    border-top-color: var(--gold-500);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.splash-logo::after {
    content: '';
    position: absolute;
    inset: -35px;
    border: 2px solid transparent;
    border-bottom-color: var(--gold-400);
    border-radius: 50%;
    animation: spin 4s linear infinite reverse;
}

.splash-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-sm);
}

.splash-tagline {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.splash-loader {
    margin-top: var(--space-2xl);
    width: 150px;
    height: 3px;
    background: var(--carbon-700);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.splash-loader-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-gold);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* Onboarding */
.onboarding-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--carbon-900);
}

.onboarding-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--gradient-glow);
}

.onboarding-image img {
    max-width: 80%;
    max-height: 300px;
    object-fit: contain;
}

.onboarding-content {
    padding: var(--space-xl);
    text-align: center;
}

.onboarding-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
}

.onboarding-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--titanium-700);
    transition: all var(--transition-fast);
}

.onboarding-dot.active {
    width: 24px;
    background: var(--gold-500);
}

/* Auth Screens */
.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    background: var(--carbon-900);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
}

.auth-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-form {
    flex: 1;
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-xl);
}

.auth-link {
    color: var(--gold-500);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--titanium-800);
}

.social-login {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--gold-500);
    background: var(--carbon-600);
}

/* Object List Screen */
.objects-screen {
    padding-bottom: 80px;
}

.objects-header {
    padding: var(--space-lg);
    background: var(--gradient-carbon);
    border-bottom: 1px solid var(--titanium-800);
}

.objects-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
}

.objects-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.objects-list {
    padding: var(--space-md);
}

.object-card {
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.object-card:hover {
    border-color: var(--gold-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.object-card-image {
    height: 150px;
    background: var(--carbon-600);
    position: relative;
    overflow: hidden;
}

.object-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-card-3d-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--carbon-600) 0%, var(--carbon-500) 100%);
}

.object-card-3d-placeholder i {
    font-size: var(--font-size-3xl);
    color: var(--gold-500);
}

.object-card-status {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
}

.object-card-content {
    padding: var(--space-md);
}

.object-card-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.object-card-address {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.object-card-meta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Object Detail Screen */
.object-detail-screen {
    min-height: 100vh;
    background: var(--carbon-900);
}

.object-detail-header {
    position: relative;
    height: 300px;
    background: var(--carbon-700);
}

.object-detail-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--carbon-800) 0%, var(--carbon-600) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#three-canvas {
    width: 100%;
    height: 100%;
}

.object-detail-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.object-detail-back {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.object-detail-actions {
    display: flex;
    gap: var(--space-sm);
}

.object-detail-info {
    padding: var(--space-lg);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.object-detail-card {
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.object-detail-name {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
}

.object-detail-address {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.object-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--titanium-800);
}

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

.object-stat-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--gold-500);
}

.object-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.object-detail-tabs {
    display: flex;
    border-bottom: 1px solid var(--titanium-800);
    margin-top: var(--space-lg);
}

.object-detail-tab {
    flex: 1;
    padding: var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    position: relative;
    cursor: pointer;
}

.object-detail-tab.active {
    color: var(--gold-500);
}

.object-detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: var(--space-md);
    right: var(--space-md);
    height: 2px;
    background: var(--gold-500);
}

/* History Timeline */
.timeline {
    padding: var(--space-lg);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--titanium-800);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--carbon-700);
    border: 2px solid var(--titanium-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.timeline-item.active .timeline-icon {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--carbon-900);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.timeline-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    font-size: var(--font-size-xs);
}

/* Chat Screen */
.chat-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--carbon-900);
}

.chat-header {
    padding: var(--space-md);
    background: var(--carbon-800);
    border-bottom: 1px solid var(--titanium-800);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.chat-back {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--carbon-700);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-contact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: var(--carbon-900);
}

.chat-contact-info h4 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.chat-contact-info span {
    font-size: var(--font-size-xs);
    color: var(--accent-success);
}

.chat-call {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gold-500);
    border: none;
    color: var(--carbon-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.chat-message.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.received {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-message-bubble {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-md);
    line-height: 1.5;
}

.chat-message.sent .chat-message-bubble {
    background: var(--gold-500);
    color: var(--carbon-900);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.received .chat-message-bubble {
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message-time {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.chat-input-area {
    padding: var(--space-md);
    background: var(--carbon-800);
    border-top: 1px solid var(--titanium-800);
}

.chat-quick-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
}

.chat-quick-btn {
    white-space: nowrap;
    padding: var(--space-xs) var(--space-md);
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-quick-btn:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--carbon-700);
    border: 1px solid var(--titanium-800);
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
}

.chat-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    outline: none;
}

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

.chat-attach {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-send {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gold-500);
    border: none;
    color: var(--carbon-900);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 90px;
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    border: none;
    color: var(--carbon-900);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-gold-strong);
    z-index: 100;
    transition: all var(--transition-fast);
}

.fab:hover {
    transform: scale(1.1);
}

.fab:active {
    transform: scale(0.95);
}