/* ==========================================================================
   Shared Styles — Wholesail Recruiting Site
   Fonts: Söhne + Söhne Mono by Klim Type Foundry
   ========================================================================== */


/* --- Font Loading — Söhne (body) --- */
/* Weight mapping: Extraleicht=200, Leicht=300, Buch=400, Kräftig=500,
   Halbfett=600, Dreiviertelfett=650, Fett=700, Extrafett=800           */

@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-extraleicht.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-extraleicht-kursiv.woff2') format('woff2');
  font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-leicht.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-leicht-kursiv.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-buch.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-buch-kursiv.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-kraftig.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-kraftig-kursiv.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-halbfett.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-halbfett-kursiv.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-dreiviertelfett.woff2') format('woff2');
  font-weight: 650; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-dreiviertelfett-kursiv.woff2') format('woff2');
  font-weight: 650; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-fett.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-fett-kursiv.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-extrafett.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne';
  src: url('fonts/test-soehne-extrafett-kursiv.woff2') format('woff2');
  font-weight: 800; font-style: italic; font-display: swap;
}


/* --- Font Loading — Söhne Mono --- */

@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-extraleicht.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-extraleicht-kursiv.woff2') format('woff2');
  font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-leicht.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-leicht-kursiv.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-buch.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-buch-kursiv.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-kraftig.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-kraftig-kursiv.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-halbfett.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-halbfett-kursiv.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-dreiviertelfett.woff2') format('woff2');
  font-weight: 650; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-dreiviertelfett-kursiv.woff2') format('woff2');
  font-weight: 650; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-fett.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-fett-kursiv.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-extrafett.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Söhne Mono';
  src: url('fonts/test-soehne-mono-extrafett-kursiv.woff2') format('woff2');
  font-weight: 800; font-style: italic; font-display: swap;
}


/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg:             #000000;
  --color-surface:        rgba(68, 68, 68, 0.66);
  --color-surface-border: rgba(68, 68, 68, 0.9);
  --color-text:           #ffffff;
  --color-accent:         #00ff54;
  --color-accent-25:      rgba(0, 255, 84, 0.25);
  --color-gold:           #ffb700;

  /* Typography */
  --font-mono: 'Söhne Mono', 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --font-body: 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Page dimensions */
  --page-max-width: 1280px;
  --page-inset:     76px;
  --content-width:  716px;
  --gutter-width:   64px;
  --gutter-gap:     32px;
  --body-indent:    96px;

  /* Cross-grid */
  --grid-spacing: 80px;
  --cross-size:   6px;
  --cross-color:  rgba(255, 255, 255, 0.12);
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1;
  overflow-x: hidden;
}


/* --- Cross-Grid Background --- */
.cross-grid-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40.5 76.5H43V77.5H40.5V80H39.5V77.5H37V76.5H39.5V74H40.5V76.5Z' fill='rgba(255,255,255,0.2675)'/%3E%3C/svg%3E");
  background-size: var(--grid-spacing) var(--grid-spacing);
  background-position: center top;
}

/* Cross fade-out decorative divider */
.cross-fade-out {
  position: absolute;
  left: var(--page-inset);
  right: var(--page-inset);
  top: 3116px;
  display: flex;
  flex-direction: column;
  gap: 74px;
  pointer-events: none;
  z-index: 1;
}

.cross-fade-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.cross-fade-row .cross-mark {
  width: var(--cross-size);
  height: var(--cross-size);
  position: relative;
}

.cross-fade-row .cross-mark::before,
.cross-fade-row .cross-mark::after {
  content: '';
  position: absolute;
  background: var(--cross-color);
}

.cross-fade-row .cross-mark::before {
  width: 1px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.cross-fade-row .cross-mark::after {
  height: 1px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.cross-fade-row:nth-child(2) .cross-mark::before,
.cross-fade-row:nth-child(2) .cross-mark::after {
  background: rgba(255, 255, 255, 0.05);
}

.cross-fade-row:nth-child(3) .cross-mark::before,
.cross-fade-row:nth-child(3) .cross-mark::after {
  background: rgba(255, 255, 255, 0.025);
}


/* --- Navigation --- */
.site-nav-wrapper {
  position: sticky;
  top: -40px; /* padding-top(56) - desired-gap(16) = 40 */
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 641px;
  height: 48px;
  background: var(--color-surface);
  backdrop-filter: blur(2px);
  border: 1px solid var(--color-surface-border);
  border-radius: 0px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500; /* Kräftig */
  letter-spacing: 1.75px;
  line-height: 26px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: 11px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a.active {
  color: var(--color-accent);
  font-weight: 700; /* Fett */
  letter-spacing: 1.4px;
}

/* 3-column nav layout */
.site-nav a:nth-child(1) { width: 210px; text-align: center; }
.site-nav a:nth-child(2) { width: 210px; text-align: center; }
.site-nav a:nth-child(3) { width: 210px; text-align: center; }


/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 32px;
  background: var(--color-accent-25);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.28px;
  line-height: 32px;
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: rgba(0, 255, 84, 0.35);
  box-shadow: 0 0 20px rgba(0, 255, 84, 0.15);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --page-inset: 40px;
  }

  .site-nav {
    width: calc(100% - 80px);
    max-width: 641px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-inset: 20px;
    --body-indent: 0px;
    --gutter-width: 40px;
    --gutter-gap: 16px;
  }

  .site-nav {
    width: calc(100% - 40px);
    font-size: 12px;
    letter-spacing: 1px;
  }

  .site-nav a:nth-child(1),
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) {
    width: 33.33%;
  }

}
