@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist[wght].ttf');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-Italic[wght].ttf');
    font-weight: 100 900;
    font-style: italic;
}

:root {
    --color-accent: #7f00b2;
    --color-highlight: #ffffff;

    --color-bg-primary: #fafafa;
    --color-bg-secondary: #f0f0f0;
    --color-bg-tertiary: #e0e0e0;

    --color-text-primary: #0c0c0c;
    --color-text-secondary: #4a4a4a;
    --color-text-tertiary: #6a6a6a;

    --color-button-hover: #e8e8e8;
    --color-button-active: #d4d4d4;

    --color-status-ok: #11ba98;
    --color-status-warning: #edaf05;
    --color-status-alert: rgb(255, 0, 81);

    --color-status-erwartung: #f4c544;
    --color-status-anfrage: #2f97ff;
    --color-status-auftrag: #00ccbe;
    --color-status-abgeschlossen: #8466ff;

    --shadow-button-active: 0px 1px 6px rgba(0,0,0,0.1);
    --shadow-card-hover: 0px 2px 8px rgba(0,0,0,0.1);

    --transition-button: all ease-in-out 80ms;
    --transition-card: all ease-in-out 150ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-highlight: #040506;
        --color-bg-secondary: #1e2026;
        --color-bg-primary: #16171b;
        --color-bg-tertiary: #343740;

        --color-text-primary: #f4f4f4;
        --color-text-secondary: #cecece;
        --color-text-tertiary: #a7a7a7;

        --color-button-hover: #15171b;
        --color-button-active: #15161a;

        --shadow-button-active: 0px 1px 6px rgba(0,0,0,0.3);
        --shadow-card-hover: 0px 2px 8px rgba(0,0,0,0.3);
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.scroll-container {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html{
    font-size: 15px;
    font-weight: 450;
    background-color: var(--color-bg-secondary);
}

html, body {
    font-family: 'Geist', sans-serif;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    height: 100svh;
}

body{
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    font-size: .9rem;
}


main{
    background-color: var(--color-bg-secondary);
    border-radius: 16px;
    max-height: 100svh;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* WebKit-Browser (Chrome, Safari, Edge Chromium) */
main::-webkit-scrollbar {
    display: none;
}

.page{
    padding: 2rem;
}


.page-header {
    background-color: var(--color-bg-secondary);
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 3rem;
    align-items: center;
}

.page-toolbar {
    margin-left: auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: end;
}

.buttonwrapper{
    display: flex;
    gap: .5rem;
}


a{
    color: inherit;
    text-decoration: none;
}

h1{
    font-size: 1.5rem;
}

.card{
    padding: 1rem;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-card);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-primary);
    cursor: pointer;
}

.card:hover {
    color: var(--color-text-primary);
    background-color: var(--color-highlight);
    box-shadow: var(--shadow-card-hover);
}

.email-card {
    will-change: transform, opacity;
    touch-action: pan-y;
}

.email-card.swiping {
    user-select: none;
}

/* Search X-Button entfernen */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.page-summary{
    padding: 1rem;
    display: flex;
    justify-content: end;
}

.section-divider{
    padding: 1rem;
}