@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

html {
    --pst-font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pst-font-family-heading: var(--pst-font-family-base);
}

html[data-theme="light"] {
    --pst-color-primary: #000000;
    --pst-color-secondary: #fde703;
    --pst-color-accent: #fde703;
    --pst-color-link: #000000;
    --pst-color-link-hover: #333333;
    --pst-color-background: #ffffff;
    --pst-color-surface: #f1f1ee;
    --pst-color-on-background: #ffffff;
    --pst-color-on-surface: #000000;
}

html[data-theme="light"] .bd-header {
    background: var(--pst-color-secondary);
}

html[data-theme="light"] .bd-header .navbar-nav > li > a,
html[data-theme="light"] .bd-header .navbar-nav > li > button,
html[data-theme="light"] .bd-header .navbar-brand,
html[data-theme="light"] .bd-header .navbar-brand:hover,
html[data-theme="light"] .bd-header .navbar-brand:focus,
html[data-theme="light"] .bd-header .theme-switch-button,
html[data-theme="light"] .bd-header .search-button__button,
html[data-theme="light"] .bd-header .version-switch-button__button,
html[data-theme="light"] .bd-header .btn,
html[data-theme="light"] .bd-header .nav-link {
    color: #000000;
}

html[data-theme="light"] .bd-header .navbar-nav > li > a:hover,
html[data-theme="light"] .bd-header .navbar-nav > li > button:hover,
html[data-theme="light"] .bd-header .nav-link:hover,
html[data-theme="light"] .bd-header .theme-switch-button:hover,
html[data-theme="light"] .bd-header .search-button__button:hover,
html[data-theme="light"] .bd-header .version-switch-button__button:hover {
    color: #333333;
}

html[data-theme="dark"] {
    --pst-color-primary: #fde703;
    --pst-color-secondary: #fde703;
    --pst-color-accent: #fde703;
    --pst-color-background: #111111;
    --pst-color-surface: #1b1b1b;
    --pst-color-text-base: #f5f5f5;
    --pst-color-text-muted: #c9c9c9;
    --pst-color-border: #3a3a3a;
    --pst-color-link: #fde703;
    --pst-color-link-hover: #fde703;
    --pst-color-on-background: #000000;
    --pst-color-on-surface: #f5f5f5;
}

html[data-theme="dark"] .bd-header {
    background: #111111;
    border-bottom: 1px solid #2a2a2a;
}

html[data-theme="dark"] .bd-header .navbar-nav > li > a,
html[data-theme="dark"] .bd-header .navbar-nav > li > button,
html[data-theme="dark"] .bd-header .navbar-brand,
html[data-theme="dark"] .bd-header .navbar-brand:hover,
html[data-theme="dark"] .bd-header .navbar-brand:focus,
html[data-theme="dark"] .bd-header .theme-switch-button,
html[data-theme="dark"] .bd-header .search-button__button,
html[data-theme="dark"] .bd-header .version-switch-button__button,
html[data-theme="dark"] .bd-header .btn,
html[data-theme="dark"] .bd-header .nav-link {
    color: #f5f5f5;
}

html[data-theme="dark"] .bd-header .navbar-nav > li > a:hover,
html[data-theme="dark"] .bd-header .navbar-nav > li > button:hover,
html[data-theme="dark"] .bd-header .nav-link:hover,
html[data-theme="dark"] .bd-header .theme-switch-button:hover,
html[data-theme="dark"] .bd-header .search-button__button:hover,
html[data-theme="dark"] .bd-header .version-switch-button__button:hover {
    color: #fde703;
}

html[data-theme="dark"] .bd-header .navbar-brand img {
    filter: invert(1);
}

html[data-theme="dark"] .bd-header .navbar-icon-links a,
html[data-theme="dark"] .bd-header button,
html[data-theme="dark"] .bd-header .btn {
    color: #f5f5f5;
}

html[data-theme="dark"] .bd-header .navbar-icon-links a:hover,
html[data-theme="dark"] .bd-header button:hover,
html[data-theme="dark"] .bd-header .btn:hover {
    color: #fde703;
}

html[data-theme="dark"] .bd-header svg,
html[data-theme="dark"] .bd-header i {
    fill: currentColor;
    color: currentColor;
}

.hero-panel {
    margin: 0 0 2rem;
    border: 1px solid var(--pst-color-border);
    background:
        linear-gradient(90deg, var(--pst-color-secondary) 0, var(--pst-color-secondary) 0.45rem, transparent 0.45rem),
        linear-gradient(180deg, var(--pst-color-surface), #ffffff);
}

html[data-theme="dark"] .hero-panel {
    background:
        linear-gradient(90deg, var(--pst-color-secondary) 0, var(--pst-color-secondary) 0.45rem, transparent 0.45rem),
        linear-gradient(180deg, #1b1b1b, #141414);
}

html[data-theme="dark"] .hero-logos {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .hero-logo {
    opacity: 1;
    filter: invert(1);
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(18rem, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
}

.hero-main {
    min-width: 0;
}

.hero-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--pst-color-border);
    background: rgba(255, 255, 255, 0.55);
}

.hero-logo {
    display: block;
    height: auto;
    max-width: 100%;
    opacity: 0.9;
    background: transparent;
}

.hero-logo--dark {
    display: none;
}

.hero-logo--liu {
    max-height: 2.4rem;
}

.hero-logo--fhnw {
    max-height: 2.8rem;
}

html[data-theme="dark"] .hero-logos {
    background: transparent !important;
    border-color: transparent;
    padding: 0;
}

html[data-theme="dark"] .hero-logo {
    opacity: 1;
    background: transparent !important;
    box-shadow: none;
}

html[data-theme="dark"] .hero-logo--light {
    display: none;
}

html[data-theme="dark"] .hero-logo--dark {
    display: block;
}

.hero-kicker,
.hero-side-label,
.path-card__label {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
}

.hero-copy h1::after {
    content: "";
    display: block;
    width: 5rem;
    height: 0.25rem;
    margin-top: 0.9rem;
    background: var(--pst-color-secondary);
}

.hero-lead {
    max-width: 58ch;
    margin: 1rem 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.65rem 1rem;
    border: 1px solid #000000;
    text-decoration: none;
    font-weight: 700;
}

.hero-action:hover {
    text-decoration: none;
}

.hero-action--primary {
    background: #000000;
    color: #ffffff;
}

.hero-action--primary:hover {
    background: #1f1f1f;
    color: #ffffff;
}

.hero-action--secondary {
    background: transparent;
    color: #000000;
}

.hero-action--secondary:hover {
    background: var(--pst-color-secondary);
    color: #000000;
}

html[data-theme="dark"] .hero-action {
    border-color: #fde703;
}

html[data-theme="dark"] .hero-action--primary {
    background: #fde703;
    color: #000000;
}

html[data-theme="dark"] .hero-action--primary:hover {
    background: #fff07a;
    color: #000000;
}

html[data-theme="dark"] .hero-action--secondary {
    color: #fde703;
}

html[data-theme="dark"] .hero-action--secondary:hover {
    background: #fde703;
    color: #000000;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--pst-color-border);
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
}

html[data-theme="dark"] .hero-badge {
    background: #202020;
    color: #f5f5f5;
}

.hero-side {
    align-self: start;
    padding: 1rem 1rem 1rem 1.15rem;
    border: 1px solid var(--pst-color-border);
    background: #ffffff;
}

html[data-theme="dark"] .hero-side {
    background: #202020;
}

.hero-points {
    margin: 0;
    padding-left: 1.15rem;
}

.hero-points li + li {
    margin-top: 0.8rem;
}

.info-grid,
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.info-card,
.path-card {
    padding: 1.25rem;
    border: 1px solid var(--pst-color-border);
    background: #ffffff;
}

html[data-theme="dark"] .info-card,
html[data-theme="dark"] .path-card {
    background: #1f1f1f;
}

.info-card h2,
.path-card h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.path-card h2 a {
    color: inherit;
    text-decoration: none;
}

.path-card h2 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--pst-color-secondary);
    text-decoration-thickness: 0.18rem;
}

.path-card__label {
    color: #555555;
}

.release-banner {
    display: inline-block;
    margin: 0 0 2rem;
    padding: 0.7rem 1rem;
    border-left: 0.35rem solid var(--pst-color-secondary);
    background: var(--pst-color-surface);
    font-weight: 700;
}

.release-banner p {
    margin: 0;
}

.site-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.site-announcement__link {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-announcement__link:hover {
    text-decoration: underline;
}

.site-announcement__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

html[data-theme="dark"] .path-card__label {
    color: #c9c9c9;
}

@media (max-width: 900px) {
    .hero-shell,
    .info-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        padding: 1.2rem;
    }

    .hero-copy h1 {
        max-width: none;
    }
}
