/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hof Kaiser Farbschema - Natürlich. Familiär. Persönlich. */
    --primary-color: #4a7c59;
    /* Hof-Grün */
    --primary-hover: #3d6749;
    --secondary-color: #6b5345;
    /* Holz-Braun */
    --secondary-hover: #564233;
    --success-color: #5a9f6f;
    /* Natur-Grün */
    --error-color: #c85a54;
    /* Warmes Rot */
    --warning-color: #d4a574;
    /* Spargel-Gold */
    --bg-color: #f5f3ed;
    /* Warmes Beige */
    --card-bg: #ffffff;
    --text-primary: #3a3a35;
    /* Dunkelbraun */
    --text-secondary: #7a7971;
    /* Warmes Grau */
    --border-color: #e4dfd1;
    --shadow: 0 4px 6px -1px rgba(58, 58, 53, 0.08), 0 2px 4px -1px rgba(58, 58, 53, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(58, 58, 53, 0.12), 0 4px 6px -2px rgba(58, 58, 53, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
}

.header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

#current-time {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Status Card */
.status-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--primary-color);
}

.status-card.checked-in {
    border-left-color: var(--success-color);
}

.status-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.status-card.checked-in .status-indicator {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text strong {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.status-text p {
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-details {
    font-size: 14px;
    margin-top: 8px;
}

/* Form */
.time-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

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

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 64px;
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(1px);
}

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

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

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

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

.btn-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

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

/* Loading Spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: calc(100% - 40px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.toast-content {
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 40px;
    font-weight: 500;
}

footer p {
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    header h1 {
        font-size: 28px;
    }

    #current-time {
        font-size: 16px;
    }

    .time-form {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 16px;
    }

    .btn {
        padding: 16px 20px;
        font-size: 18px;
        min-height: 56px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }

    .form-group input,
    .form-group select {
        border-width: 3px;
    }
}

/* Dark mode removed to satisfy user request for Light Mode */