/**
 * IT-Rapport Externe Eingabe - Professional Styles
 * Pfad: /var/www/itrapport.solve-group.de/assets/css/style.css
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farbpalette */
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Graustufen */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    
    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ==================== LAYOUT ==================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== HEADER ==================== */
.app-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.header-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-badge {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ==================== WELCOME CARD ==================== */
.welcome-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.welcome-card h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.welcome-card p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* ==================== FORM STYLES ==================== */
.rapport-form {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-title i {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Form Row (2 Spalten) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

/* ==================== FORM ACTIONS ==================== */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
    background: var(--gray-50);
    flex-wrap: wrap;
}

/* ==================== SUCCESS PAGE ==================== */
.success-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 2rem auto;
    animation: slideUp 0.5s ease;
}

.success-animation {
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.checkmark-circle.animate {
    transform: scale(1);
}

.checkmark-circle i {
    font-size: 3.5rem;
    color: white;
}

.success-card h2 {
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.detail-badge {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-label {
    font-weight: 600;
    color: var(--gray-600);
}

.badge-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.telegram-success {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.success-message {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.success-actions {
    margin-top: 2rem;
}

.auto-redirect {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.auto-redirect small {
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#countdown {
    font-weight: 700;
    color: var(--primary);
}

/* ==================== FOOTER ==================== */
.app-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    margin-top: auto;
}

.app-footer p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .header-meta {
        display: none;
    }
    
    .welcome-card {
        padding: 1.5rem;
    }
    
    .welcome-icon {
        font-size: 3rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .btn-lg {
        width: 100%;
        min-width: auto;
    }
    
    .success-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .checkmark-circle {
        width: 100px;
        height: 100px;
    }
    
    .checkmark-circle i {
        font-size: 3rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .welcome-card {
        padding: 1rem;
    }
    
    .welcome-icon {
        font-size: 2.5rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .success-card {
        padding: 1.5rem 1rem;
    }
    
    .checkmark-circle {
        width: 80px;
        height: 80px;
    }
    
    .checkmark-circle i {
        font-size: 2.5rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
    }
    
    .app-header,
    .app-footer,
    .form-actions,
    .auto-redirect {
        display: none;
    }
    
    .rapport-form,
    .success-card {
        box-shadow: none;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ==================== TODO-LISTE STYLES ==================== */
.section-description {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--info);
}

.todo-list {
    margin-bottom: 1.5rem;
}

.todo-item {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    animation: slideIn 0.3s ease;
}

.todo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-300);
}

.todo-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

.todo-remove {
    background: var(--danger);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.25rem;
}

.todo-remove:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.todo-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.todo-field-full {
    grid-column: 1 / -1;
}

.empty-todo {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-todo i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Optimierung für ToDos */
@media (max-width: 768px) {
    .todo-fields {
        grid-template-columns: 1fr;
    }
    
    .todo-item-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .todo-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}