/* ================================
   Intiqore – Layout Styles
   Datei: CSS_Layout.css
   ================================ */

/* ===== Theme ===== */
:root {
  /* Dark Default */
  --bg: #0b1020;
  --surface: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;

  /* Brand */
  --brand: #F98513;
  --brand-600: #111144;
  --brand-alt: #9BACD8;
  --accent: #223382;

  --border: rgba(148, 163, 253, 0.18);
  --container: 1200px;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);

  --info: color-mix(in oklab, var(--brand-alt) 80%, var(--brand) 20%);
  --info-ink: color-mix(in oklab, var(--brand-600) 70%, #fff 30%);
  --warn: #f59e0b;
  --warn-ink: #b45309;
}

/* Light Mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F1EC;
    --surface: #ffffff;
    --text: #060620;
    --muted: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
  }
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      900px 600px at 10% -10%,
      #DAD1C8 0%,
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 80% 0%,
      #9BACD8 0%,
      transparent 80%
    ),
    var(--bg);
  font: 500 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
}

table {
  max-width: 100%;
}

pre,
code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Utils ===== */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.small {
  font-size: 0.875rem;
}

.muted {
  color: var(--muted);
}

.body-no-scroll {
  overflow: hidden;
}

/* ===== App shell ===== */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ===== Header / Navbar ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    var(--surface);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}

.navbar {
  padding: 10px 0;
}

/* Desktop */
.navbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.navbar__brand {
  grid-column: 1;
  justify-self: start;
}

.navbar__toggle {
  display: none;
}

.navbar__links {
  grid-column: 2;
  justify-self: center;
}

.navbar__actions {
  grid-column: 3;
  justify-self: end;
}

/* Brand */
.navbar__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 25px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.navbar__brand:hover {
  text-decoration: none;
}

.navbar__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

/* Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  transition: background .18s, border-color .18s, color .18s;
  isolation: isolate;
}

.navbar__links a:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  text-decoration: none;
}

.navbar__links a[aria-current="page"],
.navbar__links a.active {
  background: color-mix(in oklab, var(--brand) 16%, transparent);
  border-color: color-mix(in oklab, var(--brand) 45%, transparent);
}

.navbar__links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity .18s ease, transform .18s ease;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  opacity: .9;
  transform: scaleX(1);
}

/* Navbar actions */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 160px;
  justify-content: flex-end;
}

.navbar__actions form {
  margin: 0;
}

/* User Logo */
.navbar__user-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* ===== Tutorial Toggle Button ===== */
#helpToggle {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  transition: transform .06s, background .18s, border-color .18s, box-shadow .18s, color .18s;
}

#helpToggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}

#helpToggle:active {
  transform: translateY(1px);
}

#helpToggle:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent);
  outline-offset: 3px;
}

#helpToggle[aria-pressed="true"] {
  background: color-mix(in oklab, var(--brand) 90%, #fff 10%);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in oklab, var(--brand) 30%, transparent);
}

#helpToggle[aria-pressed="true"]:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

#helpToggle[aria-pressed="true"]::after {
  content: "ON";
  position: absolute;
  transform: translate(14px, -14px);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.22);
}

/* ===== Mobile Toggle ===== */
.navbar__toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.navbar__toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}

.navbar__toggle:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent);
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: var(--brand);
  --btn-bg-hover: var(--brand-600);
  --btn-fg: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0.55rem 0.9rem;
  border-radius: 0.6rem;

  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;

  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;

  transition: transform .04s, filter .15s, background .15s, border-color .15s, color .15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bg);
  box-shadow: 0 8px 22px color-mix(in oklab, var(--brand) 22%, transparent);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  filter: brightness(1.03);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
}

.btn--secondary {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--surface) 70%, #fff 30%),
    var(--surface)
  );
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.btn--secondary:hover {
  filter: brightness(1.05);
}

.btn--danger {
  --btn-danger: #dc2626;
  --btn-danger-hover: #991b1b;

  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--btn-danger) 92%, #fff 8%),
    var(--btn-danger)
  );
  color: #fff;
  border-color: color-mix(in oklab, var(--btn-danger) 55%, var(--border) 45%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

.btn--danger:hover {
  background: var(--btn-danger-hover);
  border-color: var(--btn-danger-hover);
  filter: brightness(1.02);
}

.btn--sm {
  font-size: 0.875rem;
  line-height: 1.2;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  min-height: 0;
}

.btn--sm.btn--primary {
  box-shadow: 0 6px 16px color-mix(in oklab, var(--brand) 18%, transparent);
}

.btn--sm.btn--primary:hover {
  filter: brightness(1.03);
}

/* ===== Search ===== */
.navbar__search {
  position: relative;
  display: none;
}

.navbar__search input {
  width: 220px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px 8px 34px;
  border-radius: 12px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.navbar__search input:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: color-mix(in oklab, var(--brand) 42%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 22%, transparent);
}

.navbar__search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ===== Avatar ===== */
.navbar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg,rgba(255,255,255,0.08),rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}

/* ===== Main ===== */
.app-main {
  padding-block: clamp(24px, 4vw, 40px);
}

/* ===== Footer ===== */
.app-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-link:hover {
  color: var(--text);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.25);
}

/* ===== Alerts ===== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin: 1rem auto;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 400px;
  text-align: center;
  transition: opacity .5s ease, transform .5s ease;
}

.alert-success {
  background-color: color-mix(in oklab, #22c55e 10%, var(--bg) 90%);
  color: #4ade80;
  border: 1px solid #22c55e;
}

/* ===== Confirm Modal ===== */
.cmodal[hidden] {
  display: none !important;
}

.cmodal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.cmodal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 440px);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--surface) 96%, #fff 4%),
    var(--surface)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1rem;
  display: grid;
  gap: .9rem;
}

.cmodal__title {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}

.cmodal__message {
  margin: 0;
  color: var(--text);
}

.cmodal__actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
}

/* ===== Consent Modal ===== */
.consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 8999;
}

.consent-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 1rem 1rem 0.9rem;
  z-index: 9000;
}

.consent-modal:focus {
  outline: none;
}

.consent-modal:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--text) 25%, transparent);
  outline-offset: 3px;
}

.consent-title {
  margin: 0 2.25rem 0.5rem 0;
  font-size: 1.05rem;
  color: var(--text);
}

.consent-text {
  margin: 0 0 0.9rem;
  color: var(--text);
  line-height: 1.45;
  font-size: 0.9rem;
  max-width: 52ch;
}

.consent-text a {
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.consent-actions .btn {
  min-width: 140px;
  padding: 0.55rem 0.8rem;
}

.consent-close {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.consent-close:focus {
  outline: 2px solid color-mix(in oklab, var(--text) 35%, transparent);
  outline-offset: 2px;
}

/* ===== Forms ===== */
.material-form fieldset > label {
  font-size: 0.95rem;
  line-height: 1.2;
}

.material-form fieldset legend {
  font-size: 0.95rem;
}

/* ===== rd-topnav ===== */
.rd-topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 clamp(16px, 2vw, 24px);
}

.rd-topnav__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd-topnav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
}

.rd-topnav .btn {
  gap: .35rem;
  padding: .6rem 1rem;
  border-radius: .6rem;
  font-weight: 800;
  user-select: none;
  transition:
    transform .08s ease,
    background .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    color .18s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  color: var(--text);
  background: transparent;
}

.rd-topnav .btn:active {
  transform: translateY(1px);
}

.rd-topnav .btn--ghost {
  border-color: var(--border);
  background: transparent;
}

.rd-topnav .btn--ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--brand);
}

.rd-topnav .btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.rd-topnav .btn--primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  filter: brightness(1.03);
}

.rd-topnav .btn--sm {
  padding: .4rem .6rem;
  font-weight: 600;
  border-radius: .45rem;
}

/* ===== Quote Section Mobile Base ===== */
.quote-section blockquote {
  overflow-wrap: anywhere;
}

/* ===== Blog Related ===== */
.blog-page .section {
  padding-block: clamp(28px, 2vw, 72px);
}

.blog-page .headline {
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .1px;
}

.blog-page .h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.blog-page .related {
  margin-top: 8px;
}

.blog-page .related-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.blog-page .outline-card {
  border: 1px solid color-mix(in oklab, var(--line, var(--border)) 70%, var(--accent) 30%);
  border-radius: var(--radius-xxl, var(--radius));
  padding: 14px;
  background:
    radial-gradient(420px 180px at 10% 8%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, var(--panel, var(--surface)) 98%, #000 2%), transparent);
  transition:
    transform .16s var(--ease-out, ease),
    border-color .16s var(--ease-out, ease),
    box-shadow .16s var(--ease-out, ease);
}

.blog-page .outline-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 42%, var(--line, var(--border)));
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

.blog-page .post-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

.blog-page .post-card__title {
  margin: 6px 0 6px;
  font-weight: 900;
  line-height: 1.2;
}

.blog-page .post-card__title a {
  text-decoration: none;
}

.blog-page .post-card__title a:hover {
  text-decoration: underline;
}

.blog-page .post-card__cta {
  margin-top: 8px;
}

.blog-page .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .45s var(--ease-out, ease),
    transform .45s var(--ease-out, ease);
}

.blog-page .reveal.in {
  opacity: 1;
  transform: none;
}

.blog-page [data-stagger] > * {
  --i: 0;
  transition-delay: calc(var(--i) * 80ms);
}

/* ===== Loader Overlay ===== */
#page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.spinner {
  width: 58px;
  height: 58px;
  border: 4px solid color-mix(in oklab, var(--brand) 15%, transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-loading {
  overflow: hidden;
}

/* ================================
   Responsive
   ================================ */

/* Tablet + Mobile Header */
@media (max-width: 920px) {
  .navbar {
    padding: 8px 0;
  }

  .navbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
  }

  .navbar__brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(1rem, 4vw, 1.15rem);
  }

  .navbar__logo {
    width: 44px;
    height: 44px;
  }

  .navbar__toggle {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .navbar__actions {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    gap: 6px;
  }

  .navbar__actions .btn {
    white-space: nowrap;
  }

  .navbar__actions .btn--signup {
    display: none !important;
  }

  .navbar__user-logo {
    width: 36px;
    height: 36px;
  }

  #helpToggle {
    width: 38px;
    height: 38px;
  }

  .navbar__links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 0 0;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .navbar__links.is-open {
    display: flex;
  }

  .navbar__links li {
    width: 100%;
  }

  .navbar__links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.02)
    );
    border: 1px solid var(--border);
  }

  .navbar__links a:hover {
    background: rgba(255,255,255,0.07);
    border-color: color-mix(in oklab, var(--brand) 30%, var(--border));
  }

  .navbar__links a.active,
  .navbar__links a[aria-current="page"] {
    background: color-mix(in oklab, var(--brand) 18%, transparent);
    border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  }
}

/* Blog Grid ab Desktop */
@media (min-width: 880px) {
  .blog-page .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile Topnav */
@media (max-width: 640px) {
  .rd-topnav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    padding-inline: 1rem;
  }

  .rd-topnav__left,
  .rd-topnav__right {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .rd-topnav .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Small Mobile */
@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .app-main {
    padding-block: 20px;
  }

  .btn {
    padding: 9px 12px;
  }

  .navbar__brand {
    font-size: 1rem;
    gap: 8px;
  }

  .navbar__logo {
    width: 38px;
    height: 38px;
  }

  .navbar__actions {
    gap: 5px;
  }

  .navbar__actions form .btn {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .navbar__user-logo {
    width: 34px;
    height: 34px;
  }

  #helpToggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  #helpToggle[aria-pressed="true"]::after {
    display: none;
  }

  .quote-section {
    padding: 16px 12px;
  }

  .quote-section .container {
    width: 100%;
  }

  .quote-section blockquote {
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.02)
    );
    border: 1px solid var(--border);
  }

  .quote-section cite,
  .quote-section .quote-author {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
  }

  .slide {
    margin-left: 0;
  }
}

/* Consent Buttons Mobile */
@media (max-width: 480px) {
  .consent-actions {
    justify-content: stretch;
  }

  .consent-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .consent-modal {
    width: min(100vw - 1rem, 560px);
    padding: 0.9rem;
  }

  .consent-title {
    font-size: 1rem;
  }

  .consent-text {
    font-size: 0.875rem;
  }
}

/* Very Small Devices */
@media (max-width: 380px) {
  .navbar__brand {
    max-width: 150px;
  }

  .navbar__actions form .btn {
    padding-inline: 7px;
    font-size: 0.78rem;
  }

  .navbar__logo {
    width: 34px;
    height: 34px;
  }

  #helpToggle,
  .navbar__toggle {
    width: 34px;
    height: 34px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}