/* *========= Global =========*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* *=== Schrift === */
body {
    margin: 0;
    font-family: "Figtree", Arial, sans-serif;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3,
h4,
h5,
h6 {
    font-weight: 600;
}

nav a {
    font-weight: 500;
}

button {
    font-weight: 600;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* *=== Farben === */

:root {
    --background: #F4F1EB;
    /* Seiten-Hintergrund (warmes Creme) */
    --foreground: #161512;
    /* Haupttext / dunkle Sektionen */
    --card: #FDFAF4;
    /* Karten-Hintergrund */
    --secondary: #EAE7DF;
    /* Helle Sekundär-Sektionen */
    --muted: #E4E1D8;
    /* Gedämpfte Flächen */
    --muted-foreground: #6B6860;
    /* Grauer Nebentext */
    --accent: #CB3A1E;
    /* Rot – CTAs, Icons, Highlights */
    --border: rgba(22, 21, 18, 0.12);
    /* Trennlinien */
}

/* *=============== Generelles ============== */

/* *========== Eyebrow ========== */

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* *========== Buttons ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;

    min-height: 3.25rem;
    padding: 0.9rem 1.4rem;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;

    transition: background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.btn img {
    width: 1rem;
    height: 1rem;
}

.btn-primary {
    border: 1px solid var(--accent);
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: var(--foreground);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary img {
    filter: brightness(0) invert(1);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: var(--foreground);
    transform: translateY(-2px);
}

.btn-secondary:hover img {
    filter: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}

/* *========= Navigation ========= */

.nav {
    height: 64px;
    background-color: var(--background);
    border: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;

}

.nav-leiste {
    display: flex;
    height: 64px;
    text-align: center;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo>a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo>a>img {
    width: 20px;
    height: 20px;
}

.nav-logo>a>span {
    color: var(--foreground);
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    letter-spacing: 0.12em;
}

.nav-liste {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-card>a {
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.875em;
}

#nav-active>a {
    color: var(--accent);
}

/* ========== Hamburger-Menü ========== */

.menu-button {
    display: none;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 1.6rem;
    height: 2px;
    margin: 0 auto;
    background-color: var(--foreground);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 838px) {
    .nav-leiste {
        width: 90%;
        align-items: center;
    }

    .nav-liste {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.5rem 1.2rem 1rem;
        background-color: var(--background);
        border: 1px solid var(--border);
        border-top: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-liste.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-card {
        border-bottom: 1px solid var(--border);
    }

    .nav-card a {
        display: block;
        padding: 1rem 0;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
    }

    .menu-button.is-open span:nth-child(1) {
        transform: translateY(0.47rem) rotate(45deg);
    }

    .menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.is-open span:nth-child(3) {
        transform: translateY(-0.47rem) rotate(-45deg);
    }
}

/* *========= Footer ========= */

.site-footer {
    background-color: var(--foreground);
    color: rgba(255, 255, 255, 0.62);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 4rem;
    width: min(80%, 72rem);
    margin: 0 auto;
    padding: 4rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
}

.footer-logo img {
    width: 1.15rem;
    height: 1.15rem;
}

.footer-logo span {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.footer-brand p {
    max-width: 19rem;
    margin: 1.3rem 0;
    line-height: 1.65;
}

.footer-navigation h3,
.footer-contact h3 {
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-navigation ul {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-navigation a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-navigation a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact address {
    font-style: normal;
    line-height: 1.65;
}

/* *========= Footer Bottom ========= */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: min(80%, 72rem);
    margin: 0 auto;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-legal-links {
    display: flex;
    gap: 1.2rem;
}

/* *========= Footer Responsive ========= */
@media (max-width: 800px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        width: 90%;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        width: 90%;
    }
}

@media (max-width: 520px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* ========== Zurück zu Jänicke Webdesign ========== */

.portfolio-back-link {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2.5rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: 1100;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 2.8rem;
    padding: 0.7rem 1rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(22, 21, 18, 0.94);
    color: #ffffff;

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;

    box-shadow: 0 0.7rem 1.5rem rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease, transform 0.2s ease;
}

.portfolio-back-link:hover {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.portfolio-back-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (max-width: 520px) {
    .portfolio-back-link {
        min-height: 2.55rem;
        padding: 0.65rem 0.85rem;
        font-size: 0.65rem;
    }
}