/* =========================================================================
   SHIFT LEFT — coming-soon page
   Dark theme · plain CSS · German only
   Colours & tokens per docs/corporate-identity.md
   ========================================================================= */

:root {
  /* Dark-theme system (derived from brand slate #3A3E42) */
  --bg:            #121417;
  --surface:       #1A1D21;
  --brand-gray:    #3A3E42;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text:          #FEFEFE;
  --text-muted:    #AEB5BB;
  --text-faint:    #737B82;
  --accent:        #9FD8C6;
  --accent-strong: #7FC7B1;
  --accent-deep:   #2b6f62;

  --font: Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, system-ui, sans-serif;

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);   /* fill any canvas gutter so no black shows through */
  overflow-x: clip;        /* kill stray horizontal overflow WITHOUT creating a scroll
                              container — `hidden` here would break the sticky header */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip, not hidden — keeps `position: sticky` alive on the header */
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-strong); }

h1, h2 { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0f1113;
  padding: .6rem 1rem;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* -------------------------------------------------------------------------
   Header — full-bleed sticky glass bar
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  display: block;
  width: clamp(178px, 20vw, 240px);
  height: auto;
  transition: transform .3s ease, filter .3s ease;
}
.brand:hover img {
  transform: translateX(-3px);
  filter: drop-shadow(0 0 18px rgba(159, 216, 198, 0.35));
}

/* Anchor targets clear the sticky header when jumped to */
#home { scroll-margin-top: calc(var(--header-h) + 10px); }

/* -------------------------------------------------------------------------
   Hero — full-height, centered
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(3rem, 7vw, 5rem);
  text-align: center;
}

/* Top split: icon + claim side by side on wide screens, wrapping (icon on
   top, claim below) once the row runs out of room — pure flex, no breakpoints. */
.hero-split {
  position: relative;
  z-index: 2;
  margin-block: auto;        /* centers the split in the space above the bottom note */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  width: 100%;
}

/* Decorative backdrop: faint grid + drifting glow orbs */
.hero-bg {
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 38%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 50% 38%, #000 0%, transparent 72%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: min(46vw, 560px); aspect-ratio: 1;
  top: -8%; left: 4%;
  background: var(--accent-deep);
  opacity: .40;
  animation: float1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: min(40vw, 480px); aspect-ratio: 1;
  bottom: -10%; right: 2%;
  background: var(--accent);
  opacity: .16;
  animation: float2 27s ease-in-out infinite alternate;
}
@keyframes float1 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes float2 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-7%, -6%, 0) scale(1.1); }
}

/* Chevron window — the << glyph masks a live animated scene */
.chevron-window {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;            /* keep its size — never stretch or squash in the row */
  width: min(64vw, 380px);
  aspect-ratio: 1 / 1;
  -webkit-mask: url("Icon_bright.svg") center / contain no-repeat;
          mask: url("Icon_bright.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 48px rgba(159, 216, 198, 0.32));
  animation: rise 1s cubic-bezier(.16, 1, .3, 1) both;
  /* Brand-coloured base: shows through until photos load, and is the fallback
     if an image is missing — so the chevron never looks broken. */
  background: linear-gradient(125deg, #164a40, #0b1714);
}
/* Slideshow: five stacked photos, only opacity animates. Between crossfades
   the layer is a static cached bitmap → near-zero GPU cost. */
.scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity;
  /* 5 scenes × 8s each = 40s loop; staggered by animation-delay below */
  animation: xfade 40s ease-in-out infinite both;
}
/* *-hero.webp = 800×800 centre-square crops of the full-size originals —
   sized for the fixed ≤380px chevron at 2× DPR. Regenerate from the
   originals if a photo changes (see images/README.md). */
.scene-1 { background-image: url("images/alexandre-debieve-FO7JIlwjOtU-unsplash-hero.webp"); animation-delay:  0s; }
.scene-2 { background-image: url("images/dave-meckler-0ltzud5qqYc-unsplash-hero.webp"); animation-delay:  8s; }
.scene-3 { background-image: url("images/gustav-gullstrand-d6kSvT2xZQo-unsplash-hero.webp"); animation-delay: 16s; }
.scene-4 { background-image: url("images/marek-piwnicki--_OuVFhN5BU-unsplash-hero.webp"); animation-delay: 24s; }
.scene-5 { background-image: url("images/slava-auchynnikau-abQUuT75U_0-unsplash-hero.webp"); animation-delay: 32s; }
/* Each scene: fade in, hold for its slot, fade out, stay hidden till next loop.
   Neighbours' fade-out and fade-in overlap → seamless crossfade. */
@keyframes xfade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.claim {
  /* Two-line claim: line 1 hugs the left, line 2 hugs the right of a
     capped-width box. As the viewport narrows the box shrinks, so the
     horizontal offset compresses instead of the text just shrinking.
     --claim-max caps the box width → caps the maximum offset.
     The per-line margins guarantee a slight offset is always kept. */
  --claim-max: 5.2em;        /* box width (in em → scales with font) → sets the stagger + wrap threshold */
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;            /* keep the box width in the split row; wrap kicks in when it no longer fits */
  width: var(--claim-max);
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 5.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.claim-line { display: block; white-space: nowrap; }
.claim-top    { align-self: flex-start; margin-left: 0.18em; }  /* Stay → left */
.claim-bottom { align-self: flex-end;   margin-right: 0.18em; } /* tuned … → right */

/* Highlighter-marker swash behind the accent words */
.claim-underline {
  position: relative;
  isolation: isolate;          /* own stacking context → marker sits behind the text, above the hero bg */
}
.claim-underline::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.1em;
  bottom: -0.5em;            /* sits BELOW the words — a marker underline, no overlap */
  height: 0.55em;             /* brush size — bump this to make the stroke thicker/bigger */
  z-index: -1;                /* behind the text */
  --marker: #3F8770;         /* darker green → clean separation from the light-green text */
  background: var(--marker);
  /* exported brush stroke used as a mask → keeps its exact shape/fray/curve, recolored to brand green */
  -webkit-mask: url("underline_brushed.svg") no-repeat center / 100% 100%;
          mask: url("underline_brushed.svg") no-repeat center / 100% 100%;
  pointer-events: none;
}
.claim-accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-strong) 55%, #d3f6ea 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Status note pinned to the bottom of the hero */
.soon-note {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
}

/* -------------------------------------------------------------------------
   Impressum
   ------------------------------------------------------------------------- */
.impressum {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-top: 1px solid var(--border);
}
.impressum h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem 2.5rem;
}
.impressum-grid p { margin: 0; color: var(--text-muted); }
.impressum .label {
  display: block;
  margin-bottom: .45rem;
  color: var(--text-faint);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}
/* Bildnachweis (photo credits) — a single condensed sentence */
.credit-line {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: .95rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: .85rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: .35rem; }

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-1, .orb-2, .chevron-window, .scene { animation: none; }
  /* No crossfade cycling: show a single still photo behind the chevron. */
  .scene { opacity: 0; }
  .scene-1 { opacity: 1; }
}

/* -------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .chevron-window { width: 72vw; }
}
