/* ==========================================================================
   Dellen Diel - globale Design-Tokens, Reset, Basis-Typografie & Utilities
   Komponenten-/Sektions-spezifische Styles liegen in den jeweiligen
   .razor.css Dateien (scoped CSS).
   ========================================================================== */

:root {
    /* Marke */
    --brand: #478ac9;
    --brand-dark: #387cbd;
    --brand-darker: #2f6aa3;
    --brand-light: #adcce9;
    --brand-soft: #eaf2fa;

    /* Neutrale Töne */
    --ink: #1f2933;
    --ink-soft: #3e4c59;
    --muted: #66727f;
    --line: #e3e8ee;

    /* Flächen */
    --bg: #ffffff;
    --bg-alt: #f4f7fa;
    --surface: #ffffff;
    --dark: #292e33;
    --dark-2: #21262b;

    /* Maße */
    --container: 1180px;
    --header-h: 4.5rem;
    --radius-sm: .5rem;
    --radius: .9rem;
    --radius-lg: 1.4rem;
    --shadow-sm: 0 1px 2px rgba(31, 41, 51, .06), 0 1px 3px rgba(31, 41, 51, .08);
    --shadow: 0 10px 30px rgba(31, 41, 51, .10);
    --shadow-lg: 0 24px 60px rgba(31, 41, 51, .16);

    /* Typografie */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-head: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1rem; }

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover { color: var(--brand-darker); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

blockquote {
    margin: 0 0 1rem;
    padding: .25rem 0 .25rem 1.1rem;
    border-left: 4px solid var(--brand-light);
    color: var(--ink-soft);
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout-Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--alt { background-color: var(--bg-alt); }
.section--brand-soft { background-color: var(--brand-soft); }
.section--dark { background-color: var(--dark); color: #d7dde3; }

/* Anker-Ziele nicht hinter dem Sticky-Header verstecken */
:where(section, footer)[id] {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-head {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.section-head__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .6rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0;
}

.lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Buttons / CTAs  (eigene Namen, um Bootstrap-Kollisionen zu vermeiden)
   -------------------------------------------------------------------------- */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cta:active { transform: translateY(1px); }

.cta--primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px rgba(71, 138, 201, .35);
}

.cta--primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.cta--outline {
    background-color: transparent;
    border-color: var(--brand);
    color: var(--brand-dark);
}

.cta--outline:hover {
    background-color: var(--brand);
    color: #fff;
}

.cta--light {
    background-color: #fff;
    border-color: #fff;
    color: var(--brand-dark);
}

.cta--light:hover { background-color: var(--brand-soft); color: var(--brand-darker); }

.cta__icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    fill: currentColor;
}

/* --------------------------------------------------------------------------
   Hilfsklassen
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.text-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
