/* ================================
   Global Styles – FLL Darmstadt 2026
   ================================ */

:root {
    /* FIRST LEGO LEAGUE Farben (Benutzer-Anforderung) */
    --fll-navy: #24355c; /* dunkles Blau */
    /*--fll-red: #ed1c25;  /* Rot */
    --fll-red: #ff0000;
    --fll-yellow: #ffed00; /* Gelb */
    --fll-black: #000000;
    --fll-red-dark: #e3000b;

    --primary-color: var(--fll-navy);
    --secondary-color: #ffffff;
    --background-color: #f8f9fa;
    --text-color: #333;
    --muted-text: #6c757d;

    --accent-color: var(--fll-red);
    --accent-color-hover: var(--fll-red-dark);
    --highlight-color: var(--fll-yellow);

    --border-radius: 16px;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.12);

    --transition: all 0.25s ease;

    --topbar-gradient: linear-gradient(90deg, rgba(36,53,92,1) 0%, rgba(237,28,37,1) 100%);
    --hero-gradient: linear-gradient(120deg, #24355c, #ed1c25, #ffed00, #24355c);

    --header-ir-stripe:#740D79;
    --card-ir-background:#7C1F78;
    --footer-ir-background:#760778;
    --footer-ir-stripe:#943899;
}

/* Base layout + typography */
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;

    /* sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

/* Topbar */
.topbar {
    position: relative;
    z-index: 10;
    /*background-image: var(--topbar-gradient);*/
    background-image: none;
    background-color: var(--header-ir-stripe);
    color: rgba(255,255,255,0.96);
    font-size: 0.95rem;
    padding: 0.36rem 0;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Keep topbar content tight + aligned (Bootstrap utility classes are present, this is a safety net) */
.topbar .topbar-items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.topbar a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}
.topbar a:hover {
    color: #fff;
    text-decoration: none;
}
.topbar .login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff !important;
    text-decoration: none !important;
}
.topbar .login-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* Topbar icon buttons (WhatsApp/Viber/Facebook/Instagram) */
.topbar-items {
    gap: 14px;
}
.topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    transition: transform 0.16s cubic-bezier(.2,.8,.2,1), background-color 0.16s ease;
}
.topbar-icon img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    display: block;
}
.topbar-icon i {
    font-size: 1.15rem;
    line-height: 1;
}
.topbar-icon:hover,
.topbar-icon:focus {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}
.topbar-viber-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    /* viberDark.png is black -> invert to white on colored backgrounds */
    filter: invert(1) brightness(2);
}

/* Navbar */
.site-navbar {
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    padding-top: 0px;      /* CHANGED: was 4px */
    padding-bottom: 0px;   /* CHANGED: was 4px */
    overflow: visible;
}
.navbar-brand {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}
.site-logo {
    outline: none;
    height: 258px;
    width: auto;
    margin-right: 12px;
    position: relative;
    top: -40px;
    z-index: 20;
    display: block;
    transition: transform 0.16s cubic-bezier(.2,.8,.2,1);
}

/* Hover effect for logo (match FLL) */
.site-logo:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Nav links (match FLL) */
.site-navbar .navbar-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}
.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.55rem 1.05rem !important; /* CHANGED: was 0.85rem 1.1rem */
    line-height: 1.1;                    /* CHANGED: reduce navbar height */
    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: #ffffff !important;
    background-color: var(--fll-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(9,30,66,0.06);
}

/* Make toggler icon visible */
.navbar-toggler-icon {
    filter: none;
}

/* No underline in header links (Topbar + Navbar) */
.site-navbar .nav-link,
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link:active,
.site-navbar .navbar-brand,
.site-navbar .navbar-brand:hover,
.topbar a,
.topbar a:hover,
.topbar a:focus {
    text-decoration: none !important;
}

/* Reduce overlap on very small screens */
@media (max-width: 576px) {
    .site-navbar {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .site-logo {
        height: 84px;   /* CHANGED: was 56px */
        top: -10px;     /* CHANGED: was 0 (keep small overlap into red) */
        margin-right: 8px;
    }

    .site-navbar .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.8rem !important;
    }
}

@media (min-width: 1200px) {
    .site-navbar .nav-link {
        font-size: 1.35rem;
        padding: 1rem 1.4rem !important;
    }
}

/* Content wrapper (matches FLL layout rhythm) */
.page-content-wrapper {
    max-width: 1800px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero section (animated gradient) */
.hero-section {
    border-radius: var(--border-radius);
}
.hero-bg {
    background: var(--card-ir-background);
    background-size: 300% 300%;
    /*animation: gradientShift 12s ease infinite;*/
    opacity: 1;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cards */
.card {
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card .card-title {
    color: var(--primary-color);
    font-weight: 700;
}
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Buttons (FLL style) */
.btn {
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-danger:hover {
    background-color: var(--accent-color-hover);
    border-color: var(--accent-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(237,28,37,0.22);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: rgba(36,53,92,0.35);
}
.btn-outline-primary:hover {
    background-color: rgba(36,53,92,0.10);
    border-color: rgba(36,53,92,0.50);
    transform: translateY(-1px);
}

/* Footer */
.site-footer {
    /*background-color: var(--fll-navy);*/
    background-color: var(--footer-ir-background);
    color: var(--secondary-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    margin-top: auto;
}
.site-footer h4 {
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
}
.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    /*background: var(--fll-red);*/
    background: var(--footer-ir-stripe);
}
.footer-bottom a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}
.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer social icons */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    transition: transform 0.16s cubic-bezier(.2,.8,.2,1), background-color 0.16s ease;
    color: rgba(255,255,255,0.92);
}
.footer-social i {
    font-size: 1.15rem;
    line-height: 1;
}
.footer-social img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    display: block;
}
.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
    text-decoration: none;
}
.footer-viber-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    /* viberDark.png is black -> invert to white on colored backgrounds */
    filter: invert(1) brightness(2);
}

/* ================================
   Kindergarten overrides (static site)
   ================================ */

/* Bootstrap 4 compatibility used in old HTML */
.font-weight-bold { font-weight: 700 !important; }

/* Keep paragraph rhythm similar to the FLL pages */
.hero-text { font-size: 1.05rem; }

/* Responsive Google Maps iframe (Kontakt page) */
.map-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 16px;
}
.map-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Brand text in navbar */
.brand-text{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--primary-color);
}