@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap');

:root {
    --bg: #F2F2F2;
    --block-bg: white;
    --red: rgb(255, 80, 80);
    --blue: rgb(0,156,217);
    --overlay: rgba(255,255,255,0.6);
    --text: #09131a;
    --inv-text: #d8e6ef;
    --bg-card: #d9d7d1;
    --gray: #dee2e6;
    --theme-primary: #125EA9;
    --theme-secondary: #01a3dc;
    --aeht-bg: #f8f9fb;
    --aeht-card: #ffffff;
    --aeht-border: #e9edf2;
    --aeht-text: #0f172a;
    --aeht-muted: #64748b;
    --aeht-primary: #0f172a;
    --aeht-accent: #fb923c;
    --aeht-accent-2: #f59e0b;
    --aeht-shadow: 0 8px 20px rgba(2, 8, 23, 0.06);
    --aeht-radius: 1.25rem;
}
html[data-bs-theme="dark"] {
    --bg: rgb(33,37,41);
    --block-bg: rgb(42,48,54);
    --red: rgb(143, 59, 59);
    --blue: rgb(0,76,152);
    --overlay: rgba(25,25,25,0.6);
    --text: #d8e6ef;
    --inv-text: #09131a;
    --bg-card: rgb(39, 47, 56);
    --gray: #495057;
    --theme-primary: #01a3dc;
    --theme-secondary: #125EA9;
}

.tile-kicker{
    display:inline-block; font-weight:700; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
    padding:.25rem .6rem; border-radius:999px;
    background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
    margin-bottom:.5rem;
}

.competitioncard h2, .winnercard h2, .competitioncard p, .winnercard p {
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* smooth zoom on hover for banner cards */
.competitioncard img,
.winnercard img {
    transition: transform 0.6s ease, filter 0.6s ease;
    transform-origin: center center;
}

.competitioncard:hover img,
.winnercard:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.navcard {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.navcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navigation-header h2 {
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.navigation-header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.navigation-header small {
    color: #6b7280; /* subtle gray */
    font-size: 0.9rem;
    line-height: 1.4;
}

.navigation-header {
    margin-top: 2rem; /* space above the section */
    margin-bottom: 1rem; /* tighter spacing below, no large gap */
}

.navigation-header h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a1a; /* warm near-black for readability */
}

.navigation-header small {
    color: #6b7280; /* Bootstrap’s muted gray tone */
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Hero */
.hero-modern {
    position: relative;
    min-height: 56vh;
    display: grid;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--aeht-border);
}
.hero-modern::before{
    content:"";
    position:absolute; inset:0;
    background:
            linear-gradient(180deg, rgba(255,255,255,0.75) 100%, rgba(255,255,255,0.88) 80%, rgba(248,249,251,1) 100%),
            linear-gradient(120deg, rgba(251,146,60,0.1), rgba(245,158,11,0.08));
    backdrop-filter: blur(2px);
}
.hero-inner{
    position: relative;
    z-index: 1;
}
.hero-logo{
    width: 200px; height: 200px; object-fit: contain;
    border-radius: 1rem;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--aeht-border);
    box-shadow: var(--aeht-shadow);
}
.hero-title{
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-pill{
    display:inline-flex; gap:.5rem; align-items:center;
    padding:.5rem .75rem;
    border-radius: 999px;
    border:1px solid var(--aeht-border);
    background: #fff;
    color: var(--aeht-muted);
    font-weight:600; font-size:.8rem;
}
.latest-banner {
    border: 1px solid #e5e7eb; /* light gray border */
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: var(--aeht-shadow);
    border-radius: var(--aeht-radius);
}

.latest-badge {
    background: #ffffff;
    color: #111827; /* near black */
    border: 1px solid #e5e7eb;
    font-weight: 600;
}

.carousel-locked-height{
    min-height: 120px;
}
.carousel-color-invert .carousel-control-next-icon,
.carousel-color-invert .carousel-control-prev-icon{
    filter: invert(1) grayscale(1);
}

html[data-bs-theme="light"] .theme-text-dark,
html[data-bs-theme="dark"] .theme-text-light {
    display: none;
}
html[data-bs-theme="light"] .dark-line,
html[data-bs-theme="dark"] .light-line  {
    display: none;
}

.bg-block {
    background-color: var(--block-bg) !important;
}

.bg-card {
    background-color: var(--bg-card);
}

.text {
    color: var(--text);
}

.text-inverse {
    color: var(--inv-text);
}

.social-icons {
    color: var(--text);
}

.theme-toggle {
    font-size: 40px;
}

/*.bg-normal {*/
/*    background-color: var(--bg);*/
/*}*/

.bg-nav {
    background-color: var(--bg);
}

.bg-theme-primary {
    background-color: var(--theme-primary);
}

.bg-theme-secondary {
    background-color: var(--theme-secondary);
}

.border-double {
    border: double;
}

* {
    font-family: "Roboto Slab", serif;
}

body {
    background-color: var(--bg);
    overflow-x: hidden;
}

h1 {
    font-size: 26px;
    font-weight: 700;
}

h3 {
    font-size: 14px;
    font-weight: 700;
}

p {
    font-size: 14px;
    font-weight: 400;
}

blockquote {
    font-size: 21px;
    font-weight: 400;
}

pre {
    font-size: 13px;
    font-weight: 400;
}

.profile-table td {
    width: calc(100% / 4);
}

.navbar-logo {
    width: 5.5em;
}

.navbar-logo-admin {
    width: 3em;
}

.navbar-title {
    font-size: 4rem;
}

.navbar-feedback {
    width: 5em;
}

.teams-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.teams-button {
    display: flex;
}

.teams-inputs {
    font-size: 1.2em;
}

.text-xx-large {
    font-size: xx-large;
}

.text-large {
    font-size: large;
}

.hidden {
    display: none;
}

/*.font1rem {*/
/*    font-size: 1rem;*/
/*}*/

/*.font15rem {*/
/*    font-size: 1.5rem;*/
/*}*/

/*.font125rem {*/
/*    font-size: 1.25rem;*/
/*}*/

/*.font3rem {*/
/*    font-size: 3rem;*/
/*}*/

/*.font4rem {*/
/*    font-size: 4rem !important;*/
/*}*/

/*.font6rem {*/
/*    font-size: 6rem;*/
/*}*/

/*.font2rem {*/
/*    font-size: 2rem !important;*/
/*}*/

.font25rem {
    font-size: 2.5rem;
}

.stronger {
    font-weight: bolder;
}

.homepage-button {
    min-height: 220px;
    border-radius: 15px;
    background-color: #125EA9;
}

.homepage-button-text {
    font-size: 2.8rem;
}

.info-block {
    background-color: var(--block-bg);
    border-radius: 15px;
}

.floorplan-form {
    display: inline-block;
}

.floorplan-buttons {
    margin: 0.5rem;
}

.country-flag-small {
    width: 40px;
    height: 25px;
    margin-bottom: 10px;

}
.country-flag-medium {
    width: 59px;
    height: 37px;
    margin-bottom: 10px;
}
.swiss-flag {
    border: none !important;
}
.form-container {
    width: 29em;
    background-color: white;
    border-radius: 15px;
}
.extra-info-block {
    font-size: 2.5rem;
}
.side-program-block {
    border: 1px solid lightgray;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}
.side-program-block-description {
    font-size: 2rem;
    text-align: left;
}
.float-right {
    float:right;
}
.width45em {
    width:45em;
}
.center {
    text-align: center;
    margin: auto 0;
}
.sf-toolbar, .sf-minitoolbar {
    /*display: none !important;*/
}
.text-aeht-info {
    color: #125EA9
}

.admincards .card {
    min-width: 20%;
}

.hero {
    height: 70vh;
    background-position: center;
}

nav {
    height: 10vh;
}

.logo {
    height: 8vh;
}

.info {
min-height: 20vh;
}

.infobox {
    animation: infoflash 2s linear 0.3s 1 forwards;
}

.info .badge {
    font-size: 1rem;
}

.info .latestinfo {
    font-size: 2.5rem;
}

.hero-img {
    height: 50%;
}

.sticky-scroll {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
}

.text-wrap-balance {
    text-wrap: balance;
}

.competitioncard {
    background-image: url('../img/navigation/competition.jpg');
    background-size: 100%;
    background-position: center;
    transition-duration: 0.3s;
}

.competitioncard:hover {
    background-size: 105%;
}

.winnercard {
    background-image: url('../img/navigation/winners.png');
    background-size: 100%;
    background-position: center;
    transition-duration: 0.3s;
}

.winnercard:hover {
    background-size: 105%;
}

.cardoverlaybg {
    background-color: var(--overlay) !important;
}

.d-flex .nav-a {
    min-width: 25%;
}

.navcard {
    height: 200px !important;
}

.w-15 {
    width: 15%;
}

.accordion-button-text {
    font-size: 1.5rem;
}

.location-card {
    cursor: pointer;
    height: 200px;
}

.cl {
    aspect-ratio: 1/1;
    text-align: center;
    position: relative;
}
.cl .card-img {
    transition-duration: 0.3s;
}

.cl .overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition-duration: 0.3s;
    cursor: pointer;
}

.overlay > .overlay-title {
    background: var(--overlay);
}

.overlay > .overlay-body {
    transition-duration: 0.3s;
    opacity: 0;
}

.cl:hover > .overlay {
    opacity: 100%;
    background: var(--overlay);
}

.cl:hover > .overlay > .overlay-body {
    opacity: 100%;
}

.appbtns {
    max-width: 20%;
}

#airport:target {
    animation: infoflash 1s linear 1s 1 forwards;
}

@keyframes infoflash {
    0% {
        background-color: initial;
    }
    20% {
        background-color: var(--blue);
    }
}

@media screen and (max-width: 992px) {
    .hero-img {
        height: 25%;
    }

    nav {
        height: initial;
    }

    .info .badge {
        font-size: 2rem;
    }

    .info .latestinfo {
        font-size: 3rem;
    }

    .cardoverlaybg {
        height: 100%;
    }

    .competitioncard .card-title {
        font-size: 3rem;
    }

    .accordion-button-text {
        font-size: 2.5rem;
    }

    h5 {
        font-size: 2rem !important;
    }

    .aehteventcard-body .card-text {
        font-size: 2rem;
    }

    .competitionmodal {
        max-width: 100% !important;
        width: 90% !important;
    }

    /* FONTS */
    /*.font075rem-lg-max {*/
    /*    font-size: 0.75rem !important;*/
    /*}*/

    /*.font1rem-lg-max {*/
    /*    font-size: 1rem !important;*/
    /*}*/

    /*.font125rem-lg-max {*/
    /*    font-size: 1.25rem !important;*/
    /*}*/

    /*.font15rem-lg-max {*/
    /*    font-size: 1.5rem !important;*/
    /*}*/

    /*.font2rem-lg-max {*/
    /*    font-size: 2rem !important;*/
    /*}*/

    /*.font25rem-lg-max {*/
    /*    font-size: 2.5rem !important;*/
    /*}*/

    /*.font3rem-lg-max {*/
    /*    font-size: 3rem !important;*/
    /*}*/

    /*.font4rem-lg-max {*/
    /*    font-size: 4rem !important;*/
    /*}*/

    /*.font5rem-lg-max {*/
    /*    font-size: 5rem !important;*/
    /*}*/

    .fw-bold-lg-max {
        font-weight: bold;
    }

    .social-icons {
        font-size: 35px !important;
        justify-content: space-between;
    }

    .appbtns {
        max-width: 100%;
        width: 90% !important;
    }
}

@media screen and (min-width: 768px) {
    .w-md-15 {
        width: 15% !important;
    }
}

@media screen and (max-width: 768px) {
    .daily-program-border-md-max {
        border-left: none !important;
        border-top: 3px solid var(--gray) !important;
    }

    /* FONTS */
    /*.font075rem-md-max {*/
    /*    font-size: 0.75rem !important;*/
    /*}*/

    /*.font1rem-md-max {*/
    /*    font-size: 1rem !important;*/
    /*}*/

    /*.font125rem-md-max {*/
    /*    font-size: 1.25rem !important;*/
    /*}*/

    /*.font15rem-md-max {*/
    /*    font-size: 1.5rem !important;*/
    /*}*/

    /*.font2rem-md-max {*/
    /*    font-size: 2rem !important;*/
    /*}*/

    /*.font25rem-md-max {*/
    /*    font-size: 2.5rem !important;*/
    /*}*/

    /*.font3rem-md-max {*/
    /*    font-size: 3rem !important;*/
    /*}*/

    /*.font4rem-md-max {*/
    /*    font-size: 4rem !important;*/
    /*}*/

    /*.font5rem-md-max {*/
    /*    font-size: 5rem !important;*/
    /*}*/

    .fw-bold-md-max {
        font-weight: bold;
    }
}

@media screen and (max-width: 576px) {
    .daily-program-border-sm-max {
        border-left: none !important;
        border-top: 3px solid var(--gray) !important;
    }

    .hero-logo {
        width: 140px; height: 140px;
    }

    /* FONTS */
    /*.font075rem-sm-max {*/
    /*    font-size: 0.75rem !important;*/
    /*}*/

    /*.font1rem-sm-max {*/
    /*    font-size: 1rem !important;*/
    /*}*/

    /*.font125rem-sm-max {*/
    /*    font-size: 1.25rem !important;*/
    /*}*/

    /*.font15rem-sm-max {*/
    /*    font-size: 1.5rem !important;*/
    /*}*/

    /*.font2rem-sm-max {*/
    /*    font-size: 2rem !important;*/
    /*}*/

    /*.font25rem-sm-max {*/
    /*    font-size: 2.5rem !important;*/
    /*}*/

    /*.font3rem-sm-max {*/
    /*    font-size: 3rem !important;*/
    /*}*/

    /*.font4rem-sm-max {*/
    /*    font-size: 4rem !important;*/
    /*}*/

    /*.font5rem-sm-max {*/
    /*    font-size: 5rem !important;*/
    /*}*/

    .fw-bold-sm-max {
        font-weight: bold;
    }
}

.social-icons {
    font-size: 35px;
}

.pwamodal-dialog {
    margin-top:20vh;
}

.trophy-gold {
    color: gold;
}
.trophy-silver {
    color: silver;
}
.trophy-bronze {
    color: #CD7F32;
}

.carousel-control-next {
    filter: invert(100%) !important;
}

.carousel-control-prev {
    filter: invert(100%) !important;
}

html[data-bs-theme="dark"] {
    /* make your global UI vars flip, too */
    --aeht-text: #e5e7eb;
    --aeht-muted: #cbd5e1;
    --aeht-border: #2b3036;
    --aeht-card: #0f172a;
    --aeht-bg:   #0b1220;
}

/* Hero: use a DARK gradient instead of the light one */
html[data-bs-theme="dark"] .hero-modern::before{
    background:
            linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 70%),
            linear-gradient(120deg, rgba(251,146,60,0.08), rgba(245,158,11,0.06));
    backdrop-filter: blur(2px);
}

/* Hero text colors in dark mode */
html[data-bs-theme="dark"] .hero-title {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
html[data-bs-theme="dark"] .hero-subtitle {
    color: rgba(255,255,255,.85);
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* Hero pill in dark mode */
html[data-bs-theme="dark"] .hero-pill{
    background: rgba(0,0,0,.5);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

/* “Latest” banner and badge in dark mode */
html[data-bs-theme="dark"] .latest-banner{
    border-color: rgba(255,255,255,.12);
    background: linear-gradient(180deg, #111827 0%, rgba(17,24,39,.92) 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
html[data-bs-theme="dark"] .latest-badge{
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

/* Keep banner copy readable over images */
html[data-bs-theme="dark"] .competitioncard h2,
html[data-bs-theme="dark"] .winnercard h2,
html[data-bs-theme="dark"] .competitioncard p,
html[data-bs-theme="dark"] .winnercard p {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

html[data-bs-theme="dark"] .navigation{ color:#f3f4f6; }
html[data-bs-theme="dark"] .modal-btn {
    color: #f3f4f6; /* near white text */
    border-color: rgba(255, 255, 255, 0.4);
    background-color: transparent;
}

/* hover: brighten a bit */
html[data-bs-theme="dark"] .modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
html[data-bs-theme="dark"] .navcard{
    background:#1f2937; /* slate-800 */
    border:1px solid rgba(255,255,255,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
html[data-bs-theme="dark"] .navcard h3{ color: rgba(255,255,255,.95); }
html[data-bs-theme="dark"] .navcard p{  color: rgba(255,255,255,.75); }

html[data-bs-theme="dark"] .icon-wrap{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}
html[data-bs-theme="dark"] .navcard:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

html[data-bs-theme="dark"] .travel-btn {
    color: #fff !important;
}

html[data-bs-theme="dark"] .travel-btn-two {
    color: rgba(255,255,255,0.7) !important;
}
