/* 
 * style.css - Speeddating Career Service
 */

:root {
    --primary: #003b7a;
    --secondary: #002b5a;
    --gradient: linear-gradient(135deg, #003b7a 0%, #004c93 100%);
    --white: #ffffff;
    --gray-light: #f1f3f9;
    --gray: #d1d8e5;
    --text: #333;
    --ude-blue: #003b7a;
    --success-bg: #d4edda;
    --success-text: #155724;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --info-bg: #e3f2fd;
    --info-text: #003b7a;
    --border-radius: 2px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content {
    padding: 30px;
}

/* Header */
.branding-header {
    background: white;
    padding: 20px 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.branding-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ude-logo img {
    height: 45px;
    width: auto;
}

.abz-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    background: var(--ude-blue);
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 50px;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: stretch;
    height: 100%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-menu {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
    align-self: center;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    
    /* Dynamische Breite + Einzeiliger Text */
    white-space: nowrap;
    min-width: fit-content;
    width: auto;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section.section-details {
    border-left: 4px solid var(--primary);
}

.form-section.section-termin {
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f7fb 100%);
    border-left: 4px solid var(--primary);
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.form-row-full {
    grid-column: 1 / -1;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.radio-card:hover {
    border-color: var(--primary);
    background: #f5f9fc;
}

.radio-card.selected,
.radio-card:has(input:checked) {
    border-color: var(--primary);
    background: #e3f2fd;
}

.radio-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.termin-felder {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.termin-felder h4 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.termin-felder .form-help {
    margin-bottom: 16px;
}

/* Modern Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 28px;
    font-size: 1rem;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 59, 122, 0.3);
}

.btn-secondary {
    background: white;
    color: #555;
    border: 2px solid #ddd;
    padding: 12px 28px;
    font-size: 1rem;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.form-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 59, 122, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--text);
    border: 1px solid #ddd;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-success {
    background: #28a745;
    color: white;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-danger {
    background: #dc3545;
    color: white;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-logout {
    background: #cc0000 !important;
    color: white !important;
    white-space: nowrap;
    min-width: fit-content;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: fit-content;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 122, 0.1);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.form-group label .required {
    color: #dc3545;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0;
    font-weight: 500;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.alert.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #ffeaa7;
}

.alert.info {
    background: var(--info-bg);
    color: var(--info-text);
}

/* Cards */
.card {
    background: white;
    border: 1px solid #eee;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Event Cards */
.event-card {
    background: white;
    border: 1px solid #e0e6ed;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

.event-card .event-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-card .event-description {
    color: #555;
    margin-bottom: 20px;
}

.event-card .event-slots {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.event-card .btn {
    align-self: center;
    margin-top: 10px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* Slot Grid */
.slot-grid {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.slot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.slot-item:hover {
    background: #e3f2fd;
    border-color: var(--primary);
}

.slot-item.booked {
    background: #fff3cd;
    border-color: #ffc107;
}

.slot-item.full {
    background: #f8d7da;
    border-color: #dc3545;
    opacity: 0.7;
}

.slot-item.past {
    background: #e9ecef;
    color: #888;
    opacity: 0.6;
}

.slot-item.cancelled {
    background: #f8d7da;
    border-color: #dc3545;
    text-decoration: line-through;
}

.slot-date {
    font-weight: 600;
    color: var(--primary);
}

.slot-time {
    color: #666;
}

.slot-spots {
    font-size: 0.85rem;
    color: #888;
}

.slot-spots.available {
    color: #28a745;
}

.slot-spots.full {
    color: #dc3545;
}

/* Tables */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.responsive-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

.responsive-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.responsive-table tr:hover {
    background: #f8f9ff;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #e3f2fd;
    color: #003b7a;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.stat-card .number {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card .label {
    color: #666;
    font-size: 0.9em;
}

/* Success Animation */
.success-animation {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4edda;
    color: #28a745;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-checkmark {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 0.6s 0.3s ease-in-out forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}


/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 10001;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    margin: 0 0 10px 0;
    color: var(--primary);
}

.page-header p {
    color: #666;
    margin: 0;
}

/* Admin Actions */
.admin-actions,
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 902px) {
    .container {
        box-shadow: none;
    }
    
    .branding-header {
        padding: 10px 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile Buttons */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-sm {
        padding: 8px 12px;
    }
    
    .admin-actions,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: var(--ude-blue);
        flex-direction: column;
        display: none;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .nav-links a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: flex-start;
        padding: 0 2rem;
        height: 60px;
    }

    .content {
        padding: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        background: #fff;
    }

    .responsive-table td {
        position: relative;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
        display: block;
        margin-bottom: 5px;
    }
    
    /* Mobile: Event-Card Buttons zentriert */
    .event-card {
        padding: 20px;
    }
    
    .event-card .btn {
        width: 100%;
        max-width: 100%;
    }
}