:root {
    --global-font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
    --global-bg: #f4f7fb;
    --global-surface: #ffffff;
    --global-surface-soft: #f8fafc;
    --global-text: #0f172a;
    --global-muted: #475569;
    --global-border: #d1d5db;
    --global-border-strong: #9ca3af;
    --global-link: #0f4c81;
    --global-link-hover: #0b3760;
    --global-button: #111827;
    --global-button-hover: #1f2937;
    --global-focus: #60a5fa;
    --global-radius: 0.6rem;
    --global-radius-lg: 0.8rem;
    --global-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--global-font);
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 40%),
        linear-gradient(180deg, #f8fbff 0%, var(--global-bg) 100%);
    color: var(--global-text);
    line-height: 1.5;
}

main,
.page,
.shell,
.container {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 1rem;
}

section,
details,
article,
fieldset,
.panel,
.card {
    background: var(--global-surface);
    border: 1px solid var(--global-border);
    border-radius: var(--global-radius-lg);
    box-shadow: var(--global-shadow);
}

section,
details,
article,
.panel,
.card {
    padding: 1rem;
}

details {
    overflow: hidden;
}

details > summary {
    cursor: pointer;
    list-style: none;
    padding: 0.9rem 1rem;
    font-weight: 600;
    color: var(--global-text);
    background: var(--global-surface-soft);
}

details > summary::-webkit-details-marker,
details > summary::marker {
    display: none;
}

details > :not(summary) {
    padding: 1rem;
}

a,
a:visited {
    color: var(--global-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
    color: var(--global-link-hover);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--global-focus);
    outline-offset: 2px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--global-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--global-border);
    border-radius: 0.5rem;
    background: var(--global-surface);
    color: var(--global-text);
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--global-focus);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
    outline: none;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: var(--global-button);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

button:hover,
.btn:hover {
    background: var(--global-button-hover);
    transform: translateY(-1px);
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

button.secondary,
.btn.secondary,
.button-outline {
    background: transparent;
    color: var(--global-text);
    border-color: var(--global-border-strong);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--global-surface);
    border: 1px solid var(--global-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

th,
td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--global-border);
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

th {
    background: var(--global-surface-soft);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: 0;
}

code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
    background: #e2e8f0;
    color: #0f172a;
}

small,
.muted {
    color: var(--global-muted);
}

ul,
ol {
    padding-left: 1.25rem;
}

p {
    margin: 0 0 0.75rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.75rem;
    line-height: 1.2;
    color: var(--global-text);
}

.status,
.note,
.message,
.alert {
    padding: 0.8rem 0.95rem;
    border-radius: 0.55rem;
    border: 1px solid var(--global-border);
    background: var(--global-surface-soft);
}

@media (max-width: 800px) {
    main,
    .page,
    .shell,
    .container {
        width: 100%;
        padding: 0.75rem;
    }

    button,
    .btn {
        width: 100%;
    }
}

@media (min-width: 1800px) {
    main,
    .page,
    .shell,
    .container {
        width: min(100%, 1560px);
        padding: 1.25rem;
    }
}

breadcrumb {
    margin: 0 0 14px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    border-bottom: 1px solid var(--global-border);
    background: var(--global-surface-soft);
    color: var(--global-muted);
    font-size: 0.8rem;
}

breadcrumb,
breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.breadcrumb-separator {
    display: inline-block;
    opacity: 0.75;
    width: 20px;
    text-align: center;
}

breadcrumbs a,
breadcrumbs span {
    color: inherit !important;
}

body.theme-dark breadcrumbs {
    background: #111827;
    border-color: #334155;
    color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
}

body.theme-dark breadcrumbs .breadcrumb-separator {
    opacity: 0.6;
}

body.theme-dark breadcrumbs a {
    color: #e2e8f0 !important;
}

body.theme-dark breadcrumbs a:hover,
body.theme-dark breadcrumbs a:focus-visible {
    color: #ffffff !important;
}

body.theme-dark breadcrumbs span {
    color: inherit !important;
}

@media (max-width: 800px) {
    .sm-1 { width: calc(100% / 12 * 1) !IMPORTANT; }
    .sm-2 { width: calc(100% / 12 * 2) !IMPORTANT; }
    .sm-3 { width: calc(100% / 12 * 3) !IMPORTANT; }
    .sm-4 { width: calc(100% / 12 * 4) !IMPORTANT; }
    .sm-5 { width: calc(100% / 12 * 5) !IMPORTANT; }
    .sm-6 { width: calc(100% / 12 * 6) !IMPORTANT; }
    .sm-7 { width: calc(100% / 12 * 7) !IMPORTANT; }
    .sm-8 { width: calc(100% / 12 * 8) !IMPORTANT; }
    .sm-9 { width: calc(100% / 12 * 9) !IMPORTANT; }
    .sm-10 { width: calc(100% / 12 * 10) !IMPORTANT; }
    .sm-11 { width: calc(100% / 12 * 11) !IMPORTANT; }
    .sm-12 { width: calc(100% / 12 * 12) !IMPORTANT; }
}

@media (min-width: 800px) and (max-width: 1200px) {
    .md-1 { width: calc(100% / 12 * 1) !IMPORTANT; }
    .md-2 { width: calc(100% / 12 * 2) !IMPORTANT; }
    .md-3 { width: calc(100% / 12 * 3) !IMPORTANT; }
    .md-4 { width: calc(100% / 12 * 4) !IMPORTANT; }
    .md-5 { width: calc(100% / 12 * 5) !IMPORTANT; }
    .md-6 { width: calc(100% / 12 * 6) !IMPORTANT; }
    .md-7 { width: calc(100% / 12 * 7) !IMPORTANT; }
    .md-8 { width: calc(100% / 12 * 8) !IMPORTANT; }
    .md-9 { width: calc(100% / 12 * 9) !IMPORTANT; }
    .md-10 { width: calc(100% / 12 * 10) !IMPORTANT; }
    .md-11 { width: calc(100% / 12 * 11) !IMPORTANT; }
    .md-12 { width: calc(100% / 12 * 12) !IMPORTANT; }
}

@media (min-width: 1200px) {
    .lg-1 { width: calc(100% / 12 * 1) !IMPORTANT; }
    .lg-2 { width: calc(100% / 12 * 2) !IMPORTANT; }
    .lg-3 { width: calc(100% / 12 * 3) !IMPORTANT; }
    .lg-4 { width: calc(100% / 12 * 4) !IMPORTANT; }
    .lg-5 { width: calc(100% / 12 * 5) !IMPORTANT; }
    .lg-6 { width: calc(100% / 12 * 6) !IMPORTANT; }
    .lg-7 { width: calc(100% / 12 * 7) !IMPORTANT; }
    .lg-8 { width: calc(100% / 12 * 8) !IMPORTANT; }
    .lg-9 { width: calc(100% / 12 * 9) !IMPORTANT; }
    .lg-10 { width: calc(100% / 12 * 10) !IMPORTANT; }
    .lg-11 { width: calc(100% / 12 * 11) !IMPORTANT; }
    .lg-12 { width: calc(100% / 12 * 12) !IMPORTANT; }
}

.skill {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* A = sanft grün */
.skill-a {
    background: rgba(46, 204, 113, 0.25);
    color: #1e7e34;
}

/* B = sanft gelb */
.skill-b {
    background: rgba(241, 196, 15, 0.25);
    color: #8a6d00;
}

/* C = sanft rot */
.skill-c {
    background: rgba(231, 76, 60, 0.25);
    color: #7a1f17;
}

.skill-x {
    background: rgba(189, 195, 199, 0.25);
    color: #2c3e50;
}