/* ================================
   Global Styles – FLL Darmstadt 2026
   ================================ */

:root {
    /* FIRST LEGO LEAGUE Farben (Benutzer-Anforderung) */
    --fll-navy: #24355c; /* dunkles Blau */
    --fll-red: #ed1c25;  /* Rot */
    --fll-yellow: #ffed00; /* Gelb */
    --fll-black: #000000;
    --fll-red-dark: #e3000b;

    --primary-color: var(--fll-navy);
    --secondary-color: #ffffff;
    --background-color: #f7f7f7b1;
    --text-color: #111827;
    --accent-color: var(--fll-red);
    --card-bg: #ffffff;
    --border-radius: 12px;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* softer layered shadow for a more modern, subtle look */
    --shadow-soft: 0 4px 12px rgba(8,24,48,0.06), 0 1px 0 rgba(8,24,48,0.02);
    --shadow-strong: 0 10px 30px rgba(8,24,48,0.10), 0 2px 4px rgba(8,24,48,0.04);
    /* Topbar color variant (slightly desaturated/darker than navy for contrast) */
    --topbar-bg: #162236; /* deep desaturated navy */
    --topbar-bg-2: #1b2a44; /* alternate shade for gradient */
    --topbar-gradient: linear-gradient(180deg, var(--topbar-bg-2), var(--topbar-bg));
}

/* -------------------------------
   Grundlayout
-------------------------------- */

body {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* NEW for sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
}

.page-content-wrapper {
    max-width: 1800px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* -------------------------------
   Navbar
-------------------------------- */

.site-navbar {
    background-color: var(--secondary-color); /* white navbar for contrast */
    /* subtle bottom border and light shadow to separate from content */
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 6px 18px rgba(11,20,38,0.04);
}

/* Make the navbar compact (less vertical space) while keeping icon and link sizes unchanged */
.site-navbar .container-fluid,
.site-navbar .navbar {
    padding-top: 4px;
    padding-bottom: 4px;
}

.site-navbar .navbar-brand {
    align-items: center; /* ensure vertical centering */
    display: flex;
    gap: 0.6rem;
}

.site-navbar .navbar-brand .brand-text {
    color: var(--fll-navy);
    font-weight: 700;
}

.site-navbar .brand-text {
    color: var(--secondary-color);
    font-size: 1.05rem;
    font-weight: 700;
}

.site-navbar .nav-link {
    color: var(--fll-navy) !important;
    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s cubic-bezier(.2,.8,.2,1);
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: var(--fll-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(9,30,66,0.06);
}

/* Make nav items spaced evenly and fit better */
.site-navbar .navbar-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

/* Reduce logo overlap on very small screens and keep links readable */
@media (max-width: 576px) {
    .site-navbar .navbar-brand img {
        height: 56px;
        top: 0;
    }

    .site-navbar .nav-link {
        font-size: 1rem;
        padding: 0.6rem 0.9rem;
    }
}

@media (min-width: 1200px) {
    /* on very wide screens make links slightly larger */
    .site-navbar .nav-link {
        font-size: 1.35rem;
        padding: 1rem 1.4rem;
    }
}

.site-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.1);
}

.site-navbar .navbar-toggler-icon {
    /*filter: invert(1) brightness(2);*/
    /*  original left commented */
    filter: none;
}

/* Debug: sichtbare Umrandung für das Navbar-Logo, damit wir schnell prüfen können, welches Bild geladen wird */

.site-navbar .navbar-brand {
    padding-left: 0; /* keep brand flush with container */
}

/* Großes Icon, das die obere Topbar überschneiden kann */
.site-navbar .site-logo {
    outline: none;
    height: 128px; /* slightly larger */
    width: auto;
    margin-right: 12px;
    position: relative;
    top: -24px; /* overlap above topbar */
    z-index: 20; /* ensure logo sits above topbar */
}

.site-navbar .site-logo:hover{
    transform: translateY(-3px) scale(1.01);
}

/* Stelle sicher, dass Topbar nicht über dem Icon liegt */
.topbar {
    position: relative;
    z-index: 10; /* ensure topbar sits above other header shadows */
    /* harmonized topbar gradient using defined variables */
    background-image: var(--topbar-gradient);
    color: rgba(255,255,255,0.96);
    font-size: 0.95rem;
    padding: 0.36rem 0;
    box-shadow: none !important; /* force no shadow */
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.topbar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.topbar a:hover,
.topbar a:focus {
    color: #ffffff; /* statt gelb nun weiß */
    text-decoration: none !important;
}

.topbar .login-btn {
    background-color: var(--fll-red);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.topbar .login-btn:hover {
    background-color: var(--fll-red-dark);
}

/* Keine Unterstreichung bei Header-Links (Topbar + Navbar) */
.site-navbar .nav-link,
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link:active,
.topbar a,
.topbar a:hover,
.topbar a:focus {
    text-decoration: none !important;
}

/* -------------------------------
   Footer
-------------------------------- */

.site-footer {
    background-color: var(--fll-navy);
    color: var(--secondary-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    padding-top: 2rem !important; /* reduce from default py-5 */
    padding-bottom: 2rem !important;

    /* NEW: push footer to bottom when space is left */
    margin-top: auto;
}

.site-footer h4 {
    color: var(--fll-yellow);
    font-weight: 700;
}

.site-footer .footer-links a,
.site-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: var(--fll-yellow);
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--fll-red);
    color: #fff;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.btn-subscribe {
    background-color: var(--fll-red-dark);
    color: white;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 700;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

/* Footer enhancements */
.site-footer h4 {
    margin-bottom: 0.8rem;
}

.site-footer .footer-links li + li {
    margin-top: 0.4rem;
}

.site-footer .newsletter-form .form-control {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.site-footer .newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.65);
}

.site-footer .newsletter-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,237,0,0.15);
    border-color: rgba(255,237,0,0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    text-decoration: underline;
}

/* -------------------------------
   Buttons
-------------------------------- */

.btn-secondary {
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* -------------------------------
   Karten, Boxen, Sektionen
-------------------------------- */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

/* Links in Card-Footern besser hervorheben */
.card-footer a {
    color: var(--primary-color) !important;
    font-weight: 600;
    text-decoration: none;
}

.card-footer a:hover,
.card-footer a:focus {
    text-decoration: underline;
}

/* -------------------------------
   Überschriften
-------------------------------- */

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

/* -------------------------------
   Sonstiges
-------------------------------- */

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

a:hover {
    text-decoration: underline;
}

/* Abstände für den Content-Bereich */
.mt-4 {
    margin-top: 2rem !important;
}

.site-footer.mt-4 {
    margin-top: auto !important;
}

/* Fade-in-Animation für Seiteninhalt */
.container {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Formular-Design (Evaluation Form)
   ================================ */

form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

form h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

form p {
    color: var(--text-color); /* vorher: var(--secondary-color) (#fff) */
    margin-bottom: 0.5rem;
}

/* Kleiner Erklärungstext in Formularen etwas dezenter */
form p.small {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-left: 0.5rem;
    margin-top: -0.2rem;
    margin-bottom: 0.6rem;
}

/* Small inline forms (e.g. dashboard action buttons) */
form.form-inline-plain {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/* Make sure inner text in inline forms is not styled like big forms */
form.form-inline-plain h2,
form.form-inline-plain p {
    margin: 0;
}


/* Labels unverändert, aber etwas Abstand nach unten für bessere Lesbarkeit */
label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.6rem 0 0.2rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Optional: Gruppierung für Radio/Checkbox-Blöcke */
.form-group {
    padding: 0.6rem 0 0.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-group:last-of-type {
    border-bottom: none;
}

/* Radio/Checkbox visuell konsistent */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--primary-color);
    transform: scale(1.12);
    cursor: pointer;
}

/* Textarea sichtbarer Rahmen + Fokus */
textarea {
    width: 100%;
    min-height: 110px;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    margin-top: 0.4rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: #ffffff;
    color: var(--text-color);
    transition: all 0.18s ease-in-out;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36,53,92,0.15);
}

/* Submit-Button unverändert, kleine Optimierung beim Fokus */
button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.6rem;
    margin-top: 1.5rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

button[type="submit"]:focus-visible {
    outline: 3px solid rgba(255,237,0,0.6);
    outline-offset: 2px;
}

/* ================================
   Hero Section (Startseite)
   ================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fll-navy) 0%, #1a4d8f 50%, var(--fll-red) 100%);
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* NEW: zentrierter Block für Datum + Ort */
.hero-info {
    display: flex;
    justify-content: center;
}

.hero-info-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Abstand wird über Margins gesteuert */
}

/* Abstand zwischen "Darmstadt 2026" und Datum */
.hero-subtitle {
    margin-bottom: 1.5rem;
}

/* Datum – größer + gleicher Abstand nach oben/unten */
.hero-date {
    font-size: 2rem;      /* Datum größer */
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;   /* gleicher Abstand wie von H2 zum Datum */
}

.hero-location {
    text-align: center;
    line-height: 1.4;
    font-size: 1.3rem;
}

.hero-location-sub {
    font-size: 1.3rem;
}

.hero-cta .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ================================
   Hover Effects
   ================================ */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.sponsor-card {
    transition: all 0.3s ease;
    background-color: #fff;
}

.sponsor-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--fll-yellow) !important;
}

/* ================================
    Responsive Adjustments
    ================================ */

/* Smaller, tighter nav links on large screens */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;     /* smaller text */
        padding-top: 0.60rem;   /* less vertical padding */
        padding-bottom: 0.60rem;
        line-height: 1.2;       /* avoid tall line breaks */
    }
}

/* Compact hamburger menu on small screens */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;      /* slightly smaller text */
        padding-top: 0.35rem;    /* less vertical padding */
        padding-bottom: 0.35rem;
        line-height: 1.2;
    }

    /* prevent the collapse from eating too much vertical space */
    .navbar-collapse {
        max-height: calc(100vh - 3.5rem); /* adjust if your navbar is taller */
        overflow-y: auto;
    }
}


@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-info {
        font-size: 0.9rem;
    }
}