/*
  extra.css — docs.difference.team (Corporate Design 2025)
  -------------------------------------------------------
  Based on Dynamic DiFFerence Corporate Design Guide 2025
  Primary color: #7945A5
*/


@font-face {
    font-family: "fustat";
    src: url("/assets/Fustat-Regular.ttf") format("truetype");
}


:root {
    --md-text-font: "fustat";
    --brand: #3a1d55;
    /* Primärfarbe */
    --brand-dark: #3a1d55;
    /* Dunkelviolett */
    --accent: #00B3FF;
    /* Akzent Blau */
    --accent-light: #BEE2F2;
    /* Layer Hellblau */
    --dark-bg: #29235C;
    /* Dunkelblau Hintergrund */
    --light-bg: #F1F6F8;
    /* Hellgrau Hintergrund */
    --success: #32D146;
    /* Erfolg */
    --error: #F41D24;
    /* Fehler */

    --brand-gradient: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);

    --surface-0: #ffffff;
    --surface-1: var(--light-bg);
    --surface-2: #fdfdfd;
    --surface-3: #f5f5f5;
    --border-1: rgba(0, 0, 0, .08);
    --shadow-1: 0 2px 10px rgba(10, 14, 29, .06), 0 1px 3px rgba(10, 14, 29, .04);
    --shadow-2: 0 12px 32px rgba(10, 14, 29, .08), 0 2px 6px rgba(10, 14, 29, .06);

    --text-1: #0b1021;
    --text-2: #2a3145;
    --text-3: #5d6785;

    --md-primary-fg-color: var(--brand);
    --md-accent-fg-color: var(--accent);
    --md-default-fg-color: var(--text-1);
    --md-default-fg-color--light: var(--text-2);
    --md-default-fg-color--lighter: var(--text-3);
    --md-default-bg-color: var(--surface-0);
}

[data-md-color-scheme="slate"] {
    --surface-0: var(--dark-bg);
    --surface-1: #1b1f36;
    --surface-2: #242845;
    --surface-3: #30355a;
    --border-1: rgba(255, 255, 255, .08);
    --text-1: #ffffff;
    --text-2: #d0d4e0;
    --text-3: #a6aec5;

    --md-primary-fg-color: var(--brand);
    --md-accent-fg-color: var(--accent);
    --md-default-fg-color: var(--text-1);
    --md-default-fg-color--light: var(--text-2);
    --md-default-fg-color--lighter: var(--text-3);
    --md-default-bg-color: var(--surface-0);
}

/* LOGO */
.md-header__button.md-logo img {
    height: 2.2rem;
    width: auto;
}

/*

/* TYPOGRAPHY */
:where(.md-typeset) {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--md-default-fg-color);
    font-family: 'Fustat', sans-serif;
}

:where(.md-typeset) h1,
:where(.md-typeset) h2 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

:where(.md-typeset) h1 {
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    line-height: 1.1;
}

:where(.md-typeset) h2 {
    font-size: clamp(1.4rem, 1.2vw + 1rem, 2.1rem);
    line-height: 1.2;
}

:where(.md-typeset) strong {
    color: var(--brand);
}

/* HIGHLIGHT IN HEADINGS */
.highlight {
    background: var(--accent-light);
    padding: .1em .25em;
    border-radius: 4px;
}

/* HEADER & NAV */
.md-header {
    backdrop-filter: saturate(140%) blur(6px);
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-1);
}

.md-header__topic:first-child {
    font-weight: 500;
}

.md-tabs__link--active {
    color: #fff;
    font-weight: 600;
}

.md-nav--primary .md-nav__item {
    margin: .25rem 0;
}

.md-nav--primary .md-nav__link {
    padding: .2rem .4rem;
    border-radius: 6px;
    color: var(--text-2);
    transition: background .2s, color .2s;
}

.md-nav--primary .md-nav__link:hover {
    background: var(--accent-light);
    color: var(--brand-dark);
}

.md-nav--primary .md-nav__link--active {
    background: var(--brand);
    color: #fff;
    font-weight: 500;
}

/* FOOTER */
.md-footer {
    font-size: .7rem;
    border-top: 1px solid var(--border-1);
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.md-footer__inner,
.md-footer__list {
    display: flex;
    text-align: center;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.md-footer__list li {
    list-style: none;
}

.md-footer__inner a {
    color: #fff;
    text-decoration: none;
}

.md-footer__inner a:hover {
    color: var(--accent);
}


.md-footer-meta__inner {
    display: flex;
    justify-content: space-between;
    /* oder center, falls du alles zentrieren willst */
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.md-footer-meta {
    width: 100%;
    background-color: var(--brand);
}

.md-footer-copyright,
.md-social {
    margin: 0;
    padding: 0;
    color: #998f8f;
}


/* LINKS */
:where(.md-typeset) a:not(.md-button) {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0% 100%/0 2px no-repeat;
    transition: background-size .25s ease, color .25s ease;
}

:where(.md-typeset) a:not(.md-button):hover {
    color: var(--md-accent-fg-color);
    background-size: 100% 2px;
}

/* BUTTONS (unten links eckig) */
.md-typeset .md-button {
    border-radius: 12px;
    border-bottom-left-radius: 0;
    padding-inline: 1rem;
    padding-block: .55rem;
    font-weight: 600;
    box-shadow: var(--shadow-1);
    /*transition: transform .08s ease, box-shadow .2s ease;*/
}

.md-typeset .md-button--primary {
    background: var(--brand);
    color: #fff;
    border: 0;
}

.md-typeset .md-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

/* ADMONITIONS */
:where(.admonition, details) {
    border: 1px solid var(--border-1);
    border-radius: 14px;
    background: var(--surface-1);
}

/* CODE BLOCKS */
:where(.md-typeset pre) {
    border-radius: 14px;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border-1);
    background: var(--surface-2);
}

:where(.md-typeset code) {
    border-radius: .4rem;
}

/* TABLES */
.md-typeset table:not([class]) {
    border: 1px solid var(--border-1);
    border-radius: 12px;
    overflow: hidden;
}

.md-typeset table:not([class]) tbody tr:nth-child(odd) {
    background: var(--accent-light);
}

/* IMAGES */
:where(.md-typeset) img {
    border-radius: 12px;
}

/* KBD */
:where(.md-typeset) kbd {
    border-radius: 8px;
    border: 1px solid var(--border-1);
    box-shadow: var(--shadow-1);
}

/* BADGES */
.badge {
    display: inline-block;
    padding: .2rem .5rem;
    font-size: .72rem;
    border-radius: 999px;
    border: 1px solid var(--border-1);
    background: var(--accent-light);
    color: var(--brand-dark);
}

/* SCROLLBARS */
:root {
    scrollbar-color: var(--brand-dark);
}

.md-sidebar__scrollwrap {
    scrollbar-color: var(--brand-dark) !important;
    overflow-y: scroll !important;
    scrollbar-width: thin;
}

/* WebKit Scrollbar-Styling */
.md-sidebar__scrollwrap::-webkit-scrollbar {
    width: 8px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
}

*::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--brand);
}

*::-webkit-scrollbar-track {
    background: var(--brand-dark);
}

/* MOBILE */
@media (max-width: 720px) {
    .md-content__inner {
        max-width: 100%;
    }

    .md-header {
        backdrop-filter: none;
    }
}