/* Standort (Tobias 10.11.2026): deutsches Unternehmen, Server in Frankfurt.
   Helle lila Buehne, links Text und Fakten, rechts die Weltkugel, die
   unten aus der Buehne laeuft. Die Fakten-Karten kommen aus start-100k.css. */

/* ---------- Gemeinsame Buehne fuer #team und #standort ---------- */
.herkunft {
  position: relative;
  margin-block: calc(var(--sektion) / 2);
  padding: 32px 72px 0;
  border-radius: var(--r-buehne);
  border: 1px solid var(--rahmen);
  background:
    radial-gradient(60% 45% at 85% 88%, rgba(108, 43, 242, .10), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--tint-weak) 38%, var(--tint) 100%);
  /* clip statt hidden: sonst scrollt ein Ankersprung (#standort) den Inhalt der Buehne. */
  overflow: clip;
  isolation: isolate;
}
.herkunft > .sektion { padding-block: 40px; scroll-margin-top: 140px; }
.herkunft > #standort { padding-bottom: 0; }

/* Unser Raster (wie in den dunklen Buehnen), links, laeuft nach rechts aus. */
.hk-gitter {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(108, 43, 242, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 43, 242, .09) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 71px 31px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 58%);
}

/* Foto als Poster: weisser Rand, leicht schraeg, oben mit Klebestreifen. */
.herkunft .gr-bild { rotate: -2.2deg; }
.herkunft .gr-bild > img:first-child {
  padding: 12px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(23, 16, 43, .08), 0 36px 70px -34px rgba(40, 20, 90, .55);
}
.herkunft .gr-bild::before {
  content: ""; position: absolute; z-index: 2; top: -14px; left: 50%;
  width: 120px; height: 30px; translate: -50% 0; rotate: 4deg;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(108, 43, 242, .14);
  box-shadow: 0 2px 6px rgba(23, 16, 43, .08);
  backdrop-filter: blur(4px);
}
.herkunft .gr-bild .gr-glas { rotate: 2.2deg; }

.herkunft .gruender { position: relative; z-index: 2; }
@media (min-width: 981px) { .herkunft .gruender { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; } }
/* start-gruende.css hat eine eigene .gr-text mit Innenabstand, hier nicht. */
.herkunft #team .gr-text { display: block; padding: 0; }
.herkunft #team .gr-text > p { margin: 24px 0 0; max-width: 34em; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 620px) { .herkunft #team .gr-text > p { font-size: 16px; } }
/* Drei Haken unter dem Text, im Stil der Preis-Listen. */
.hk-haken { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.hk-haken li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--ink); }
.hk-haken span { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.hk-haken svg { width: 14px; height: 14px; }

.standort {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 40px;
  align-items: center;
  min-height: 600px;
  padding: 24px 0 64px;
}
.standort .so-globus { z-index: 0; }
.so-text { position: relative; z-index: 2; }
.so-text .titel { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.so-text > p { margin: 20px 0 0; max-width: 32em; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.standort .fakten-raster li { background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); }
.so-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 600; color: var(--accent); text-decoration: none; }
.so-link svg { width: 18px; height: 18px; transition: translate var(--t-2) var(--ease); }
.so-link:hover svg { translate: 3px 0; }

/* Die Kugel ist groesser als ihre Spalte und laeuft unten und rechts heraus. */
.so-globus {
  position: relative;
  align-self: stretch;
  min-height: 600px;
}
.so-globus canvas {
  position: absolute;
  /* Ganze Kugel sichtbar: mittig in der Spalte. Die Kugel selbst ist
     80 % der Leinwand, der Rest ist Glanz. */
  left: 50%;
  top: 50%;
  width: 800px;
  height: 800px;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  cursor: grab;
  touch-action: pan-y;
  /* cobe malt Punkte immer dunkel auf hellem Grund: Schwarz wird Lila, Weiss bleibt. */
  filter: url(#so-lila);
}
.so-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.so-globus.ist-an canvas { opacity: 1; }
.so-globus canvas:active { cursor: grabbing; }

/* Beschriftungen an den beiden Orten, erscheinen, wenn die Kugel steht. */
.so-marke {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--rahmen);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
  pointer-events: none;
}
.so-marke b { display: block; font: 600 15px/1.25 var(--head); color: var(--ink); }
.so-marke i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(108, 43, 242, .18); }
.so-flagge { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(23, 16, 43, .08); }
.so-globus.ist-da .so-marke { opacity: 1; translate: 0 0; }
.so-globus.ist-da .so-koeln { transition-delay: .15s; }
/* Lage wird vom Skript gesetzt (--x, --y in px, Mitte der Kugel als Bezug). */
.so-marke { left: var(--x, 50%); top: var(--y, 40%); }
.so-frankfurt { transform: translate(18px, -50%); }
.so-koeln { transform: translate(calc(-100% - 18px), -50%); }

@media (max-width: 1100px) {
  .herkunft { padding-inline: 48px; }
  .hk-gitter { background-position: 47px 31px; }
  .so-globus canvas { width: 700px; height: 700px; }
}
@media (max-width: 980px) {
  .herkunft { padding: 16px 40px 0; }
  .standort { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 24px 0 32px; }
  .so-globus { margin: 8px -40px 0; min-height: 580px; }
  .hk-gitter { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 45%); mask-image: linear-gradient(180deg, #000 0%, transparent 45%); }
  .herkunft .gr-bild { rotate: -1.5deg; }
  .so-globus canvas { width: 600px; height: 600px; }
}
@media (max-width: 620px) {
  .herkunft { width: calc(100% - 24px); padding: 8px 20px 0; border-radius: 28px; }
  .so-text > p { font-size: 16px; }
  .so-globus { margin: 8px -20px 0; min-height: 380px; }
  .so-globus canvas { width: 440px; height: 440px; }
  .so-marke { padding: 8px 11px; font-size: 12px; }
  .so-marke b { font-size: 14px; }
  /* Zu schmal fuer links und rechts: Koeln ueber den Punkt, Frankfurt darunter. */
  .so-koeln { transform: translate(-50%, calc(-100% - 14px)); }
  .so-frankfurt { transform: translate(-50%, 14px); }
}
@media (prefers-reduced-motion: reduce) {
  .so-globus canvas, .so-marke { transition: none; }
}
