/* Deployed-Look fuer Greenlight (bbb.deployed.ch), wie Deployed Console:
   Hintergrund slate-50, weisse Karten, Titel in Marke #1f3a5f,
   Hinweisflaechen Marke hell #e8eef6, System-Schrift. */
:root {
  --brand-color: #1f3a5f !important;
  --brand-color-light: #e8eef6 !important;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #1e293b;
  --bs-border-color: #e2e8f0;
  --bs-font-sans-serif: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color: #1f3a5f;
  --bs-link-hover-color: #182f4d;
}

body, .btn, input, select, textarea {
  font-family: var(--bs-font-sans-serif) !important;
}
body { background-color: #f8fafc !important; color: #1e293b; }

/* Kopfzeile in Marken-Navy, weisses Logo (BrandingImage), Kupferlinie unten */
.navbar { background-color: #1f3a5f !important; border-bottom: 3px solid #b86c35; }
.navbar .nav-link, .navbar .navbar-nav .nav-link, .navbar a:not(.dropdown-item) { color: rgba(255,255,255,0.85) !important; }
.navbar .nav-link:hover, .navbar .nav-link.active, .navbar .nav-link:focus { color: #fff !important; }
.navbar .nav-link.active { border-bottom: 2px solid #b86c35; }
.navbar svg { color: rgba(255,255,255,0.85); }
.navbar .dropdown-menu { --bs-dropdown-link-color: #1e293b; }
.navbar .btn-brand { background-color: #fff !important; border-color: #fff !important; color: #1f3a5f !important; }
.navbar .btn-brand:hover { background-color: #e8eef6 !important; border-color: #e8eef6 !important; }
.navbar .btn-brand-outline, .navbar .btn-outline-primary, .navbar .btn:not(.btn-brand) { color: #fff !important; border-color: rgba(255,255,255,0.7) !important; background: transparent !important; }
.navbar .btn-brand-outline:hover, .navbar .btn:not(.btn-brand):hover { background-color: rgba(255,255,255,0.1) !important; }
.navbar .navbar-toggler { border-color: rgba(255,255,255,0.5); filter: invert(1); }

/* Link «Erfahre mehr ...» zeigt auf bigbluebutton.org: ausblenden */
a[href="https://bigbluebutton.org/"] { display: none !important; }

/* Titel in Markenfarbe, halbfett */
h1, h2, h3, h4, h5, .card-title { color: #1f3a5f; font-weight: 600; }

/* Karten wie Console: weiss, rounded-lg, dezenter Rand */
.card { border: 1px solid #e2e8f0 !important; border-radius: 0.5rem !important; box-shadow: none !important; }

/* Admin-Bereich */
#admin-panel #admin-sidebar { border-right: 1px solid #e2e8f0 !important; background: #fff; }
#admin-panel .admin-table table, #admin-panel .admin-table td, #admin-panel .admin-table tr { border-color: #e2e8f0 !important; }
#admin-panel .admin-table thead th, #admin-panel .admin-table th { color: #475569; font-weight: 600; }
.nav-pills .nav-link { color: #334155; border-radius: 0.5rem; }
.nav-pills .nav-link.active { color: #1f3a5f !important; background-color: #e8eef6 !important; }
.nav-tabs { border-bottom-color: #e2e8f0; }

/* Buttons */
.btn-brand, .btn-primary { background-color: #1f3a5f !important; border-color: #1f3a5f !important; color: #fff !important; }
.btn-brand:hover, .btn-primary:hover { background-color: #182f4d !important; border-color: #182f4d !important; }
.btn-brand-outline, .btn-outline-primary { color: #1f3a5f !important; border-color: #1f3a5f !important; }
.btn-brand-outline:hover, .btn-outline-primary:hover { background-color: #e8eef6 !important; }

/* Fokus */
.form-control:focus, .form-select:focus { border-color: #1f3a5f; box-shadow: 0 0 0 0.2rem rgba(31, 58, 95, 0.15); }
.form-check-input:checked { background-color: #1f3a5f; border-color: #1f3a5f; }

/* Akzent wie Console: Kupfer fuer Hervorhebungen */
.badge.bg-primary { background-color: #1f3a5f !important; }
#footer { border-top: 1px solid #e2e8f0; }

html { overflow-x: clip; }

/* ===== Startseite im Stil der Console-Anmeldung und von nuovo.deployed.ch ===== */
.navbar { border-bottom: 1px solid rgba(255,255,255,0.08) !important; }

/* Hero: volle Breite in Navy, feines Raster, weisse Schrift */
.regular-height > .wide-white.row {
  position: relative; isolation: isolate;
  background: transparent !important;
  padding: 3.5rem 0 4rem;
  margin-bottom: 2.5rem;
}
.regular-height > .wide-white.row::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); z-index: -1;
  background-color: #1f3a5f;
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(184,108,53,0.18), transparent 55%),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
#homepage-hero { max-width: 760px; }
#homepage-hero h1 {
  color: #fff !important; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08;
  margin-top: 0 !important;
}
#homepage-hero h1::before {
  content: "Wenn Privacy, Unabh\00e4ngigkeit und Datensicherheit z\00e4hlen.";
  display: block; color: #d9935f; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.4;
}
#homepage-hero p.text-muted { color: rgba(255,255,255,0.8) !important; font-size: 1.15rem !important; line-height: 1.6; }
/* Schweiz-Bubble wie cyber.deployed.ch, unter dem Beschreibungstext.
   Nutzt den Link «Erfahre mehr ...» (zeigt auf bigbluebutton.org) als Traeger, nicht klickbar. */
#homepage-hero a.text-link {
  display: inline-flex !important; align-items: center; gap: 0.6rem;
  margin-top: 1.5rem; padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 0 !important; color: transparent !important;
  pointer-events: none; cursor: default; text-decoration: none !important;
}
#homepage-hero a.text-link svg { display: none !important; }
#homepage-hero a.text-link::before {
  content: "Swiss made";
  display: inline-flex; align-items: center;
  padding-left: 2.1rem; min-height: 1.6rem;
  background: no-repeat left center / 1.6rem 1.6rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='5' fill='%23d52b1e'/%3E%3Cpath d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z' fill='%23fff'/%3E%3C/svg%3E");
  color: #fff; font-size: 0.95rem; font-weight: 600;
}
#homepage-hero a.text-link::after {
  content: "\00b7  Ihre Daten bleiben in der Schweiz";
  color: rgba(255,255,255,0.65); font-size: 0.85rem; font-weight: 400;
}
#homepage-hero::after {
  content: "Ihr dedizierter Server in der Schweiz \00b7  deployed.ch GmbH, Z\00fcrich";
  display: block; margin-top: 1.25rem; font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* Abschnittstitel wie Console: Kupfer, Versalien, buendig mit Hero und Karten */
.regular-height > .row > h4.text-uppercase { color: #b86c35 !important; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; padding-left: calc(var(--bs-gutter-x) * .5) !important; }

/* Karten wie die Feature-Liste der Console */
.homepage-card { background: #fff; border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important; transition: border-color .15s, transform .15s; }
.homepage-card:hover { border-color: #1f3a5f !important; transform: translateY(-2px); }
.homepage-card .card-title { color: #1f3a5f; font-weight: 600; }
.homepage-card-icon-circle {
  width: 48px !important; height: 48px !important;
  border-radius: 0.6rem !important; background-color: #e8eef6 !important; color: #1f3a5f !important; border: 0 !important; outline: 0 !important; box-shadow: none !important;
}
.homepage-card-icon-circle svg { color: #1f3a5f !important; width: 24px; height: 24px; }

/* Fusszeile: Greenlight-Link durch Deployed-Angaben ersetzen */
#footer { background: #fff !important; }
#footer-container > a { display: none !important; }
#footer-container::after { content: "Deployed Meet \00b7  deployed.ch GmbH \00b7  Europaallee 41, 8004 Z\00fcrich \00b7  support@deployed.ch"; color: #64748b; font-size: 0.85rem; }
