/* Referenzen — costa-carlo.com (21.11.2026). Eigene Datei, damit style.css unberührt bleibt. */

.ref-page { background: var(--bg-deep); }

/* Spektrum: von einfach bis hochkomplex */
.ref-spektrum { padding-top: 24px; }
.ref-spektrum-leiste {
  position: relative; margin: 34px 0 8px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.ref-spektrum-leiste::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 15px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: .55; border-radius: 2px;
}
.ref-spektrum-leiste li { position: relative; text-align: center; }
.ref-spektrum-leiste a { color: var(--text-soft); text-decoration: none; display: block; }
.ref-spektrum-leiste a:hover { color: var(--text); }
.ref-spektrum-punkt {
  display: block; width: 14px; height: 14px; margin: 9px auto 14px; border-radius: 50%;
  background: var(--bg-deep); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(217,164,65,.12);
}
.ref-spektrum-leiste li:nth-child(n+4) .ref-spektrum-punkt { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-glow); }
.ref-spektrum-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.ref-spektrum-art { display: block; font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.ref-spektrum-enden { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

/* Eine Referenz */
.ref-case { border-top: 1px solid var(--border); }
.ref-case:nth-of-type(even) { background: rgba(255,255,255,.02); }
.ref-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.ref-case.ref-rechts .ref-text { order: 2; }
.ref-case.ref-rechts .ref-geraete { order: 1; }

.ref-logo {
  display: inline-flex; align-items: center; justify-content: center; height: 64px; padding: 10px 18px;
  border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--border); margin-bottom: 22px;
}
.ref-logo--hell { background: #fff; border-color: transparent; }
.ref-logo img { height: 44px; width: auto; display: block; }
.ref-logo--anonym { gap: 10px; color: var(--text-soft); font-weight: 600; font-size: 14px; }
.ref-logo--anonym svg { width: 26px; height: 26px; color: var(--gold); }

.ref-art { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ref-titel { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin: 0 0 16px; color: var(--text); }
.ref-titel .accent { color: var(--accent); }
.ref-beschreibung { color: var(--text-soft); font-size: 17px; line-height: 1.65; margin: 0 0 22px; }

.ref-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.ref-fakten li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ref-fakten b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--text); line-height: 1.2; }
.ref-fakten span { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.ref-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s;
}
.ref-link:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
.ref-link svg { width: 16px; height: 16px; }
.ref-intern { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); background: var(--bg-card);
  border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px 14px; max-width: 520px; }
.ref-intern svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }

/* Geräte: Laptop + iPhone */
.ref-geraete { position: relative; padding: 0 6% 9% 0; }
.ref-laptop { position: relative; }
.ref-laptop-schirm {
  border-radius: 14px 14px 4px 4px; background: #11161c; padding: 10px 10px 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.ref-laptop-leiste { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; }
.ref-laptop-leiste i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ref-laptop-leiste span { margin-left: 10px; font-size: 11px; color: var(--text-dim); background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 10px; }
.ref-laptop-schirm img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px; }
.ref-laptop-fuss { height: 14px; margin: 0 -5%; border-radius: 0 0 14px 14px; background: linear-gradient(#2a3038, #15191e); box-shadow: 0 18px 30px rgba(0,0,0,.45); }

.ref-iphone {
  position: absolute; right: 0; bottom: 0; width: 25%; min-width: 120px; aspect-ratio: 390 / 844;
  border-radius: 26px; background: #0b0d10; padding: 7px;
  box-shadow: 0 24px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.ref-iphone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 30%; height: 9px; border-radius: 9px; background: #000; z-index: 2; }
.ref-iphone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; }
.ref-iphone--bild img { object-position: center; }

/* Preise + Leistungen */
.ref-preis { border-top: 1px solid var(--border); }
.ref-preis-karte {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(135deg, rgba(15,76,92,.45), rgba(7,21,33,.6)); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
}
.ref-preis-zahl { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1; color: var(--text); margin: 6px 0 14px; }
.ref-preis-zahl small { font-size: .38em; font-weight: 600; color: var(--text-muted); margin-right: 8px; }
.ref-preis p { color: var(--text-soft); font-size: 17px; line-height: 1.65; margin: 0 0 12px; }
.ref-preis-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ref-preis-liste li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 16px; line-height: 1.5; }
.ref-preis-liste li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.ref-preis-liste b { color: var(--text); }
.ref-nebenbei { margin-top: 18px !important; font-size: 15px !important; color: var(--text-muted) !important; }

@media (max-width: 900px) {
  .ref-grid, .ref-preis-karte { grid-template-columns: 1fr; }
  .ref-case.ref-rechts .ref-text, .ref-case.ref-rechts .ref-geraete { order: 0; }
  .ref-geraete { padding: 0 8% 14% 0; }
  .ref-spektrum-leiste { grid-template-columns: 1fr; gap: 4px; }
  .ref-spektrum-leiste::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--accent)); }
  .ref-spektrum-leiste li { text-align: left; padding-left: 30px; }
  .ref-spektrum-punkt { position: absolute; left: 0; top: 2px; margin: 0; }
  .ref-spektrum-leiste a { padding: 4px 0 10px; }
  .ref-spektrum-enden { display: none; }
}
@media (max-width: 480px) {
  .ref-fakten { grid-template-columns: 1fr 1fr; }
  .ref-fakten b { font-size: 17px; }
  .ref-iphone { min-width: 96px; border-radius: 20px; padding: 5px; }
  .ref-iphone img { border-radius: 15px; }
}

/* Ergebnisse (anonym) */
.ref-ergebnis-liste { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ref-ergebnis-liste li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.ref-ergebnis-zahl { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.05;
  background: linear-gradient(90deg, var(--gold-soft), var(--accent-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ref-ergebnis-titel { display: block; font-weight: 700; color: var(--text); font-size: 16px; margin: 8px 0 10px; }
.ref-ergebnis-liste p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1100px) { .ref-ergebnis-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ref-ergebnis-liste { grid-template-columns: 1fr; } }

/* Korrekturen nach Sichtprüfung 21.11. */
.ref-text, .ref-preis-karte, .ref-ergebnis-liste li { text-align: left; }
.ref-logo { display: flex; width: max-content; max-width: 100%; background: #fff; border-color: transparent; }
.ref-logo--anonym { background: rgba(255,255,255,.06); border-color: var(--border); }
.ref-art { display: block; }
.ref-preis .ref-preis-zahl { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--text); margin: 8px 0 18px; }
.ref-preis .ref-preis-zahl small { display: block; font-size: 15px; letter-spacing: .04em; font-weight: 600; color: var(--text-muted); margin: 0 0 8px; }
.ref-preis .sect-kicker { text-align: left; }
.sect.ref-spektrum { padding-bottom: 24px; }
.sect.ref-ergebnisse { padding-top: 48px; }

.ref-logo--dunkel { background: #151a20; border-color: var(--border); }

/* Ergebnisse v2 (Carlo 21.11.: „das WOW geht im Textblock unter“) — Zahl groß, Text kurz */
.ref-ergebnis-liste { gap: 18px; }
.ref-ergebnis-liste li { position: relative; padding: 28px 24px 26px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(226,105,97,.10), rgba(255,255,255,.03) 55%); border-color: rgba(255,255,255,.12); }
.ref-ergebnis-liste li::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,.16), transparent 70%); pointer-events: none; }
.ref-ergebnis-tag { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(217,164,65,.35); border-radius: 999px; padding: 4px 10px; margin-bottom: 18px; }
.ref-ergebnis-vorher { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-dim);
  text-decoration-thickness: 2px; text-decoration-color: var(--accent); margin-bottom: 2px; }
.ref-ergebnis-zahl { font-size: clamp(44px, 4.4vw, 64px); letter-spacing: -.02em; }
.ref-ergebnis-titel { font-size: 18px; line-height: 1.35; margin: 10px 0 10px; }
.ref-ergebnis-liste p { font-size: 14px; color: var(--text-muted); }

/* Ingenieurbüro: echter Plan als Planblatt */
.ref-plan { margin: 0; }
.ref-plan img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.1); }
.ref-plan figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); text-align: left; }

/* 2×2 statt 4 nebeneinander: Zahlen größer, nichts bricht um */
.ref-ergebnis-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin-left: auto; margin-right: auto; }
.ref-ergebnis-liste li { padding: 32px 32px 30px; }
.ref-ergebnis-zahl { font-size: clamp(48px, 5.6vw, 80px); white-space: nowrap; }
.ref-ergebnis-titel { font-size: clamp(18px, 1.6vw, 22px); }
.ref-ergebnis-liste p { font-size: 15px; }
@media (max-width: 760px) { .ref-ergebnis-liste { grid-template-columns: 1fr; } .ref-ergebnis-liste li { padding: 26px 22px 24px; } }

/* „vorher … · jetzt“ statt durchgestrichen (Carlo 21.11.: schlecht lesbar) */
.ref-ergebnis-vorher { text-decoration: none; font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.ref-ergebnis-vorher b { font-weight: 700; color: var(--text-soft); }

/* Handy: Ergebnis-Kacheln kompakter (Carlo 21.11.: lesbar, schnell erfassbar, nicht riesig) */
@media (max-width: 760px) {
  .ref-ergebnis-liste { gap: 12px; }
  .ref-ergebnis-liste li { padding: 20px 20px 18px; border-radius: 16px; }
  .ref-ergebnis-tag { margin-bottom: 12px; font-size: 10px; }
  .ref-ergebnis-zahl { font-size: 40px; }
  .ref-ergebnis-titel { font-size: 17px; margin: 6px 0 6px; }
  .ref-ergebnis-vorher { font-size: 14px; }
  .ref-ergebnis-liste p { font-size: 14px; }
}

/* ===== Ergebnisse als Kennzahlen-Band statt 4 Boxen (Carlo 21.11.: „nicht ideal, darunter gleich wieder Kacheln“) ===== */
.ref-ergebnis-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1240px; margin: 40px auto 0;
  border-top: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(90deg, transparent, rgba(226,105,97,.05) 30%, rgba(217,164,65,.05) 70%, transparent); }
.ref-ergebnis-liste li { position: relative; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  padding: 40px 26px 38px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ref-ergebnis-liste li::after { content: none; }
.ref-ergebnis-liste li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent); }
.ref-ergebnis-tag { order: 1; margin-bottom: 18px; }
.ref-ergebnis-vorher { order: 2; margin-bottom: 2px; }
.ref-ergebnis-zahl { order: 3; font-size: clamp(40px, 3.7vw, 60px); white-space: nowrap; }
.ref-ergebnis-titel { order: 4; font-size: 16.5px; line-height: 1.35; margin: 10px 0 8px; max-width: 26ch; }
.ref-ergebnis-liste p { order: 5; font-size: 14px; line-height: 1.55; max-width: 30ch; margin: 0; }
.ref-ergebnis-liste li:not(:has(.ref-ergebnis-vorher)) .ref-ergebnis-zahl { margin-top: calc(15px * 1.5 + 2px); }  /* Zahlen auf einer Höhe */
.ref-ergebnis-liste li:hover .ref-ergebnis-zahl { filter: drop-shadow(0 0 18px rgba(226,105,97,.35)); }

@media (max-width: 960px) {
  .ref-ergebnis-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-ergebnis-liste li + li::before { content: none; }
  .ref-ergebnis-liste li:nth-child(even)::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent); }
  .ref-ergebnis-liste li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 560px) {
  .ref-ergebnis-liste { margin-top: 28px; }
  .ref-ergebnis-liste li { padding: 22px 10px 20px; }
  .ref-ergebnis-tag { font-size: 9.5px; letter-spacing: .1em; padding: 3px 8px; margin-bottom: 12px; }
  .ref-ergebnis-vorher { font-size: 12px; }
  .ref-ergebnis-liste li:not(:has(.ref-ergebnis-vorher)) .ref-ergebnis-zahl { margin-top: calc(12px * 1.5 + 2px); }
  .ref-ergebnis-zahl { font-size: clamp(28px, 9vw, 38px); }
  .ref-ergebnis-titel { font-size: 14px; margin: 6px 0 4px; }
  .ref-ergebnis-liste p { font-size: 12.5px; }
}
/* Einblenden: statt Hochfahren der Boxen gleiten die Spalten nacheinander herein */
@media (prefers-reduced-motion: no-preference) {
  .ref-ergebnis-liste li.fit-bereit { transform: translateY(16px); }
}

/* Band: ausgewogen umbrechen, nie ein Wort allein */
.ref-ergebnis-titel, .ref-ergebnis-liste p { text-wrap: balance; }

/* ===== Bildwand: zwei Reihen, gegenläufig, endlos, nicht klickbar, kein Anhalten (Carlo 21.11.2026) ===== */
.ref-wand { --wand-w: 200px; --wand-h: 125px; --wand-gap: 12px; padding: 8px 0 64px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ref-wand-zeile { text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 18px; }
.wand-reihe + .wand-reihe { margin-top: var(--wand-gap); }
.wand-spur { display: flex; gap: var(--wand-gap); width: max-content; animation: wand-links 120s linear infinite; will-change: transform; pointer-events: none; user-select: none; }
.wand-reihe--2 .wand-spur { animation: wand-rechts 140s linear infinite; }
.wand-spur img { flex: 0 0 auto; display: block; width: var(--wand-w); height: var(--wand-h); object-fit: cover; object-position: top;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 8px 22px rgba(0,0,0,.35); background: #0d1820; }
@keyframes wand-links  { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--wand-gap) / 2)); } }
@keyframes wand-rechts { from { transform: translateX(calc(-50% - var(--wand-gap) / 2)); } to { transform: translateX(0); } }
@media (max-width: 640px) {
  .ref-wand { --wand-w: 112px; --wand-h: 70px; --wand-gap: 8px; padding-bottom: 44px; }
  .ref-wand-zeile { font-size: 10px; margin-bottom: 12px; }
  .wand-spur img { border-radius: 5px; }
  .wand-spur { animation-duration: 80s; }
  .wand-reihe--2 .wand-spur { animation-duration: 95s; }
}
@media (prefers-reduced-motion: reduce) { .wand-spur, .wand-reihe--2 .wand-spur { animation: none; } }

.ref-wand { padding-top: 0; }
/* „Website … KI-System“ über der Linie (Carlo 21.11.) */
.ref-spektrum-enden { margin: 30px 4% -18px; font-size: 13px; color: var(--text-muted); }
.ref-spektrum-enden span:first-child::after { content: " →"; color: var(--gold); }
.ref-spektrum-enden span:last-child::before { content: "← "; color: var(--accent); opacity: 0; }
.ref-spektrum-enden span:first-child::after, .ref-spektrum-enden span:last-child::before { content: none; }
.ref-wand { padding-top: 6px; }
/* „Und viele mehr“ nach der letzten Referenz */
.sect.ref-mehr { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--border); }
.ref-mehr-text { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 26px); color: var(--text); margin: 36px auto; max-width: 900px; }
.ref-mehr-text a { color: var(--accent); text-decoration: none; border-bottom: 2px solid rgba(226,105,97,.4); white-space: nowrap; }
.ref-mehr-text a:hover { border-color: var(--accent); }
@media (max-width: 640px) { .ref-mehr-text a { white-space: normal; } }
@media (max-width: 640px) { .ref-mehr-text { font-size: 18px; } .ref-mehr-text a { display: inline-block; margin-top: 8px; } }
