/* =================================================================
   Ni Vento — "Signal/Rauschen"
   One stylesheet for every page: tokens, then components, then the
   spacing utilities (last, so they override component margins).

   Direction (owner, Nov 2026): pure black and white, film grain over
   everything, harsh uppercase mono type, white frames that are slightly
   tilted and flicker now and then, pictures pushed off the grid, huge
   section numbers. The only colour comes from the photos. Navigation,
   forms and body text stay plain on purpose.
   Structural base: the original design system in ni-vento/.
   ================================================================= */


/* ---------- Tokens ---------- */
/* Change a value here and it changes everywhere it is used. */

:root {
  /* Colour: black and white; red only for errors */
  --bg:     #000000;  /* The page ground */
  --bg-2:   #0E0E0E;  /* Empty video plate, input fields */
  --bg-3:   #262626;  /* Locked button */
  --text:   #FFFFFF;  /* Text, frames, buttons */
  --dim:    #A6A6A6;  /* Secondary text, labels, footer */
  --rule:   #FFFFFF;  /* Lines and frames */
  --rule-2: #333333;  /* Faint row dividers in tables */
  --hi:     #FFFFFF;  /* Current page, buttons, focus ring; text on it is --bg */
  --press:  #BDBDBD;  /* A button while it is pressed */
  --err:    #FF2A2A;  /* Form errors, [CHECK] banners. Nothing else */
  --fokus:  var(--hi);

  /* Type: IBM Plex Mono everywhere; Libre Franklin is kept as a fallback family only */
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-grotesk: 'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display-xl: clamp(44px, 8.5vw, 124px);  /* The page name */
  --display-l: clamp(28px, 4vw, 52px);      /* Release and album titles */

  /* Space: a 2px base */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 40px;
  --space-11: 56px;

  /* Layout */
  --measure-page: 1120px;
  --gutter: clamp(20px, 4vw, 56px);
  --col-min-wide: 420px;                    /* Two-up blocks collapse to one column below this */
  --block-gap: clamp(26px, 3vw, 40px);      /* A section header to its content */
  --stagger: clamp(0px, 7vw - 40px, 64px);  /* Off-grid offset: 0 on phones, up to 64px */

  /* Frames */
  --frame: 2px;      /* White frame line over every picture and video */
  --tilt-a: -0.6deg; /* Tilt of most frame lines (the pictures themselves stay straight) */
  --tilt-b: 0.8deg;  /* Tilt of every second one */
}


/* ---------- Base ---------- */

html { overflow-x: clip; }  /* Tilted frames and giant numbers may never cause sideways scrolling */

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Film grain over everything (an SVG noise pattern, no image file needed). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, body > .wrap { position: relative; z-index: 1; }
header { z-index: 2; }  /* the navigation always stays above the giant numbers */

a { color: var(--text); text-decoration: none; }

::selection { background: var(--text); color: var(--bg); }

/* Every interactive element: a 2px white ring at 2px offset. Never remove it. */
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

[hidden] { display: none !important; }


/* ---------- Layout ---------- */

.wrap {
  max-width: var(--measure-page);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sec { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(4px, 1vw, 8px); }
main > .sec:first-child:not(:has(.sechead)) { padding-top: clamp(40px, 5vw, 64px); }  /* page intros without a number */

/* Two-up block (hero, single, albums). A picture in the second column sits lower: off-grid. */
.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--col-min-wide), 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: var(--block-gap);
}
.two.flush { margin-top: 0; }
.two > .frame:nth-child(2),
.two > article:nth-child(2) { margin-top: var(--stagger); }

/* Video grid: two across on a laptop, one on a phone; every second video sits lower. */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--col-min-wide), 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: var(--block-gap);
}
.videos > :nth-child(even) { margin-top: var(--stagger); }


/* ---------- Header: navigation + social links ---------- */
/* Deliberately calm: this is how people find their way around. */

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-7);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.navlist {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.navlink:hover { color: var(--text); }
.navlink[aria-current="page"] { background: var(--hi); color: var(--bg); }

.soc { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-2) 0; }
.mark {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  color: var(--text);
}
.mark svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.mark:hover { background: var(--hi); color: var(--bg); }


/* ---------- Section header: label, line, and a giant number behind ---------- */

main { counter-reset: sec; }

.sechead {
  position: relative;
  isolation: isolate;
  counter-increment: sec;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
/* The number comes from the order of the sections, so it always matches the label. */
.sechead::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  right: -0.04em;
  bottom: 0;
  z-index: -1;
  font-weight: 600;
  font-size: clamp(84px, 15vw, 210px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--text);
  opacity: 0.09;
  pointer-events: none;
}
.sechead > span:first-child { color: var(--text); }
.sechead a { color: var(--dim); }
.sechead a:hover { color: var(--text); }


/* ---------- Type ---------- */

.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

.h1, .h2 { margin: 0; font-weight: 600; text-transform: uppercase; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.h1 { font-size: var(--display-xl); line-height: 0.85; letter-spacing: -0.06em; }
.h2 { font-size: var(--display-l); line-height: 1; letter-spacing: -0.05em; }

.lead { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dim); }
.statement { margin: 0; font-weight: 500; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.35; text-transform: uppercase; }
.label { font-size: 11px; letter-spacing: 0.14em; color: var(--dim); }
.meta { margin: 0; font-size: 11px; letter-spacing: 0.12em; color: var(--dim); }
.hint { margin: 0; font-size: 11px; letter-spacing: 0.1em; color: var(--dim); }
.para { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--text); max-width: 36em; }
.vt { font-weight: 600; font-size: 17px; line-height: 1.2; text-transform: uppercase; }


/* ---------- Flicker: frames and the page name drop out for a split second ---------- */
/* Turned off for visitors who ask their system for less motion. */

@media (prefers-reduced-motion: no-preference) {
  .frame::after { animation: flicker 9s steps(1) infinite; }   /* only the line flickers, the picture stays still */
  .videos > :nth-child(2n) .frame::after { animation-delay: -3s; }
  .two > :nth-child(2).frame::after { animation-delay: -6s; }
  .h1 { animation: flicker 6s steps(1) infinite; }
}
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.25; }
  97% { opacity: 1; }
  98% { opacity: 0.6; translate: 3px 0; }
}


/* ---------- Links ---------- */

.tlink { border-bottom: 1px solid var(--text); }
.tlink:hover { color: var(--dim); }

/* The contact address. */
.mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 28px);
  text-transform: uppercase;
  border-bottom: 2px solid var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--dim); }
.mail-l { font-size: clamp(22px, 2.8vw, 34px); }


/* ---------- Plate: every picture and video stays straight; only its white frame line is tilted ---------- */
/* The line is drawn on top (::after) and turned a little, so it crosses the picture's edges
   instead of fitting around them. */

.frame {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  --tilt: var(--tilt-a);
}
.two > :nth-child(2).frame,
.two > :nth-child(2) .frame,
.videos > :nth-child(even) .frame { --tilt: var(--tilt-b); }

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--frame) solid var(--rule);
  rotate: var(--tilt);
  pointer-events: none;   /* clicks go through to the picture or video */
}

.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.r169 { aspect-ratio: 16 / 9; }  /* Photos, videos */
.r11 { aspect-ratio: 1 / 1; }    /* Covers */
.r43 { aspect-ratio: 4 / 3; }    /* Handheld photos */
.r34 { aspect-ratio: 3 / 4; }    /* Upright photos */


/* ---------- Video: a YouTube video that loads when clicked ---------- */
/* Markup (see js/main.js): <figure class="vcard"> holding
   <a class="video frame r169" href="YOUTUBE LINK" data-video> and a <figcaption>.
   The script adds the thumbnail and swaps in the player on click. */

.vcard { margin: 0; }
.vcard figcaption { padding-top: 14px; }

.video { display: block; background: var(--bg-2); }

/* The play label in the corner. */
.video-play {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 var(--space-6);
  background: var(--hi);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.video-play .tri { flex-shrink: 0; fill: var(--bg); }
.video:hover .video-play { background: var(--bg); color: var(--text); outline: 2px solid var(--text); outline-offset: -2px; }
.video:hover .video-play .tri { fill: var(--text); }
.video:active .video-play { background: var(--press); color: var(--bg); }

/* Placeholder: while the href still starts with "#" the plate stays empty with its label. */
.video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-align: center;
}
.video[href^="#"] { cursor: default; }
.video[href^="#"] .video-play { display: none; }
.video:not([href^="#"]) .video-empty { display: none; }


/* ---------- PlayButton: plays the single (Start page, see js/main.js) ---------- */

.play {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 62px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 10px var(--space-7);
  background: var(--hi);
  color: var(--bg);
  border: 0;
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.play:hover { background: var(--bg); color: var(--text); outline: 2px solid var(--text); outline-offset: -2px; }
.play:active { background: var(--press); color: var(--bg); }
.play .tri { flex-shrink: 0; fill: var(--bg); }
.play:hover .tri { fill: var(--text); }
.play:active .tri { fill: var(--bg); }
.play-cue { flex-shrink: 0; font-size: 11px; letter-spacing: 0.14em; }
.play-gap { flex-grow: 1; }
.play-track { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: 0.06em; }
.play-time { flex-shrink: 0; font-size: 12px; font-variant-numeric: tabular-nums; }


/* ---------- PlatformRow: streaming links; wraps into more rows when narrow.
   The 1px gap shows the white background through as the dividing rule. ---------- */

.plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.plat {
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-1);
  background: var(--bg);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
}
.plat:hover { background: var(--hi); color: var(--bg); }


/* ---------- Tables on the legal pages: key and value, each row ruled ---------- */

.tbl { margin: 0; border-top: 1px solid var(--rule); }
.tbl dt, .tbl dd { margin: 0; }
.row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--rule-2);
}
.key { font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.val { font-size: 13px; line-height: 1.5; }
.chk { color: var(--err); }


/* ---------- FollowRow: the social links as labelled chips (Kontakt only) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.chip {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.chip:hover { background: var(--hi); color: var(--bg); }


/* ---------- Newsletter ---------- */
/* States: Gesperrt (consent not ticked), Bereit (ticked), Fehler (invalid e-mail),
   Gesendet (form replaced by one line). js/main.js switches between them. */

.flabel {
  display: block;
  margin-bottom: var(--space-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.field {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
}
.field[aria-invalid="true"] { border-color: var(--err); }
.field-error { margin: var(--space-3) 0 0; font-size: 11px; letter-spacing: 0.1em; color: var(--err); }

.consent { display: flex; gap: var(--space-5); align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--text); flex-shrink: 0; }
.consent label { font-size: 13px; line-height: 1.5; }

.submit {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: var(--hi);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.submit:hover { background: var(--bg); color: var(--text); outline: 2px solid var(--text); outline-offset: -2px; }
.submit:active { background: var(--press); color: var(--bg); }
/* Gesperrt: stays visible, never hidden; the line beneath says why. */
.submit[aria-disabled="true"],
.submit[aria-disabled="true"]:hover { background: var(--bg-3); color: var(--dim); outline: 0; cursor: not-allowed; }

.sent { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }

/* Spam trap: a field people never see; bots fill it in and are ignored. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- Legal scaffolds ---------- */

.banner {
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 14px;
  border: 1px solid var(--err);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: var(--err);
  max-width: 60em;
}


/* ---------- Footer: copyright, Impressum, Datenschutz ---------- */

.foot {
  margin-top: clamp(56px, 7vw, 96px);
  padding: var(--space-6) 0 var(--space-10);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dim); }
.foot a:hover,
.foot a[aria-current="page"] { color: var(--text); }


/* ---------- Spacing utilities ---------- */
/* mt = margin-top, mb = margin-bottom, mw = max-width, lh = line-height. Keep these last. */

.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-block { margin-top: var(--block-gap); }
.mb-14 { margin-bottom: 14px; }

.mw-30 { max-width: 30em; }
.mw-32 { max-width: 32em; }
.mw-34 { max-width: 34em; }

.lh-15 { line-height: 1.5; }
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }
