/*
 * www.simon-ostendorf.de: Simon Ostendorf Veranstaltungstechnik.
 * The brand of more.ostendorf.link: a dark stage with sweeping light beams,
 * the cyan to purple gradient of the logo, links as mixer channel strips.
 * System fonts only, nothing loads from elsewhere. Every animation stops
 * under prefers-reduced-motion (end of file).
 */

:root {
  --bg: #07060f;
  --bg-raised: #0d0b1c;
  --panel: rgb(22 19 42 / 0.66);
  --panel-solid: #15122a;
  --panel-hover: rgb(32 27 64 / 0.9);
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.16);
  --text: #f2f1fb;
  --text-muted: rgb(242 241 251 / 0.74);
  --text-faint: rgb(242 241 251 / 0.56);

  /* Brand gradient from the logo; --violet is the purple lightened for text contrast. */
  --cyan: #1ee3f5;
  --purple: #7b3cf5;
  --violet: #a47cff;
  --gradient: linear-gradient(90deg, var(--cyan), var(--purple));
  --gradient-text: linear-gradient(90deg, var(--cyan), var(--violet));

  --success: #3ee6a8;
  --error: #ff8fa3;

  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

main:focus {
  outline: none;
}

/* Author display rules would otherwise beat the hidden attribute. */
[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--panel-solid);
  color: var(--text);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 32px, 820px);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.button .icon {
  width: 18px;
  height: 18px;
}

/* Primary: a lit channel, gradient border and glow on the dark stage. */
.button-primary {
  border-color: transparent;
  background:
    linear-gradient(rgb(20 17 40 / 0.94), rgb(20 17 40 / 0.94)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 10px 34px -14px rgb(123 60 245 / 0.8), 0 0 26px -12px rgb(30 227 245 / 0.7);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  background:
    linear-gradient(rgb(34 28 70 / 0.94), rgb(34 28 70 / 0.94)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 14px 40px -12px rgb(123 60 245 / 0.95), 0 0 32px -8px rgb(30 227 245 / 0.8);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgb(30 227 245 / 0.55);
  background: rgb(30 227 245 / 0.06);
}

.button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgb(7 6 15 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background 300ms ease, border-color 300ms ease;
}

/* Over the hero the bar is transparent until the page scrolls (needs the script). */
.js .page-home .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.js .page-home.nav-open .site-header {
  background: rgb(7 6 15 / 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Mark and wordmark as in the logo PNG: same height, gap of 0.16 of it. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 0 12px rgb(123 60 245 / 0.45));
}

.brand-wordmark {
  width: auto;
  height: 44px;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title,
  .gradient-text,
  .facts strong,
  .message-code {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(rgb(20 17 40 / 0.9), rgb(20 17 40 / 0.9)) padding-box,
    var(--gradient) border-box;
  color: var(--text);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background:
    linear-gradient(rgb(34 28 70 / 0.95), rgb(34 28 70 / 0.95)) padding-box,
    var(--gradient) border-box;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-icon span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease), opacity 200ms ease;
}

.nav-open .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-icon span:nth-child(2) { opacity: 0; }
.nav-open .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  /* Without the script the menu wraps below the brand. */
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .js .header-inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }

  .js .menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgb(7 6 15 / 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 250ms var(--ease), visibility 0s linear 250ms;
  }

  .js .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 200ms ease, transform 250ms var(--ease);
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.08rem;
  }

  .js .site-nav a:hover {
    background: none;
  }

  .js .site-nav .nav-cta {
    margin: 18px 0 0;
    padding: 13px 18px;
    border-radius: 999px;
    text-align: center;
  }
}

/* ---------- Stage lights ---------- */

.stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Haze glowing on the stage floor. */
  background:
    radial-gradient(ellipse 90% 45% at 50% 105%, rgb(123 60 245 / 0.32), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgb(30 227 245 / 0.14), transparent 70%);
}

/*
 * A beam is a soft cone hanging from above, swaying between --from and --to.
 * The cone sits on ::before because a clip-path on the blurred element would
 * cut the blur off again.
 */
.beam {
  position: absolute;
  top: -12%;
  width: 36vmax;
  height: 125%;
  margin-left: -18vmax;
  transform-origin: 50% 0;
  transform: rotate(var(--from));
  filter: blur(16px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
  animation: sway 12s ease-in-out infinite alternate;
}

.beam::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, var(--beam) 0%, transparent 80%);
}

.beam:nth-child(1) { left: 8%; --beam: rgb(30 227 245 / 0.5); --from: -28deg; --to: -8deg; }
.beam:nth-child(2) { left: 34%; --beam: rgb(123 60 245 / 0.6); --from: 14deg; --to: -10deg; animation-duration: 15s; animation-delay: -4s; }
.beam:nth-child(3) { left: 66%; --beam: rgb(30 227 245 / 0.42); --from: -12deg; --to: 14deg; animation-duration: 13s; animation-delay: -7s; }
.beam:nth-child(4) { left: 92%; --beam: rgb(123 60 245 / 0.6); --from: 28deg; --to: 8deg; animation-duration: 17s; animation-delay: -2s; }

.stage-soft .beam {
  opacity: 0.35;
}

.stage-soft .beam:nth-child(1) { left: 25%; }
.stage-soft .beam:nth-child(2) { left: 75%; }

@keyframes sway {
  from { transform: rotate(var(--from)); }
  to { transform: rotate(var(--to)); }
}

/* ---------- Logo ---------- */

.logo {
  overflow: visible;
}

/*
 * In the big logos the fader knobs slide a little, each at its own tempo.
 * Knob and cut-out share the class, so they move together; the travel keeps
 * every cut-out inside both tracks. Header and footer stay calm.
 */
.hero-logo .logo-knob,
.about-logo .logo-knob {
  animation: fader 4s ease-in-out infinite;
}

.logo .knob-1 { --travel: 5px; animation-duration: 4.2s; animation-delay: -0.6s; }
.logo .knob-2 { --travel: -6px; animation-duration: 5.1s; animation-delay: -2.4s; }
.logo .knob-3 { --travel: 6px; animation-duration: 3.7s; animation-delay: -1.3s; }
.logo .knob-4 { --travel: -5px; animation-duration: 4.6s; animation-delay: -3.1s; }

@keyframes fader {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--travel)); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 112px;
  overflow: hidden;
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkens the photo like the old site's 50 % overlay, fading into the page. */
.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgb(7 6 15 / 0.6), rgb(7 6 15 / 0.55) 45%, rgb(7 6 15 / 0.85) 85%, var(--bg)),
    radial-gradient(ellipse at center, transparent 40%, rgb(7 6 15 / 0.5));
}

.hero.has-photo .beam {
  opacity: 0.4;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 800ms var(--ease) both;
}

.hero-logo {
  width: clamp(80px, 11vw, 116px);
  height: auto;
  filter: drop-shadow(0 0 26px rgb(123 60 245 / 0.55));
}

.hero-eyebrow {
  margin: 28px 0 0;
  /* Balances the letter spacing after the last letter so the words stay centred. */
  padding-left: 0.32em;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  max-width: 100%;
  margin: 12px 0 0;
  font-size: clamp(2.3rem, 8.4vw, 6.2rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--cyan);
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  filter: drop-shadow(0 6px 36px rgb(123 60 245 / 0.35));
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  max-width: 760px;
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  color: var(--text-muted);
}

.hero-tagline .sep {
  color: var(--purple);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

/* A mouse outline with a dot rolling down: there is more below. */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgb(242 241 251 / 0.35);
  border-radius: 14px;
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: roll 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  border-color: rgb(30 227 245 / 0.7);
}

@keyframes roll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-height: 640px) {
  .scroll-cue {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-alt {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgb(123 60 245 / 0.1), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgb(30 227 245 / 0.06), transparent 70%),
    var(--bg-raised);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
}

.section-head-left {
  margin: 0 0 24px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.channel {
  padding: 3px 8px;
  border: 1px solid rgb(30 227 245 / 0.45);
  border-radius: 6px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.section-head h2,
.legal-head h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.lead {
  margin: 14px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-muted);
}

.panel {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* A thin lit edge along the top of every panel. */
.panel::before,
.band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--gradient);
  opacity: 0.55;
}

.panel-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Leistungen ---------- */

.services-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.service-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  margin-inline: -12px;
  border-radius: 14px;
  transition: background 200ms ease;
}

.service:hover {
  background: rgb(255 255 255 / 0.035);
}

.service-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(30 227 245 / 0.14), rgb(123 60 245 / 0.2));
  color: var(--cyan);
}

.service-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-text strong {
  font-size: 1.05rem;
}

.service-text span {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-size: 0.94rem;
  transition: border-color 200ms ease, background 200ms ease;
}

.chips li:hover {
  border-color: rgb(30 227 245 / 0.5);
  background: rgb(30 227 245 / 0.06);
}

.panel-more {
  margin: 24px 0 0;
}

.panel-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.panel-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Impressionen ---------- */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .insta-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.js .insta-grid .is-extra {
  display: none;
}

.insta-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-solid);
}

.insta-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgb(30 227 245 / 0.35), rgb(123 60 245 / 0.55));
  color: #fff;
  opacity: 0;
  transition: opacity 250ms ease;
}

.insta-overlay .icon {
  width: 34px;
  height: 34px;
}

.insta-tile:hover img,
.insta-tile:focus-visible img {
  transform: scale(1.06);
}

.insta-tile:hover .insta-overlay,
.insta-tile:focus-visible .insta-overlay {
  opacity: 1;
}

.insta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- Bands ---------- */

.band-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .band-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.band {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color 250ms ease, transform 250ms var(--ease), box-shadow 250ms ease;
}

.band:hover {
  border-color: rgb(123 60 245 / 0.45);
  box-shadow: 0 18px 50px -30px rgb(123 60 245 / 0.8);
  transform: translateY(-3px);
}

.band h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.band-text p {
  margin: 0 0 0.8em;
  font-size: 0.97rem;
  color: var(--text-muted);
}

.band-text p:last-child {
  margin-bottom: 0;
}

.band-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}

.band-link .icon {
  width: 18px;
  height: 18px;
}

.band-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 920px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.about-media {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.portrait {
  margin: 0;
  padding: 2px;
  border-radius: 26px;
  background: var(--gradient);
  box-shadow: 0 30px 80px -40px rgb(123 60 245 / 0.9), 0 0 60px -30px rgb(30 227 245 / 0.8);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

/* Without a portrait: the logo lit on a small stage of its own. */
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--panel-solid);
}

.about-visual-glow {
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 200deg at 50% -10%, transparent 0deg, rgb(30 227 245 / 0.28) 18deg, transparent 36deg, transparent 150deg, rgb(123 60 245 / 0.32) 168deg, transparent 186deg),
    radial-gradient(circle at 50% 42%, rgb(123 60 245 / 0.4), transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgb(30 227 245 / 0.22), transparent 70%);
  filter: blur(6px);
}

.about-logo {
  position: relative;
  width: 40%;
  height: auto;
  filter: drop-shadow(0 0 30px rgb(123 60 245 / 0.6));
}

.about-visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

@media (max-width: 919px) {
  .about-visual {
    aspect-ratio: 16 / 10;
  }

  .about-logo {
    width: 26%;
  }
}

.about-text > p {
  margin: 0 0 1em;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.facts {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.03);
}

.facts strong {
  font-size: 1.9rem;
  font-weight: 850;
  line-height: 1.1;
  color: var(--cyan);
}

.facts span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each contact way is a channel strip: number, icon, label and a level meter. */
.strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}

.strip:hover,
.strip:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(var(--panel-hover), var(--panel-hover)) padding-box,
    var(--gradient) border-box;
  box-shadow: 0 10px 32px -12px rgb(123 60 245 / 0.7), 0 0 24px -10px rgb(30 227 245 / 0.6);
  transform: translateY(-2px);
}

.strip-ch {
  flex-shrink: 0;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.strip:hover .strip-ch,
.strip:focus-visible .strip-ch {
  border-color: rgb(30 227 245 / 0.5);
  color: var(--cyan);
}

.strip-icon {
  display: flex;
  flex-shrink: 0;
}

.strip:hover .strip-icon,
.strip:focus-visible .strip-icon {
  color: var(--cyan);
}

.strip-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.strip-label {
  font-weight: 700;
}

.strip-value {
  overflow: hidden;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Level meter: five segments that idle low and jump when the channel is hovered. */
.meter {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  margin-left: auto;
}

.meter span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transform: scaleY(0.25);
  opacity: 0.45;
  transition: transform 200ms var(--ease), opacity 200ms ease;
}

.meter span:nth-child(1) { background: #1ee3f5; }
.meter span:nth-child(2) { background: #3cb8f6; transform: scaleY(0.35); }
.meter span:nth-child(3) { background: #5a8df6; }
.meter span:nth-child(4) { background: #6b64f5; transform: scaleY(0.3); }
.meter span:nth-child(5) { background: #7b3cf5; }

.strip:hover .meter span,
.strip:focus-visible .meter span {
  opacity: 1;
  animation: level 700ms ease-in-out infinite alternate;
}

.strip:hover .meter span:nth-child(2),
.strip:focus-visible .meter span:nth-child(2) { animation-duration: 520ms; animation-delay: -200ms; }
.strip:hover .meter span:nth-child(3),
.strip:focus-visible .meter span:nth-child(3) { animation-duration: 640ms; animation-delay: -350ms; }
.strip:hover .meter span:nth-child(4),
.strip:focus-visible .meter span:nth-child(4) { animation-duration: 460ms; animation-delay: -100ms; }
.strip:hover .meter span:nth-child(5),
.strip:focus-visible .meter span:nth-child(5) { animation-duration: 580ms; animation-delay: -420ms; }

@keyframes level {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@media (max-width: 380px) {
  .strip-ch {
    display: none;
  }
}

/* ---------- Form ---------- */

.field {
  margin-bottom: 18px;
}

.field label,
.consent legend {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.req {
  color: var(--cyan);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgb(7 6 15 / 0.65);
  color: var(--text);
  /* 16 px keeps iOS from zooming into the field. */
  font: inherit;
  font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgb(30 227 245 / 0.2);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
}

/* The honeypot is out of sight and out of the tab order. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin: 4px 0 22px;
  padding: 0;
  border: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
}

.check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.check a,
.form-note a {
  color: var(--cyan);
}

.form-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgb(255 143 163 / 0.4);
  border-radius: 12px;
  background: rgb(255 143 163 / 0.08);
  font-size: 0.92rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.form-submit {
  min-width: 170px;
}

.form-hint {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.is-busy .spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
}

/* Collapsed, not display: none, so screen readers keep watching the live region. */
.form-status:empty {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-status.is-success {
  border-color: rgb(62 230 168 / 0.4);
  background: rgb(62 230 168 / 0.1);
  color: var(--success);
}

.form-status.is-error {
  border-color: rgb(255 143 163 / 0.45);
  background: rgb(255 143 163 / 0.1);
  color: var(--error);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  background: rgb(0 0 0 / 0.25);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

@media (min-width: 820px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }

  .footer-social {
    justify-self: center;
  }

  .footer-nav ul {
    justify-content: flex-end;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  width: 40px;
  height: auto;
}

.footer-wordmark {
  width: auto;
  height: 40px;
}

.footer-social,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social {
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.footer-social .icon {
  width: 20px;
  height: 20px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgb(30 227 245 / 0.6);
  background: rgb(30 227 245 / 0.08);
  color: var(--cyan);
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copyright {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 88px)) 0 clamp(72px, 10vw, 112px);
  background: radial-gradient(ellipse 80% 420px at 50% 0, rgb(123 60 245 / 0.2), transparent 70%);
}

.legal-head {
  margin-bottom: 40px;
}

.legal-head h1 {
  -webkit-hyphens: auto;
  hyphens: auto;
}

.prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgb(242 241 251 / 0.84);
  overflow-wrap: break-word;
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  font-size: 1.5rem;
  color: var(--text);
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.18rem;
  color: var(--text);
}

.prose h4 {
  margin: 1.4em 0 0.4em;
  font-size: 1.02rem;
  color: var(--text);
}

.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose p {
  margin: 0 0 1em;
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--cyan);
}

.prose .caps {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.legal-intro {
  padding: 16px 20px;
  border: 1px solid rgb(30 227 245 / 0.3);
  border-radius: var(--radius);
  background: rgb(30 227 245 / 0.06);
  color: var(--text);
}

/* ---------- 404 and form result ---------- */

.message-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
  text-align: center;
}

.message-inner h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.message-inner > p {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.message-code {
  margin: 0 0 8px;
  font-size: clamp(5rem, 22vw, 10rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--cyan);
}

.message-inner .message-text.is-error {
  color: var(--error);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Reduced motion: the stage stands still, hover keeps only colour changes. ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .beam,
  .logo-knob,
  .hero-inner,
  .scroll-cue::before,
  .spinner {
    animation: none;
  }

  .button,
  .strip,
  .band,
  .insta-tile img,
  .site-nav {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .strip:hover,
  .strip:focus-visible,
  .band:hover,
  .insta-tile:hover img,
  .insta-tile:focus-visible img {
    transform: none;
  }

  .strip:hover .meter span,
  .strip:focus-visible .meter span {
    animation: none;
    transform: scaleY(1);
    transition: none;
  }
}
