/* style.css - Christian's Work-Tracker "Blue Elegance" Final */

:root {
    --primary-blue: #007AFF;
    --deep-blue: #1d3557;
    --soft-blue: #f0f4f8;
    --accent-blue: #a8dadc;
    --bg-gradient: radial-gradient(circle at 0% 0%, #e0eafc 0%, #cfdef3 100%);
    --card-bg: rgba(255, 255, 255, 0.92);
    --radius: 28px;
}

* {
    box-sizing: border-box; /* Verhindert das Überlappen am rechten Rand */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    padding: 0;
    color: var(--deep-blue);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- CONTAINER FIX --- */
#appContainer { 
    width: 100%;
    max-width: 480px; 
    padding: 20px; /* Sicherheitsabstand zu allen Rändern */
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
}

/* --- MOBILE INPUT FIX --- */
input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    color: var(--deep-blue) !important;
    background-color: var(--soft-blue) !important;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    min-height: 42px;
}

/* --- CARDS & UI --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.6);
}

.segment-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 12px; border-radius: 20px; margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.gradient-title {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800; font-size: 2.2rem; letter-spacing: -1px; margin: 0;
}

/* Buttons */
.btn-success {
    background: var(--primary-blue); color: white; border: none;
    border-radius: 22px; padding: 15px; font-weight: 700; width: 100%;
    font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 20px rgba(0,122,255,0.2);
}

.btn-ghost {
    background: transparent; color: var(--primary-blue); border: 2px solid var(--soft-blue);
    border-radius: 18px; padding: 10px; cursor: pointer; font-weight: 600; width: 100%;
}

/* --- LOGBUCH DESIGN --- */
.date-group { margin-bottom: 35px; width: 100%; }
.date-header { font-size: 0.85rem; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; margin-bottom: 12px; }

.archive-session-block {
    background: #fff; border-radius: 22px; padding: 15px; margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.03);
}
.archive-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #f0f4f8;
}
.archive-item:last-child { border-bottom: none; }

.day-total {
    background: var(--deep-blue); color: #fff; padding: 18px 22px;
    border-radius: 22px; display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}