/*
 * elevai-demos.css
 * Komplettes CSS für alle Demo-Seiten unter /demos/
 * Ersetzt globalstyles.css vollständig.
 * Stand: August 2026
 */

/* ============================================================
   CSS-Variablen — identisch mit der Landingpage
   ============================================================ */
:root {
  --orange:      #FF8A00;
  --orange-soft: #FFA338;
  --ink:         #FFFFFF;
  --ink-2:       rgba(255,255,255,.62);
  --ink-3:       rgba(255,255,255,.36);
  --line:        rgba(255,255,255,.10);
}

/* ============================================================
   Reset & Base
   ============================================================ */
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #f2f2f2;
  /* Kein Foto mehr im Hintergrund. Wichtig: eine eigene Farbe, sonst waere
     die Seite ohne Bild weiss. */
  background: #000;
}

/* ============================================================
   Atmosphaere — identisch mit der Landingpage
   Zwei orange Radialverlaeufe und ein feines Rauschen, beides fest
   stehend und ohne Mausereignisse. Ersetzt das Hintergrundfoto: Es
   konkurrierte mit den Diagrammen, musste zweifach abgedunkelt werden
   und kam auf der Landingpage gar nicht vor.
   ============================================================ */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(55vw 40vw at 80% 0%, rgba(255,138,0,.13), transparent 60%),
    radial-gradient(45vw 35vw at 5% 60%, rgba(255,138,0,.06), transparent 58%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Typografie
   ============================================================ */
h1 { font-size: 2.1rem; font-weight: 300; margin-bottom: 1rem; text-align: center; line-height: 1.3; }
/* Wie auf der Landingpage: nur das Hauptwort orange, der Rest weiss.
   font-style:normal, weil <em> hier zum Faerben dient, nicht zum Kursivsetzen. */
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: 1.2rem; font-weight: 300; margin-bottom: 1rem; text-align: left; line-height: 1.3; }
h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: .5rem; margin-top: 1.5rem; line-height: 1.4; }

/* ============================================================
   Links — orange
   ============================================================ */
a { color: var(--orange) !important; text-decoration: none; }
a:hover { color: var(--orange-soft) !important; }

/* ============================================================
   Navigation
   ============================================================ */
.header-bar {
  /* Gleiche Kopfzeile wie auf der Landingpage: 58 Pixel hoch, am oberen
     Rand haftend, mit Unschaerfe dahinter und einer Haarlinie unten.
     Die seitliche Polsterung zentriert den Inhalt auf 1080 Pixel — so
     stehen Logo und Sprachwahl an derselben Stelle wie dort. */
  position: sticky; top: 0; z-index: 40;
  /* 59 statt 58: Die Demoseiten rechnen mit border-box, die Landingpage
     legt die Haarlinie unter ihre 58 Pixel. 58 + 1 = derselbe Streifen. */
  height: 59px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 0 max(24px, calc((100% - 1080px) / 2 + 24px));
}
.header-logo { height: 80px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.navlinks { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.navlinks a { color: var(--ink-2) !important; text-decoration: none; transition: color .2s; }
.navlinks a:hover { color: var(--ink) !important; }
@media (max-width: 820px) { .navlinks { display: none; } }

/* Sprachwahl als Aufklappmenue (09.10.2026): zeigt nur die aktuelle Sprache; die Links bleiben
   echte <a> im HTML (Crawler, Agenten). <details> arbeitet ohne JavaScript; das kleine Skript am
   Seitenende schliesst das Menue nur beim Klick daneben. */
.langs{position:relative;flex:0 0 auto;margin-left:12px}
.langs summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;font-size:11px;font-weight:640;letter-spacing:.06em;color:var(--ink);line-height:1;user-select:none;-webkit-user-select:none}
.langs summary::-webkit-details-marker{display:none}
.langs summary::marker{content:""}
.langs summary::after{content:none}   /* Seiten mit FAQ zeichnen sonst ihren eigenen Pfeil darueber */
.langs summary svg{width:9px;height:9px;flex:0 0 auto;transition:transform .2s}
.langs[open] summary{border-color:rgba(255,138,0,.5)}
.langs[open] summary svg{transform:rotate(180deg)}
.langs .lm{position:absolute;right:0;top:calc(100% + 6px);min-width:156px;background:#0F1B20;border:1px solid var(--line);border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:2px;z-index:80;box-shadow:0 14px 30px rgba(0,0,0,.55)}
.langs .lm a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:7px;font-size:12px;letter-spacing:0;color:var(--ink-2)!important;text-decoration:none;transition:.15s}
.langs .lm a b{font-size:11px;font-weight:640;letter-spacing:.06em;min-width:2em;color:var(--ink-3)}
.langs .lm a:hover{background:rgba(255,255,255,.06);color:var(--ink)!important}
.langs .lm a.on{color:#000!important;background:var(--orange)}
.langs .lm a.on b{color:#000}

.header-right > a[title="Zurück"] {
  color: rgba(255,255,255,.7) !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.header-right > a[title="Zurück"]:hover { border-color: rgba(255,255,255,.28); color: var(--ink) !important; }

.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.7); fill: none; }

/* ============================================================
   Main
   ============================================================ */
/* z-index 2: ueber Verlauf (0) und Rauschen (1). Die frueher hier
   liegende Abdunklung ist entfallen — sie diente nur dazu, das
   Hintergrundfoto zu daempfen. */
main { position: relative; min-height: 100vh; padding: 3rem 2rem 4rem; z-index: 2; }

.content-wrapper {
  max-width: 900px;
  margin: auto;
  background-color: rgba(0,0,0,.6);
  padding: 2rem;
  border-radius: 12px;
  line-height: 1.6;
}

/* ============================================================
   Payment Section
   ============================================================ */
.payment-section { margin-top: 2rem; width: 100%; }
.payment-image { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 8px; margin-bottom: 1rem; cursor: zoom-in; }
.payment-button-wrapper { width: 100%; margin-top: 1.5rem; }

.payment-button {
  width: 100%; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--orange) !important;
  color: #000 !important;
  font-size: 1rem; font-weight: 600;
  border: none; border-radius: 8px; cursor: pointer;
  transition: background-color .25s ease;
  text-decoration: none !important;
}
.payment-button:hover:not(.inactive-button) { background-color: var(--orange-soft) !important; color: #000 !important; }
.payment-button.inactive-button { background-color: rgba(255,138,0,.3) !important; color: rgba(0,0,0,.5) !important; cursor: not-allowed; }

/* ============================================================
   Custom Textbox
   ============================================================ */
.custom-textbox { margin-top: 2rem; padding: 0; background: none; }
.custom-textbox ul { padding-left: 1rem; margin-left: 0; }
.custom-textbox li { margin-left: 0; padding-left: 0; }
.custom-textbox h2 { font-weight: 500; font-size: 1.2rem; letter-spacing: .3px; margin-bottom: .5rem; margin-top: 2rem; }

/* ============================================================
   Info-Circle — orange
   ============================================================ */
.info-circle {
  display: inline-flex; align-items: center; justify-content: center;
  /* flex:0 0 auto ist hier nicht Kosmetik: Der Kreis ist Flex-Element neben
     dem Text. Ohne diese Zeile darf er schrumpfen — auf schmalen Schirmen
     wird aus 28x28 dann 12x28, und der Kreis sieht aus wie ein Ei. */
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  font-weight: 600; font-size: 1.1rem; color: #fff; cursor: pointer;
  background: rgba(255,138,0,.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,138,0,.35);
  box-shadow: 0 4px 18px rgba(255,138,0,.2);
  transition: all .25s ease;
}
.info-circle:hover { background: rgba(255,138,0,.25); transform: translateY(-1px); }
/* align-items:flex-start, damit der Kreis bei umbrechendem Text neben der
   ERSTEN Zeile steht und nicht auf halber Hoehe des Blocks schwebt. */
.tooltip-inline { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }

/* ============================================================
   Footer
   ============================================================ */
footer { position: relative; z-index: 2; text-align: center; padding: 1rem; background-color: rgba(0,0,0,.8); font-size: .7rem; }

/* ============================================================
   Modals
   ============================================================ */
.modal-content {
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
#tooltipModal .modal-content { background: rgba(255,255,255,.12); padding: 1.5rem; }
#tooltipModal .modal-content,
#tooltipModal .modal-body,
#tooltipModal p,
#tooltipModal li,
#tooltipModal strong { color: #fff !important; }
#tooltipModal a { color: var(--orange) !important; }
#tooltipModal .modal-title { color: #fff !important; font-weight: 600; font-size: 1.4rem; }
#tooltipModal .payment-button { background: rgba(255,255,255,.25) !important; border: 1px solid rgba(255,255,255,.35); color: #fff !important; }
#tooltipModal .payment-button:hover { background: rgba(255,255,255,.35) !important; }

#c2aModal .modal-content { background: rgba(255,255,255,.12); }
#c2aModal .modal-title,
#c2aModal .modal-body,
#c2aModal p { color: #fff !important; }

.success-modal { background: rgba(0,200,100,.15); }
.success-modal .modal-title,
.success-modal .modal-body,
.success-modal p { color: #fff !important; }

.failed-modal { background: rgba(255,0,80,.15); }
.failed-modal .modal-title,
.failed-modal .modal-body,
.failed-modal p { color: #fff !important; }

.custom-close {
  /* z-index ist hier nicht Kosmetik: .modal-body ist bei Bootstrap
     position:relative und steht im Quelltext NACH dem Knopf. Ohne eigenen
     z-index malt der Browser den Koerper darueber — der Kreis ist sichtbar,
     faengt den Klick aber nicht mehr. */
  position: absolute; z-index: 2; top: .6rem; right: .6rem;
  width: 34px; height: 34px; border-radius: 50%;
  background-color: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 1.3rem; font-weight: bold;
  border: none; cursor: pointer; transition: background-color .2s ease;
}
.custom-close:hover { background-color: rgba(255,255,255,.35); }

.modal-content .payment-button { background: rgba(255,255,255,.25) !important; border: 1px solid rgba(255,255,255,.35); color: #fff !important; }
.modal-content .payment-button:hover { background: rgba(255,255,255,.35) !important; }

/* ============================================================
   Image Overlay (Zoom)
   ============================================================ */
.image-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; cursor: zoom-out; padding: 2rem;
}
.image-overlay img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
