/* Consist brand dark theme, layered on top of Bootstrap 5 (see base.html
   for the CDN links) which is already running in `data-bs-theme="dark"`.
   Bootstrap's dark palette handles most components (forms, cards, borders,
   muted text, alerts) automatically -- see CLAUDE.md "Frontend" section
   for which components need a manual override and why (short version:
   Bootstrap's *compiled* CSS bakes literal colors into brand-colored
   components like .btn-primary rather than reading the shared
   --bs-primary token, so those specific ones are re-pointed here).

   Visual language as of the "calmer" pass: Inter at medium weight (500/600)
   rather than heavy display type, flat bordered surfaces (no blur/glass,
   no glow), tighter corner radii -- editorial/restrained rather than bold
   marketing-gradient. See CHANGELOG "Unreleased" for what this replaced. */

:root {
  --navy-950: #070b18;
  --navy-900: #0c1226;
  --navy-800: #121a37;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f5fc;
  --text-muted: #a6b0cc;
  --text-faint: #75798c;
  --blue: #3b6bff;
  --blue-bright: #5b8aff;
  --blue-dark: #1f3fb0;
  --violet: #9d6bff;
  --cyan: #34d1ff;
  --success: #35e1bb;
  --radius: 16px;

  --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --bs-body-bg: var(--navy-950);
  --bs-body-color: var(--text);
  --bs-secondary-color: rgba(243, 245, 252, 0.62);
  --bs-border-color: var(--line);
  --bs-border-color-translucent: var(--line);
  --bs-border-radius: 8px;
  --bs-border-radius-lg: var(--radius);
  --bs-border-radius-sm: 6px;
  --bs-tertiary-bg: var(--navy-900);
  --bs-emphasis-color: #fff;

  --bs-link-color: var(--blue-bright);
  --bs-link-color-rgb: 91, 138, 255;
  --bs-link-hover-color: #8fb0ff;

  --bs-btn-border-radius: 10px;
}

body {
  background:
    radial-gradient(760px 420px at 82% -8%, rgba(59, 107, 255, 0.10), transparent 60%),
    radial-gradient(620px 420px at -10% 30%, rgba(157, 107, 255, 0.06), transparent 60%),
    var(--navy-950);
  background-attachment: fixed;
}

/* --- Layout width --- */

.site-header__inner,
main.container,
.site-footer__inner {
  max-width: 900px;
}

/* --- Header & footer --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--navy-950);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* The source asset is a solid blue wordmark on a transparent background.
   brightness(0) flattens every opaque pixel to black (alpha untouched),
   then invert(1) flips that to white -- turns it into a clean white
   wordmark that sits directly on the dark header with no boxed-in chip. */
.brand__logo img {
  display: block;
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 575px) {
  .brand__logo img { height: 34px; }
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .brand small { display: none; }
}

.step-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Step breadcrumb (bookings/includes/step_breadcrumb.html) --- */

.step-breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  gap: 6px;
}
.step-breadcrumb li:not(.step-breadcrumb__line) {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.step-breadcrumb__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--line);
  flex: none;
}
.step-breadcrumb li.is-done .step-breadcrumb__dot {
  background: rgba(53, 225, 187, 0.16);
  border-color: rgba(53, 225, 187, 0.4);
  color: var(--success);
}
.step-breadcrumb li.is-current .step-breadcrumb__dot {
  background: var(--blue-bright);
  border-color: transparent;
  color: #fff;
}
.step-breadcrumb__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-breadcrumb li.is-current .step-breadcrumb__label { color: var(--text); }
.step-breadcrumb__line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  min-width: 16px;
}
.step-breadcrumb__line.is-done { background: rgba(53, 225, 187, 0.4); }

@media (max-width: 480px) {
  .step-breadcrumb__label { display: none; }
}

.site-footer {
  margin-top: 56px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* --- Cards & interaction --- */

.card {
  --bs-card-bg: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a.card:hover,
.card--clickable:hover {
  border-color: rgba(91, 138, 255, 0.5);
  background-color: rgba(91, 138, 255, 0.05);
}

.card--clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.mode-card { text-align: center; padding: 8px; }
.mode-card .option-icon { margin: 0 auto 10px; }

.option-row { display: flex; align-items: flex-start; gap: 14px; }
.option-body { flex: 1; }

.option-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(91, 138, 255, 0.14);
  border: 1px solid rgba(91, 138, 255, 0.28);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.card h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Rotate accent color across category cards, echoing the demo topics'
   own identity without needing a color field on the model. Consistent
   icon set (Bootstrap Icons, see base.html) inherits this color. */
.d-grid > a.card:nth-of-type(3n+2) .option-icon,
.row > .col:nth-of-type(3n+2) .option-icon {
  background: rgba(157, 107, 255, 0.14);
  border-color: rgba(157, 107, 255, 0.30);
  color: var(--violet);
}
.d-grid > a.card:nth-of-type(3n+3) .option-icon,
.row > .col:nth-of-type(3n+3) .option-icon {
  background: rgba(52, 209, 255, 0.14);
  border-color: rgba(52, 209, 255, 0.30);
  color: var(--cyan);
}

/* --- Trailing chevron on clickable option rows/cards (icon system) --- */

.option-chevron {
  color: var(--text-faint);
  font-size: 0.95rem;
  flex: none;
  transition: transform 0.15s ease, color 0.15s ease;
}
.card--clickable:hover .option-chevron {
  color: var(--blue-bright);
  transform: translateX(3px);
}
.option-chevron--center {
  display: block;
  margin: 10px auto 0;
}

.pill {
  display: inline-block;
  background: rgba(91, 138, 255, 0.14);
  border: 1px solid rgba(91, 138, 255, 0.28);
  color: #cfdcff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Buttons & form controls --- */

.btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
}
.btn:active { transform: scale(0.98); }

.btn-lg {
  padding: 0.8rem 1.7rem;
  font-size: 1rem;
}

.btn-primary {
  --bs-btn-bg: var(--blue-bright);
  background: var(--blue-bright);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: var(--blue-dark);
  --bs-btn-disabled-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 59, 107, 255;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--navy-950);
  --bs-btn-hover-bg: var(--text);
  --bs-btn-hover-border-color: var(--text);
  --bs-btn-active-color: var(--navy-950);
  --bs-btn-active-bg: var(--text);
  --bs-btn-active-border-color: var(--text);
  --bs-btn-disabled-color: var(--text-muted);
}

.btn-outline-danger {
  --bs-btn-color: #ff8a8a;
  --bs-btn-border-color: #a8434a;
  --bs-btn-hover-bg: #dc3545;
  --bs-btn-hover-border-color: #dc3545;
}

.form-check-input:checked {
  background-color: var(--blue-bright);
  border-color: var(--blue-bright);
}
.form-check-input:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 0.25rem rgba(59, 107, 255, 0.22);
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.03);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 0.25rem rgba(59, 107, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Calendar --- */

.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.calendar-nav a, .calendar-nav span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  text-decoration: none;
}
.calendar-nav a:hover { background: rgba(91, 138, 255, 0.14); }
table.calendar { width: 100%; border-collapse: collapse; }
table.calendar th { font-size: 0.7rem; color: var(--text-faint); font-weight: 500; padding: 4px 0; }
table.calendar td { text-align: center; padding: 2px; }

.day-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-width: 42px;
  margin: 0 auto;
  line-height: 38px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
/* Contrast note: a prior pass at 0.35 opacity on --text-muted made
   unavailable dates in the current month hard to distinguish from
   "missing" rather than "just not bookable" (flagged in review -- fair
   catch). Keeping out-of-month days dimmer than in-month-but-unavailable
   ones, since those two states mean different things. */
.day-cell.out-of-month { color: rgba(166, 176, 204, 0.28); }
.day-cell.available { background: rgba(91, 138, 255, 0.14); color: #cfdcff; font-weight: 600; }
.day-cell.available:hover { background: var(--blue-bright); color: #fff; }
.day-cell.selected {
  background: var(--blue-bright);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(91, 138, 255, 0.5);
}
.day-cell.disabled { color: rgba(166, 176, 204, 0.55); pointer-events: none; }
.day-cell.disabled.out-of-month { color: rgba(166, 176, 204, 0.28); }

.slot-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.slot-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.slot-btn:hover {
  border-color: rgba(91, 138, 255, 0.5);
  background: rgba(91, 138, 255, 0.08);
  color: var(--text);
}
.slot-btn.full { color: rgba(166, 176, 204, 0.5); background: rgba(255, 255, 255, 0.015); pointer-events: none; }

/* --- Summary lists (confirmation / manage pages) --- */

.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list li:last-child { border-bottom: none; }
.summary-list .icon { font-size: 1.05rem; color: var(--blue-bright); }
.summary-list .label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.summary-list .value { font-weight: 600; }

/* Photo strip at the top of the confirmation card, faded into the card's
   own background at the bottom so there's no hard cut line between
   photo and content. */
.confirmation-visual {
  height: 140px;
  background:
    linear-gradient(to bottom, rgba(7, 11, 24, 0) 0%, var(--navy-950) 96%),
    url("../images/itsa-booth-hero.efc71b9d15b3.png");
  background-size: cover;
  background-position: center 88%;
}

.success-badge {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(53, 225, 187, 0.14);
  border: 1px solid rgba(53, 225, 187, 0.35);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 16px;
}

.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: -6px; margin-bottom: 16px; }

/* --- Landing hero ("Die Einladung" direction) ---

   One rounded card, two columns: copy on the left with its own padding,
   a real photo bleeding to the card's own edges on the right, faded into
   the card at the seam so there's no hard dividing line -- not a separate
   boxed visual floating inside the hero. Mirrors the previous bled-photo
   hero (see CLAUDE.md "Frontend") but as an explicit grid column instead
   of a full-bleed background, so it stays crisp at any width. Stacks to a
   photo band on top (headline overlaid at the bottom of it) on mobile. */
.hero {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--navy-900);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: stretch;
  min-height: 480px;
}

.hero-content {
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: url("../images/itsa-expert-consultation.4462a43fd40c.png") center 42% / cover no-repeat;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(12, 18, 38, 0.55) 30%, rgba(12, 18, 38, 0.05) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93b1ff;
  margin-bottom: 16px;
}
.eyebrow i {
  width: 14px; height: 1px;
  background: var(--blue-bright);
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: 18ch;
}

.hero-lede {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 26px;
}

/* The two big onsite/online choices, sitting directly in the hero --
   reuses .option-icon/.option-chevron from the card system above but as
   flat inset-bordered rows rather than elevated cards, since they're
   already inside the hero's own surface. */
.hero-choices { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.hero-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-choice:hover { background: rgba(91, 138, 255, 0.08); color: inherit; }
.hero-choice.is-primary { box-shadow: inset 0 0 0 1px var(--blue-bright); }
.hero-choice .option-icon { width: 38px; height: 38px; font-size: 1.05rem; }
.hero-choice-title { display: block; font-size: 0.98rem; font-weight: 600; }
.hero-choice-hint { display: block; font-size: 0.78rem; color: var(--text-faint); margin-top: 1px; }
.hero-choice-advice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #93b1ff;
  text-decoration: none;
  margin-top: 2px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual {
    order: -1;
    height: 240px;
    display: flex;
    align-items: flex-end;
  }
  .hero-visual::before {
    background: linear-gradient(to bottom, rgba(12, 18, 38, 0.1) 0%, rgba(12, 18, 38, 0.62) 58%, var(--navy-900) 100%);
  }
  .hero-visual .hero-visual-heading {
    position: relative;
    z-index: 1;
    padding: 0 24px 18px;
  }
  .hero-content { padding: 22px 24px 30px; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --- Language toggle (landing page only, see landing.html/landing.js) --- */

/* The `hidden` attribute on [data-lang="en"] spans (see landing.html) is a
   no-CSS/no-JS fallback that shows German-only content -- but browsers'
   UA stylesheet rule for [hidden] is `!important`, which otherwise beats
   these show/hide rules regardless of selector specificity. Matched here
   with our own !important so the toggle actually overrides it. */
[data-lang] { display: none !important; }
body.lang-de [data-lang="de"] { display: inline !important; }
body.lang-en [data-lang="en"] { display: inline !important; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-toggle button.is-active {
  background: var(--blue-bright);
  color: #fff;
}

/* --- Motion: kept intentionally minimal --- */
/* A page-load fade-in and a "pop-in" success badge animation were tried
   and removed -- both left content sitting at low opacity until the
   animation finished, which showed up as broken/invisible in headless
   screenshots and print-to-PDF. See CLAUDE.md "Frontend" for the story.
   Hover/focus transitions above are safe because they only ever run in
   response to user interaction, never gate initial content visibility. */

/* --- Technology partner strip (landing page) ---
   Modelled on consist.de, which shows partner logos as a single uniform-height
   row on a neutral surface. Text wordmarks are used until real logo files are
   dropped in -- `.partner-logo img` is already sized for that swap. */

.partner-strip {
  margin: 8px 0 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.partner-strip__label {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.partner-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-logo {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.partner-logo:hover { opacity: 1; }

/* Both supplied partner assets are dark artwork meant for light backgrounds
   (cisco-logo.svg is brand blue #049fd9, splunk-logo.webp a near-black
   wordmark), so on this dark ground they'd be almost invisible as-is.
   brightness(0) invert(1) flattens each to a clean white wordmark -- the same
   trick the Consist header logo uses, and the usual treatment for a partner
   row on a dark surface. Swap in official white/reversed assets if Marketing
   has them and this filter can go away.

   cisco-logo.svg shipped with ~100px of transparent margin on every side of a
   560x400 canvas; its viewBox is cropped to the artwork (360x190) so `height`
   means the same thing for both files. The two are still tuned separately by a
   few px because Splunk's asset is a two-line lockup ("splunk>" plus "a CISCO
   company") while Cisco's is a single compact mark -- matched optically, not
   numerically. */
.partner-logo img {
  display: block;
  width: auto;
  filter: brightness(0) invert(1);
}

.partner-logo--cisco img { height: 32px; }
.partner-logo--splunk img { height: 38px; }

.partner-strip__note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, var(--text-faint));
}

@media (max-width: 575px) {
  .partner-strip { padding: 18px 16px; }
  .partner-strip__list { gap: 12px 28px; }
  .partner-logo { font-size: 1.2rem; }
}

.site-footer__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-footer__link:hover { color: var(--blue-bright); }
.site-footer__link i { font-size: 0.78em; opacity: 0.7; }

/* Honeypot field for BotProtectionMixin (bookings/forms.py). Positioned off
   screen rather than display:none or visibility:hidden -- a bot worth stopping
   checks for both of those and skips the field, which defeats the trap. */
.bot-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
