/* ============================================================
   TITO.TRADE – BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Noise/Grain über allem, extrem dezent */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply; /* nur abdaelkern: reines Schwarz bleibt exakt #000, kein grauer Schleier */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.05; }
p { margin: 0; }

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

::selection { background: var(--color-accent-soft); color: var(--color-accent); }

/* Focus sichtbar & premium */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Layout-Helfer */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

section { position: relative; padding-block: var(--spacing-section); }

/* Section-Label (klein, gesperrt, Akzent) */
.eyebrow {
    font-size: var(--fs-tiny);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
}

/* Große Section-Titel aus zwei Zeilen */
.section-title {
    font-size: var(--fs-h1);
    text-transform: uppercase;
    color: var(--color-text);
}
.section-title .line2 { color: var(--color-text-faint); display: block; }

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, width 0.25s var(--ease-out), height 0.25s var(--ease-out);
    will-change: transform;
}
.cursor-dot.is-active { opacity: 0.9; }
.cursor-dot.is-hover  { width: 40px; height: 40px; opacity: 0.35; background: var(--color-text); }

@media (pointer: coarse), (hover: none) {
    .cursor-dot, body a, body [data-magnetic] { cursor: auto; }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
    z-index: 10000;
    pointer-events: none;
}

/* Scrollbar dezent */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb { background: #22252c; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2e323b; }

/* ============================================================
   TEXTAUSWAHL: Nur echter Inhalt ist markierbar.
   Animationen, Schaltflaechen & Deko-Texte: kein Auswahl-Cursor.
   ============================================================ */
body {
    -webkit-user-select: none;
    user-select: none;
}
p, li {
    -webkit-user-select: text;
    user-select: text;
}
.contact-links a {
    -webkit-user-select: text;
    user-select: text;
}
.nav a, .legal-links a, .back {
    -webkit-user-select: none;
    user-select: none;
}
