
/* referenzen.css */
/* --- Der Abschnitt ---------------------------------------------------
 *
 * Er ist so hoch, wie er mit der groessten aufgeklappten Karte
 * waere - auch wenn gerade keine aufgeklappt ist. Diese Hoehe
 * misst referenzen.js und setzt sie als --hoch.
 *
 * Der Grund steht ein paar Zeilen tiefer: das Foto ist auf die
 * Flaeche des Abschnitts zugeschnitten (background-size: cover).
 * Waechst der Abschnitt beim Zeigen einer Karte, wird das Foto
 * neu gerechnet - es springt und skaliert bei jedem Ueberfahren.
 * Mit der Reserve bleibt die Flaeche gleich: die Karte klappt in
 * den freien Platz hinein, und das Foto steht still.
 *
 * Ohne Skript steht dort auto. Dann ist es wie frueher - das Foto
 * springt, aber nichts ist kaputt.
 */

.atu-ref {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: var(--hoch, auto);
  padding: clamp(56px, 6vw, 96px) clamp(20px, 4vw, 64px);
  color: #fff;
  background: #0a1722;
}

.atu-ref-grund {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: 58% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.atu-ref-schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(97deg, #0a1722 0%, rgba(10, 23, 34, .92) 30%,
                    rgba(13, 32, 50, .6) 58%, rgba(13, 32, 50, .34) 100%),
    linear-gradient(to top, rgba(10, 23, 34, .9) 0%, transparent 38%),
    radial-gradient(42% 46% at 86% 8%, rgba(52, 204, 255, .20), transparent 70%);
}

.atu-ref-innen {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
}

.atu-ref-vor {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #34ccff;
}

.atu-ref-vor::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.atu-ref .atu-ref-titel {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #fff;
}

.atu-ref .atu-ref-text {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
}

.atu-ref-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.atu-ref-zahl {
  font-size: 46px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
}

.atu-ref-neben { display: grid; gap: 6px; }

.atu-ref-aus {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.atu-ref-belege { margin-top: 26px; }

.atu-ref-belege-wort {
  margin: 0 0 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.atu-ref-belege-reihe {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.atu-ref-beleg {
  display: grid;
  gap: 5px;
  height: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.atu-ref-beleg:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-1px);
}

.atu-ref-beleg:focus-visible {
  outline: 2px solid #34ccff;
  outline-offset: 3px;
}

.atu-ref-beleg-zeichen {
  display: flex;
  align-items: center;
  height: 19px;
}

.atu-ref .atu-ref-logo {
  display: block;
  width: auto;
  height: calc(19px * var(--gr, 1));
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: .82;
  transition: opacity .22s ease;
}

.atu-ref-beleg:hover .atu-ref-logo,
.atu-ref-beleg:focus-visible .atu-ref-logo { opacity: 1; }

.atu-ref-beleg-wert {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .55);
}

.atu-ref-beleg-wert strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #34ccff;
}

.atu-ref-beleg-von { font-size: 11.5px; }

.atu-ref-beleg-anzahl {
  margin-left: auto;
  font-size: 10.5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .42);
}

.atu-ref-wand {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.atu-ref-karte {
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

/* Beim Zeigen deckt die Karte, statt Glas zu bleiben. Der Text
   steht dann auf einer ruhigen Flaeche und nicht auf dem Foto -
   genau dann liest man ihn, und genau dann ist er aufgeklappt. */
.atu-ref-karte:hover {
  background: rgba(34, 60, 82, .95);
  border-color: rgba(52, 204, 255, .45);
  transform: translateY(-2px);
}

@property --atu-ref-blende {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 56%;
}

.atu-ref-raum {
  --atu-ref-blende: 56%;
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.68;
  overflow: hidden;
  max-height: calc(1.68em * 4);
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--atu-ref-blende), rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, #000 var(--atu-ref-blende), rgba(0, 0, 0, 0) 100%);
  transition: max-height .42s cubic-bezier(.3, .7, .2, 1),
              --atu-ref-blende .42s ease;
}

.atu-ref-karte:hover .atu-ref-raum,
.atu-ref-karte:focus-within .atu-ref-raum {
  --atu-ref-blende: 100%;
  max-height: var(--auf, 46em);
}

.atu-ref-raum.ist-kurz {
  -webkit-mask-image: none;
          mask-image: none;
}

.atu-ref .atu-ref-spruch {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: rgba(255, 255, 255, .88);
}

.atu-ref-fuss {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.atu-ref .atu-ref-kopf {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .2);
}

.atu-ref-wer { display: grid; gap: 2px; min-width: 0; }

.atu-ref-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #fff;
}

.atu-ref-fahrt {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .58);
}

.atu-ref .atu-ref-sterne { display: inline-flex; gap: 3px; }

.atu-ref .atu-ref-sterne i {
  width: 15px;
  height: 14px;
  background: linear-gradient(90deg,
              #34ccff 0, #34ccff var(--voll), rgba(255, 255, 255, .22) var(--voll));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1.6 -1.6 23.2 22.2'><path d='M10 0l2.9 6.1 6.6.9-4.8 4.7 1.2 6.7L10 15.2 4.1 18.4l1.2-6.7L.5 7l6.6-.9z' fill='%23000' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1.6 -1.6 23.2 22.2'><path d='M10 0l2.9 6.1 6.6.9-4.8 4.7 1.2 6.7L10 15.2 4.1 18.4l1.2-6.7L.5 7l6.6-.9z' fill='%23000' stroke='%23000' stroke-width='2.6' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

.atu-ref-note .atu-ref-sterne i { width: 18px; height: 17px; }

@media (max-width: 1100px) {
  .atu-ref-innen { grid-template-columns: 1fr; }
  .atu-ref .atu-ref-text { max-width: 58ch; }
}

@media (max-width: 700px) {
  .atu-ref { padding: 44px 18px; }
  .atu-ref-wand { grid-template-columns: 1fr; gap: 12px; }
  .atu-ref-karte { padding: 18px 18px 15px; }

  .atu-ref-raum { max-height: calc(1.68em * 3); margin-bottom: 14px; }

  .atu-ref-beleg-zeichen { white-space: normal; font-size: 12px; }
  .atu-ref-schleier {
    background:
      linear-gradient(180deg, rgba(10, 23, 34, .93), rgba(13, 32, 50, .9)),
      radial-gradient(60% 40% at 80% 0%, rgba(52, 204, 255, .18), transparent 70%);
  }
}

.wp-block-group[class*="atu-e-"]:has(> .wp-block-group__inner-container > .atu-ref),
.wp-block-group[class*="atu-e-"]:has(> .wp-block-group__inner-container > .atu-ref)
  > .wp-block-group__inner-container {
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.wp-block-group[class*="atu-e-"]:has(> .wp-block-group__inner-container > .atu-ref)::before {
  content: none !important;
}


/* kunden.css */
.atu-kunden {
  display: grid;
  grid-template-columns: minmax(230px, 30%) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4vw, 54px) clamp(20px, 3vw, 44px);
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 20px;
}

.atu-kunden-wort h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.6vw, 33px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #0a1722;
  text-wrap: balance;
}

.atu-kunden-wort p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #4f5e6b;
}

.atu-kunden-saeulen {
  gap: clamp(10px, 1.6vw, 24px);
  height: 420px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

.atu-kunden-saeulen.ist-vier { display: grid; grid-template-columns: repeat(4, 1fr); }
.atu-kunden-saeulen.ist-zwei { display: none; }

.atu-kunden-saeule { overflow: hidden; }

.atu-kunden-gleis {
  display: flex;
  flex-direction: column;
  animation: atu-kunden-lauf var(--lauf, 60s) linear infinite;
  animation-delay: var(--vorlauf, 0s);
  will-change: transform;
}

.atu-kunden .atu-kunden-logo {
  display: block;
  width: 100%;
  height: 64px;
  margin: 0 0 26px;
  object-fit: contain;
}

@keyframes atu-kunden-lauf { to { transform: translateY(-50%); } }

@media (max-width: 860px) {
  .atu-kunden { grid-template-columns: 1fr; }
  .atu-kunden-saeulen.ist-vier { display: none; }
  .atu-kunden-saeulen.ist-zwei { display: grid; grid-template-columns: repeat(2, 1fr); }
  .atu-kunden-saeulen { height: 360px; }
}

@media (max-width: 520px) {
  .atu-kunden { padding: 28px 16px; border-radius: 16px; }
  .atu-kunden-saeulen { gap: 10px; height: 320px; }
  .atu-kunden .atu-kunden-logo { height: 56px; margin-bottom: 22px; }
}

.atu-kunden-tafel {
  margin: clamp(26px, 4vw, 48px) 0;
  padding: clamp(26px, 3.4vw, 44px) clamp(16px, 3vw, 36px);
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 20px;
}

.atu-kunden-kopf {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  text-align: center;
}

.atu-kunden-kopf h3 {
  margin: 0 0 10px;
  font-size: var(--h3-gr, 29px);
  line-height: var(--h3-zl, 1.26);
  font-weight: var(--h3-gw, 600);
  letter-spacing: var(--h3-lw, -.015em);
  color: #0a1722;
  text-wrap: balance;
}

.atu-kunden-kopf p {
  margin: 0 auto;
  max-width: 62ch;
  font-size: var(--txt-gr, 19.5px);
  line-height: var(--txt-zl, 1.84);
  color: var(--txt-fb, #4f5e6b);
  text-wrap: balance;
}

@media (max-width: 900px) {
  .atu-kunden-kopf h3 { font-size: calc(var(--h3-gr, 29px) * .84); }
}
@media (max-width: 560px) {
  .atu-kunden-kopf h3 { font-size: calc(var(--h3-gr, 29px) * .76); }
}

.atu-kunden-wand {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.6vw, 24px);
}

.atu-kunden-platz { perspective: 600px; }

.atu-kunden-tafel .atu-kunden-logo {
  display: block;
  width: 100%;
  height: 72px;
  margin: 0;
  padding: 4px;
  object-fit: contain;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .34s ease;
}

.atu-kunden-platz.weg   .atu-kunden-logo { transform: rotateY(84deg);  opacity: 0; }
.atu-kunden-platz.kommt .atu-kunden-logo { transform: rotateY(-84deg); opacity: 0;
                                           transition: none; }

@media (max-width: 900px) {
  .atu-kunden-wand { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .atu-kunden-tafel { padding: 24px 14px; border-radius: 16px; }
  .atu-kunden-wand { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .atu-kunden-tafel .atu-kunden-logo { height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .atu-kunden-gleis { animation: none; }
  .atu-kunden-tafel .atu-kunden-logo { transition: none; }
}

