/* base.css — Reset, CSS-Variablen, Fonts, Typografie, globale Stile */

/* ============================================================
   FONTS — self-hosted, DSGVO-konform
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-v15-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Share Tech';
  src: url('../fonts/share-tech-v23-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Farben */
  --cream:        #e8e0d4;
  --cream-light:  #f5f0ea;
  --dark:         #1a1410;
  --dark-deep:    #2e2318;
  --dark-bg:      #312e2a;
  --gold:         #957f4f;
  --gold-light:   #c4a96a;
  --gold-dark:    #6b5c3a;
  --text-light:   #f5f0e8;

  /* Typografie */
  --font-main:    'Outfit', sans-serif;
  --font-label:   'Share Tech', sans-serif;

  /* Abstände */
  --space-xs:     0.5rem;
  --space-s:      1rem;
  --space-m:      2rem;
  --space-l:      4rem;
  --space-xl:     8rem;

  /* Transitions */
  --ease-smooth:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--text-light);
  background-color: var(--dark-bg);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

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

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

input,
textarea {
  cursor: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAFIE-SYSTEM
   ============================================================ */

.headline-xl {
  font-family: var(--font-main);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.headline-l {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline-m {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.body-text {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background-color: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   SCROLL-SEQ HEADLINE
   ============================================================ */

/* .laptop-line → definiert in scroll.css */

/* ============================================================
   LAYOUT
   ============================================================ */

.section-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-m);
}

/* ============================================================
   TAGS
   ============================================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.tags .label {
  padding: 0.4em 0.9em;
  border: 1px solid currentColor;
  opacity: 0.5;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-light);
  transition: width 0.2s var(--ease-smooth),
              height 0.2s var(--ease-smooth),
              background-color 0.5s var(--ease-smooth);
}

#cursor-ring {
  width: 26px;
  height: 26px;
  border: 1px solid var(--text-light);
  opacity: 0.4;
  transition: border-color 0.5s var(--ease-smooth);
}

body.cursor-hover #cursor-dot {
  width: 10px;
  height: 10px;
}

/* ============================================================
   SCREENSHOT-PLATZHALTER
   ============================================================ */

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid currentColor;
  opacity: 0.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page {
  min-height: 100vh;
  padding-top: 6rem;
}

.legal-page ~ script,
body:has(.legal-page) #nav-logo {
  visibility: visible !important;
  height: 100px;
}

.legal-page .headline-l {
  margin-bottom: var(--space-l);
}

.legal-page .headline-m {
  margin-top: var(--space-m);
  margin-bottom: var(--space-s);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
}
