@import url("./fonts.css");

/* =========================================================
   AYJUNITY
   Zentrale Stylesheet-Datei
   ========================================================= */


/* =========================================================
   1. DESIGN-TOKENS
   ========================================================= */

:root {
    --color-background: #0d1014;
    --color-background-soft: #14181d;
    --color-background-deep: #090b0e;

    --color-surface: #1a1f25;
    --color-surface-hover: #222831;
    --color-surface-dark: #11161b;

    --color-border: rgba(244, 236, 225, 0.12);
    --color-border-strong: rgba(244, 236, 225, 0.23);

    --color-text: #f4efe7;
    --color-text-muted: #c1bbb1;
    --color-text-dark: #111318;

    --color-accent: #dfa65f;
    --color-accent-light: #f1c27f;
    --color-accent-dark: #965f34;

    --color-success: #78d6a3;
    --color-warning: #e5b862;
    --color-danger: #e47d7d;

    --font-body:
        "Lora",
        Georgia,
        "Times New Roman",
        serif;

    --font-display:
        "Montserrat",
        Inter,
        Arial,
        sans-serif;

    --font-ui:
        "Montserrat",
        Inter,
        Arial,
        sans-serif;

    --font-mono:
        "Cascadia Code",
        Consolas,
        "Courier New",
        monospace;

    --container-width: 1380px;
    --header-height: 72px;

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

    --shadow-card:
        0 14px 34px rgba(0, 0, 0, 0.16);

    --shadow-card-hover:
        0 24px 54px rgba(0, 0, 0, 0.25);

    --shadow-large:
        0 30px 80px rgba(0, 0, 0, 0.28);

    --transition-fast: 160ms ease;
    --transition-normal: 240ms ease;
}


/* =========================================================
   2. RESET UND BASIS
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--color-text);

    background:
        radial-gradient(
            circle at 82% 0%,
            rgba(220, 161, 93, 0.09),
            transparent 34rem
        ),
        var(--color-background);

    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
}

body.menu-open {
    overflow: hidden;
}

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

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

button {
    color: inherit;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
figure {
    margin-top: 0;
}

p {
    color: var(--color-text-muted);
}

ul,
ol {
    padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    margin-bottom: 26px;

    font-size: clamp(3.1rem, 5vw, 5.25rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 18px;

    font-size: clamp(2.2rem, 3.8vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;

    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.018em;
}

h4 {
    margin-bottom: 10px;

    font-size: 1.12rem;
    line-height: 1.35;
}

html body,
body p,
body dd,
body blockquote,
body figcaption,
body .project-page-intro,
body .section-heading > p,
body .project-content > p,
body .inline-note {
    font-family: var(--font-body) !important;
}

body ul:not(.tag-list):not(.main-navigation) li,
body ol li {
    font-family: var(--font-body) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body .brand,
body .brand-text,
body .main-navigation,
body .main-navigation a,
body .menu-toggle,
body .button,
body .eyebrow,
body .project-type,
body .project-status,
body .project-page-tags,
body .project-link-text,
body .text-link,
body .tag-list,
body .tag-list li,
body dt,
body label,
body input,
body textarea,
body select,
body button {
    font-family: var(--font-ui) !important;
}

::selection {
    color: var(--color-text-dark);
    background: var(--color-accent-light);
}


/* =========================================================
   3. ALLGEMEINE LAYOUT-HILFEN
   ========================================================= */

.container {
    width: min(
        calc(100% - clamp(32px, 6vw, 96px)),
        var(--container-width)
    );

    margin-inline: auto;
}

.section {
    padding: clamp(68px, 7vw, 104px) 0;
}

.section-muted {
    background: var(--color-background-soft);
    border-block: 1px solid var(--color-border);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 42px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading > p {
    max-width: 600px;
    margin-bottom: 0;

    font-size: 1.02rem;
    line-height: 1.75;
}

.section-actions {
    margin-top: 36px;
}

.eyebrow {
    margin-bottom: 13px;

    color: var(--color-accent-light);

    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.small-note {
    font-size: 0.9rem;
}

.text-link,
.project-link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--color-text);

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.text-link:hover,
.text-link:focus-visible,
.project-link-text:hover,
.project-link-text:focus-visible {
    color: var(--color-accent-light);
    transform: translateX(2px);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 10px 16px;

    color: var(--color-text-dark);
    background: var(--color-accent-light);

    border-radius: var(--radius-small);

    transform: translateY(-160%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   4. FOKUSZUSTÄNDE
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--color-accent-light);
    outline-offset: 4px;
}


/* =========================================================
   5. HEADER UND NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: var(--header-height);

    background: rgba(13, 15, 18, 0.9);
    border-bottom: 1px solid var(--color-border);

    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;

    color: var(--color-text);

    font-weight: 780;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

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

    border-radius: 10px;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-text {
    font-size: 1rem;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.2vw, 34px);

    margin-left: auto;
}

.main-navigation a,
.footer-links a {
    color: var(--color-text-muted);

    font-size: 0.95rem;
    font-weight: 520;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-text);
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;
    padding: 10px;

    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;
    margin: 5px 0;

    background: var(--color-text);
    border-radius: 999px;

    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 12px 22px;

    color: var(--color-text);

    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.01em;

    cursor: pointer;

    transition:
        transform var(--transition-fast),
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--color-text-dark);
    background: var(--color-accent);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: var(--color-text-dark);
    background: var(--color-accent-light);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--color-border);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}



/* =========================================================
   GEMEINSAME AKTIONS- UND KONTAKTKOMPONENTEN
   ========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(32px, 6vw, 64px);
    background:
        linear-gradient(135deg, rgba(220, 161, 93, 0.13), transparent 50%),
        var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
}

.contact-panel > div { min-width: 0; }
.contact-panel p { max-width: 720px; margin-bottom: 0; }

/* =========================================================
   12. FOOTER
   ========================================================= */

.site-footer {
    padding: 48px 0;

    background: var(--color-background-deep);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-inner p {
    margin-bottom: 0;

    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    font-size: 0.9rem;
}

.copyright {
    text-align: right;
}



/* =========================================================
   GLOBALE RESPONSIVE-REGELN
   ========================================================= */

@media (min-width: 1550px) {
    :root { --container-width: 1450px; }
}

@media (max-width: 980px) {
    .footer-inner { grid-template-columns: 1fr; }
    .copyright { text-align: left; }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
        line-height: 1.68;
    }

    h1 {
        font-size: clamp(2.4rem, 11.5vw, 3.4rem);
        line-height: 1.04;
        letter-spacing: -0.035em;
    }

    h2 {
        font-size: clamp(1.9rem, 9.5vw, 2.65rem);
        line-height: 1.08;
        letter-spacing: -0.028em;
    }

    h3 {
        font-size: clamp(1.22rem, 5.4vw, 1.42rem);
    }

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

    .section {
        padding: 52px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .section-heading > p {
        margin-top: 14px;

        font-size: 0.98rem;
        line-height: 1.7;
    }

    .eyebrow {
        margin-bottom: 10px;

        font-size: 0.78rem;
        letter-spacing: 0.105em;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: clamp(2.25rem, 11vw, 2.9rem);
    }

    h2 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .container {
        width: min(
            calc(100% - 26px),
            var(--container-width)
        );
    }

    .section {
        padding: 46px 0;
    }
}

@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;
    }
}
