/*
 * Inhaltsseiten (Für Regionen, Über uns, Impressum, Datenschutz).
 *
 * Ruhig und klar: weiße Fläche, feine Hilfslinien am Rand des Inhalts, große Überschriften in
 * mittlerem Gewicht (oft zweifarbig: Aussage dunkel, Erklärung grau), hellgraue Kacheln ohne
 * Schatten. Lebendig sind nur wenige Dinge: die Höhenlinien im Einstieg, die echten
 * Bedienelemente aus der Karte und was man selbst anklickt. Glas (.fx-frost) nur über Kartenbildern.
 * Bewegung steuert pages.js; mit "Bewegung reduzieren" steht alles still.
 * Die Popup-Karten (.mp-pop) kommen unverändert aus map/map.css.
 */

.fx {
  --fx-ink: #0f1722;
  --fx-muted: #5e6b7a;
  --fx-soft: #f4f6f8;
  --fx-line: #e6e9ee;
  --fx-blue: #1d5fd6;
  --fx-red: #e11d2e;
  --fx-width: 1180px;
  position: relative;
  color: var(--fx-ink);
  overflow-x: clip;
}

body.page:has(.fx) {
  background: #fff;
}

/* Feine senkrechte Linien links und rechts vom Inhalt, über die ganze Seite */
.fx::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: min(var(--fx-width), calc(100% - 48px));
  transform: translateX(-50%);
  border-left: 1px solid var(--fx-line);
  border-right: 1px solid var(--fx-line);
  pointer-events: none;
}

.fx-wrap {
  position: relative;
  width: var(--fx-width);
  max-width: calc(100% - 48px);
  margin: 0 auto;
  padding: 0 40px;
}

.fx-section {
  position: relative;
  padding: 104px 0;
  border-top: 1px solid var(--fx-line);
}

.fx-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--fx-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.fx-kicker i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  color: var(--fx-blue);
  font-size: 0.8125rem;
}

.fx h1,
.fx h2,
.fx h3 {
  margin-top: 0;
  color: var(--fx-ink);
  text-wrap: balance;
}

.fx h1 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.fx h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Zweiter Teil einer Überschrift: die Erklärung in Grau */
.fx-quiet {
  color: var(--fx-muted);
}

.fx h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fx-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--fx-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.fx p {
  margin-bottom: 0;
}

/* Zweispaltiger Kopf eines Abschnitts: Überschrift links, Erklärung rechts */
.fx-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: end;
}

.fx-head > p {
  color: var(--fx-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- Knöpfe und Links ---------- */

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--fx-ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.fx-btn:hover {
  background: #2a3442;
}

.fx-btn i {
  font-size: 0.8125rem;
  transition: transform 0.2s ease;
}

.fx-btn:hover i.fa-arrow-right,
.fx-link:hover i {
  transform: translateX(3px);
}

.fx-btn--ghost {
  background: transparent;
  border: 1px solid var(--fx-line);
  color: var(--fx-ink);
}

.fx-btn--ghost:hover {
  background: var(--fx-soft);
}

.fx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--fx-blue);
  font-weight: 500;
  text-decoration: none;
}

.fx-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

/* ---------- Einstieg ---------- */

/* Kein Abstandshalter unter dem Menü: Der Einstieg bringt den Platz selbst mit */
.glass-nav-spacer:has(+ .fx) {
  display: none;
}

.fx-hero {
  position: relative;
  padding: 176px 0 104px;
  overflow: hidden;
}

.fx-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

/* Höhenlinien, die sich beim Laden einmal zeichnen (pages.js), dann still stehen */
.fx-contours {
  position: absolute;
  top: 0;
  right: -8%;
  width: 72%;
  height: 100%;
  pointer-events: none;
}

.fx-contours path {
  fill: none;
  stroke: #b9cbea;
  stroke-width: 1;
  opacity: 0.5;
}

/* Jede vierte Linie etwas kräftiger, wie die Zählhöhenlinien auf einer Karte */
.fx-contours path:nth-child(4n + 1) {
  stroke: #8eaee3;
  opacity: 0.6;
}

/* Bühne: Kartenbild, darüber Bedienelemente aus der Karte */
.fx-stage {
  position: relative;
  aspect-ratio: 16 / 11;
}

.fx-screen {
  position: absolute;
  inset: 6% 0 8% 8%;
  overflow: hidden;
  border-radius: 14px;
  background: #dfe6ee;
  border: 1px solid var(--fx-line);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 34, 0.25);
}

.fx-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-float {
  position: absolute;
  z-index: 2;
}

.fx-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 34, 0.04), 0 18px 40px -12px rgba(15, 23, 34, 0.28);
}

.fx-card .mp-pop {
  width: 268px;
}

/* Glas nur über Kartenbildern, wie die Bedienelemente in der Karte selbst */
.fx-frost {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px -6px rgba(15, 23, 34, 0.2);
}

.fx-chips {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 99px;
}

.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--fx-ink);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.fx-chip b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.fx-chip--star {
  background: var(--fx-ink);
  color: #fff;
}

.fx-chip--star i {
  color: #f5b301;
}

/* Status-Ring: Anteil offener Lifte */
.fx-ring {
  --share: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#16a34a calc(var(--share) * 1%), #e6e9ee 0);
}

.fx-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.fx-ring b {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
}

.fx-status strong {
  display: block;
  font-size: 0.9375rem;
}

.fx-status span {
  color: var(--fx-muted);
  font-size: 0.8125rem;
}

.fx-status__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #16a34a;
}

/* ---------- Kennzahlen: große, leichte Zahlen zwischen feinen Linien ---------- */

.fx-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--fx-line);
}

.fx-facts > div {
  padding: 40px 28px 44px;
  text-align: center;
}

.fx-facts > div + div {
  border-left: 1px solid var(--fx-line);
}

.fx-facts b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fx-facts > div:not(:first-child) b {
  color: var(--fx-muted);
}

.fx-facts span {
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* ---------- Reiter: Für wen ---------- */

.fx-tabs {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}

.fx-tablist {
  display: grid;
  border-top: 1px solid var(--fx-line);
}

.fx-tab {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--fx-line);
  background: transparent;
  color: var(--fx-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fx-tab strong {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fx-muted);
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.fx-tab strong i {
  width: 18px;
  font-size: 0.9375rem;
}

.fx-tab:hover strong,
.fx-tab[aria-selected="true"] strong {
  color: var(--fx-ink);
}

.fx-tab[aria-selected="true"] strong i {
  color: var(--fx-blue);
}

.fx-tab p {
  display: none;
  padding-left: 30px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.fx-tab[aria-selected="true"] p {
  display: block;
}

/* Fortschritt bis zum nächsten Reiter: läuft auf der unteren Linie */
.fx-tab__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.fx-tab[aria-selected="true"] .fx-tab__progress {
  opacity: 1;
}

.fx-tab__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fx-ink);
  transform: scaleX(0);
  transform-origin: left;
}

.fx-tab[aria-selected="true"] .fx-tab__progress i {
  animation: fx-progress var(--fx-tab-time, 7s) linear forwards;
}

.fx-tabs.is-paused .fx-tab__progress i {
  animation: none;
  transform: scaleX(1);
}

.fx-tabs:hover .fx-tab__progress i {
  animation-play-state: paused;
}

@keyframes fx-progress {
  to {
    transform: scaleX(1);
  }
}

.fx-panels {
  position: relative;
  aspect-ratio: 16 / 10;
}

.fx-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.fx-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fx-panel .fx-screen {
  inset: 0;
}

.fx-panel__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 32px);
}

.fx-panel__tag span {
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- Kacheln: hellgrau, ohne Schatten ---------- */

.fx-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.fx-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  border-radius: 12px;
  background: var(--fx-soft);
}

.fx-tile p {
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Fett gesetzter Anfang eines Absatzes, wie eine Zwischenüberschrift im Fließtext */
.fx-tile p strong,
.fx-values p strong {
  color: var(--fx-ink);
  font-weight: 600;
}

.fx-tile--wide {
  grid-column: span 4;
}

.fx-tile--half {
  grid-column: span 3;
}

.fx-tile--third {
  grid-column: span 2;
}

.fx-tile--dark {
  background: var(--fx-ink);
}

.fx-tile--dark p {
  color: rgba(255, 255, 255, 0.68);
}

.fx-tile--dark p strong {
  color: #fff;
}

.fx-tile__demo {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 140px;
}

.fx-tile--split {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}

.fx-tile--split > div:first-child {
  flex: 1;
}

/* Suche, die sich selbst tippt */
.fx-search {
  width: 100%;
  max-width: 330px;
}

.fx-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--fx-line);
  color: var(--fx-muted);
}

.fx-search__field span {
  color: var(--fx-ink);
}

.fx-search__field span::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--fx-ink);
  animation: fx-caret 1s steps(1) infinite;
}

@keyframes fx-caret {
  50% {
    opacity: 0;
  }
}

.fx-search__list {
  margin-top: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--fx-line);
  list-style: none;
}

.fx-search__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fx-search__list li.is-shown {
  opacity: 1;
  transform: none;
}

.fx-search__list li:first-child.is-shown {
  background: var(--fx-soft);
}

.fx-search__list li em {
  margin-left: auto;
  color: var(--fx-muted);
  font-size: 0.75rem;
  font-style: normal;
}

.fx-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Kartenstile zum Durchklicken */
.fx-styles {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.fx-styles img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fx-styles img.is-active {
  opacity: 1;
}

.fx-styles__switch {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
}

.fx-styles__switch button {
  padding: 6px 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--fx-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.fx-styles__switch button.is-active {
  background: var(--fx-ink);
  color: #fff;
}

/* Abfahrt abfliegen: ein Punkt läuft das Höhenprofil hinunter */
.fx-tour {
  width: 100%;
}

.fx-tour__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
}

.fx-tour__head strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.fx-tour__head span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.fx-tour svg {
  display: block;
  width: 100%;
  height: 84px;
  overflow: visible;
}

.fx-tour__stops {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6875rem;
}

.fx-tour__stops span {
  transition: color 0.3s ease;
}

.fx-tour__stops span.is-here {
  color: #fff;
}

.fx-rings {
  display: flex;
  gap: 22px;
  align-items: center;
}

.fx-rings figure {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.fx-rings .fx-ring {
  width: 84px;
  height: 84px;
}

.fx-rings .fx-ring::before {
  inset: 8px;
  background: var(--fx-soft);
}

.fx-rings .fx-ring b {
  font-size: 1.0625rem;
}

.fx-rings figcaption {
  color: var(--fx-muted);
  font-size: 0.8125rem;
}

/* Bildschirm vor Ort */
.fx-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  border: 5px solid var(--fx-ink);
}

.fx-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fx-pan 24s ease-in-out infinite alternate;
}

@keyframes fx-pan {
  to {
    transform: scale(1.15) translate(-3%, 2%);
  }
}

.fx-display__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ---------- Vergleich ---------- */

.fx-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 56px;
  border-top: 1px solid var(--fx-line);
}

.fx-compare > div {
  padding: 36px 36px 8px 0;
}

.fx-compare > div + div {
  padding-left: 36px;
  border-left: 1px solid var(--fx-line);
}

.fx-compare h3 {
  margin-bottom: 20px;
}

.fx-compare ul {
  display: grid;
  gap: 14px;
  list-style: none;
}

.fx-compare li {
  display: flex;
  gap: 12px;
  line-height: 1.45;
}

.fx-compare li i {
  width: 16px;
  flex: none;
  margin-top: 4px;
  font-size: 0.8125rem;
}

.fx-compare__ours li i {
  color: #16a34a;
}

.fx-compare__theirs {
  color: var(--fx-muted);
}

.fx-compare__theirs li i {
  color: #a3acb7;
}

/* ---------- Ablauf ---------- */

.fx-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--fx-line);
  list-style: none;
  counter-reset: step;
}

.fx-steps li {
  position: relative;
  padding: 32px 28px 0 0;
}

.fx-steps li + li {
  padding-left: 28px;
  border-left: 1px solid var(--fx-line);
}

.fx-steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 28px;
  color: var(--fx-blue);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-steps p {
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Abschluss: Fläche mit leichtem Farbschein am Rand ---------- */

.fx-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px 64px;
  align-items: end;
  padding: 56px;
  border-radius: 12px;
  background: #eef3fb;
}

/* Ein weicher Schein hinter der Fläche, nur hier */
.fx-cta::before {
  content: "";
  position: absolute;
  inset: -48px -24px;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(29, 95, 214, 0.22), rgba(29, 95, 214, 0) 70%);
  filter: blur(24px);
}

.fx-cta p {
  color: var(--fx-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.fx-cta .fx-actions {
  margin-top: 24px;
}

/* ---------- Über uns ---------- */

.fx-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.fx-about .fx-lead + .fx-lead {
  margin-top: 16px;
}

.fx-photo img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-left: auto;
}

.fx-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.fx-values > div {
  padding: 28px;
  border-radius: 12px;
  background: var(--fx-soft);
}

.fx-values i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 48px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fx-blue);
  font-size: 1rem;
}

.fx-values p {
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.fx-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--fx-line);
}

.fx-contact a {
  display: grid;
  gap: 6px;
  padding: 32px 28px 8px 0;
  color: var(--fx-ink);
  text-decoration: none;
}

.fx-contact a + a {
  padding-left: 28px;
  border-left: 1px solid var(--fx-line);
}

.fx-contact span {
  color: var(--fx-muted);
  font-size: 0.875rem;
}

.fx-contact strong {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.fx-contact a:hover strong {
  color: var(--fx-blue);
}

/* ---------- Rechtliches: Inhaltsverzeichnis links, Text rechts ---------- */

.fx-legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.fx-toc {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
}

.fx-toc p {
  margin-bottom: 10px;
  color: var(--fx-muted);
  font-weight: 500;
}

.fx-toc a {
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--fx-line);
  color: var(--fx-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fx-toc a:hover {
  color: var(--fx-ink);
}

.fx-toc a.is-current {
  border-left-color: var(--fx-ink);
  color: var(--fx-ink);
}

.fx-prose {
  max-width: 720px;
  color: #2b3542;
  font-size: 1rem;
  line-height: 1.7;
}

.fx-prose h2 {
  scroll-margin-top: 112px;
  margin: 0 0 14px;
  padding-top: 40px;
  border-top: 1px solid var(--fx-line);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.fx-prose h2:first-child {
  padding-top: 0;
  border-top: none;
}

.fx-prose h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.fx-prose p,
.fx-prose ul {
  margin: 0 0 14px;
}

.fx-prose p + h2,
.fx-prose ul + h2 {
  margin-top: 40px;
}

.fx-prose ul {
  padding-left: 20px;
}

.fx-prose li {
  margin-bottom: 6px;
}

.fx-prose a {
  color: var(--fx-blue);
  text-decoration: none;
}

.fx-prose a:hover {
  text-decoration: underline;
}

/* Das Wichtigste in Kürze: als hellgraue Fläche hervorgehoben */
.fx-prose .fx-summary {
  margin: 0 0 14px;
  padding: 24px 28px 24px 48px;
  border-radius: 12px;
  background: var(--fx-soft);
}

.fx-meta {
  margin-top: 20px;
  color: var(--fx-muted);
  font-size: 0.9375rem;
}

/* ---------- Einblenden beim Scrollen ---------- */

.fx-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--fx-delay, 0ms);
}

.fx-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Schmal ---------- */

@media (max-width: 960px) {
  .fx-hero__grid,
  .fx-tabs,
  .fx-about,
  .fx-head,
  .fx-cta,
  .fx-legal {
    grid-template-columns: 1fr;
  }

  .fx-tile--wide,
  .fx-tile--half,
  .fx-tile--third {
    grid-column: span 6;
  }

  .fx-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-facts > div:nth-child(3) {
    border-left: none;
  }

  .fx-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--fx-line);
  }

  .fx-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-steps li:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .fx-values {
    grid-template-columns: 1fr;
  }

  .fx-contact,
  .fx-compare {
    grid-template-columns: 1fr;
  }

  .fx-contact a + a,
  .fx-compare > div + div {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--fx-line);
  }

  .fx-compare > div + div {
    margin-top: 28px;
  }

  .fx-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .fx::before {
    width: calc(100% - 24px);
  }

  .fx-wrap {
    max-width: calc(100% - 24px);
    padding: 0 18px;
  }

  .fx-section {
    padding: 72px 0;
  }

  .fx-hero {
    padding: 112px 0 64px;
  }

  .fx-contours {
    width: 140%;
    right: -40%;
    opacity: 0.6;
  }

  .fx-lead {
    font-size: 1.0625rem;
  }

  .fx-stage {
    aspect-ratio: 4 / 5;
  }

  .fx-screen {
    inset: 0 0 20% 0;
  }

  .fx-card .mp-pop {
    width: 236px;
  }

  .fx-tile {
    min-height: 0;
    padding: 22px;
  }

  .fx-tile--split {
    flex-direction: column;
  }

  .fx-facts > div {
    padding: 28px 12px;
  }

  .fx-steps {
    grid-template-columns: 1fr;
  }

  .fx-steps li,
  .fx-steps li + li {
    padding: 28px 0 0;
    border-left: none;
  }

  .fx-cta {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx *,
  .fx *::before {
    animation: none !important;
    transition: none !important;
  }

  .fx-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Am Handy dürfen lange Wörter in Überschriften getrennt werden */
@media (max-width: 640px) {
  .fx h1,
  .fx h2 {
    -webkit-hyphens: auto;
            hyphens: auto;
  }
}

/* Kleingedrucktes unter einem Abschnitt */
.fx-note {
  max-width: 760px;
  margin-top: 32px;
  color: var(--fx-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- Funktionen: Einstieg und Kapitel liegen als Glas über der Karte ---------- */

.fx--over,
.fx--page {
  position: relative;
  z-index: 100;
}

/* Über der Karte keine Hilfslinien und kein weißer Grund */
.fx--over::before {
  display: none;
}

.fx--page {
  background: #fff;
}

.fx-fintro {
  padding: 120px 0 0;
}

.fx-fintro__panel {
  max-width: 620px;
  padding: 36px 40px 40px;
  border-radius: 18px;
}

.fx-fintro__panel .fx-lead {
  margin-top: 18px;
  color: #3b4655;
  font-size: 1.0625rem;
}

.fx-fintro__panel .fx-kicker i {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 34, 0.08);
}

/* Die Kapitel-Boxen (style.css: .scroll_container__ele) in der Schrift der Inhaltsseiten */
.scroll_container__ele h3 {
  margin: 0 0 10px;
  color: #0f1722;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.scroll_container__ele p {
  color: #3b4655;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.fx-values--four {
  grid-template-columns: repeat(4, 1fr);
}

/* Liste geplanter Funktionen: zwei Spalten mit Linien dazwischen */
.fx-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--fx-line);
  list-style: none;
}

.fx-next li {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--fx-line);
}

.fx-next li > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--fx-line);
  border-radius: 9px;
  color: var(--fx-blue);
  font-size: 0.875rem;
}

.fx-next h3 {
  margin-bottom: 4px;
}

.fx-next p {
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .fx-values--four {
    grid-template-columns: 1fr 1fr;
  }

  .fx-next {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fx-fintro {
    padding-top: 84px;
  }

  .fx-fintro__panel {
    padding: 24px 22px 26px;
  }

  .fx-values--four {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mockups und Gründer ---------- */

/* iPhone-Mockup: Das Bild enthält links unten den weichen Schatten, das Gerät selbst sitzt rechts
   oben. Deshalb rechtsbündig setzen, sonst wirkt das Handy nach rechts verrutscht. */
.fx-iphone {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-left: auto;
}

.fx-tile .fx-iphone {
  max-width: 300px;
  margin: 0 -12px -28px auto;
}

/* Skifoto im Hintergrund, die Visitenkarte davor */
.fx-founder {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 12px;
  background: #dfe6ee;
}

.fx-founder__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}

/* Die Karte steht rechts: Im Foto fährt die Person links der Mitte, so bleibt sie frei */
.fx-founder__card {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px 18px;
  align-items: center;
  width: 400px;
  max-width: calc(100% - 64px);
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 34, 0.35);
}

.fx-founder__card > img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.fx-founder__card strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fx-founder__card span {
  color: var(--fx-muted);
  font-size: 0.875rem;
}

.fx-founder__card p {
  grid-column: 1 / -1;
  color: var(--fx-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.fx-founder__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--fx-line);
}

.fx-founder__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fx-ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.fx-founder__links a:hover {
  color: var(--fx-blue);
}

.fx-founder__links i {
  color: var(--fx-blue);
}

/* Unter 1100 px würde die Karte die Person im Foto verdecken: dann steht sie unter dem Foto */
@media (max-width: 1100px) {
  .fx-founder {
    min-height: 0;
    overflow: visible;
    background: none;
  }

  .fx-founder__photo {
    position: static;
    height: clamp(240px, 42vw, 420px);
    border-radius: 12px;
  }

  .fx-founder__card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: -48px 12px 0;
  }
}

/* Für Regionen, nur nach Demo-Link: Kennzahlen des Gebiets unter der Überschrift, etwas kleiner,
   damit auch "795–2.090 m" in eine Zeile passt */
.fx-facts--demo {
  margin-top: 40px;
}

.fx-facts--demo b {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  white-space: nowrap;
}

/* ---------- Fuß aller Inhaltsseiten (tools/build_nav.py) ---------- */
.fx-footer {
  display: block;
  padding: 72px 0 32px;
  border-top: 1px solid var(--fx-line);
  background: #fff;
  font-size: 0.875rem;
}

/* Im Fuß der Funktionen-Seite liegen die Hilfslinien schon vom umgebenden Block */
.fx .fx-footer::before {
  display: none;
}

.fx-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.fx-footer__logo {
  color: var(--fx-ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.fx-footer__brand p {
  max-width: 280px;
  margin: 12px 0 0;
  color: var(--fx-muted);
  line-height: 1.55;
}

.fx-footer__demo a {
  color: inherit;
}

.fx-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fx-footer__cols div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fx-footer .fx-footer__cols h2 {
  margin: 0 0 4px;
  color: var(--fx-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.fx-footer__cols a,
.fx-footer__base a {
  color: var(--fx-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.fx-footer__cols a:hover,
.fx-footer__base a:hover {
  color: var(--fx-ink);
}

.fx-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--fx-line);
  color: var(--fx-muted);
  font-size: 0.8125rem;
}

.fx-footer__base p {
  display: flex;
  gap: 20px;
  margin: 0;
}

@media (max-width: 760px) {
  .fx-footer {
    padding-top: 56px;
  }

  .fx-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fx-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

.fx-footer .fx-footer__demo {
  max-width: none;
}
