/* ============================================================
   NIEDDUTY — Design-System

   Hell, ruhig, viel Weißraum. Tinte für Typo, Kiefergrün als
   einziger Akzent. Bewusst kein Blau-Violett, keine Verläufe,
   kein Glas — die Seite soll aussehen wie von jemandem, der
   weiß, was er tut, nicht wie ein Template.

   Alle Farben als Variablen: Markenwechsel kostet eine Zeile.
   ============================================================ */

@import url('vendor/schriften.css');

:root {
  /* Marke */
  --blau:        #1B3A5C;
  --blau-dunkel: #12283F;
  --blau-hell:   #2C5C8F;
  --tinte:        #15171A;

  /* Flächen */
  --bg:       #FCFBF9;
  --bg-alt:   #F4F2ED;
  --bg-tief:  #EAE7E0;
  --surface:  #FFFFFF;

  /* Text */
  --text:      #15171A;
  --text-dim:  #5B5F66;
  --text-mute: #93979E;

  /* Linien */
  --line:    rgba(21, 23, 26, 0.10);
  --line-hi: rgba(21, 23, 26, 0.20);

  /* Semantik */
  --accent:    var(--blau);
  --accent-hi: var(--blau-dunkel);
  --on-accent: #FFFFFF;

  /* Schatten — sparsam, tief, nie bunt */
  --shadow:       0 14px 30px -18px rgba(21, 23, 26, 0.26);
  --shadow-weich: 0 2px 18px -8px rgba(21, 23, 26, 0.14);

  /* Typo */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Raster */
  --gutter: clamp(20px, 4.5vw, 72px);
  --maxw:   1280px;
  --ease:     cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blau); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blau);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Raster ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.sektion      { padding-block: clamp(72px, 11vw, 150px); }
.sektion--alt { background: var(--bg-alt); }

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.008em;
  text-wrap: balance;
  /* Fraunces-Achsen: etwas weicher, ein Hauch "wonk" — das ist
     der Charakter, für den die Schrift gewählt wurde. */
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2, .wie-h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
/* Unterseiten: die Seitenüberschrift ist ein h1, sieht aber aus wie h2. */
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); letter-spacing: -0.014em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 56ch;
}

.sektion-kopf { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 68px); }
.sektion-kopf p { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease),
              color .22s var(--ease), transform .22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--voll {
  background: var(--blau);
  color: var(--on-accent);
}
.btn--voll:hover { background: var(--blau-dunkel); }

.btn--linie {
  background: transparent;
  color: var(--text);
  border-color: var(--line-hi);
}
.btn--linie:hover { border-color: var(--tinte); background: rgba(21,23,26,.03); }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.kopf[data-fest='ja'] {
  background: rgba(252, 251, 249, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--blau); }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 34px; width: auto; display: block; }
.fuss .logo img { height: 30px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a:not(.btn) {
  font-size: 0.93rem;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: 11px 20px; font-size: .9rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-hi);
  border-radius: 9px;
  background: var(--surface);
  color: var(--tinte);
  cursor: pointer;
  flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.99);
    transform-origin: top center;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    pointer-events: none;
  }
  .nav.offen {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .nav a:not(.btn) {
    display: block;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 1rem;
    color: var(--text);
  }
  .nav a:not(.btn):hover { background: var(--bg-alt); }
  .nav .btn { margin-top: 8px; justify-content: center; padding: 14px; }
}

/* ---------- Fußzeile ---------- */

.fuss {
  background: var(--tinte);
  color: #E8E7E4;
  padding-block: clamp(56px, 8vw, 88px) 32px;
}
.fuss a { color: #E8E7E4; }
.fuss a:hover { color: #fff; }
.fuss .logo { color: #fff; font-size: 1.4rem; }
.fuss .logo span { color: #fff; }

.fuss-oben {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fuss-oben p { color: #B5B4B0; margin-top: 16px; max-width: 40ch; font-size: .95rem; }

.fuss h3 {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9C9B97;
  font-weight: 400;
  margin-bottom: 18px;
}
.fuss ul { list-style: none; display: grid; gap: 11px; font-size: .95rem; }
.fuss-insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: .95rem;
}
.fuss-insta svg { width: 20px; height: 20px; flex: none; }

.fuss-unten {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: #9C9B97;
}

@media (max-width: 760px) {
  .fuss-oben { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Motion ---------- */

/* Elemente starten unsichtbar und werden von site.js eingeblendet.
   Ohne JS bleibt alles sichtbar — deshalb setzt site.js die Klasse
   selbst, statt sie im HTML zu haben. */
.js .auf {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .auf { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Bottom-Blur: fixierte Leiste unten, Inhalt verschwimmt sanft
   zum Rand hin. Maske blendet den Blur nach oben aus.
   Rein visuell, faengt keine Klicks ab.
   ============================================================ */
.bottom-blur {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 84px;
  z-index: 40;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 28%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 28%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .bottom-blur { display: none; } }

@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
