:root {
    --color-primary: #2b7cd3;
    --color-primary-dark-1: #2368b0;
    --color-primary-dark-2: #1d568f;
    --color-primary-light-1: #4e96e0;
    --color-primary-light-2: #73ace8;
}

/* Globale Links */
a {
    color: #4ea1ff;
}

/* OneSystems Navbar */
#navbar {
    min-height: 56px;
    background: #2f3742 !important;
    border-bottom: 1px solid #46505d !important;
}

#navbar .item,
#navbar a,
#navbar summary {
    color: #e6edf5 !important;
}

#navbar .item:hover,
#navbar a:hover,
#navbar summary:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.06) !important;
}

#navbar .svg {
    color: #e6edf5 !important;
    fill: currentColor !important;
}

#navbar-logo {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 1.2rem !important;
    padding-right: 1.4rem !important;
}

#navbar-logo:hover {
    background: transparent !important;
}

#navbar-logo img {
    height: 42px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain;
    content: url("/assets/img/logo-light.svg");
}

/* Dark Themes */
html[data-theme="forgejo-dark"] #navbar-logo img,
html[data-theme="gitea-dark"] #navbar-logo img,
html[data-theme="arc-green"] #navbar-logo img {
    content: url("/assets/img/logo-dark.svg");
}

/* Fallback, wenn Browser/Theme über prefers-color-scheme läuft */
@media (prefers-color-scheme: dark) {
    #navbar-logo img {
        content: url("/assets/img/logo-dark.svg");
    }
}

/* Dropdowns in der Navbar */
#navbar details.dropdown .content {
    background: var(--color-menu);
    border: 1px solid var(--color-secondary-alpha-40);
}

#navbar details.dropdown .content a {
    color: var(--color-text) !important;
}

#navbar details.dropdown .content a:hover {
    color: #ffffff !important;
    background: var(--color-primary) !important;
}

/* Buttons */
.button.primary,
.ui.primary.button,
.ui.primary.buttons .button {
    background-color: #0c2849 !important;
    border-color: #1b4b80 !important;
    color: #ffffff !important;
}

.button.primary:hover,
.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
    background-color: #12375f !important;
    border-color: #2a5b93 !important;
    color: #ffffff !important;
}

.ui.primary.button:focus,
.ui.primary.button:active {
    background-color: #12375f !important;
    color: #ffffff !important;
}

.os-hero-actions .ui.primary.button,
.os-hero-actions .ui.primary.button * {
    color: #ffffff !important;
}

.os-hero-actions .ui.button:not(.primary) {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #dbe7f5;
}

.os-hero-actions .ui.button:not(.primary):hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

/* Home */
.os-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

.os-hero {
    text-align: center;
    padding: 3rem 1rem 4rem;
}

.os-hero-logo {
    max-width: 260px;
    max-height: 120px;
    width: auto;
    height: auto;
    margin-bottom: 2rem;
    object-fit: contain;
}

.os-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.os-hero-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.5;
    color: var(--color-text-light);
}

.os-hero-actions {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.os-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}

.os-feature-card {
    border: 1px solid var(--color-secondary-alpha-40);
    border-radius: 14px;
    padding: 2rem;
    background: var(--color-box-body);
    text-align: center;
}

.os-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.os-feature-card h3 {
    margin: 0 0 0.7rem;
    color: var(--color-text);
}

.os-feature-card p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* Forgejo Default-Footer komplett ausblenden */
footer.page-footer {
    display: none !important;
}

/* Eigener OneSystems Footer */
.os-custom-footer {
    border-top: 1px solid var(--color-secondary-alpha-40);
    padding: 1.8rem 1rem 2.2rem;
    text-align: center;
    background: var(--color-body);
    color: var(--color-text);
}

.os-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.os-footer-copy {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.55rem;
}

.os-footer-links {
    color: var(--color-text-light);
}

.os-footer-links a {
    color: #4ea1ff;
    font-weight: 500;
}

.os-footer-links a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.os-footer-links span {
    margin: 0 0.3rem;
}

/* Mobile */
@media (max-width: 900px) {
    .os-feature-grid {
        grid-template-columns: 1fr;
    }

    .os-home {
        padding-top: 2.5rem;
    }

    #navbar-logo img {
        height: 36px !important;
        max-width: 210px !important;
    }
}
