:root {
    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: 'Segoe UI Semibold', 'Segoe UI', Roboto, sans-serif;
    --font-size-base: clamp(16px, 2vw, 18px);
    --font-size-h1: clamp(32px, 6vw, 64px);
    --font-size-h2: clamp(24px, 4vw, 32px);

    --line-height: 1.6;

    /* Colors */
    --color-text: #222;
    --color-bg: #fff;
    --color-secondary: #666;
    --color-border: #ddd;

    /* Spacing */
    --space-outer: 32px;
    --space-inner: 16px;

    /* Borders & Radius */
    --border-radius: 4px;
    --border-width: 1px;

    --max-width: 1128px;
    --padding: 1rem;

    /* grid space */
    --grid-width: 72px;
    --grid-space: 24px;
}

@media (max-width: 768px) {
    header.container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px; /* optional for spacing */
    }

    header.container.outer-space {
        margin-bottom: 0;
    }

    .flex.col {
        flex-direction: column;
        width: 100%;
    }

    .flex-y-end,
    .flex-x-center {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .flex {
        flex-wrap: wrap;
    }

    .top-right {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

@media print {
    header.container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .flex.col {
        flex-direction: column; /* keep column if needed, or change to row */
        width: auto !important;
    }

    .flex-y-end,
    .flex-x-center {
        align-items: center !important;
        justify-content: center !important;
    }

    .flex {
        flex-wrap: nowrap !important;
    }

    body {
        color: #000; /* Optional: enforce print-friendly colors */
        background: none; /* Avoid wasting ink */
    }

    a {
        text-decoration: underline;
    }

    .flag {
        opacity: 0;
    }

    .header-contact {
        order: 2 !important;
    }

    .header-lang {
        order: 1 !important;
        opacity: 0 !important;
    }
}

@media (prefers-color-scheme: dark) {
  html {
    filter: invert(1) hue-rotate(180deg);
    background: #000;
  }

  svg.no-invert {
    filter: invert(1) hue-rotate(180deg);
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.2;
}

h2 {
    font-size: var(--font-size-h2);
    line-height: 1.3;
}

p {
    margin-bottom: var(--space-md);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--padding);
}

.fit-width {
  flex: 1;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex-direction: column;
}

.flex-x-center {
    justify-content: center;
}

.flex-x-end {
    justify-content: end;
}

.flex-y-center {
    align-items: center;
}

.flex-y-end {
    align-items: end;
}

header.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.category {
    border-radius: 4px;
    padding: 16px;
    flex: 1 1 300px;
    min-width: 280px;
}

.cat-border {
    border: 2px solid var(--color-border);
}

.category h2 {
    margin-bottom: 24px;
    align-items: center;
    display: flex;
}

.outer-space {
    margin-bottom: var(--space-outer);
}

.gap-4 {
    gap: var(--space-inner)
}

.item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.item div:last-child {
    text-align: right;
    min-width: 60px;
}

.secondary-color {
    color: var(--color-secondary);
}

.sub-menu {
    color: var(--color-secondary);
    font-size: 0.8rem;
    line-height: 0;
}
