/* ═══════════════════════════════════════════════
   EMS – Europe Mega Service
   Brand Design System
   Colors: Navy (#1E3A5F) + Gold (#C9A646)
   ═══════════════════════════════════════════════ */

:root {
    --navy: #1E3A5F;
    --navy-dark: #152C47;
    --navy-light: #2A4F7A;
    --gold: #C9A646;
    --gold-light: #D4B96A;
    --gold-dark: #A8893A;
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --text-dark: #2B2B2B;
    --text-medium: #555555;
    --text-light: #888888;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #EEF1F6;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 5% 10%, rgba(30, 58, 95, 0.07) 0%, transparent 100%),
        radial-gradient(ellipse 70% 50% at 95% 15%, rgba(201, 166, 70, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 90% 70% at 50% 95%, rgba(30, 58, 95, 0.05) 0%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(201, 166, 70, 0.04) 0%, transparent 100%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%231E3A5F' stroke-opacity='0.04' stroke-width='1'%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='80' cy='0' r='6'/%3E%3Ccircle cx='0' cy='80' r='6'/%3E%3Ccircle cx='80' cy='80' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-icon {
    font-size: 2rem;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(201, 166, 70, 0.3));
}

/* ─── CONTAINER ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── HEADER / NAVIGATION ─── */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--navy);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: rgba(255,255,255,0.85);
    margin-left: 15px;
}

.header-top a:hover {
    color: var(--gold);
}

.header-top .contact-info span {
    margin-right: 20px;
}

.header-top .contact-info svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher a {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.8rem;
}

.lang-switcher a.active {
    background: var(--gold);
    color: var(--navy);
}

.nav-main {
    padding: 0;
}

.nav-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-text {
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-medium);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--bg-light);
    color: var(--navy);
}

.nav-links .btn-nav-portal {
    background: var(--navy);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-md);
}

.nav-links .btn-nav-portal:hover {
    background: var(--navy-dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
    padding: 5px;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 166, 70, 0.35);
    color: var(--navy-dark);
}

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

.btn-secondary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.35);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: white;
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

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

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ─── CARDS ─── */
.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.1), 0 3px 10px rgba(0,0,0,0.04);
    border-color: rgba(201, 166, 70, 0.25);
    transform: translateY(-2px);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

/* ─── HERO SECTION ─── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0F1E33 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 166, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(201, 166, 70, 0.08) 0%, transparent 40%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
    padding: 15px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat .number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lotto-balls-display {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lotto-ball {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    animation: floatBall 3s ease-in-out infinite;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.2);
}

.lotto-ball:nth-child(1) { background: linear-gradient(145deg, #E74C3C, #C0392B); animation-delay: 0s; }
.lotto-ball:nth-child(2) { background: linear-gradient(145deg, #3498DB, #2980B9); animation-delay: 0.3s; }
.lotto-ball:nth-child(3) { background: linear-gradient(145deg, #2ECC71, #27AE60); animation-delay: 0.6s; }
.lotto-ball:nth-child(4) { background: linear-gradient(145deg, #F39C12, #D68910); animation-delay: 0.9s; }
.lotto-ball:nth-child(5) { background: linear-gradient(145deg, #9B59B6, #8E44AD); animation-delay: 1.2s; }
.lotto-ball:nth-child(6) { background: linear-gradient(145deg, #E67E22, #D35400); animation-delay: 1.5s; }
.lotto-ball.superzahl {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    border: 3px solid white;
}

@keyframes floatBall {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─── LOTTO RESULTS ─── */
.lotto-section {
    padding: 80px 0;
    background: linear-gradient(170deg, #FFFFFF 0%, #F8F9FC 40%, #F0F2F8 100%);
    position: relative;
}

.lotto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 0% 0%, rgba(30, 58, 95, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 40% 40% at 100% 100%, rgba(201, 166, 70, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.lotto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.lotto-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.07);
    transition: var(--transition);
}

.lotto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.12);
}

.lotto-card-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lotto-card-header h3 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.lotto-card-header .draw-date {
    color: var(--gold-light);
    font-size: 0.85rem;
}

.lotto-card-body {
    padding: 24px;
}

.lotto-numbers {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.lotto-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.lotto-num.super {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    border: 2px solid var(--navy);
}

.lotto-extra {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.lotto-extra .label {
    color: var(--text-light);
}

.lotto-extra .value {
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 1px;
}

.jackpot-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ─── HOW IT WORKS ─── */
.how-section {
    padding: 80px 0;
    background: linear-gradient(170deg, #EEF1F6 0%, #E8ECF3 50%, #E3E8F1 100%);
    position: relative;
}

.how-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(201, 166, 70, 0.05) 0%, transparent 100%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(30, 58, 95, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.step-card h4 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.step-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ─── ADVANTAGES ─── */
.advantages-section {
    padding: 80px 0;
    background: linear-gradient(170deg, #FFFFFF 0%, #FAFBFD 30%, #F5F7FB 100%);
    position: relative;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(30, 58, 95, 0.035) 0%, transparent 100%),
        radial-gradient(ellipse 50% 50% at 100% 50%, rgba(201, 166, 70, 0.035) 0%, transparent 100%);
    pointer-events: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.advantage-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.05);
    transition: var(--transition);
}

.advantage-card:hover {
    border-color: rgba(201, 166, 70, 0.4);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.1);
}

.advantage-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.advantage-content h4 {
    margin-bottom: 8px;
}

.advantage-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* ─── CTA SECTION ─── */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0F1E33 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: bannerGlow 6s ease-in-out infinite alternate;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: bannerGlow 8s ease-in-out infinite alternate-reverse;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: var(--radius-xl);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.15);
}

.cta-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
}

.cta-price .period {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* ─── FORMS ─── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    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='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--navy);
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-medium);
    cursor: pointer;
}

.form-check label a {
    color: var(--navy);
    text-decoration: underline;
}

.form-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.9rem;
    color: #1E40AF;
    margin-bottom: 20px;
}

.form-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.9rem;
    color: #92400E;
    margin-bottom: 20px;
}

/* ─── ALERTS / FLASH ─── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-color: #BBF7D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FDE68A;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
}

.alert .close-alert {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    color: inherit;
}

.alert .close-alert:hover {
    opacity: 1;
}

/* ─── AUTH PAGES ─── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(135deg, #E8ECF5 0%, #EEF1F6 50%, #F0EDE5 100%);
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(30, 58, 95, 0.15), 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    padding: 35px 40px;
    text-align: center;
    color: white;
}

.auth-header h2 {
    color: white;
    margin-bottom: 8px;
}

.auth-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.auth-body {
    padding: 35px 40px;
}

.auth-footer {
    padding: 20px 40px;
    background: var(--bg-light);
    text-align: center;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ─── PORTAL ─── */
.portal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 140px);
}

.portal-sidebar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 60%, #0F1E33 100%);
    padding: 30px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.portal-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 30% at 50% 0%, rgba(201, 166, 70, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 100% 30% at 50% 100%, rgba(201, 166, 70, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.portal-user {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.portal-user .user-name {
    font-weight: 700;
    font-size: 1rem;
}

.portal-user .user-nr {
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-top: 3px;
}

.portal-nav {
    list-style: none;
}

.portal-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.portal-nav li a:hover,
.portal-nav li a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: var(--gold);
}

.portal-nav li a svg {
    width: 18px;
    height: 18px;
}

.portal-content {
    padding: 30px 40px;
    background: linear-gradient(170deg, #F0F2F8 0%, #EAECF4 60%, #E5E8F0 100%);
    position: relative;
}

.portal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 40% at 10% 10%, rgba(30, 58, 95, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(201, 166, 70, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.portal-header {
    margin-bottom: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.portal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.portal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.portal-header h1 {
    font-size: 1.75rem;
    margin-bottom: 5px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.portal-header-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(201, 166, 70, 0.3));
}

.portal-header p {
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

/* ─── ADMIN PANEL ─── */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(180deg, #1A1A2E 0%, #141428 50%, #0E0E20 100%);
    padding: 20px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 20% at 50% 0%, rgba(201, 166, 70, 0.05) 0%, transparent 100%),
        radial-gradient(ellipse 100% 20% at 50% 100%, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.08);
    color: white;
}

.admin-nav .badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-content {
    padding: 25px 30px;
    background: linear-gradient(170deg, #F0F2F8 0%, #EAECF4 60%, #E5E8F0 100%);
    position: relative;
}

.admin-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 50% 40% at 10% 10%, rgba(30, 58, 95, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(201, 166, 70, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.admin-header h1 {
    color: white !important;
    position: relative;
    z-index: 1;
}

.admin-header a,
.admin-header span {
    position: relative;
    z-index: 1;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.1);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.stat-card .stat-label {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin-top: 4px;
}

.stat-card.highlight {
    border-left: 4px solid var(--gold);
}

.stat-card.danger {
    border-left: 4px solid var(--danger);
}

/* ─── TABLE ─── */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-light);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-light);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.data-table tr:hover {
    background: #F8FAFC;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-aktiv { background: #DCFCE7; color: #166534; }
.status-neu { background: #DBEAFE; color: #1E40AF; }
.status-kuendigung_angefragt { background: #FEF3C7; color: #92400E; }
.status-kuendigung_bestaetigt { background: #FEE2E2; color: #991B1B; }
.status-widerruf_angefragt { background: #FEF3C7; color: #92400E; }
.status-widerruf_bestaetigt { background: #FEE2E2; color: #991B1B; }
.status-gesperrt { background: #F3F4F6; color: #374151; }
.status-angefragt { background: #FEF3C7; color: #92400E; }
.status-rueckruf_erledigt { background: #DBEAFE; color: #1E40AF; }
.status-bestaetigt { background: #DCFCE7; color: #166534; }

/* ─── PAGE HEADER BANNER ─── */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0F1E33 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: bannerGlow 6s ease-in-out infinite alternate;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 166, 70, 0.08) 0%, transparent 65%);
    border-radius: 50%;
    animation: bannerGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes bannerGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-banner h1 .banner-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(201, 166, 70, 0.4));
}

.page-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}

.page-banner .gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.banner-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.banner-star {
    position: absolute;
    color: rgba(201, 166, 70, 0.12);
    font-size: 1.5rem;
    animation: twinkle 4s ease-in-out infinite;
}

.banner-star:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; font-size: 1.2rem; }
.banner-star:nth-child(2) { top: 25%; right: 12%; animation-delay: 1s; font-size: 1.8rem; }
.banner-star:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; font-size: 1rem; }
.banner-star:nth-child(4) { top: 40%; right: 5%; animation-delay: 0.5s; font-size: 1.4rem; }
.banner-star:nth-child(5) { bottom: 15%; right: 18%; animation-delay: 1.5s; font-size: 1.1rem; }
.banner-star:nth-child(6) { top: 10%; left: 25%; animation-delay: 2.5s; font-size: 0.9rem; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* ─── PAGE CONTENT ─── */
.page-content {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(180deg, #F0F2F8 0%, #EAECF4 50%, #E5E8F1 100%);
}

.page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 10% 20%, rgba(30, 58, 95, 0.04) 0%, transparent 100%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(201, 166, 70, 0.035) 0%, transparent 100%);
    pointer-events: none;
}

.content-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 40px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.1), 0 3px 10px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

/* ─── FOOTER ─── */
.footer {
    background: linear-gradient(180deg, var(--navy-dark) 0%, #0D1B2A 100%);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 30px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 30%, rgba(201, 166, 70, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(201, 166, 70, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer .gambling-warning {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.85rem;
    margin-top: 20px;
    color: rgba(255,255,255,0.6);
}

/* ─── MODAL / POPUP ─── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ─── CONTACT PAGE ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ─── PAGINATION ─── */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.pagination a:hover {
    background: var(--bg-light);
}

.pagination .active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ─── SEARCH BAR ─── */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar .form-control {
    flex: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .portal-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar,
    .admin-sidebar {
        display: none;
    }

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

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-light);
    }

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .auth-body {
        padding: 25px 20px;
    }

    .page-banner {
        padding: 35px 0;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }

    .content-card {
        padding: 25px 20px;
    }

    .portal-content,
    .admin-content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .hero-stat .number {
        font-size: 1.4rem;
    }

    .lotto-num {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
