/* ==========================================================================
   Woidgalerie – Grundlage
   Uebernommen von woidfilm.gmbh: Azeret Mono + Neuropol, eine Grau-Leiter,
   Gruen nur fuer den Haupt-Knopf und den Tastatur-Rahmen.
   In Kundengalerien ersetzt die gewaehlte Hauptfarbe das Gruen und toent
   die ganze Grau-Leiter leicht ein.
   ========================================================================== */

@font-face {
    font-family: 'Azeret Mono';
    src: url('../fonts/azeretmono.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Azeret Mono';
    src: url('../fonts/azeretmono-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Neuropol';
    src: url('../fonts/neuropol.woff2') format('woff2'),
         url('../fonts/neuropol.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --akzent: #00b326;
    --akzent-text: #04140a;

    /* Grau-Leiter, leicht in Richtung der Hauptfarbe getoent */
    --ton-950: color-mix(in oklab, var(--akzent) var(--toenung-tief, 3%), #050506);
    --ton-900: color-mix(in oklab, var(--akzent) var(--toenung-tief, 3%), #0c0c0e);
    --ton-850: color-mix(in oklab, var(--akzent) var(--toenung-tief, 4%), #131316);
    --ton-800: color-mix(in oklab, var(--akzent) var(--toenung, 5%), #1a1a1e);
    --ton-700: color-mix(in oklab, var(--akzent) var(--toenung, 6%), #26262b);
    --ton-600: color-mix(in oklab, var(--akzent) var(--toenung, 7%), #35353c);
    --ton-500: color-mix(in oklab, var(--akzent) var(--toenung, 8%), #55555e);
    --ton-400: color-mix(in oklab, var(--akzent) var(--toenung, 8%), #82828c);
    --ton-300: color-mix(in oklab, var(--akzent) var(--toenung, 6%), #a8a8b0);
    --ton-200: color-mix(in oklab, var(--akzent) var(--toenung-hell, 4%), #d0d0d5);
    --ton-100: color-mix(in oklab, var(--akzent) var(--toenung-hell, 3%), #eaeaed);
    --ton-000: #ffffff;

    --schrift: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --schrift-titel: 'Neuropol', 'Azeret Mono', ui-monospace, monospace;

    --leiste: 68px;
    --abstand: clamp(76px, 10vw, 130px);
    --gasse: 14px;
    --seitenrand: clamp(16px, 5vw, 56px);
    --breite: 1320px;
    --radius: 4px;
    color-scheme: dark;
}

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

html {
    background: var(--ton-950);
    color: var(--ton-100);
    font-family: var(--schrift);
    font-size: 15px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: calc(var(--leiste) + 12px);
}

@media (min-width: 960px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background: var(--ton-950);
    overflow-x: hidden;
}

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

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ton-000);
    text-wrap: balance;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: var(--ton-500);
}

a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 3px;
    border-radius: 2px;
}

[hidden] {
    display: none !important;
}

.visuell-versteckt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.marke {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ton-400);
}

.titelschrift {
    font-family: var(--schrift-titel);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* --- Knoepfe ------------------------------------------------------------ */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0 1.25rem;
    border: 1px solid var(--ton-600);
    border-radius: var(--radius);
    background: transparent;
    font: inherit;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ton-000);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.knopf:hover {
    border-color: var(--ton-300);
}

.knopf:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.knopf--haupt {
    background: var(--akzent);
    border-color: var(--akzent);
    color: var(--akzent-text);
    font-weight: 600;
}

.knopf--haupt:hover {
    border-color: var(--akzent);
    filter: brightness(1.1);
}

.knopf--klein {
    min-height: 34px;
    padding: 0 0.8rem;
    font-size: 0.66rem;
}

.knopf--still {
    border-color: transparent;
    color: var(--ton-300);
}

.knopf--still:hover {
    border-color: var(--ton-700);
    color: var(--ton-000);
}

.knopf--gefahr:hover {
    border-color: #d9a3a3;
    color: #f0caca;
}

.knopf svg {
    width: 16px;
    height: 16px;
    flex: none;
}

/* --- Formulare ---------------------------------------------------------- */

.feld {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1.3rem;
}

.feld > span:first-child,
.feld legend {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ton-400);
}

.feld small {
    color: var(--ton-400);
    font-size: 0.74rem;
    line-height: 1.5;
}

input[type='text'],
input[type='password'],
input[type='date'],
input[type='email'],
input[type='search'],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--ton-700);
    border-radius: var(--radius);
    background: var(--ton-900);
    color: var(--ton-000);
    font: inherit;
    font-size: 0.9rem;
}

textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ton-400);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--ton-500);
}

.haken {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
    cursor: pointer;
}

.haken input {
    width: 18px;
    height: 18px;
    margin: 0.2rem 0 0;
    accent-color: var(--akzent);
    flex: none;
}

/* --- Meldungen ---------------------------------------------------------- */

.hinweis {
    padding: 0.8rem 1rem;
    border: 1px solid var(--ton-700);
    border-radius: var(--radius);
    background: var(--ton-900);
    color: var(--ton-100);
    font-size: 0.86rem;
}

.hinweis--fehler {
    border-color: #6b4a3a;
    background: #1c1410;
    color: #f0d6c6;
}

/* --- Schlichte Einzelseite (Anmeldung, Passwort, Fehler) --------------- */

.einzel {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 2rem var(--seitenrand);
}

.einzel__box {
    width: 100%;
    max-width: 400px;
}

.einzel__logo {
    display: block;
    width: 34px;
    margin-bottom: 2.4rem;
}

.einzel h1 {
    font-family: var(--schrift-titel);
    font-weight: 400;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
}

.einzel p {
    color: var(--ton-300);
    font-size: 0.9rem;
}

.einzel form {
    margin-top: 2rem;
}

.einzel .knopf--haupt {
    width: 100%;
}

.einzel__fuss {
    margin-top: 3rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ton-500);
}

.einzel__fuss a {
    color: var(--ton-400);
    text-decoration: none;
}

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

/* Verwaltung bleibt neutral grau wie woidfilm.gmbh */
:root.admin {
    --toenung: 0%;
    --toenung-tief: 0%;
    --toenung-hell: 0%;
}
