


/* =========================================
   Zentrale Einstellungen
   ========================================= */

:root {
    color-scheme: light;

    --font-family: "Manrope", Arial, sans-serif;

    --color-primary: #d60926;
    --color-primary-hover: #b80720;

    --color-text: #141820;
    --color-muted: #626873;
    --color-background: #ffffff;
    --color-surface: #f6f7f8;
    --color-border: #e4e7eb;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    --site-gutter: clamp(24px, 7vw, 140px);
    --hero-button-height: 54px;
    --content-width: 1200px;
    --page-gutter: clamp(20px, 4vw, 32px);

    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;

    --shadow-card: 0 8px 24px rgb(0 0 0 / 6%);
}


/* =========================================
   Grundregeln
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1rem;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: break-word;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--color-primary);
    color: #fff;
}


/* =========================================
   Typografie
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--space-4);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.125rem;
}

h5,
h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 var(--space-4);
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.875em;
}

address {
    font-style: normal;
}

blockquote {
    margin: var(--space-5) 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    border-left: 3px solid var(--color-primary);
}

hr {
    height: 0;
    margin: var(--space-6) 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}


/* =========================================
   Links und Tastaturfokus
   ========================================= */

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--color-primary-hover);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}


/* =========================================
   Bilder und Medien
   ========================================= */

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

iframe {
    max-width: 100%;
    border: 0;
}

figure {
    margin: 0 0 var(--space-5);
}

figcaption {
    margin-top: var(--space-2);
    color: var(--color-muted);
    font-size: 0.875rem;
}


/* =========================================
   Listen
   Navigation setzt eigene Listenregeln.
   ========================================= */

ul,
ol {
    margin: 0 0 var(--space-4);
    padding-inline-start: 1.5rem;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 0 var(--space-4);
}


/* =========================================
   Formulare
   ========================================= */

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: inherit;
}

button,
input,
select,
textarea {
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-background);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

fieldset {
    min-width: 0;
    margin: 0 0 var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

legend {
    padding-inline: var(--space-2);
    font-weight: 700;
}


/* =========================================
   Tabellen
   ========================================= */

table {
    width: 100%;
    margin-bottom: var(--space-5);
    border-collapse: collapse;
    text-align: start;
}

th,
td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

th {
    background: var(--color-surface);
    font-weight: 700;
}

caption {
    margin-bottom: var(--space-3);
    text-align: start;
    font-weight: 700;
}

/* Bei breiten Tabellen um die Tabelle legen. */
.table-scroll {
    max-width: 100%;
    overflow-x: auto;
}


/* =========================================
   Allgemeine Hilfsklassen
   ========================================= */

.container {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--page-gutter);
}

.text-muted {
    color: var(--color-muted);
}

.text-center {
    text-align: center;
}

/* Unsichtbar, aber für Screenreader zugänglich. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Tastatur-Link zum Hauptinhalt. */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 20px;
    border-radius: var(--radius-small);
    background: var(--color-text);
    color: #fff;
    transform: translateY(calc(-100% - 20px));
}

.skip-link:focus {
    transform: translateY(0);
    color: #fff;
}


/* =========================================
   Reduzierte Bewegung
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}