:root
{
    /* Farben */
    --color-paper: #f4efe6;
    --color-paper-light: #fbf8f2;
    --color-paper-dark: #e8e0d1;
    --color-ink: #1c2420;
    --color-ink-soft: #4a514c;
    --color-muted: #7d7a6f;
    --color-line: #d6ccb9;
    --color-green: #1f6b45;
    --color-green-dark: #13432b;
    --color-green-light: #d5e8dc;
    --color-on-green: #fbf8f2;
    --color-error: #b3261e;
    --color-error-light: #f9dedc;

    /* Typografie */
    --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1.125rem;
    --text-lg: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    --text-2xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem);
    --text-display: clamp(3rem, 1.6rem + 6.4vw, 7.6rem);

    /* Abstände & Layout */
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
    --section-space: clamp(5rem, 3rem + 8vw, 11rem);
    --container: 84rem;
    --radius: 0.5rem;

    /* Illustrations-Look */
    --stroke: 2px solid var(--color-ink);
    --shadow-offset: 5px 5px 0 var(--color-ink);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

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

body
{
    margin: 0;
    background-color: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Feine Papierstruktur */
body::before
{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4
{
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

p
{
    margin: 0;
}

a
{
    color: inherit;
}

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

::selection
{
    background: var(--color-green);
    color: var(--color-on-green);
}

:focus-visible
{
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
}

/* ---------- Hilfsklassen ---------- */

.container
{
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.eyebrow
{
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
}

.eyebrow::before
{
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--color-green);
}

.vertical-text
{
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
}

.serif-italic
{
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

/* ---------- Buttons ---------- */

.button
{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    border: var(--stroke);
    border-radius: 999px;
    background: var(--color-paper-light);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: var(--shadow-offset);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}

.button:hover
{
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--color-ink);
}

.button:active
{
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--color-ink);
}

.button--green
{
    background: var(--color-green);
    color: var(--color-on-green);
}

.button--ghost
{
    background: transparent;
    box-shadow: none;
}

.button--ghost:hover
{
    background: var(--color-paper-light);
    box-shadow: var(--shadow-offset);
}

.button svg
{
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.25s var(--ease);
}

.button:hover svg
{
    transform: translateX(3px);
}

/* ---------- Geometrische Akzente ---------- */

.shape
{
    position: absolute;
    pointer-events: none;
}

.shape--circle
{
    width: 1.1rem;
    aspect-ratio: 1;
    border: var(--stroke);
    border-radius: 50%;
}

.shape--dot
{
    width: 0.7rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-green);
}

.shape--square
{
    width: 1rem;
    aspect-ratio: 1;
    background: var(--color-ink);
}

.shape--plus
{
    width: 1.4rem;
    aspect-ratio: 1;
    background:
        linear-gradient(var(--color-ink), var(--color-ink)) center / 100% 2px no-repeat,
        linear-gradient(var(--color-ink), var(--color-ink)) center / 2px 100% no-repeat;
}

.shape--triangle
{
    width: 1.4rem;
    aspect-ratio: 1;
    background: var(--color-green);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shape--half
{
    width: 3rem;
    height: 1.5rem;
    border-radius: 3rem 3rem 0 0;
    background: var(--color-green);
}

/* ---------- Scroll-Reveal ---------- */

.js .reveal
{
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible
{
    opacity: 1;
    transform: none;
}

@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;
    }

    .js .reveal
    {
        opacity: 1;
        transform: none;
    }
}
