/* ==========================================================================
   Tischlerei Busch — Industrial Precision
   base.css: Reset, CSS-Variablen, Typografie-Skala
   ========================================================================== */

:root {
    /* Farben — natuerliche, gedaempfte Industrial-Palette.
       Akzent liegt zwischen Logo-Rot (#E8291C) und Brief-Orange (#D9641E).
       Kontrast: Akzent-auf-Graphit und Graphit-auf-Akzent = 4.67:1 (AA). */
    --primary: #1A1D21;
    --steel: #4A5058;
    --accent: #D8491E;
    --accent-dark: #B23B18;
    --bg: #F3F4F1;
    --surface: #FFFFFF;
    --text: #1A1D21;
    --text-muted: #5B6168;
    --text-on-dark: #F3F4F1;
    --text-on-dark-muted: #AEB3B8;
    --border: #DEDFDA;
    --radius: 2px;
    --radius-pill: 999px;

    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Typo-Skala, Verhaeltnis 1.333 (perfect fourth), Basis 18px */
    --fs-body: 1.125rem;
    --fs-small: 0.9375rem;
    --fs-h4: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-h3: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-h2: clamp(2rem, 1.6rem + 1.8vw, 2.66rem);
    --fs-h1: clamp(2.75rem, 2rem + 3.2vw, 4.74rem);
    --fs-stat: clamp(2.6rem, 2rem + 2.6vw, 4rem);

    --header-h: 84px;
    --container: min(1400px, 92vw);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: 'tnum' 1;
}

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

.icon {
    width: 1.4em;
    height: 1.4em;
    flex: 0 0 auto;
    vertical-align: middle;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--primary);
    line-height: 1.1;
    margin: 0 0 0.5em;
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    margin: 0 0 1.1em;
    max-width: 68ch;
    text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

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

ul, ol {
    padding-left: 1.3em;
}

.tb-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 12px 20px;
    z-index: 1000;
}

.tb-skip-link:focus {
    left: 12px;
    top: 12px;
}

.tb-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.9em;
}

.tb-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: middle;
}

.tb-container {
    width: var(--container);
    margin-inline: auto;
}

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