/*
 * UNBOND Website-System – gemeinsame Optik wie die Landingpage.
 * Wird NACH style.css, unbond-shell.css und unbond-pages.css eingebunden.
 * Greift nur auf Seiten mit <body class="web-page">.
 * Hintergrund: assets/videos/hintergrund.mp4 (kommt mit dem Landingpage-Paket).
 */

/* ── Hintergrund: Video, darüber eine einheitliche dunkle Schicht ── */
body.web-page {
  background: transparent !important;
  /* Farben wie auf der Landingpage (site-v21.css) */
  --background: #0b1019;
  --foreground: #edebe6;
  --green: #5e9590;
  --muted-foreground: #bec4ce;
  --border: rgba(180, 190, 205, .2);
}
body.web-page::before,
body.web-page::after { content: none !important; display: none !important; }

.web-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0b0f17 url("assets/hero-video-first-frame.jpg") 62% 30% / cover no-repeat;
}
.web-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}
.web-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 17, .7);
}
@media (max-width: 767px) {
  .web-bg { background-position: 50% 18%; }
  .web-bg video { object-position: 50% 18%; }
}

/* Alte Seitenhintergründe der Einzelseiten ausblenden */
body.web-page .tox-bg-image,
body.web-page .tox-bg-overlay,
body.web-page .bg-image,
body.web-page .bg-overlay { display: none !important; }

body.web-page .tox-section,
body.web-page .footer { background: transparent; }

/* ── Pausenknopf (WCAG 2.2.2) ── */
.web-bg-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1300;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid rgba(210, 166, 59, .45);
  border-radius: 50%;
  background: rgba(13, 17, 25, .88);
  color: #f7f2ea;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.web-bg-toggle.is-visible { display: grid; }
.web-bg-toggle:hover { border-color: #d2a63b; color: #e7c596; }

/* ── Karten im Glas-Look der Landingpage ── */
body.web-page .card,
body.web-page .glass {
  background: rgba(15, 20, 32, .62);
  border: 1px solid rgba(210, 166, 59, .2);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

/* ── Gemeinsame Bausteine für die Website-Startseite ── */
.web-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 760px) { .web-wrap { width: min(1160px, calc(100% - 30px)); } }

.web-hero { padding-bottom: 36px; }
.web-hero .web-wrap { max-width: 860px; }
.web-hero h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.web-hero h1 em { display: block; margin-top: .06em; color: #e7c596; font-style: italic; font-weight: 400; }
.web-lead { max-width: 640px; margin: 0 0 26px; color: rgba(247, 242, 234, .86); font-size: 1.12rem; line-height: 1.6; }
.web-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.web-note { margin: 18px 0 0; color: rgba(247, 242, 234, .62); font-size: .85rem; letter-spacing: .02em; }

.web-section { padding: 28px 0 40px; }
.web-section > .web-wrap > h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
}
.web-section > .web-wrap > .web-sub { max-width: 640px; margin: 0 0 24px; color: rgba(247, 242, 234, .72); }

.web-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .web-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .web-grid { grid-template-columns: 1fr; gap: 14px; } }

.web-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 24px 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.web-tile:hover { border-color: rgba(210, 166, 59, .6) !important; transform: translateY(-2px); }
.web-tile .web-tag {
  align-self: flex-start;
  padding: 3px 11px;
  border: 1px solid rgba(94,149,144, .5);
  border-radius: 999px;
  color: #5e9590;
  font-family: Poppins, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.web-tile h3 { margin: 4px 0 0; font-family: Poppins, sans-serif; font-size: 1.15rem; line-height: 1.25; }
.web-tile p { margin: 0; color: rgba(247, 242, 234, .74); font-size: .95rem; line-height: 1.6; }
.web-tile .web-go { margin-top: auto; padding-top: 6px; color: #e7c596; font-weight: 700; font-size: .92rem; }

.web-book {
  display: grid;
  gap: 8px;
  padding: 30px 28px;
  text-align: center;
  border-color: rgba(210, 166, 59, .45) !important;
  background: linear-gradient(160deg, rgba(125,38,63, .26), rgba(15, 20, 32, .72)) !important;
}
.web-book h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.web-book p { max-width: 560px; margin: 0 auto 6px; color: rgba(247, 242, 234, .82); }

.web-crisis { margin: 0 auto; max-width: 720px; padding: 8px 0 28px; color: rgba(247, 242, 234, .62); font-size: .85rem; text-align: center; line-height: 1.55; }
.web-crisis a { color: #f7f2ea; }

/* ── ToxiCometer: Einstieg ── */
body.web-page h1.tox-h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 14px;
}
.tox-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.tox-facts li { position: relative; padding-left: 18px; color: rgba(247, 242, 234, .72); font-size: .92rem; line-height: 1.5; }
.tox-facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #d2a63b; }
.tox-backlink { display: inline-block; margin: 0 0 14px; color: #e7c596; font-size: .9rem; font-weight: 700; text-decoration: none; }
.tox-backlink:hover { text-decoration: underline; }
.tox-backlink[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .web-tile { transition: none; }
  .web-tile:hover { transform: none; }
}
