/* ===================================================================
 * blocks.css
 * Tokens, Reset, Typografie-Basis, Buttons, allgemeine Bloecke.
 * Persona p02: 4-space, hex lowercase, rem primaer, mobile-first min.
 * BEM-Stil dieses Projekts: <block>--<element> (double-dash).
 * =================================================================== */

/* -------------------------------------------------------------------
 * 1. Design Tokens
 * ----------------------------------------------------------------- */
:root {
    --primary: #006699;
    --primary-deep: #004a73;
    --accent: #ff0033;
    --accent-soft-shadow: #b0001f;
    --signal: #ffff33;
    --ink: #0a1828;
    --ink-soft: #1b2a3d;
    --muted: #5c6b7a;
    --rule: #d9e0e7;
    --paper: #f3f6f9;
    --paper-pure: #ffffff;
    /* ungenutzter Token, Reserve fuer ein spaeteres Modul */
    --accent-soft: #ffe3ea;

    --font-display: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(10, 24, 40, 0.06);
    --shadow-md: 0 6px 18px rgba(10, 24, 40, 0.08);
    --shadow-lift: 0 14px 38px rgba(10, 24, 40, 0.12);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------------
 * 2. Reset light
 * ----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--primary-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button {
    font: inherit;
    cursor: pointer;
}

ul,
ol {
    padding-left: 1.25rem;
}

/* -------------------------------------------------------------------
 * 3. Typografie
 * ----------------------------------------------------------------- */
h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.18rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 1rem;
    max-width: 68ch;
}

.lead {
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------
 * 4. Layout-Wrapper
 * ----------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.wrap--narrow {
    max-width: 880px;
}

.section {
    padding: 4rem 0;
}

.section--tight {
    padding: 2.5rem 0;
}

.section--alt {
    background: var(--paper-pure);
}

.section--ink {
    background: var(--ink);
    color: var(--paper);
}

.section--ink h2,
.section--ink h3 {
    color: var(--paper);
}

/* -------------------------------------------------------------------
 * 5. Buttons
 * ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--primary);
    color: var(--paper-pure);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    min-height: 48px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
    background: var(--primary-deep);
    color: var(--paper-pure);
}

.btn--accent {
    background: var(--accent);
}

.btn--accent:hover {
    background: var(--accent-soft-shadow);
    color: var(--paper-pure);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--ghost:hover {
    background: var(--primary);
    color: var(--paper-pure);
}

/* -------------------------------------------------------------------
 * 6. Skip link, A11y
 * ----------------------------------------------------------------- */
.a11y-skip {
    position: absolute;
    top: -120px;
    left: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--paper-pure);
    font-weight: 600;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.a11y-skip:focus {
    top: 1rem;
    outline: none;
}

/* -------------------------------------------------------------------
 * 7. Breadcrumbs
 * ----------------------------------------------------------------- */
.crumbs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.crumbs li + li::before {
    content: '/';
    margin-right: 0.4rem;
    color: var(--rule);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--primary);
}

.crumbs--current {
    color: var(--ink-soft);
}

/* -------------------------------------------------------------------
 * 8. Card-Basis
 * ----------------------------------------------------------------- */
.card {
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 1.5rem;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card--title {
    margin-top: 0;
    font-size: 1.2rem;
}

.card--meta {
    font-size: 0.84rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------
 * 9. Tables
 * ----------------------------------------------------------------- */
.tbl {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper-pure);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
}

.tbl th,
.tbl td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
}

.tbl th {
    background: var(--paper);
    font-weight: 600;
    color: var(--ink);
}

.tbl tbody tr:last-child td {
    border-bottom: 0;
}

/* -------------------------------------------------------------------
 * 10. Utilities
 * ----------------------------------------------------------------- */
.hide-mobile {
    display: none;
}

.text-accent {
    color: var(--accent);
}

.mark-signal {
    background: var(--signal);
    padding: 0 0.2em;
    border-radius: 2px;
    color: var(--ink);
}

/* -------------------------------------------------------------------
 * 11. Reduced motion
 * ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------------
 * 12. Tablet+
 * ----------------------------------------------------------------- */
@media (min-width: 768px) {
    .section {
        padding: 5.5rem 0;
    }

    .hide-mobile {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 6.5rem 0;
    }
}
