@font-face {
    font-family: 'CursorGothic';
    src: url('../fonts/CursorGothic-Regular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'CursorGothic';
    src: url('../fonts/CursorGothic-Bold.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
    font-style: normal;
}

/*
@font-face {
    font-family: 'CursorGothic';
    src: url('../fonts/CursorGothic-Italic.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'CursorGothic';
    src: url('../fonts/CursorGothic-BoldItalic.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
    font-style: italic;
}
*/

:root {
    --panel-bg: #ffffff;
    --page-bg: #f2f1ed;
    --text-color: #26251e;
    --muted: oklab(0.263085 -0.00231467 0.0124746 / 0.64);
    --accent: #cb4000;
    --border: #e0e4ec;
    --radius: 12px;
    --shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, "Helvetica Neue", "Roboto", "CursorGothic", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust:100%;
    tab-size:4;
    font-size: 100%;
    line-height:1.5;
    font-feature-settings:var(--default-font-feature-settings,normal);
    font-variation-settings:var(--default-font-variation-settings,normal);
    -webkit-tap-highlight-color:transparent;
}

html, body {
    overflow-x: hidden;
}

body {
    background: var(--page-bg);
    color: var(--text-color);
    margin: 0;
    font-family: -apple-system, "Helvetica Neue", "Roboto", "CursorGothic", system-ui, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}


.skip-link {
    position: absolute;
    left: -999px;
    top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #000;
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
}
 

button:focus-visible,
button.btn-link[type="submit"]:focus-visible,
a:focus-visible {
    outline: 2px solid oklab(0.263085 -0.00231467 0.0124746 / 0.64);
    outline-offset: 2px; /* Abstand zwischen Element und Outline */
}

textarea:focus,
input:focus,
select:focus,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
[type="reset"]:focus-visible, 
[type="submit"]:focus-visible {
    outline: 2px solid oklab(0.263085 -0.00231467 0.0124746 / 0.64);
    outline-offset: -2px; 
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

h1,h2,h3,h4,h5,h6 {
    letter-spacing: -0.025rem;
}

.login-card {
    background: var(--panel-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: min(400px, 100%);
    padding: 2.5rem;
    margin: 0 auto;
    transform: translateY(calc(50vh - 50%));
}

.login-card h1 {
    margin-top: 0;
    font-size: 1.75rem;
}

.login-card p {
    color: var(--muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    opacity: 0.92;
}

.error {
    background: #ffe8e8;
    color: rgb(162, 36, 36);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 1580px;
    margin: 0 auto 2rem !important;
    display: block;
}

.success {
    background: #e0f7ec;
    color: #0f7b3f;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 1580px;
    margin: 0 auto 2rem !important;
    display: block;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* Badge-Styles */
.badge {
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
}

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


h1 {
    font-size: 2em;
    margin: 0.675em 0;
    letter-spacing: -0.025rem;
    line-height: 1.125;
}

h2 {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    margin-block: 0.875em;
    letter-spacing: -0.0125rem;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-block: 0.625rem;
  }

h4 {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-block: 0.5rem;
}

h5 {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-block: 0.5rem;
}

p {
    display: block;
    font-size: 1em;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

@media (max-width: 960px) {
    html {
        font-size: 90%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
    h1 {
        font-size: 1.5em;
        margin: 1em 0;
    }
    h2 {
        font-size: 1.25em;
        margin-block: 0.75em;
    }
    p {
        font-size: 0.875em;
        margin-block-start: 0.875em;
        margin-block-end: 0.875em;
    }
    .not-show-below-768 {
        display: none !important;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 80%;
    }
}

@media (max-width: 420px) {
    html {
        font-size: 75%;
    }
    h1 {
        font-size: 1.25em;
    }
    h2 {
        font-size: 1.125em;
        margin-block: 0.675em;
    }
    p {
        font-size: 0.75em;
        margin-block-start: 0.75em;
        margin-block-end: 0.75em;
    }
    .not-show-below-420 {
        display: none !important;
    }
    .login-card {
        max-width: none;
        width: 100vw;
        height: 100vh;
        border: none;
        border-radius: 0;
    }
}