/* ============================================================
   STYLE.CSS – Globale Basis-Styles für Skillfleet
   Reset, Variablen, Nav, Footer, Utilities, Animationen
   ============================================================ */

/* ---------- Local Fonts ---------- */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DMSerifDisplay-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- CSS Custom Properties ---------- */
:root {
    --black: #0a0a0a;
    --white: #f5f4f0;
    --accent: #c8f060;
    --gray: #888888;
    --border: rgba(10, 10, 10, 0.1);
    --serif: 'DM Serif Display', serif;
    --sans: 'DM Sans', sans-serif;
    --max-w: 1400px;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ---------- Section Base ---------- */
section {
    padding: 4rem 0;
}

@media (min-width: 1200px) {
    section {
        padding: 6rem 0;
    }
}

/* ---------- Section Utilities ---------- */
.section-label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background: var(--accent);
}

/* Dark section label override */
.dark .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 6vw, 3rem);
    line-height: 1.15;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.dark .section-title {
    color: var(--white);
}

.section-title em {
    font-style: normal;
    color: var(--black);
    background: var(--accent);
    padding: 0 0.3em;
}

.dark .section-title em {
    color: var(--black);
    background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    min-height: 44px;
    min-width: 44px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #d4f87a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 240, 96, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.dark .btn-ghost {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.dark .btn-ghost:hover,
.dark .btn-ghost:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(245, 244, 240, 0.85);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--black);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--gray);
}

.nav-cta {
    display: none;
}

/* Hamburger */
.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 201;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Burger open state */
.nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--white);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--white);
}

/* Mobile Overlay */
.nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-mobile.open {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
    color: var(--accent);
}

/* Desktop Nav */
@media (min-width: 1200px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .nav-burger {
        display: none;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ---------- Animations ---------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- Dark Section Helper ---------- */
.dark {
    background: var(--black);
    color: var(--white);
}

.light {
    background: var(--white);
    color: var(--black);
}

/* ---------- Typography Utilities ---------- */
.text-center {
    text-align: center;
}

.text-gray {
    color: var(--gray);
}

.dark .text-gray {
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25em 0.75em;
    border-radius: 4px;
}