/* =========================================================
   VALOWERK
   BASE STYLES

   Globale Grundlage für:
   - Reset
   - Farben
   - Typografie
   - Abstände
   - Section-Grundstruktur
   - Accessibility
========================================================= */


/* =========================================================
   DESIGN SYSTEM
========================================================= */

:root {

    /* Farben */

    --color-background: #f2f0eb;
    --color-surface: #e8e5df;

    --color-text: #111111;
    --color-text-soft: #65635f;

    --color-line: rgba(17, 17, 17, 0.16);

    --color-accent: #ff4d00;
    --color-accent-hover: #d94100;

    --color-dark: #111111;
    --color-light: #f2f0eb;


    /* Typografie */

    --font-primary:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;


    /* Layout */

    --page-padding: clamp(20px, 4vw, 72px);

    --content-width: 1600px;


    /* Abstände */

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 120px;
    --space-xxl: 180px;


    /* Rundungen */

    --radius-small: 8px;
    --radius-medium: 16px;
    --radius-large: 28px;


    /* Animation */

    --transition-fast: 180ms ease;

    --transition-default:
        400ms cubic-bezier(0.22, 1, 0.36, 1);

}


/* =========================================================
   RESET
========================================================= */

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


html {
    scroll-behavior: smooth;
}


body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}


ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
}


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


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   DOCUMENT
========================================================= */

html {
    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-primary);

    font-size: 16px;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

    scroll-padding-top: 100px;
}


body {
    min-height: 100vh;

    background: var(--color-background);
    color: var(--color-text);

    font-family: var(--font-primary);

    font-weight: 400;
    line-height: 1.5;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


p {
    text-wrap: pretty;
}


strong {
    font-weight: 600;
}


/* =========================================================
   LINKS
========================================================= */

a {
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}


a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 5px;
}


/* =========================================================
   BUTTONS
========================================================= */

button {
    cursor: pointer;
}


/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {
    background: var(--color-accent);
    color: #ffffff;
}


/* =========================================================
   GLOBAL MAIN
========================================================= */

main {
    width: 100%;
}


/* =========================================================
   SECTION BASICS
========================================================= */

section {
    position: relative;

    width: 100%;

    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}


/* =========================================================
   SECTION HEADING

   Kleine Überschrift links,
   Nummer rechts.

   Beispiel:

   Ausgewählte Projekte                         01
   ------------------------------------------------
========================================================= */

.section-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    max-width: var(--content-width);

    margin: 0 auto;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--color-line);
}


.section-label,
.section-number {
    font-size: 0.75rem;

    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.section-label {
    color: var(--color-text);
}


.section-number {
    color: var(--color-text-soft);
}


/* =========================================================
   GENERIC CONTENT WIDTH
========================================================= */

.hero-content,
.project,
.services-intro,
.services-list,
.about-content,
.contact-content {
    width: 100%;

    max-width: var(--content-width);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    a,
    button {
        -webkit-tap-highlight-color: transparent;
    }

}