/* ========================================
   Shared Platform Styles (Base)
   ======================================== */

:root {
    --sky-star-opacity: 0;
    --sky-moon-progress: 0;
    --sky-moon-opacity: 0;

    --color-white: #ffffff;
    --color-text: #252525;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-main: 'Inika', sans-serif;
}

/* Night Mode Overrides */
body.night-mode {
    --color-text: #e0e0e0;
    --color-white: #f5f5f5;
    --glass-bg: rgba(40, 40, 60, 0.25);
    background: var(--color-sky-top);
}

body.night-mode .hero-title,
body.night-mode .hero-subtitle {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

body.night-mode .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.night-mode .event-card {
    background: rgba(30, 30, 45, 0.85);
}

body.night-mode .event-title,
body.night-mode .event-description,
body.night-mode .detail-item {
    color: #e0e0e0;
}

body.night-mode .imprint-content,
body.night-mode .privacy-content,
body.night-mode .contact-card {
    background: rgba(30, 30, 45, 0.85);
    color: #e0e0e0;
}

body.night-mode .contact-title {
    color: #60a5fa;
}

/* Overlay Night Mode Overrides */
body.night-mode .overlay-panel {
    background: #0d0f14;
    color: #e2e8f0;
}

body.night-mode .auth-tabs,
body.night-mode .admin-tabs {
    background: #161923;
}

body.night-mode .auth-tab,
body.night-mode .admin-tab {
    color: #94a3b8;
}

body.night-mode .auth-tab.active,
body.night-mode .admin-tab.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
}

body.night-mode .child-row,
body.night-mode .reg-row,
body.night-mode .admin-user-card,
body.night-mode .admin-event-card,
body.night-mode .admin-registration,
body.night-mode .emu-btn {
    background: #1a1e29;
    border-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

body.night-mode .input-group {
    background: #0d1117;
    border-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}


body.night-mode .add-child-form,
body.night-mode .event-form-card {
    background: #12141c;
}

body.night-mode .profile-card {
    background: linear-gradient(135deg, #161923, #12141c);
}

body.night-mode .input-group input,
body.night-mode .event-form-card select,
body.night-mode select {
    color: #ffffff;
    background-color: transparent;
    color-scheme: dark;
}

body.night-mode select option {
    background-color: #0d1117;
    color: #ffffff;
}

body.night-mode input[type="checkbox"] {
    color-scheme: dark;
}

body.night-mode .input-group:focus-within {
    background: #1f2430;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

body.night-mode .auth-header,
body.night-mode .parent-header,
body.night-mode .admin-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .auth-header h2,
body.night-mode .parent-header h2,
body.night-mode .admin-toolbar h2,
body.night-mode .section-title,
body.night-mode .admin-section-title {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

body.night-mode .auth-submit-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

body.night-mode .auth-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

body.night-mode .logout-btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

body.night-mode .logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.night-mode .child-flip-back {
    background: #1e293b;
    color: #60a5fa;
}

body.night-mode .guest-prompt-msg {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    color: #60a5fa !important;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1 {
    padding-top: 20px;
    padding-bottom: 20px;
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
    font-size: 1.1rem;
    color: var(--color-text);
    overflow-x: hidden;
    background: var(--color-sky-top);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Night Mode Toggle */
.overlay-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    min-height: 36px;
    margin-bottom: 20px;
}

.night-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    width: 60px;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 3px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.night-toggle:hover {
    transform: scale(1.05);
}

body.night-mode .night-toggle {
    background: #0f172a;
    border-color: #3b82f6;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 10px rgba(59, 130, 246, 0.3);
}

.toggle-switch {
    width: 24px;
    height: 24px;
    background: var(--color-yellow);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.toggle-switch::after {
    content: '☀️';
}

body.night-mode .toggle-switch {
    transform: translateX(30px);
    background: #1e293b;
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.8), inset -2px -2px 6px rgba(255, 255, 255, 0.2);
}

body.night-mode .toggle-switch::after {
    content: '🌙';
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: background 1s ease;
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 80px;
    will-change: opacity, transform;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-info {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-yellow);
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.hero-logo-left {
    position: absolute;
    top: 30px;
    right: 240px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-logo-right {
    position: absolute;
    top: 35px;
    right: 100px;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    animation: fadeIn 1s ease-out 0.6s both;
    z-index: 1000;
}

.main-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.owl-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 220px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-arrow {
    width: 25px;
    height: 25px;
    border-right: 3px solid var(--color-white);
    border-bottom: 3px solid var(--color-white);
    transform: rotate(45deg);
}

/* ========================================
   OVERLAY – SHARED COMPONENTS
   ======================================== */

/* Utility */
.hidden {
    display: none !important;
}

/* Scrollable panel body */
#overlay-body {
    padding: 10px 0;
}

/* User avatar circle */
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-avatar.large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Role badges */
.role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-admin {
    background: var(--color-blue);
    color: #fff;
}

.role-parent {
    background: var(--color-yellow);
    color: #333;
}

/* Status badges */
.status-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-waiting {
    background: #fff3cd;
    color: #856404;
}

.status-registered {
    background: #cce5ff;
    color: #004085;
}

/* Section titles */
.section-title,
.admin-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-blue);
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-yellow);
}

/* Meta text */
.meta {
    font-size: 0.82rem;
    color: #888;
    margin: 2px 0 0;
}

.reg-date {
    font-size: 0.8rem;
    color: #999;
    margin-left: 6px;
}

/* Empty state */
.empty-note {
    font-size: 0.9rem;
    color: #aaa;
    padding: 8px 0;
}

/* Loading */
.loading {
    color: #aaa;
    padding: 20px 0;
    text-align: center;
}

/* Back button */
.back-btn {
    background: none;
    border: none;
    color: var(--color-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 16px;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.back-btn:hover {
    text-decoration: underline;
}

/* Logout button */
.logout-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.logout-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* Action buttons */
.confirm-btn,
.delete-btn {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    transition: opacity 0.2s;
}

.confirm-btn {
    background: #d4edda;
    color: #155724;
}

.delete-btn {
    background: #f8d7da;
    color: #721c24;
}

.confirm-btn:hover,
.delete-btn:hover {
    opacity: 0.75;
}

.reg-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}


/* ========================================
   GUEST OVERLAY – Animated Auth Form
   ======================================== */

.auth-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.auth-container.auth-visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.auth-logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.auth-header h2 {
    font-size: 1.5rem;
    color: var(--color-blue);
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 0.9rem;
    color: #888;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px;
}

.auth-tab.active {
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 48, 71, 0.3);
}

/* Input groups */
.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fafafa;
    transition: border-color 0.2s;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--color-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 48, 71, 0.08);
}

.input-icon {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    user-select: none;
    color: #aaa;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 12px 12px 6px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    color: var(--color-text);
    outline: none;
    margin: 0;
}

/* Auth submit button */
.auth-submit-btn {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-blue), #034162);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.3);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 48, 71, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Event Form Row Adjustments */
.ef-row {
    display: flex;
    gap: 10px;
}

.ef-row .input-group {
    flex: 1;
    min-width: 0;
}

.ef-row .input-group input[type="number"],
.ef-row .input-group input[type="date"] {
    width: 100%;
}

.ef-buttons {
    align-items: center;
}

.ef-buttons .auth-submit-btn {
    flex: 2;
    margin-top: 0;
}

.ef-buttons .logout-btn {
    flex: 1;
    height: 48px;
    /* Match auth-submit-btn height roughly */
    margin-left: 0;
}

/* Inline messages */
.auth-msg {
    font-size: 0.85rem;
    margin: 8px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
    min-height: 0;
}

.auth-msg.error {
    background: #fde8e8;
    color: #c0392b;
}

.auth-msg.success {
    background: #e8f8ed;
    color: #27ae60;
}


/* ========================================
   PARENT OVERLAY
   ======================================== */



.parent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}

.parent-header h2 {
    font-size: 1.1rem;
    color: var(--color-blue);
    margin: 0;
}

/* Children rows */
.children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.child-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px 14px;
    gap: 10px;
}

.child-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.child-name {
    font-size: 0.95rem;
}

.child-meta {
    font-size: 0.8rem;
    color: #888;
}

/* Add child form */
.add-child-form {
    background: #f4f8fb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.add-child-form h4 {
    font-size: 0.95rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.photo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #555;
    margin: 6px 0 14px;
    cursor: pointer;
}

.photo-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Registrations */
.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
}

.reg-info {
    flex: 1;
    font-size: 0.88rem;
    min-width: 0;
    line-height: 1.4;
}


/* ========================================
   ADMIN OVERLAY
   ======================================== */



.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}

.admin-toolbar h2 {
    font-size: 1.2rem;
    color: var(--color-blue);
    margin: 0;
    flex: 1;
}

.admin-emulation {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #888;
}

.emu-btn {
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f4f4f4;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.emu-btn:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
}

.emu-btn.active {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    box-shadow: 0 2px 8px rgba(2, 48, 71, 0.2);
}

/* User cards grid */
.admin-users-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f9f9f9;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.admin-user-card:hover {
    background: #eef4f8;
    transform: translateX(3px);
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-info strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    font-size: 1.2rem;
    color: #ccc;
}

/* User profile view */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f0f6fb, #e8f1f8);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 4px;
}

.profile-card h3 {
    font-size: 1rem;
    color: var(--color-blue);
    margin: 0 0 4px;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    margin: 12px 0;
}

.admin-tab {
    flex: 1;
    padding: 9px;
    border: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px;
}

.admin-tab.active {
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 48, 71, 0.3);
}

/* Admin event cards */
.admin-events-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.admin-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.admin-event-info strong {
    font-size: 0.92rem;
}

.admin-event-meta {
    font-size: 0.78rem;
    color: #999;
}

/* Template event card */
.admin-event-card.template-card {
    background: #f0e8f6;
    border-left: 3px solid #9b59b6;
}

/* Archived event card */
.admin-event-card.archive-card {
    background: #fef5e7;
    border-left: 3px solid #e67e22;
}

/* Template label */
.template-label {
    font-size: 0.75rem;
    color: #9b59b6;
    font-weight: 600;
}

body.night-mode .admin-event-card.template-card {
    background: rgba(155, 89, 182, 0.15);
    border-left-color: #bb86fc;
}

body.night-mode .admin-event-card.archive-card {
    background: rgba(230, 126, 34, 0.15);
    border-left-color: #e67e22;
}

body.night-mode .template-label {
    color: #bb86fc;
}

/* Event form */
.event-form-card {
    background: #f4f8fb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.event-form-card h4 {
    font-size: 1rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.ef-row {
    display: flex;
    gap: 8px;
}

.ef-row .input-group {
    flex: 1;
}

.event-form-card select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 8px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: var(--color-text);
    outline: none;
    cursor: pointer;
}

/* Emoji picker for child creation */
.emoji-picker-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.emoji-picker-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.emoji-picker-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.emoji-pick {
    font-size: 1.3rem;
    padding: 4px 6px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
}

.emoji-pick:hover {
    background: rgba(255, 255, 255, 0.15);
}

.emoji-pick.selected {
    border-color: var(--color-yellow);
    background: rgba(255, 183, 3, 0.15);
}

/* Collapsible add-child section */
.add-child-toggle {
    cursor: pointer;
    padding: 10px 0;
    margin: 10px 0 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.add-child-toggle:hover {
    opacity: 1;
}

.add-child-form {
    padding-top: 8px;
}

/* Profile phone note */
.profile-phone-note {
    font-size: 0.8rem;
    opacity: 0.65;
    line-height: 1.4;
    margin: 4px 0 12px;
}

/* Admin user email subtitle */
.admin-user-email {
    display: block;
    font-size: 0.82rem;
    opacity: 0.7;
}

/* Print button */
.print-btn {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}



/* ========================================
   EVENT CARD – Actions (Guest / Parent / Admin)
   ======================================== */

.event-actions {
    margin-top: auto;
    padding-top: 14px;
}

/* Guest prompt */
.guest-login-prompt {
    transition: background 0.3s ease, color 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
    min-height: 48px;
}

.guest-prompt-msg {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    background: #f8fafc !important;
    color: var(--color-blue) !important;
    border: 2px solid var(--color-blue) !important;
    cursor: default;
    min-height: 52px;
    height: 52px; /* Fixed height to prevent jumping */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: none !important;
    transform: none !important;
}

/* Parent: inline child action row */
.child-action-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.child-trigger-btn {
    transition: all 0.25s ease;
    white-space: nowrap;
}

.child-trigger-btn.child-trigger-small {
    width: auto;
    min-width: 0;
    padding: 12px 14px;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: none;
}

.child-trigger-btn.child-trigger-small:hover {
    transform: none;
    box-shadow: none;
}

/* Flip card for no-children warning */
.child-flip-card {
    perspective: 600px;
    flex: 0 0 auto;
}

.child-flip-inner {
    position: relative;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.child-flip-card.flipped .child-flip-inner {
    transform: rotateY(180deg);
}

.child-flip-front,
.child-flip-back {
    backface-visibility: hidden;
}

.child-flip-front {
    width: 100%;
}

.child-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.3;
    border-radius: 10px;
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.child-action-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.child-flip-card {
    flex-shrink: 0;
    width: 200px;
    max-width: 100%;
}

.child-selector {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 8px 12px;
    display: none;
    overflow: hidden; /* Prevent internal overflow from leaking */
}

.child-btn-grid {
    display: flex;
    flex-wrap: nowrap; /* Ensure one row */
    overflow-x: auto;
    gap: 8px;
    padding: 2px 2px 8px 2px;
    scrollbar-width: none;
}

.child-btn-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.child-sel-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    min-width: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.child-sel-btn:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.registration-footer {
    margin-top: 5px;
    padding: 8px 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-disclaimer {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    margin-bottom: 8px !important;
}

.registration-note-toggle {
    font-size: 0.78rem;
    color: var(--color-yellow);
    cursor: pointer;
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1px dashed var(--color-yellow);
    transition: opacity 0.2s;
}

.registration-note-toggle:hover {
    opacity: 0.8;
}

.registration-note {
    margin-top: 10px;
}

.registration-note textarea {
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.registration-note textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

.child-sel-ok {
    background: #4ade80 !important;
    color: #fff !important;
    border-color: #4ade80 !important;
    cursor: default;
    animation: successPulse 0.5s ease-out;
}

.child-sel-err {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        background-color: #c3e6cb;
    }

    100% {
        transform: scale(1);
    }
}

.child-sel-wait {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
    cursor: default;
}

.child-sel-note {
    font-size: 0.85rem;
    color: #888;
    padding: 6px 0;
}

/* ========================================
   Events Filter Bar
   ======================================== */
.events-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
    position: relative;
    z-index: 100;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 30px;
    color: var(--color-blue);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 0;
}

.filter-btn svg {
    transition: transform 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--color-blue);
    background: white;
}

.filter-btn.active {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-blue);
    box-shadow: 0 8px 25px rgba(2, 48, 71, 0.4);
}

.filter-btn.active svg {
    transform: rotate(180deg);
    color: var(--color-yellow);
}

body.night-mode .filter-btn {
    background: rgba(255,255,255,0.08);
    color: #eee;
    border-color: rgba(255,255,255,0.15);
}

body.night-mode .filter-btn:hover {
    background: rgba(255,255,255,0.15);
}

body.night-mode .filter-btn.active {
    background: var(--color-yellow);
    color: var(--color-dark);
    border-color: var(--color-yellow);
}

/* ========================================
   Admin UI Enhancements (Search & Sort)
   ======================================== */
.admin-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.admin-search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    pointer-events: none;
}

.admin-search-input {
    width: 100% !important;
    padding: 10px 40px 10px 35px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    font-family: var(--font-main) !important;
}

.admin-search-input:focus {
    border-color: var(--color-blue) !important;
    box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.1) !important;
    outline: none !important;
}

.admin-search-clear {
    position: absolute;
    right: 10px;
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: #666;
    transition: all 0.2s;
}

.admin-search-clear:hover {
    background: #ddd;
    color: #333;
}

.admin-sort-btn {
    background: #f5f7fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #586069;
    transition: all 0.2s;
    margin: 0;
}

.admin-sort-btn:hover {
    background: #eef1f5;
    color: var(--color-blue);
    border-color: var(--color-blue);
}

.admin-sort-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    border: 1px solid #e1e4e8;
    z-index: 1000;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.admin-sort-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-sort-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-family: var(--font-main);
    cursor: pointer;
    color: #24292e;
    transition: all 0.2s;
    margin: 0 !important;
}

.admin-sort-option:hover {
    background: #f6f8fa;
    color: var(--color-blue);
    padding-left: 20px;
}

.admin-sort-option.active {
    font-weight: 600;
    color: var(--color-blue);
    background: #f0f8fb;
}

/* Night Mode for Admin Enhancements */
body.night-mode .admin-search-input {
    background: #2d2d2d !important;
    border-color: #444 !important;
    color: #f0f0f0 !important;
}

body.night-mode .admin-search-clear {
    background: #444;
    color: #bbb;
}

body.night-mode .admin-sort-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #adb5bd;
}

body.night-mode .admin-sort-popup {
    background: #1f1f1f;
    border-color: #333;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}

body.night-mode .admin-sort-option {
    color: #e1e4e8;
}

body.night-mode .admin-sort-option:hover {
    background: #2d2d2d;
    color: var(--color-yellow);
}

body.night-mode .admin-sort-option.active {
    color: var(--color-yellow);
    background: rgba(255, 183, 3, 0.12);
}


/* ========================================
   Events Section
   ======================================== */
.events-section {
    position: relative;
    z-index: 10;
    padding: 40px 20px 40px;
}

.events-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-blue);
    margin-bottom: 40px;
    /*text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease, text-shadow 0.3s ease;*/
}

body.night-mode .events-title {
    color: var(--color-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px; /* Prevent page jump when filtering */
}

/* Profile */
input,
button {
    padding: 6px 10px;
    margin: 5px;
}

.child-item {
    margin: 5px 0;
}

.child-item button {
    margin-left: 10px;
}

/* Event Card */
.child-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
}

.event-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.event-card:hover .card-glow {
    opacity: 0.20;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--color-blue), var(--color-yellow), var(--color-orange));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.event-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.event-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-type {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}




.type-workshop {
    background: var(--color-blue);
}

.type-vorlesung {
    background: var(--color-orange);
}

.type-interaktive_vorlesung {
    background: #df3421;
}

.type-spiel {
    background: #410f57;
}

.type-labor {
    background: var(--color-yellow);
}

.type-exkursion {
    background: #24b498;
}

.type-show {
    background: #9b35c6;
}




.event-logo {
    width: 100px;
    height: auto;
}

.event-title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.detail-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2.5;
}

.registration-workflow-info {
    background: #f0f7ff;
    border-left: 4px solid #005A9C;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #444;
    text-align: left;
    border-radius: 4px;
}

.registration-consent {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #444;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.registration-consent input {
    margin-top: 3px;
}

.registration-note {
    margin-bottom: 15px;
}

.registration-note textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.child-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: 80px 20px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.contact-section .container {
    max-width: 900px;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.contact-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 15px;
}

.contact-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.contact-form {
    background: transparent;
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(33, 158, 188, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-yellow), var(--color-orange));
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, rgb(30, 30, 45), rgb(20, 20, 30));
    padding: 40px 20px;
    color: #f5f5f5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: grid;
    gap: 20px;
    align-items: baseline;
    grid-auto-flow: column;
    justify-content: center;
}

.footer-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-yellow);
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}



/* ========================================
   OVERLAY
   ======================================== */

.hamburger {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 2000;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

/* Hamburger mobile override removed for alignment */

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-orange);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animate to X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* OVERLAY BACKDROP */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);

    z-index: 1500;

    display: flex;
    justify-content: flex-end;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.overlay-panel {
    width: 500px;
    max-width: 90%;
    height: 100%;
    background: white;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: 30px;
    overflow-y: auto;
}

.overlay.show .overlay-panel {
    transform: translateX(0);
}






/* --- Admin Participant List (Unified Glass Design) --- */
.admin-registration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 8px;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.admin-registration:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.admin-reg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.admin-reg-detail {
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
    color: var(--color-text, #252525);
    opacity: 0.9;
    line-height: 1.3;
}

.admin-reg-info strong.admin-reg-detail {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
    opacity: 1;
    color: var(--color-blue, #023047);
}

body.night-mode .admin-reg-info strong.admin-reg-detail {
    color: #fff;
}

.admin-reg-detail.note {
    font-style: italic;
    opacity: 0.8;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    width: 100%;
}

body.night-mode .admin-reg-detail.note {
    background: rgba(255, 255, 255, 0.05);
}

.admin-reg-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 110px;
    flex-shrink: 0;
}

.admin-registration .status-badge {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-registration .reg-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.admin-registration .reg-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-registration .reg-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.admin-registration .reg-actions button.delete-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.admin-registration .reg-actions button.confirm-btn:hover {
    background: rgba(34, 197, 94, 0.4);
}


/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {

    /* Fix hero background resize-on-scroll on mobile */
    .hero {
        background-attachment: scroll;
    }

    /* Hide hero-content and main-logo on mobile */
    .hero-content,
    .main-logo {
        display: none;
    }

    /* Move scroll indicator upward on mobile */
    .scroll-indicator {
        bottom: 55%;
    }

    /* Overlay full page width on mobile */
    .overlay-panel {
        width: 100%;
        max-width: 100%;
    }

    .hero-logo-left,
    .hero-logo-right {
        display: none;
    }

    .windows-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 0;
    }

    /* Larger touch-friendly inputs on mobile */
    .form-group input,
    .form-group textarea {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .submit-btn {
        padding: 16px 25px;
        font-size: 1.2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    /* Improve event cards on mobile */
    .event-card {
        padding: 20px;
    }

    .event-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-logo {
        width: 90px;
        align-self: flex-start;
    }

    .event-title {
        font-size: 1.2rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    /* Move the event registration cancel and confirmation closer to each other */
    .reg-actions button {
        margin: 2px;
        padding: 5px 8px;
    }

    /* Improve intro section on mobile */
    .intro-section {
        padding: 60px 20px 30px;
    }

    .intro-section h1 {
        font-size: 1.5rem;
    }

    .intro-section p {
        font-size: 1rem;
    }

    /* Improve sky section spacing on mobile */

    /* Disable hover effects on mobile/touch devices */
    .event-card:hover,
    .main-logo:hover,
    .submit-btn:hover,
    .footer-links a:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .event-card {
        transition: none;
        animation: cardAppear 0.6s ease-out forwards;
    }

    /* Reg-row mobile layout */
    .reg-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }

    .reg-row .reg-info {
        width: 100%;
        margin-bottom: 2px;
    }

    .reg-row .status-badge {
        width: 100% !important;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 0;
        box-sizing: border-box;
    }

    .reg-row .reg-actions,
    .reg-row .cancelBtn {
        width: 100% !important;
        display: flex !important;
        gap: 6px;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .reg-row .cancelBtn {
        font-size: 0.85rem;
        padding: 8px 14px;
        margin-top: 4px !important;
    }

    /* Child registration row improvements */
    .child-action-row {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .child-flip-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 5px;
    }

    .child-selector {
        width: 100% !important;
        margin-top: 2px;
        padding: 6px 8px;
    }

    .registration-footer {
        padding: 4px 2px;
    }

    .registration-disclaimer {
        font-size: 0.65rem;
        margin-bottom: 5px !important;
    }

    .registration-note textarea {
        height: 60px;
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Auth Mask gaps */
    .auth-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .auth-tabs {
        margin-bottom: 15px;
    }
    .input-group {
        margin-bottom: 10px;
    }
}

/* --- Admin Participant List (Unified Glass Design) --- */
.admin-registration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.admin-registration:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.admin-reg-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.admin-reg-detail {
    display: block;
    margin-bottom: 3px;
    font-size: 0.9rem;
    color: var(--color-white, #fff);
    opacity: 0.9;
    line-height: 1.4;
}

.admin-reg-info strong.admin-reg-detail {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 1;
}

.admin-reg-detail.note {
    font-style: italic;
    opacity: 0.7;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    width: 100%;
}

.admin-reg-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 120px;
    flex-shrink: 0;
}

.admin-registration .status-badge {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-registration .reg-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.admin-registration .reg-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .admin-registration {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .admin-registration .admin-reg-info {
        grid-column: 1;
        min-width: 0;
        font-size: 0.85rem;
    }

    .admin-reg-info strong.admin-reg-detail {
        font-size: 0.95rem;
    }

    .admin-reg-detail {
        font-size: 0.8rem;
    }

    .admin-registration .admin-reg-side {
        grid-column: 2;
        min-width: 100px;
        gap: 6px;
    }

    .admin-registration .status-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .admin-registration .reg-actions {
        gap: 4px;
    }
    
    .admin-registration .reg-actions button {
        padding: 6px;
        font-size: 1rem;
    }
}


/* ========================================
   Imprint Page Styles
   ======================================== */
.imprint-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.imprint-content {
    max-width: 800px;
    margin: 30px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.imprint-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.imprint-section-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.imprint-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.imprint-section-block h2 {
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.imprint-section-block p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.imprint-section-block a {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.imprint-section-block a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

.president-photo {
    display: inline-block;
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Data Privacy Page Styles
   ======================================== */
.privacy-section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.privacy-content {
    max-width: 800px;
    margin: 30px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.privacy-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.privacy-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-yellow);
}

.privacy-section-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.privacy-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section-block h2 {
    font-size: 1.3rem;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.privacy-section-block p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 10px;
}

.privacy-section-block p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Responsive Styles for Imprint & Privacy
   ======================================== */
@media (max-width: 768px) {

    .imprint-content,
    .privacy-content {
        padding: 25px;
        border-radius: 15px;
    }

    .imprint-title,
    .privacy-title {
        font-size: 2rem;
    }

    .president-photo {
        width: 120px;
    }
}

@media (max-width: 480px) {

    .imprint-section,
    .privacy-section {
        padding: 80px 15px 40px;
    }

    .imprint-content,
    .privacy-content {
        padding: 20px;
    }

    .imprint-section-block h2,
    .privacy-section-block h2 {
        font-size: 1.1rem;
    }

    .president-photo {
        width: 100px;
    }
}



/* Upsell Popup */
.upsell-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.upsell-popup.visible {
    opacity: 1;
    visibility: visible;
}

.upsell-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.upsell-popup.visible .upsell-content {
    transform: translateY(0);
}

.upsell-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    color: #999;
}

.upsell-header h3 {
    margin-bottom: 15px;
    color: #005A9C;
}

.upsell-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #444;
}


