
/* ==========================================================
   NÄHFIX – ZENTRALES GRUNDDESIGN
   Datei: assets/css/style.css

   Enthält:
   01 – Farbvariablen
   02 – Grundlayout
   03 – Typografie
   04 – Links
   05 – Buttons
   06 – Formulare
   07 – Bilder
   08 – Hilfsklassen
   09 – Barrierefreiheit
   10 – Druckansicht

   Navigation, Home und Footer erhalten eigene CSS-Dateien.
   ========================================================== */




/* ==========================================================
   NÄHFIX – STANDARDSCHRIFT LORA
   ========================================================== */

@font-face {
    font-family: "Lora";
    src: url("../fonts/Lora-VariableFont_wght.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

/* ==========================================================
   NÄHFIX – SCHRIFTFAMILIE CAVEAT
   ========================================================== */

@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Caveat";
    src: url("../fonts/Caveat-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}


/* ==========================================================
   01 – FARBVARIABLEN
   ========================================================== */

:root {
    --nf-tuerkis: #1bb4b9;
    --nf-gelb: #f5b120;
    --nf-gruen: #93c524;
    --nf-blau: #28a8e3;

    --nf-text: #444444;
    --nf-text-hell: #666666;

    --nf-weiss: #ffffff;
    --nf-hintergrund: #ffffff;
    --nf-flaeche: #f7f7f5;

    --nf-rahmen: #e8e8e8;

    --nf-radius: 8px;
    --nf-radius-rund: 30px;

    --nf-abstand: 24px;
    --nf-content-breite: 1200px;
}


/* ==========================================================
   02 – GRUNDLAYOUT
   ========================================================== */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

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

    font-family: "Esteban", Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

main {
    flex: 1 0 auto;
    min-width: 0;
}

.nf-container {
    width: min(
        calc(100% - 32px),
        var(--nf-content-breite)
    );

    margin-inline: auto;
}

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


/* ==========================================================
   03 – TYPOGRAFIE
   ========================================================== */

body {
    font-family: "Lora", Georgia, serif;
    letter-spacing: 0.2px;
    line-height: 1.7;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--nf-text);
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

h1 {
    font-size: clamp(28px, 4vw, 38px);
}

h2 {
    font-size: clamp(24px, 3vw, 30px);
}

h3 {
    font-size: 22px;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

small {
    font-size: 0.875rem;
}


/* ==========================================================
   04 – LINKS
   ========================================================== */

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

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

a:hover {
    color: var(--nf-gelb);
}

a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==========================================================
   05 – BUTTONS
   NÄHFIX – GLOBALER BUTTONSTANDARD
   ========================================================== */

.nf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 9px 22px;

    border: 1px solid var(--button-farbe, var(--nf-tuerkis));
    border-radius: 6px;

    background-color: #ffffff;
    color: var(--button-farbe, var(--nf-tuerkis));

    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease;
}

/* HOVER, FOKUS UND AKTIV */

.nf-button:hover,
.nf-button:focus-visible,
.nf-button.ist-aktiv {
    background-color: var(--button-farbe, var(--nf-tuerkis));
    color: var(--nf-weiss);
}

.nf-button:focus-visible {
    outline: 2px solid var(--button-farbe, var(--nf-tuerkis));
    outline-offset: 3px;
}

/* GELBE VARIANTE */

.nf-button--gelb {
    --button-farbe: var(--nf-gelb);
}

/* OUTLINE-VARIANTE */

.nf-button--outline {
    background-color: transparent;
}

/* DEAKTIVIERT */

.nf-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* REDUZIERTE ANIMATIONEN */

@media (prefers-reduced-motion: reduce) {
    .nf-button {
        transition: none;
    }
}

/* ==========================================================
   06 – FORMULARE
   ========================================================== */

.nf-input,
.nf-select,
.nf-textarea {
    display: block;
    width: 100%;
    max-width: 100%;

    padding: 10px 14px;

    border: 1px solid var(--nf-rahmen);
    border-radius: var(--nf-radius);

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

    font: inherit;
    font-size: 15px;
}

.nf-input,
.nf-select {
    min-height: 44px;
}

.nf-textarea {
    min-height: 120px;
    resize: vertical;
}

.nf-input:focus,
.nf-select:focus,
.nf-textarea:focus {
    border-color: var(--nf-tuerkis);
    outline: 2px solid var(--nf-tuerkis);
    outline-offset: 2px;
}

.nf-label {
    display: block;
    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 600;
}

.nf-hinweis {
    color: var(--nf-text-hell);
    font-size: 13px;
}


/* ==========================================================
   07 – BILDER
   ========================================================== */

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

.nf-bild-rund {
    border-radius: 50%;
}

.nf-bild-ecken {
    border-radius: var(--nf-radius);
}


/* ==========================================================
   08 – HILFSKLASSEN
   ========================================================== */

.nf-text-mitte {
    text-align: center;
}

.nf-text-rechts {
    text-align: right;
}

.nf-versteckt {
    display: none !important;
}

.nf-flaeche {
    background-color: var(--nf-flaeche);
}

.nf-trennlinie {
    height: 1px;
    border: 0;
    background-color: var(--nf-rahmen);
}


/* ==========================================================
   09 – BARRIEREFREIHEIT
   ========================================================== */

:focus-visible {
    outline: 2px solid var(--nf-tuerkis);
    outline-offset: 3px;
}

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


/* ==========================================================
   10 – DRUCKANSICHT
   ========================================================== */

@media print {

    body {
        display: block;
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .nf-nicht-drucken {
        display: none !important;
    }

    a {
        color: #000000;
        text-decoration: none;
    }

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

    h1,
    h2,
    h3 {
        break-after: avoid;
    }

    p,
    img {
        break-inside: avoid;
    }
}

