/* STANAC – Coming Soon (stanac.de)
   Farben laut STANAC-Brand: Anthrazit, Graphit, Stahlgrau, Champagner-Gold, Sand, Warmweiß.
   Keine externen Ressourcen (keine Webfonts, kein CDN). */

:root {
  --anthracite: #0B0E12;
  --graphite: #1E2329;
  --steel: #4B5563;
  --gold: #C9A96A;
  --sand: #E0D5B6;
  --warm: #F8F6F2;
  --night: 0;                         /* 0 = Tag … 1 = Nacht, gesetzt von cs.js */
  --scene-focus: 66% 55%;             /* Bildausschnitt der Architekturaufnahme */
  --gutter: clamp(22px, 5.5vw, 96px);
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--anthracite);
  color: var(--warm);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Szene: zwei deckungsgleiche Ebenen + Lesbarkeits-Verlauf ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--anthracite);
  animation: scene-in 1.1s var(--ease) .12s both;
}

.scene__layer {
  position: absolute;
  inset: 0;                           /* beide Ebenen: identische Box, identischer Ausschnitt */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--scene-focus);
}

/* Ohne Fotos: ruhige, abstrakte Himmelsstimmung (Tag/Nacht) als Platzhalter-Szene. */
.scene__layer--day {
  background-image:
    radial-gradient(120% 85% at 80% 112%, rgba(224, 213, 182, .42), transparent 62%),
    radial-gradient(70% 55% at 88% 8%, rgba(248, 246, 242, .16), transparent 70%),
    linear-gradient(180deg, #2c3643 0%, #4f5d6d 48%, #8d8f8a 82%, #a99f8a 100%);
}

.scene__layer--night {
  opacity: 0;
  will-change: opacity;
  transition-property: opacity;
  transition-timing-function: linear;
  transition-duration: 0s;
  background-image:
    radial-gradient(85% 55% at 76% 108%, rgba(201, 169, 106, .30), transparent 62%),
    radial-gradient(40% 30% at 70% 92%, rgba(224, 213, 182, .10), transparent 70%),
    linear-gradient(180deg, #04060a 0%, #0a0d12 45%, #131820 80%, #1b2028 100%);
}

/* Mit Fotos (html data-scene-photos="on"): beide Aufnahmen exakt übereinander. */
[data-scene-photos="on"] .scene__layer--day { background-image: url("/cs/img/stanac-day.jpg"); }
[data-scene-photos="on"] .scene__layer--night { background-image: url("/cs/img/stanac-night.jpg"); }

.scene__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(11, 14, 18, .94) 0%,
      rgba(11, 14, 18, .86) 30%,
      rgba(11, 14, 18, .46) 56%,
      rgba(11, 14, 18, .10) 80%,
      rgba(11, 14, 18, .04) 100%),
    linear-gradient(0deg, rgba(11, 14, 18, .55) 0%, transparent 32%);
}

@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Inhalt ---------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

.panel {
  width: 100%;
  max-width: 640px;
}

.panel > * { animation: rise .9s var(--ease) both; }
.panel > :nth-child(1) { animation-delay: .20s; }
.panel > :nth-child(2) { animation-delay: .32s; }
.panel > :nth-child(3) { animation-delay: .40s; }
.panel > :nth-child(4) { animation-delay: .50s; }
.panel > :nth-child(5) { animation-delay: .58s; }
.panel > :nth-child(6) { animation-delay: .66s; }

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

.brand { margin: 0; }

.brand__mark {
  display: block;
  width: clamp(46px, 4.6vw, 64px);
  height: auto;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.brand__name {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .16em;
  margin-right: -.16em;
  color: var(--warm);
}

.brand__claim {
  margin: clamp(14px, 1.6vw, 18px) 0 0;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--gold);
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: clamp(28px, 3.6vw, 40px) 0;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 106, .15));
}

.message { max-width: 30em; }

.message__title {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.1vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--warm);
}

.message__lead {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  color: rgba(248, 246, 242, .88);
}

.message__text {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 16.5px);
  color: rgba(224, 213, 182, .74);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 3.4vw, 38px) 0 0;
  padding: 9px 16px 9px 14px;
  border: 1px solid rgba(201, 169, 106, .46);
  border-radius: 999px;
  background: rgba(11, 14, 18, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  line-height: 1.2;
  color: var(--gold);
}

.status__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 169, 106, .55);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 169, 106, .55); }
  70% { box-shadow: 0 0 0 9px rgba(201, 169, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 106, 0); }
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: clamp(30px, 3.8vw, 44px) 0 0;
  padding: clamp(18px, 2vw, 22px) 0 0;
  list-style: none;
  border-top: 1px solid rgba(248, 246, 242, .12);
}

.pillars__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: rgba(248, 246, 242, .84);
  white-space: nowrap;
}

.pillars__num {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: clamp(30px, 3.6vw, 42px);
}

.contact__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(224, 213, 182, .62);
}

.contact__mail {
  display: inline-block;
  padding: 6px 0;                     /* Touch-Fläche */
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 500;
  color: var(--warm);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color .25s var(--ease), background-size .25s var(--ease);
}

.contact__mail:hover { color: var(--sand); background-size: 100% 2px; }

.contact__mail:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Tablet / Smartphone ---------- */

@media (max-width: 900px) {
  :root { --scene-focus: 62% 50%; }
  .stage { align-items: flex-end; }
  .scene__shade {
    background:
      linear-gradient(180deg,
        rgba(11, 14, 18, .30) 0%,
        rgba(11, 14, 18, .42) 26%,
        rgba(11, 14, 18, .82) 55%,
        rgba(11, 14, 18, .95) 100%);
  }
}

@media (max-width: 560px) {
  .brand__name { letter-spacing: .12em; margin-right: -.12em; }
  .brand__claim { letter-spacing: .26em; }
  .pillars { flex-direction: column; gap: 12px; }
  .status { letter-spacing: .22em; }
}

/* Niedrige Desktop-Fenster (z. B. 1280×720, Windows-Laptop 1366×768 mit Browserleisten):
   ohne Scrollen, gleiche Gestaltung mit engeren Abständen. */
@media (min-width: 901px) and (max-height: 820px) {
  .stage {
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .brand__mark { width: 42px; margin-bottom: 14px; }
  .brand__name { font-size: clamp(38px, 4.6vw, 58px); }
  .brand__claim { margin-top: 10px; }
  .rule { margin: 20px 0; }
  .message__title { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 10px; }
  .status { margin-top: 20px; }
  .pillars { margin-top: 22px; padding-top: 14px; }
  .contact { margin-top: 16px; }
}

@media (max-width: 360px) {
  .status { gap: 10px; padding: 8px 13px 8px 12px; font-size: 11px; letter-spacing: .16em; }
  .pillars__item { letter-spacing: .16em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .stage { align-items: flex-start; }
  .rule { margin: 20px 0; }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .scene, .panel > *, .status__dot { animation: none !important; }
  .scene__layer--night { transition: none !important; }
  .contact__mail { transition: none; }
}
