:root {
    --navy-900: #0a1f38;
    --navy-800: #0f2744;
    --navy-700: #16375c;
    --blue-600: #1d4ed8;
    --blue-700: #1e40af;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;
    --bg-page:   #f8fafc;
    --card-bg:   #ffffff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--slate-800);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* TOPBAR */
.topbar {
    background: #ffffff;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-admin {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    transition: all 0.15s ease;
}

.btn-nav-admin:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

/* HERO BANNER */
.hero-banner-wrap {
    width: 100%;
    background: var(--navy-900);
    line-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--slate-200);
}

.hero-banner-img {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    height: auto;
    display: block;
}

/* MAIN CONTENT */
.main-content {
    padding-top: 32px;
    padding-bottom: 48px;
}

/* PORTAL EVENTS SECTION */
.portal-section {
    margin-bottom: 36px;
}

.section-title-wrap {
    margin-bottom: 20px;
}

.section-overline {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-600);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.025em;
    margin-top: 4px;
}

.event-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portal-event-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.event-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}

.event-date-tag {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-500);
}

.card-main-title {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.card-desc {
    font-size: 14px;
    color: var(--slate-600);
    line-height: 1.5;
}

.card-cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--slate-100);
    gap: 12px;
}

.cta-features {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 500;
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue-600);
    transition: transform 0.15s ease;
}

.portal-event-card:hover .btn-card-action {
    transform: translateX(2px);
}

/* COMMUNITY & ENGAGEMENT CARD */
.support-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 22px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy-800);
}

.support-copy {
    flex: 1;
    min-width: 220px;
}

.support-copy h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 3px;
}

.support-copy p {
    font-size: 13.5px;
    color: var(--slate-600);
    line-height: 1.45;
}

.support-action {
    flex-shrink: 0;
}

.btn-mitmachen {
    display: inline-block;
    background: var(--navy-800);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-mitmachen:hover {
    background: var(--navy-700);
}

/* SOCIAL MEDIA SECTION */
.social-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.social-copy h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.social-copy p {
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 18px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: center;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.social-item:hover {
    color: var(--navy-900);
}

.social-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.15s ease;
}

.social-item:hover .social-img {
    transform: translateY(-2px);
}

/* FOOTER */
.footer-wrap {
    background: var(--navy-900);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-wave-container {
    width: 100%;
    background: var(--navy-900);
    line-height: 0;
}

.footer-wave-img {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    height: auto;
    display: block;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 18px));
    font-size: 12.5px;
    color: var(--slate-400);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal .sep {
    color: rgba(255, 255, 255, 0.25);
}

.footer-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.footer-legal a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-admin {
    color: var(--slate-400);
    text-decoration: none;
    font-weight: 500;
}

.footer-admin:hover {
    color: #ffffff;
}

@media (max-width: 540px) {
    .support-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .support-action {
        width: 100%;
    }
    .btn-mitmachen {
        display: block;
        text-align: center;
        width: 100%;
    }
    .social-icons {
        gap: 24px;
    }
    .card-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* CONTACT MODAL */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 56, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    max-width: 520px;
    width: 100%;
    padding: 30px 28px;
    z-index: 10;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.modal-overline {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-600);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
    margin-top: 2px;
    letter-spacing: -0.02em;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--slate-400);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: color 0.15s;
}

.btn-close-modal:hover {
    color: var(--navy-900);
}

.modal-desc {
    font-size: 13.5px;
    color: var(--slate-600);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 5px;
}

.modal-form-group input, .modal-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--slate-900);
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-form-group input:focus, .modal-form-group textarea:focus {
    outline: none;
    border-color: var(--navy-800);
    box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.08);
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.btn-send-contact {
    background: var(--navy-800);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex: 1;
    transition: background 0.15s ease;
}

.btn-send-contact:hover {
    background: var(--navy-700);
}

.btn-cancel-modal {
    background: transparent;
    color: var(--slate-600);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 18px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel-modal:hover {
    background: var(--slate-50);
    color: var(--navy-900);
}
