/* Weser Theme – Global Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body.admin-bar .site-header {
    top: 32px;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    /* --color-heading, nicht --color-dark: Auf den DE-RYCK-Seiten sind die
       Überschriften rot, das Blau bleibt aber Text- und Flächenfarbe. */
    color: var(--color-heading);
    margin-top: 0;
}
/* Größe/Gewicht/Line-Height von H1–H4 kommen aus typography.css */
h5, h6 {
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

/* ==========================================================
   LAYOUT-RASTER (Bootstrap-Override)
   12/8/4 Spalten · Ränder 130/24/16 · Gutter 24/16/16
   Content-Breite max. 1468px (Figma). Container = Content + 2×Rand,
   dadurch bleibt der Content bei jedem Rand exakt bei max. 1468px:
   - ≤1728px Viewport (Desktop): 130px Ränder, Content wächst bis 1468px
   - >1728px: Content bleibt 1468px zentriert, nur der Außenrand wächst
   ========================================================== */
/* Der Header klebt oben (position: sticky) – Sprungmarken sollen deshalb nicht
   unter ihm landen. Werte = Header-Höhen aus header.css. */
html {
    scroll-padding-top: 72px;
}

@media (min-width: 992px) {
    html { scroll-padding-top: 112px; }
}

.container-xl {
    max-width: calc(1468px + 2 * var(--grid-margin));
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: var(--grid-margin);
    padding-right: var(--grid-margin);
}

/* Gutter-Default nur für Rows OHNE explizite g-*-Utility,
   damit bewusste Block-Abstände (g-4/g-5/g-0) erhalten bleiben. */
.row:not([class*="g-"]) {
    --bs-gutter-x: var(--grid-gutter);
}

/* Tablet ≥768px */
@media (min-width: 768px) {
    :root { --grid-margin: 24px; --grid-gutter: 16px; }
}

/* Desktop ≥1200px */
@media (min-width: 1200px) {
    :root { --grid-margin: 130px; --grid-gutter: 24px; }
}
