/* ===== Report CSS ===== */
/* A4 page setup for wkhtmltopdf + screen preview */
@page { size: A4; margin: 25mm 20mm 20mm 20mm; }
.report-page * { box-sizing: border-box; margin: 0; padding: 0; }

body {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.report-page {
  max-width: 210mm;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.5;
}

/* ===== Header / Footer bars ===== */
.report-page .report-header-bar,
.report-page .report-footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #6b7280;
}
.report-page .report-header-bar { border-bottom: 1px solid rgba(15,23,42,.08); padding-bottom: 8px; margin-bottom: 16px; }
.report-page .report-footer-bar { border-top: 1px solid rgba(15,23,42,.08); padding-top: 8px; margin-top: 20px; color: #9ca3af; font-size: 10px; }
.report-page .report-footer-bar .brand { font-weight: 600; color: #6b7280; }
.report-page .report-header-bar img, .report-page .report-footer-bar img { height: 20px; width: auto; }

/* ===== Cover ===== */
.report-page .cover-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px;
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 16px; margin-bottom: 16px; align-items: start;
}
.report-page .cover-card .cover-img-wrap { display: flex; align-items: flex-start; }
.report-page .cover-card .cover-img {
  display: block; max-width: 100%; max-height: 90mm;
  width: auto; height: auto; border-radius: 10px; border: 1px solid #e5e7eb;
}
.report-page .cover-card h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 26px; font-weight: 700; color: #0f172a;
  letter-spacing: -0.3px; line-height: 1.15; margin-bottom: 6px;
}
.report-page .cover-card .meta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #6b7280;
  padding-bottom: 8px; border-bottom: 1px solid rgba(15,23,42,.08); margin-bottom: 10px;
}
.report-page .cover-card .meta-row .duration {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  color: #1d4ed8; font-weight: 500;
}
.report-page .cover-card .desc { font-size: 13px; color: #111827; line-height: 1.5; margin-top: 4px; }

.report-page .meta-section {
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.report-page .meta-section .sect-title {
  font-size: 14px; font-weight: 600; color: #374151;
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.report-page .meta-section .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.report-page .meta-section .grid > div:first-child { border-right: 1px solid #e5e7eb; padding-right: 16px; }
.report-page .meta-section .l { font-size: 11px; font-weight: 600; color: #6b7280; margin-top: 10px; }
.report-page .meta-section .l:first-child { margin-top: 0; }
.report-page .meta-section .v { font-size: 13px; color: #111827; line-height: 1.5; }
.report-page .meta-section .v .duration {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  color: #1d4ed8; font-weight: 500;
}

.report-page .sig-card {
  border: 1px solid #e5e7eb; background: #fff;
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.report-page .sig-card .l { font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 32px; }
.report-page .sig-card .line { border-top: 1px solid #9ca3af; width: 55%; }

/* ===== Docstep card ===== */
.report-page .docstep-card {
  border: 1px solid #e5e7eb; background: #fff;
  border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  page-break-inside: avoid; break-inside: avoid;
  min-height: 80mm; /* 3 with-image docsteps per A4 page */
}
.report-page .docstep-card.text-only { min-height: 25mm; }

.report-page .docstep-card .ds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.report-page .docstep-card .ds-num { font-size: 18px; font-weight: 700; color: #111827; }

.report-page .ds-badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.report-page .ds-badge-in_progress { background: #dbeafe; color: #1d4ed8; }
.report-page .ds-badge-in_review   { background: #fef3c7; color: #92400e; }
.report-page .ds-badge-done        { background: #dcfce7; color: #166534; }

.report-page .docstep-card .ds-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 11px; color: #6b7280; margin-bottom: 8px;
}
.report-page .docstep-card .ds-meta .duration {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  color: #1d4ed8; font-weight: 500;
}
.report-page .docstep-card .ds-body { display: flex; gap: 16px; align-items: flex-start; }
.report-page .docstep-card.text-only .ds-body { display: block; }

.report-page .docstep-card .ds-img-wrap { width: 40%; flex-shrink: 0; display: flex; justify-content: center; }
.report-page .docstep-card .ds-img {
  display: block; max-width: 100%; max-height: 60mm;
  width: auto; height: auto;
  border: 1px solid #e5e7eb; border-radius: 6px;
}
.report-page .docstep-card .ds-content { flex: 1; min-width: 0; }
.report-page .docstep-card .ds-hl { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.report-page .docstep-card .ds-desc { font-size: 12px; color: #111827; line-height: 1.5; }
.report-page .docstep-card .ds-desc p { margin: 0 0 4px; }
.report-page .docstep-card .ds-cm { font-size: 11px; color: rgba(0,0,0,.75); font-style: italic; margin-top: 4px; }
.report-page .docstep-card .ds-cm p { margin: 0 0 2px; }

/* ===== Pagination ===== */
.report-page .page-break { page-break-before: always; break-before: page; }

/* ===== Print vs screen ===== */
@media print {
  body { background: #fff; }
  .report-page { max-width: 100%; }
}
@media screen {
  body { background: #f1f5f9; }
  .report-page {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin: 24px auto; padding: 32px; border-radius: 8px;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Grundlayout */

html {
  /* Reserve scrollbar gutter on both edges so margin:auto-centered
     content stays on the true horizontal center even when the page
     has a vertical scrollbar. */
  scrollbar-gutter: stable both-edges;
  background: #f9fafb;
}

body {
  min-height: 100vh;
  margin: 0;
}

.app-body {
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9fafb;
}

.line-raster {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

/* DM Sans for static/main nav pages */
.static-page h1,
.static-page h2,
.static-page h3,
.pricing-page h1,
.pricing-page h2,
.pricing-page h3,
.homepage h1,
.homepage h2,
.homepage h3 {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
}

.app-main-header {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  width: 100%;
  color: #e5e7eb;
  border: 1px solid #00000016;
  border-radius: 999px;
  margin: 24px 0 16px;
}

/* Falls du das noch nicht hast: sorgt innen für Flex-Layout */
.app-main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  height: 72px;
  position: relative;
}

/* Tablet & kleiner */
@media (max-width: 768px) {
  .navbar-wrapper {
    width: calc(100% - 24px);
  }

  .app-main-header {
    margin: 16px 0 12px;
    border-radius: 24px;
  }

  .app-main-header-inner {
    gap: 8px;
  }

  .app-nav {
    font-size: 14px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .app-logo {
  }
}

/* Sehr kleine Smartphones */
@media (max-width: 480px) {
  .app-main-header-inner {
    padding: 8px 12px;
    height: 56px;
  }

  .app-logo {
  }

  .brand-logo--header img { height: 16px; }
  .brand-logo--header      { padding-top: 4px; }

  .navbar-menu-button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .navbar-auth-link {
    font-size: 13px;
    padding: 6px 12px;
  }

  .navbar-auth-btn {
    height: 28px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .navbar-right {
    gap: 8px;
  }
}
/* DocStep brand logo — stacks default + hover SVG with crossfade.
   Uses inline-grid with a single named area so both <img> children
   occupy the exact same cell — no absolute-positioning offsets,
   no jump when the parent has padding. */
.brand-logo {
  display: inline-grid;
  grid-template-areas: "stack";
  line-height: 0;
}

.brand-logo img {
  grid-area: stack;
  display: block;
  width: auto;
  transition: opacity 0.25s ease;
}

.brand-logo .brand-logo-hover { opacity: 0; }

.brand-logo:hover .brand-logo-default { opacity: 0; }
.brand-logo:hover .brand-logo-hover   { opacity: 1; }

/* Variants */
.brand-logo--header img  { height: 36px; }
.brand-logo--header      { padding-top: 8px; }
.brand-logo--sidebar img { height: 32px; }
.brand-logo--shared img  { height: 28px; }
.brand-logo--footer img  { height: 32px; filter: brightness(0) invert(1); }
.brand-logo--footer      { margin-bottom: 16px; }

.app-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: #000000;
}

@media (max-width: 768px) {
  .brand-logo--header img { height: 29px; }

  .navbar-auth-link {
    display: none;
  }
}

/* Navbar Layout */
.navbar-left {
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navbar Wrapper */
.navbar-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: calc(100% - 32px);
  margin: 0 auto;
}

/* Navbar Menu Button */
.navbar-menu-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #51515120;
  background: transparent;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.navbar-menu-button:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
  background: #ffffff;
}

/* Auth Links for Main Nav Pages */
.navbar-auth-link {
  font-size: 14px;
  font-weight: 500;
  color: #28464B;
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.navbar-auth-link:hover {
  color: #11343D;
}

.navbar-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 4px 12px;
  background: #28464B;
  color: #66F4C4;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .navbar-auth-btn {
    background: transparent;
    border: 1px solid #9b9b9b;
    color: #6b7280;
  }

  .navbar-auth-btn:hover {
    background: #ffffff;
    color: #28464B;
  }
}

.navbar-auth-btn:hover {
  background: #1e3539;
  transform: translateY(-1px);
}

/* Hide menu button when menu is open */
.is-menu-open .navbar-menu-button {
  opacity: 0;
  pointer-events: none;
}

/* Spacer to balance the logo centering */
.navbar-spacer {
  width: 32px;
  flex-shrink: 0;
}

/* Menu Card */
.navbar-menu-card {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: 240px;
  background: rgba(255, 255, 255);
  border-radius: 20px;
  border: 1px solid #00000010;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-menu-open .navbar-menu-card:not(.navbar-menu-card--right) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar-menu-card-header {
  display: flex;
  align-items: center;
  padding: 0 0 8px;
}

.navbar-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.navbar-menu-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.navbar-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.navbar-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 6px 0;
}

.navbar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.navbar-menu-item:hover {
  background: #f5f5f5;
}

.navbar-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

/* Right-aligned user menu card */
.navbar-menu-card--right {
  left: auto;
  right: 8px;
}

.navbar-menu-card-header--right {
  display: flex;
  justify-content: flex-end;
}

.is-user-menu-open .navbar-menu-card--right {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.app-nav-link {
  border-radius: 999px;
  border: 1px solid #51515120;
  padding: 8px 16px;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-nav-link:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  transition: all 0.3s ease;
}

.app-main {
  position: relative;
  z-index: 1;
  padding: 16px 0 32px;
}

.app-main-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
}

.app-main-inner > .footer-light {
  margin-top: auto;
}

/* Flash-Messages */

.flash {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

.flash-notice {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.flash-toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash-toast {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  background: #111827;
  color: #f9fafb;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.flash-toast-fade-out {
  opacity: 0;
}

/* Projekt-Show */

.project-show {
  margin-top: 4px;
}

/* Desktop/Tablet: Bild links, Text rechts */
.project-show-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  align-items: start;
  gap: 24px;
  margin-top: 8px;
}

.project-header-left {
  min-width: 0;
  margin: 24px;
}

.project-header-text {
  min-width: 0;
  margin: 24px;
  line-height: 1.5;
}

.project-actions-card {
  align-self: stretch;
}

/* Tablet: 2 columns, actions below */
@media (max-width: 991px) {
  .project-show-header {
    grid-template-columns: 1fr 1fr;
  }

  .project-actions-card {
    grid-column: 1 / -1;
  }
}

/* Mobile: single column */
@media (max-width: 767px) {
  .project-show-header {
    grid-template-columns: 1fr;
  }
}


.project-show-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08); /* dezentes Grau */
}

.project-total-duration {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  color: #1d4ed8;
  font-weight: 500;
}

.project-show-description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}

.project-show-actions {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08); /* dezentes Grau */
}

/* Project Actions Card */
.project-actions-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 12px;
}

.project-actions-nav {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.project-actions-form {
  display: contents;
}

button.navbar-menu-item {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.project-actions-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 6px 0;
}

.project-actions-status-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 8px 2px;
}

.project-actions-danger {
  color: #b91c1c !important;
}

.project-actions-danger i {
  color: #b91c1c !important;
}

.project-meta-section {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  padding: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: margin-bottom 0.2s ease;
}

.project-meta-header:has(+ .is-collapsed) {
  margin-bottom: 0;
}

.project-meta-header:hover .project-meta-chevron {
  color: #28464B;
}

.project-meta-section .section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.5px;
}

.project-meta-chevron {
  color: #9ca3af;
  transition: transform 0.3s ease, color 0.2s ease;
  transform: rotate(180deg); /* Standardmäßig nach unten zeigen */
}

.project-meta-chevron.is-rotated {
  transform: rotate(0deg);
}

.project-meta-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.project-meta-content.is-collapsed {
  max-height: 0 !important;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.project-meta-grid > div {
  padding-right: 24px;
}

.project-meta-grid > div:first-child {
  border-right: 1px solid #e5e7eb;
}

.project-meta-grid > div:last-child {
  padding-right: 0;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 4px;
  margin-top: 12px;
}

.project-meta-label:first-child {
  margin-top: 0;
}

.project-meta-value {
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
}

/* Mobile: project-meta-section */
@media (max-width: 768px) {
  .project-meta-section {
    padding: 20px;
    margin-top: 24px;
    border-radius: 12px;
  }

  .project-meta-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-meta-grid > div {
    padding-right: 0;
    border-right: none;
  }

  .project-meta-grid > div:first-child {
    border-right: none;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
  }

  .project-meta-label {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .project-meta-section {
    padding: 16px;
    margin-top: 16px;
  }

  .project-meta-section .section-title {
    font-size: 13px;
  }

  .project-meta-value {
    font-size: 13px;
  }
}

/* Projekt-Detailseite – Titelbild */

/*
.project-cover-wrapper {
  margin: -4px -4px 8px; /* leicht über den Rand, kannst du anpassen
}

.project-cover-image {
  width: 100%;
  max-width: 720px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
*/

.project-cover-wrapper {
  border-radius: 16px;
  overflow: hidden;
  max-width: 400px;
}

.project-cover-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}


/* Projektliste – Thumbnail in Karten */

.project-card-cover {
  margin-bottom: 0px;
  overflow: hidden;
  border-radius: 10px;
}

.project-card-cover-image {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}


/* Badges */



.badge {
  display: inline-flex;
  place-items: center;
  align-items: center;        /* vertikal zentrieren */
  justify-content: center;    /* horizontal zentrieren */
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 75px;
}

.badge-in_progress {
  background: #dbeafe;  /* blau */
  color: #1d4ed8;
  align-items: center;
}

.badge-in_review {
  background: #fef3c7;  /* gelb */
  color: #92400e;
  min-width: 75px;
}

.badge-done {
  background: #dcfce7;  /* grün */
  color: #166534;
}

.badge-none {
  background: #e5e7eb;
  color: #4b5563;
}

/* New Project – Seite zentrieren und schmaler machen */

.project-form-page {
  max-width: 800px;      /* begrenzt die Gesamtbreite */
  margin: 0 auto;        /* zentriert innerhalb von app-main-inner */
}

.project-form-header {
  margin: 24px;
  padding: 32 auto;
}

.project-form-card {
  background-color: rgba(255, 255, 255, 0.3); /* 0.2 = 20% Deckkraft */
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 40px 40px 40px 24px;
}

.project-form-cover-image {
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .project-form-cover-image {
    max-width: 320px;
    max-height: 320px;
  }
}

/* Auf größeren Screens etwas schmaler (ungefähr halbe Breite) */
@media (min-width: 1024px) {
  .project-form-page {
    max-width: 800px;
  }
}

/* Mobile: 20px rechts & links sind schon durch .app-main-inner gegeben,
   aber falls du sicherstellen willst, dass es nicht enger wird: */

@media (max-width: 767px) {
  .app-main-inner {
    padding-left: 10px;
    padding-right: 10px;
  }
}



/* ProjectsNewStyles */

.projects-page {
  background-color: rgba(255, 255, 255, 0.0);
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.00);
  border-radius: 32px;
  padding: 10px;
  border: 0px solid #00000016;
  max-width: 100%;
  box-sizing: border-box;
}

.projects-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.projects-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.projects-grid-toggle {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .projects-grid-toggle {
    gap: 2px;
    padding: 3px;
  }
}

.grid-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-toggle-btn:hover {
  color: #4b5563;
}

.grid-toggle-btn--active {
  background: #ffffff;
  color: #28464B;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.projects-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-filter {
  display: flex;
  gap: 6px;
}

.projects-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: #6b7280;
  background: transparent;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.projects-filter-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.projects-filter-btn--active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.projects-filter-btn--in_progress {
  border-color: #D9EBFF;
}

.projects-filter-btn--in_progress:hover {
  background: #D9EBFF;
  color: #1d4ed8;
}

.projects-filter-btn--in_progress.projects-filter-btn--active {
  background: #D9EBFF;
  border-color: #D9EBFF;
  color: #1d4ed8;
}

.projects-filter-btn--in_review {
  border-color: #FFF4C5;
}

.projects-filter-btn--in_review:hover {
  background: #FFF4C5;
  color: #92400e;
}

.projects-filter-btn--in_review.projects-filter-btn--active {
  background: #FFF4C5;
  border-color: #FFF4C5;
  color: #92400e;
}

.projects-filter-btn--done {
  border-color: #D5FDE7;
}

.projects-filter-btn--done:hover {
  background: #D5FDE7;
  color: #166534;
}

.projects-filter-btn--done.projects-filter-btn--active {
  background: #D5FDE7;
  border-color: #D5FDE7;
  color: #166534;
}

/* Mobile: projects page */
@media (max-width: 768px) {
  .projects-page {
    padding: 16px;
    border-radius: 24px;
  }

  .projects-header {
    padding-left: 0;
    gap: 12px;
  }

  .projects-header .page-title {
    font-size: 20px;
  }

  .projects-title-row {
    flex-wrap: wrap;
  }

  .grid-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .projects-header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .projects-filter {
    flex-wrap: wrap;
    gap: 6px;
  }

  .projects-filter-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .projects-status-grid {
    gap: 12px;
  }

  .projects-search {
    margin: 0px 0px 16px 0px;
  }

  .projects-search-input {
    padding: 8px 36px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .projects-page {
    padding: 12px;
    border-radius: 20px;
  }

  .projects-title-row {
    gap: 8px;
  }

  .projects-header .page-title {
    font-size: 18px;
  }

  .grid-toggle-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .projects-header-actions {
    width: 100%;
  }

  .projects-filter {
    width: 100%;
    justify-content: flex-start;
  }

  .projects-filter-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .project-card {
    padding: 8px 10px;
  }

  .project-card-title {
    font-size: 14px;
  }

  .project-card-cover-image {
    max-height: 120px;
  }
}

.projects-search {
  margin-bottom: 24px;
}

.projects-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.projects-search-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: #9ca3af;
  pointer-events: none;
}

.projects-search-input {
  width: 100%;
  padding: 10px 40px 10px 40px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.projects-search-input::placeholder {
  color: #9ca3af;
}

.projects-search-input:focus {
  border-color: #66F4C4;
  box-shadow: 0 0 0 3px rgba(102, 244, 196, 0.15);
}

.projects-search-clear {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
}

.projects-search-clear:hover {
  background: #f3f4f6;
  color: #111827;
}

.projects-empty {
  text-align: center;
  padding: 32px 16px;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
  background: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}


.project-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.project-card:hover {
  border-color: #cbd5f5;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.project-card-title {
  margin: 0;
  font-size: 15px;
}

.project-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.project-card-client {
  margin-top: 6px;
  font-size: 12px;
}

.project-card-client-label {
  font-weight: 600;
  color: #4b5563;
  margin-right: 4px;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.project-card-docsteps {
  font-weight: 500;
}

.project-card-link-hint {
  opacity: 0.8;
}

.projects-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
  min-width: 0;
  max-width: 100%;
}

.projects-status-grid.projects-status-grid--columns {
  grid-template-columns: repeat(3, 1fr);
}

.projects-status-grid.projects-status-grid--single {
  grid-template-columns: 1fr !important;
}

@media (max-width: 1024px) {
  .projects-status-grid.projects-status-grid--columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-status-grid.projects-status-grid--columns {
    grid-template-columns: 1fr;
  }
}

.projects-status-section {
  border-radius: 0px;
  border: 0px solid #e5e7eb;
  background: rgba(0, 0, 0, 0.00);
  padding-bottom: 12px;
  min-width: 0;
}

.projects-status-header {
  display: flex;
  height: 12px;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding: 16px;
  border-radius:12px;
  background-color: #f1f1f1;
}

.projects-status-header--in_progress {
  background-color: #D9EBFF;
}

.projects-status-header--in_review {
  background-color: #FFF4C5;
}

.projects-status-header--done {
  background-color: #D5FDE7;
}

.projects-status-title {
  margin: 0;
  font-size: 14px;
}

.projects-status-count {
  font-size: 12px;
  color: #6b7280;
}

.projects-status-empty {
  font-size: 12px;
  color: #9ca3af;
}

/* Collapsible status sections */
.projects-status-header {
  cursor: pointer;
  user-select: none;
}

.projects-status-header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.projects-status-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: #6b7280;
  font-size: 12px;
}

.projects-status-chevron.is-rotated {
  transform: rotate(-90deg);
}

.projects-status-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.projects-status-content .projects-grid {
  padding-bottom: 16px;
}

.projects-status-content.is-collapsed {
  max-height: 0 !important;
}

/* Compact list view */
.projects-status-grid--compact .projects-grid {
  grid-template-columns: 1fr !important;
  gap: 6px;
}

.projects-status-grid--compact .project-card {
  flex-direction: row;
  align-items: center;
  min-height: auto;
  padding: 10px 16px;
  gap: 16px;
  border-radius: 10px;
}

.projects-status-grid--compact .project-card-cover {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
  order: -1;
}

.projects-status-grid--compact .project-card-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-status-grid--compact .project-card-top {
  margin-bottom: 0;
  order: 2;
  flex-shrink: 0;
  gap: 8px;
}

.projects-status-grid--compact .project-card-title {
  flex: 1;
  min-width: 0;
  order: 1;
}

.projects-status-grid--compact .project-card-title h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-status-grid--compact .project-card-footer {
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
  order: 3;
  gap: 12px;
}

.projects-status-grid--compact .project-card-client {
  display: none;
}

@media (max-width: 768px) {
  .projects-status-grid--compact .project-card {
    padding: 8px 12px;
    gap: 10px;
  }

  .projects-status-grid--compact .project-card-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .projects-status-grid--compact .project-card-footer {
    display: none;
  }
}

@media (max-width: 480px) {
  .projects-status-grid--compact .project-card {
    padding: 8px 10px;
    gap: 8px;
  }

  .projects-status-grid--compact .project-card-cover {
    width: 36px;
    height: 36px;
  }

  .projects-status-grid--compact .project-card-top {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .projects-status-grid--compact .project-card-title {
    font-size: 13px;
  }
}


/* Buttons */

/* Download loading bar */
.download-wrapper {
  position: relative;
}

.download-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 2px;
  background: #e5e7eb;
  overflow: hidden;
}

.download-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: #28464B;
  animation: download-bar-slide 1.2s ease-in-out infinite;
}

@keyframes download-bar-slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

.download-link--loading {
  pointer-events: none;
  opacity: 0.6;
}

.download--done .download-bar {
  display: none !important;
}

.download--done .navbar-menu-item i {
  color: #22c55e;
}


.btn {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: 1px solid #d1d5db;
  color: #111827;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: #28464B;
  border-color: #28464B;
  color: #66F4C4;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e3539;
  border-color: #1e3539;
  color: #66F4C4;
  box-shadow: 0 0 24px rgba(102, 244, 196, 0.5);
}

.btn-secondary {
  border: 1px solid #b9b9b9;
  color: #6b7280;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #28464B;
  box-shadow: 0 0 24px rgba(102, 244, 196, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: #111827;
}

.btn-ghost:hover {
  background: #e5e7eb;
}

.btn-small {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  color: #8d8d8d;
}

.btn-danger {
  border-color: #ef4444;
  color: #b91c1c;
}

/* Docsteps */

.docstep-list-section {
  border-radius: 24px;
  border: 0px solid #e5e7eb;
  background-color: rgba(255, 255, 255, 0.0); /* 0.2 = 20% Deckkraft */
  padding: 0px;
  margin-bottom: 16px;
}

/* Body scroll lock when sheet is open */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* Space at bottom for the peek area */
.project-show {
  padding-bottom: 120px;
}

/* ============================================
   BOTTOM SHEET - Mobile-first sliding panel
   ============================================ */

/* Container: fixed fullscreen overlay */
.docstep-form-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  /* IMPORTANT: none by default so page behind is interactive when closed */
  pointer-events: none;
}

/* Backdrop overlay - fades in */
.docstep-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

.docstep-form-section.is-open .docstep-overlay-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* The sheet panel - slides up from bottom */
.docstep-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  background: #F5F5F5;
  border-radius: 40px;
  border: 1px solid #66F4C4;
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);

  /* Layout */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;

  /* Height: full viewport minus top margin */
  height: 85vh;
  height: 85dvh;
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);

  /* Closed state: only peek (84px) visible */
  transform: translateY(calc(100% - 84px));
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;

  /* Always clickable (for handle in closed state) */
  pointer-events: auto;
}

/* When open, backdrop becomes clickable to close */
.docstep-form-section.is-open {
  pointer-events: auto;
}

/* Open state: sheet fully visible */
.docstep-form-section.is-open .docstep-sheet {
  transform: translateY(0);
}

/* Handle bar at top */
.docstep-sheet-handle {
  flex-shrink: 0;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #F5F5F5;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.docstep-sheet-title {
  padding: 12px 16px;
  border-radius: 999px;
  background: #11343D;
  color: #66F4C4;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.docstep-form-section.is-open .docstep-sheet-title {
  background: transparent;
  color: #9ca3af;
  border-color: #e5e7eb;
  pointer-events: none;
}

.docstep-sheet-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docstep-sheet-chevron::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(135deg);
  transition: transform 250ms ease;
}

.docstep-form-section.is-open .docstep-sheet-chevron::before {
  transform: rotate(-45deg);
}

/* Form wrapper */
.docstep-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Content area - scroll container */
.docstep-sheet-body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   DESKTOP ≥1280px — inline card instead of bottom sheet
   ============================================ */
@media (min-width: 1280px) {
  /* 1. Allow page scroll when sheet is open (override mobile no-scroll) */
  html.no-scroll,
  body.no-scroll {
    overflow: auto !important;
    touch-action: auto;
  }

  .project-show {
    padding-bottom: 24px;
  }

  .docstep-form-section {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    z-index: auto;
    pointer-events: auto;
    margin-top: 24px;
  }

  .docstep-overlay-backdrop {
    display: none !important;
  }

  /* Sheet: inline card with grid-based collapse */
  .docstep-sheet {
    position: relative;
    left: auto; right: auto; bottom: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transform: none;
    will-change: auto;
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 300ms ease;
    overflow: hidden;
  }

  .docstep-form-section.is-open .docstep-sheet {
    transform: none;
    grid-template-rows: auto 1fr;
    box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  }

  /* Handle: teal header with reordered items */
  .docstep-sheet-handle {
    background: #28464B;
    color: #fff;
    border-radius: 16px;
    border-bottom: none;
    min-height: 56px;
    padding: 12px 20px;
    position: relative;
    transition: border-radius 200ms ease;
  }

  .docstep-form-section.is-open .docstep-sheet-handle {
    border-radius: 16px 16px 0 0;
    background: #f3f4f6;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
  }

  /* 4. Chevron left, title centered */
  .docstep-sheet-chevron {
    order: -1;
  }

  .docstep-sheet-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102,244,196,0.15);
    color: #66F4C4;
    border-color: rgba(102,244,196,0.3);
  }

  .docstep-form-section.is-open .docstep-sheet-title {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #d1d5db;
  }

  /* 3. Chevron 180° flipped: down when closed, up when open */
  .docstep-sheet-chevron::before {
    border-color: #66F4C4;
    transform: rotate(-45deg);
  }

  .docstep-form-section.is-open .docstep-sheet-chevron::before {
    transform: rotate(135deg);
    border-color: #9ca3af;
  }

  /* Form collapse */
  .docstep-form {
    overflow: hidden;
    min-height: 0;
  }

  /* Two-column body */
  .docstep-sheet-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    padding: 20px 24px;
  }

  .docstep-sheet-body > * {
    grid-column: 1;
  }

  .docstep-sheet-body > .docstep-field-image {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
  }

  /* 6. Description textarea taller (not headline/comment which use -small) */
  .docstep-sheet-body .docstep-textarea:not(.docstep-textarea-small) {
    min-height: 120px;
  }

  /* 2. Image placeholder ~2x bigger, icons overlaid on it */
  .docstep-field-image .docstep-image-row {
    position: relative !important;
    display: block !important;
  }

  .docstep-image-row .docstep-image-placeholder {
    width: 320px !important;
    height: 240px !important;
    border-radius: 12px;
    border: 2px dashed rgba(40,70,75,0.25) !important;
    background: rgba(40,70,75,0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .docstep-image-row .docstep-image-placeholder:hover {
    border-color: #28464B !important;
    background: rgba(40,70,75,0.05);
  }

  .docstep-image-row .docstep-image-placeholder.has-image {
    border-style: solid !important;
    border-color: #e5e7eb !important;
  }

  .docstep-field-image .docstep-image-row > .docstep-icon-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10;
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .docstep-field-image .docstep-image-row > label.docstep-icon-button {
    left: calc(50% - 52px) !important;
  }

  .docstep-field-image .docstep-image-row > button.docstep-icon-button {
    left: calc(50% + 8px) !important;
  }

  /* 7. Submit area: no gray bg, no border-top */
  .docstep-sheet-actions {
    background: transparent;
    border-top: none;
    padding: 8px 24px 16px;
  }

  /* 5. Submit button: half-width, pill-shaped, under text column */
  .docstep-submit-btn {
    width: calc(50% - 12px);
    border-radius: 999px;
  }
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}

.docstep-text-input-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.docstep-textarea {
  flex: 1 1 auto;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  resize: vertical;
  min-height: 60px;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}

.docstep-textarea-small {
  min-height: 30px;
  padding: 6px 14px;
}

/* Prevent mobile zoom on input focus - font-size must be >= 16px */
@media (max-width: 768px) {
  input,
  textarea,
  select,
  .docstep-textarea,
  .docstep-textarea-small {
    font-size: 16px !important;
  }
}

.docstep-icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.5);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.4s ease;
}

.docstep-icon-button:hover {
  background: #11343D;
  color: #66F4C4;
  transform: scale(1.05);
}

.docstep-icon-button:active {
  transform: scale(0.95);
}

.docstep-icon-button .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.docstep-image-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.docstep-image-placeholder {
  width: 160px;
  height: 120px;
  border-radius: 10px;
  border: 2px dashed #d1d5db;
  background: rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.docstep-image-placeholder.has-image {
  border-style: solid;
  border-color: #e5e7eb;
  background-size: cover;
  background-position: center;
}

.docstep-file-input {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
}

.docstep-geo-display {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Bottom info bar */
.docstep-bottom-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.docstep-bottom-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.docstep-bottom-label {
  font-size: 11px;
  color: #9ca3af;
}

.docstep-bottom-number {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.docstep-bottom-arrow {
  display: none;
}

.docstep-bottom-plus {
  font-size: 22px;
  font-weight: 600;
  color: #66F4C4;
}

/* Submit button area */
.docstep-sheet-actions {
  flex-shrink: 0;
  padding: 12px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #F5F5F5;
}

.docstep-submit-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
}

/* Screenreader-only Text (für Labels in Icon-Buttons) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}





.docstep-empty {
  font-size: 13px;
  color: #6b7280;
}

.docstep-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.docstep-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: rgba(255, 255, 255);
  padding: 8px 16px;
  margin-bottom: 8px;
  padding : 16px;
  scroll-margin-bottom: 100px;
}

.docstep-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.docstep-header-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.docstep-number {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.docstep-body {
  display: flex;
  gap: 20px;
  flex-direction: row; /* Standard: nebeneinander */
}

/* Für Mobilgeräte (Bildschirme schmaler als 768px) */
@media (max-width: 768px) {
  .docstep-body {
    flex-direction: column; /* Jetzt untereinander */
  }
}

.docstep-image-wrapper {
  flex-shrink: 0;
  order: 1;
}

/* Mobile: Bild über Text (order:-1 hebt das Bild vor den Text im column-Layout) */
@media (max-width: 768px) {
  .docstep-image-wrapper {
    order: -1;
  }
}

.docstep-image {
  box-shadow: inset 0 8px 16px rgba(15, 23, 42, 0.06);
  width: 320px;
  height: 240px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Desktop: Bilder etwas größer */
@media (min-width: 1280px) {
  .docstep-image {
    width: 400px;
    height: 300px;
  }
}

.docstep-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0px 20px;
}

/* Mobile: weniger Innenabstand */
@media (max-width: 768px) {
  .docstep-item {
    padding: 10px;
    border-radius: 10px;
  }

  .docstep-content {
    padding: 0;
  }
}

/* Kleine Smartphones */
@media (max-width: 640px) {
  .docstep-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 240px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
  }
}

.docstep-headline {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.docstep-description {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.docstep-comment {
  margin: 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.75);
}

.inline-form {
  display: inline-block;
}

.docstep-footer {
  display: flex;
  margin-top: 16px;
  padding-top: 16px; /* etwas Abstand zwischen Inhalt und Linie */
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  /* nur obere Rahmenlinie */
  border-top: 1px solid rgba(15, 23, 42, 0.08); /* dezentes Grau */
}

.docstep-footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.docstep-footer-left .btn {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid #d1d5db;
  color: #6b7280;
  background: transparent;
  transition: all 0.2s ease;
}

.docstep-footer-left .btn:hover {
  background: #f3f4f6;
  color: #28464B;
  border-color: #28464B;
}

.docstep-footer-right {
  display: flex;
  align-items: right;
  gap: 8px;
}

.docstep-footer-right .btn {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid #d1d5db;
  color: #6b7280;
  background: transparent;
  transition: all 0.2s ease;
}

.docstep-footer-right .btn:hover {
  background: #f3f4f6;
  color: #28464B;
  border-color: #28464B;
}

.docstep-footer-label {
  font-size: 11px;
  color: #6b7280;
}


.docstep-image-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* duplicate removed — .docstep-file-input is defined above */

.docstep-file-label {
  cursor: pointer;
}

.docstep-geo-display,
.docstep-geo {
  font-size: 12px;
  color: #6b7280;
}


/* Page-Titel */

.page-title {
  margin-top: 20px;
  font-size: 24px;
}

.page-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Form-Felder */

.field {
  margin-bottom: 8px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.field label.docstep-icon-button {
  display: inline-flex;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 0;
}

.field input[type="text"],
.field input[type="file"],
.field textarea,
.field select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  font-size: 13px;
}

.actions {
  margin-top: 8px;
}

.inline-form {
  display: inline-block;
}

/* Docstep Timer - Bottom Sheet */
.docstep-timer-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #11343D;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.docstep-timer-display {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 14px;
  font-weight: 600;
  color: #66F4C4;
  min-width: 48px;
  text-align: center;
}

.docstep-timer-pause-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: #66F4C4;
  color: #11343D;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.docstep-timer-pause-btn:hover {
  background: #4ee0ad;
  transform: scale(1.05);
}

.docstep-timer-pause-btn.is-paused {
  background: rgba(102, 244, 196, 0.3);
  color: #66F4C4;
  animation: pulse-pause 1.5s ease-in-out infinite;
}

@keyframes pulse-pause {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Docstep Meta Row - timing + geo in one line */
.docstep-meta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 8px 0 16px;
  padding: 8px 0 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* Legacy - keep for backwards compatibility */
.docstep-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 8px 0 16px;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.docstep-timing-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.docstep-timing-label {
  font-size: 11px;
  min-width: 8px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.docstep-timing-value {

  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  background: #F5F5F5;
  opacity: 0.9;
  color: #676767;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
}
/*
  font-size: 13px;
  font-weight: 500;
  color: #111827;
*/

.docstep-timing-duration {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  background: #F5F5F5;
  color: #676767;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 400;
  font-size: 12px;
}

.docstep-geo-display,
.docstep-geo {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  background: #F5F5F5;
  color: #676767;
  padding: 2px 8px;
  border-radius: 1px;
  font-weight: 400;
  font-size: 12px;
}


/* Mobile adjustments for timer */
@media (max-width: 480px) {
  .docstep-timer-group {
    gap: 6px;
    padding: 8px;
  }

  .docstep-timer-display {
    font-size: 14px;
    min-width: 48px;
  }

  .docstep-timer-pause-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .docstep-timing {
    flex-direction: column;
    gap: 6px;
  }

  .docstep-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================
   IMAGE PREVIEW MODAL
   ============================================ */

.image-previewable {
  cursor: pointer;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-preview-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-preview-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: calc(100% - 32px);
  overflow: hidden;
}

.image-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease;
}

.image-preview-close:hover {
  background: #ffffff;
}

.image-preview-img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #f5f5f5;
}

.image-preview-meta {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #111827;
}

.image-preview-meta-row {
  display: flex;
  gap: 0px;
}

.image-preview-meta-label {
  font-weight: 600;
}

.image-preview-docstep-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #b9b9b9;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.image-preview-docstep-link:hover {
  background: #ffffff;
  color: #28464B;
  box-shadow: 0 0 24px rgba(102, 244, 196, 0.4);
}

/* ============================================
   HOMEPAGE
   ============================================ */

.homepage {
  padding-bottom: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hero */
.hero-section {
  text-align: center;
  padding: 48px 0 72px;
}

.hero-title {
  font-size: 64px;
  font-weight: 600;
  color: #28464B;
  line-height: 1.1;
  margin: 0 0 0px;
}

.hero-subtitle {
  font-size: 24px;
  color: #6b7280;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.65;
  padding: 0 16px;
}

/* Typewriter third line under hero headline */
.hero-title-typewriter {
  font-family: "Instrument Serif", "DM Sans", serif;
  font-style: italic;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: #487278;
  margin: 6px 0 26px;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hero-typewriter-text {
  white-space: pre;
}

.hero-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: #487278;
  margin-left: 4px;
  transform: translateY(2px);
  border-radius: 1px;
  animation: hero-cursor-blink 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: opacity, transform;
}

@keyframes hero-cursor-blink {
  0%   { opacity: 1;    transform: translateY(2px) scaleY(1); }
  45%  { opacity: 1;    transform: translateY(2px) scaleY(1); }
  55%  { opacity: 0.15; transform: translateY(2px) scaleY(0.92); }
  100% { opacity: 1;    transform: translateY(2px) scaleY(1); }
}

.hero-buttons {

  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-buttons .btn {
  padding: 0.9rem 1.4rem;
  font-size: 1.0rem;
  font-weight: 5  00;
  transition: all 0.25s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-image-wrapper {
  max-width: 100%;
}

/* ===== CUSTOMER LOGOS MARQUEE ===== */
.logos-section {
  padding: 48px 0 88px;
  overflow: hidden;
}

.logos-title {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  text-transform: uppercase;
  margin: 0 0 32px;
}

.logos-marquee {
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.logos-marquee::before,
.logos-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logos-marquee::before {
  left: 0;
  background: linear-gradient(to right, #f9fafb 0%, transparent 100%);
}

.logos-marquee::after {
  right: 0;
  background: linear-gradient(to left, #f9fafb 0%, transparent 100%);
}

.logos-track {
  display: flex;
  gap: 48px;
  width: max-content;
}

/* Left to Right animation */
.logos-marquee--ltr .logos-track {
  animation: marquee-ltr 60s linear infinite;
}

/* Right to Left animation */
.logos-marquee--rtl .logos-track {
  animation: marquee-rtl 60s linear infinite;
}

@keyframes marquee-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
}

/* Unified tech-stack logos — square card */
.tech-logo {
  flex-direction: column;
  gap: 8px;
  width: 100px;
  height: 100px;
  padding: 12px;
  color: #28464B;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

/* SVG rendered via CSS mask → currentColor controls fill */
.tech-logo-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.tech-logo-label {
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1;
}

/* Pause animation on hover */
.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logos-section {
    padding: 32px 0;
  }

  .logos-title {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .logos-track {
    gap: 24px;
  }

  .logo-item {
    width: 100px;
    height: 48px;
    font-size: 12px;
  }

  .logos-marquee::before,
  .logos-marquee::after {
    width: 40px;
  }
}

/* ===== CARDS MARQUEE (Section 8) ===== */
.cards-marquee {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
}

.cards-marquee::before,
.cards-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.cards-marquee::before {
  left: 0;
  background: linear-gradient(to right, #dceeef 0%, transparent 100%);
}

.cards-marquee::after {
  right: 0;
  background: linear-gradient(to left, #dceeef 0%, transparent 100%);
}

.cards-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* Left to Right animation */
.cards-marquee--ltr .cards-marquee-track {
  animation: cards-marquee-ltr 45s linear infinite;
}

@keyframes cards-marquee-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.cards-marquee-card {
  flex: 0 0 280px;
  min-width: 280px;
}

/* Pause animation on hover */
.cards-marquee:hover .cards-marquee-track {
  animation-play-state: paused;
}

/* Mobile adjustments for cards marquee */
@media (max-width: 768px) {
  .cards-marquee::before,
  .cards-marquee::after {
    width: 40px;
  }

  .cards-marquee-track {
    gap: 16px;
  }

  .cards-marquee-card {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .cards-marquee--ltr .cards-marquee-track {
    animation-duration: 35s;
  }
}

/* ===== CARD SLIDER ===== */
.card-slider {
  position: relative;
  padding: 0 60px;
}

.card-slider-viewport {
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.card-slider-viewport.is-dragging {
  cursor: grabbing;
}

.card-slider-viewport.is-dragging .card-slider-card {
  pointer-events: none;
}

.card-slider-track {
  display: flex;
  gap: 32px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.card-slider-card {
  flex: 0 0 50%;
  max-width: 500px;
  min-width: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.5;
  transform: scale(0.9);
  filter: blur(1px);
}

.card-slider-card--active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 1;
}

.card-slider-card--prev,
.card-slider-card--next {
  opacity: 0.6;
  cursor: pointer;
}

.card-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-slider-btn:hover:not(.card-slider-btn--disabled) {
  background: #11343D;
  color: #66F4C4;
  border-color: #11343D;
}

.card-slider-btn:active:not(.card-slider-btn--disabled) {
  transform: translateY(-50%) scale(0.95);
}

.card-slider-btn--prev {
  left: 0;
}

.card-slider-btn--next {
  right: 0;
}

.card-slider-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.card-slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 8px 0;
}

.card-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.card-slider-dot:hover {
  background: #9ca3af;
}

.card-slider-dot--active {
  background: #11343D;
  transform: scale(1.3);
}

/* Swipe hint for mobile */
.card-slider-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
}

/* Card Slider Tablet */
@media (max-width: 1024px) {
  .card-slider-card {
    flex: 0 0 45%;
    max-width: 400px;
  }
}

/* Card Slider Mobile */
@media (max-width: 768px) {
  .card-slider {
    padding: 0 16px;
    margin: 0 -16px;
  }

  .card-slider-track {
    gap: 16px;
    padding: 0 16px;
  }

  .card-slider-card {
    flex: 0 0 calc(100% - 32px);
    max-width: none;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  .card-slider-card--prev,
  .card-slider-card--next {
    opacity: 1;
  }

  .card-slider-btn {
    display: none;
  }

  .card-slider-dots {
    gap: 16px;
    margin-top: 20px;
  }

  .card-slider-dot {
    width: 14px;
    height: 14px;
    position: relative;
  }

  .card-slider-dot::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
  }

  .card-slider-hint {
    display: block;
  }
}

@media (max-width: 480px) {
  .card-slider {
    padding: 0 12px;
    margin: 0 -12px;
  }

  .card-slider-track {
    gap: 12px;
    padding: 0 12px;
  }

  .card-slider-card {
    flex: 0 0 calc(100% - 24px);
  }
}

/* Placeholder images with gradient */
.hero-image-placeholder {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: radial-gradient(63.68% 49.09% at 50.91% 52.09%, #50C29E 0%, #28464B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0c0c0;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 300;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-image-placeholder:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Use-case SVG scenes (anwendungsfälle cards) — warm flat bg overrides the teal gradient */
.hp-scene-svg {
  background: #F6F0E4;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hp-scene-svg .hp-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image-placeholder--large {
  width: 100%;
  aspect-ratio: 1040 / 720;
  max-height: 480px;
  font-size: 24px;
}

.hero-image-placeholder--medium {
  width: 100%;
  aspect-ratio: 480 / 320;
}

.hero-image-placeholder--tall {
  width: 100%;
  aspect-ratio: 480 / 480;
}

.hero-image-placeholder--medium-sm {
  width: 100%;
  aspect-ratio: 360 / 320;
}

/* Sections */
.hp-section {
  margin-bottom: 80px;
  padding-bottom: 80px;
  /* Divider styled to match the grid raster — JS snaps padding-bottom
     so this border lands on a 16px grid line. */
  border-bottom: 1px solid rgba(185, 185, 185, 0.5);
}

.hp-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hp-section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 40px;
  color: #28464B;
}

/* Row: image + text side by side */
.hp-row {
  display: flex;
  gap: 48px;
  align-items: center;
}

.hp-row--reverse {
  flex-direction: row-reverse;
}

.hp-col {
  flex: 1 1 0;
  min-width: 0;
}

.hp-col--text p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 16px;
  padding: 0px 16px;
}

.hp-col--text p:last-child {
  margin-bottom: 0;
}

.hp-block-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #28464B;
  padding: 0px 16px;
}

/* Card rows */
.hp-cards-row {
  display: grid;
  gap: 24px;
}

.hp-cards-row--2 {
  grid-template-columns: repeat(2, 1fr);
}

.hp-cards-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hp-cards-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

.hp-card {
  text-align: left;
  padding: 16px 16px 32px 16px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hp-card-title {
  font-size: 24px;
  font-weight: 400;
  margin: 16px 0 8px;
  color: #28464B;
}

.hp-card-text {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
}

/* Use Cases Bento Grid */
.usecases-section {
  padding: 80px 0;
}

.usecases-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecases-intro {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usecases-intro-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #28464B;
}

.usecases-intro-text {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 20px;
}

.usecases-intro-link {
  color: #28464B;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.usecases-intro-link:hover {
  gap: 10px;
}

.usecases-card {
  background: #f8f6f3;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.usecases-card:hover {
  background: #11343D;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.usecases-card:hover .usecases-card-title,
.usecases-card:hover .usecases-card-text {
  color: #ffffff;
}

.usecases-card:hover .usecases-card-icon {
  background: #ffffff;
  color: #11343D;
}

.usecases-card-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #28464B;
  margin-bottom: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.usecases-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #28464B;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.usecases-card-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .usecases-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-intro {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: 8px;
  }
}

@media (max-width: 600px) {
  .usecases-bento {
    grid-template-columns: 1fr;
  }

  .usecases-section {
    padding: 48px 0;
  }

  .usecases-intro-title {
    font-size: 26px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .hero-section {
    padding: 36px 0 56px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-title-typewriter {
    font-size: 48px;
  }

  .hp-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
  }

  .hp-row {
    gap: 32px;
  }

  .hp-cards-row--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .homepage {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-section {
    padding: 24px 0 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-title-typewriter {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hp-section-title {
    font-size: 28px;
  }

  .hp-section {
    margin-bottom: 48px;
  }

  .hp-row,
  .hp-row--reverse {
    flex-direction: column;
    gap: 24px;
  }

  .hp-col {
    flex: none;
    width: 100%;
  }

  .hp-cards-row--2,
  .hp-cards-row--3,
  .hp-cards-row--4 {
    grid-template-columns: 1fr;
  }

  .hp-block-title {
    font-size: 32px;
  }
}

/* Small mobile */
@media (max-width: 479px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-title-typewriter {
    font-size: 32px;
  }

  .hp-section-title {
    font-size: 24px;
  }

  .hp-block-title {
    font-size: 20px;
  }

  .hp-card {
    padding: 12px 12px 24px;
  }
}

/* ===== STATIC PAGES ===== */
.static-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.static-page-section {
  margin-bottom: 48px;
}

.page-headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #28464B;
}

.page-subhead {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: #28464B;
  padding: 0px 16px;
}

.page-text p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 16px;
  padding: 0px 16px;
}

.page-text p:last-child {
  margin-bottom: 0;
}

/* Static Pages Mobile */
@media (max-width: 768px) {
  .static-page {
    padding: 32px 16px 64px;
  }

  .page-headline {
    font-size: 40px;
  }

  .page-subhead {
    font-size: 24px;
  }

  .page-text p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-headline {
    font-size: 32px;
  }

  .page-subhead {
    font-size: 20px;
  }
}

/* ===== PRICING PAGE ===== */
.pricing-page {
  max-width: 100%;
  overflow-x: hidden;
}

.pricing-hero {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-size: 48px;
  font-weight: 400;
  color: #28464B;
  margin: 0 0 16px;
}

.pricing-hero-subtitle {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.pricing-section {
  padding: 32px 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.pricing-card * {
  box-sizing: border-box;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card--highlighted {
  background: linear-gradient(135deg, #11343D 0%, #1a4a56 50%, #11343D 100%);
  border: 1px solid rgba(102, 244, 196, 0.3);
  box-shadow: 0 8px 32px rgba(17, 52, 61, 0.25);
}

.pricing-card--highlighted:hover {
  box-shadow: 0 16px 48px rgba(17, 52, 61, 0.35);
}

.pricing-card--highlighted .pricing-plan-name,
.pricing-card--highlighted .pricing-amount,
.pricing-card--highlighted .pricing-period,
.pricing-card--highlighted .pricing-plan-tagline,
.pricing-card--highlighted .pricing-features-intro,
.pricing-card--highlighted .pricing-features-list li {
  color: #ffffff;
}

.pricing-card--highlighted .pricing-features-list li i {
  color: #66F4C4;
}

.pricing-card-top {
  margin-bottom: 20px;
}

.pricing-plan-name {
  font-size: 20px;
  font-weight: 700;
  color: #28464B;
  margin: 0 0 4px;
}

.pricing-plan-tagline {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.pricing-amount {
  font-size: 42px;
  font-weight: 800;
  color: #28464B;
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: #6b7280;
}

.pricing-features-intro {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4b5563;
  padding: 6px 0;
}

.pricing-features-list li i {
  color: #11343D;
  font-size: 11px;
  flex-shrink: 0;
}

.pricing-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.pricing-btn--primary {
  background: #66F4C4;
  color: #11343D;
  border: none;
}

.pricing-btn--primary:hover {
  background: #4de0ad;
  transform: translateY(-1px);
}

.pricing-btn--secondary {
  background: transparent;
  color: #6b7280;
  border: 1px solid #b9b9b9;
}

.pricing-btn--secondary:hover {
  background: #ffffff;
  color: #28464B;
  box-shadow: 0 0 24px rgba(102, 244, 196, 0.4);
  transform: translateY(-1px);
}

.pricing-btn--outline {
  background: transparent;
  color: #28464B;
  border: 1px solid #d1d5db;
}

.pricing-btn--outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.pricing-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Enterprise Card (Combined) */
.pricing-enterprise {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #66F4C4;
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-enterprise:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 244, 196, 0.15);
}

.pricing-enterprise-col {
  display: flex;
  flex-direction: column;
}

.pricing-enterprise-header {
  gap: 6px;
}

.pricing-enterprise-title {
  font-size: 20px;
  font-weight: 700;
  color: #28464B;
  margin: 0;
}

.pricing-enterprise-tagline {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.pricing-enterprise-cta {
  align-items: center;
  text-align: center;
  gap: 12px;
}

.pricing-enterprise-scene .scene-svg {
  margin-bottom: 0;
}

.pricing-enterprise-description {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.pricing-enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-enterprise-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #28464B;
}

.pricing-enterprise-feature i {
  color: #11343D;
  font-size: 18px;
}

.pricing-enterprise-bottom {
  grid-column: 1 / -1;
  margin-top: 16px;
  text-align: center;
}

/* Enterprise Details Section (deprecated, keeping for backwards compat) */
.enterprise-details {
  display: none;
}

.enterprise-details-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.enterprise-details-title {
  font-size: 32px;
  font-weight: 700;
  color: #28464B;
  margin: 0 0 20px;
}

.enterprise-details-text {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 32px;
}

.enterprise-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.enterprise-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #28464B;
}

.enterprise-feature i {
  color: #11343D;
  font-size: 18px;
}

/* Pricing Table */
.pricing-table-section {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-table-title {
  font-size: 32px;
  font-weight: 700;
  color: #28464B;
  text-align: center;
  margin: 0 0 40px;
}

.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 24px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-table thead th {
  font-size: 18px;
  font-weight: 700;
  color: #28464B;
  background: #f3f4f6;
  vertical-align: bottom;
  padding: 24px 20px;
}

.pricing-table-price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #11343D;
  margin-top: 6px;
}

.pricing-table-feature-col {
  width: 35%;
  text-align: left !important;
  background: #f9fafb;
}

.pricing-table-feature {
  text-align: left !important;
  background: #f9fafb;
}

.pricing-table-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #28464B;
  margin-bottom: 2px;
}

.pricing-table-feature span {
  font-size: 12px;
  color: #9ca3af;
}

.pricing-table tbody td {
  font-size: 14px;
  color: #4b5563;
}

.pricing-table tbody td i.fa-check {
  color: #11343D;
}

.pricing-table tbody td i.fa-xmark {
  color: #d1d5db;
}

.pricing-table-highlight {
  background: rgba(17, 52, 61, 0.03);
}

.pricing-table thead th.pricing-table-highlight {
  background: rgba(17, 52, 61, 0.08);
  border-radius: 12px 12px 0 0;
}

.pricing-table tfoot td {
  padding-top: 24px;
  border-bottom: none;
}

/* FAQ Section */
.pricing-faq {
  padding: 64px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-faq-title {
  font-size: 32px;
  font-weight: 700;
  color: #28464B;
  text-align: center;
  margin: 0 0 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #28464B;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #11343D;
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  font-size: 16px;
  color: #9ca3af;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 24px;
  margin: 0;
  font-size: 17px;
  color: #4b5563;
  line-height: 1.7;
}

/* Pricing Page Mobile */
@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 24px;
    gap: 16px;
  }

  .pricing-card--highlighted {
    order: -1;
  }

  .pricing-enterprise {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-enterprise-features {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .pricing-hero-title {
    font-size: 36px;
  }

  .pricing-hero-subtitle {
    font-size: 16px;
  }

  .pricing-amount {
    font-size: 36px;
  }

  .pricing-table-title,
  .enterprise-details-title,
  .pricing-faq-title {
    font-size: 26px;
  }

  .enterprise-details {
    padding: 48px 24px;
  }

  .enterprise-feature {
    font-size: 13px;
  }

  .enterprise-feature i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 32px 16px 24px;
  }

  .pricing-hero-title {
    font-size: 32px;
  }

  .pricing-section {
    padding: 24px 16px 32px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .pricing-enterprise {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: center;
  }

  .pricing-enterprise-header {
    align-items: center;
  }

  .pricing-enterprise-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .pricing-enterprise-feature {
    flex: 0 0 calc(50% - 8px);
    font-size: 13px;
  }

  .pricing-table-section,
  .pricing-faq {
    padding: 48px 16px;
  }

  .faq-question {
    font-size: 16px;
    padding: 18px 0;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

/* ===== FOOTER ===== */
.hp-footer {
  background: #11343D;
  color: #ffffff;
  margin-top: 80px;
  padding: 64px 0 0;
  border-radius: 24px;
}

.hp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-footer-brand {
  max-width: 280px;
}

/* .hp-footer-logo replaced by .brand-logo--footer (see brand-logo block above) */

.hp-footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0 0 24px;
}

.hp-footer-social {
  display: flex;
  gap: 12px;
}

.hp-footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hp-footer-social-link:hover {
  background: #66F4C4;
  color: #11343D;
  transform: translateY(-2px);
}

.hp-footer-column {
  min-width: 0;
}

.hp-footer-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #66F4C4;
  margin: 0 0 20px;
}

.hp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-footer-links li {
  margin-bottom: 12px;
}

.hp-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-footer-links a:hover {
  color: #ffffff;
}

.hp-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.hp-footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.hp-footer-made {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.hp-footer-made i {
  color: #66F4C4;
}

/* Footer Mobile */
@media (max-width: 768px) {
  .hp-footer {
    margin-top: 48px;
    padding: 48px 0 0;
  }

  .hp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hp-footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .hp-footer-social {
    justify-content: center;
  }

  .hp-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hp-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .hp-footer-column {
    text-align: center;
  }
}

/* ===== LIGHT FOOTER (for logged-in pages) ===== */
.footer-light {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  background: transparent;
}

.footer-light-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-light-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-light-links a {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-light-links a:hover {
  color: #111827;
}

.footer-light-divider {
  color: #d1d5db;
  font-size: 13px;
}

.footer-light-copyright {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Light Footer Mobile */
@media (max-width: 768px) {
  .footer-light {
    margin-top: 48px;
  }

  .footer-light-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-light-links {
    justify-content: center;
  }
}

/* ============================================
   PROJECT MAP PAGE
   ============================================ */

.project-map-page {
  margin-top: 4px;
}

.project-map-container {
  margin-top: 16px;
  position: relative;
}

.project-map-canvas {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* Empty state */
.project-map-empty {
  text-align: center;
  padding: 80px 20px;
  color: #6b7280;
}

.project-map-empty i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
  display: block;
}

.project-map-empty p {
  font-size: 16px;
  margin-bottom: 16px;
}

/* Custom numbered marker pin */
.project-map-numbered-marker {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-map-marker-circle {
  width: 36px;
  height: 36px;
  background: #0e1012;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid #4b5563;
}

.project-map-marker-pin {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #4b5563;
  margin-top: -2px;
}

.project-map-marker-circle span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
}

/* Docstep detail panel overlay on map */
.project-map-detail {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: 360px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

.project-map-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 1;
}

.project-map-detail-close:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Popup docstep layout - force mobile/column layout */
.docstep-map-popup .docstep-body {
  flex-direction: column;
  gap: 12px;
}

.docstep-map-popup .docstep-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 200px;
}

.docstep-map-popup .docstep-content {
  padding: 0;
}

.docstep-map-popup .docstep-header {
  margin-bottom: 8px;
}

.docstep-map-popup .docstep-meta-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 8px;
  padding: 4px 0 8px;
}

.docstep-map-popup .docstep-headline {
  font-size: 14px;
}

.docstep-map-popup .docstep-description {
  font-size: 13px;
}

.docstep-map-popup .docstep-comment {
  font-size: 11px;
}

@media (max-width: 768px) {
  .project-map-canvas {
    height: 60vh;
    min-height: 300px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .project-map-canvas {
    height: 50vh;
    min-height: 250px;
  }

  .project-map-detail {
    width: calc(100% - 24px);
    left: 12px;
    top: 12px;
  }
}

/* ===== Share Link (project show page) ===== */
.share-link-display {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
}

.share-link-input {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  color: #333;
  font-family: monospace;
  min-width: 0;
}

.share-link-input:focus {
  outline: none;
  border-color: #93c5fd;
}

/* ===== Shared Project View ===== */
.shared-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

.shared-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}

.shared-header {
  text-align: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

/* .shared-logo replaced by .brand-logo--shared (see brand-logo block above) */

.shared-project-header {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.shared-cover-image img {
  max-width: 300px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.shared-project-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.shared-project-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.shared-project-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.shared-metadata {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.shared-metadata h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.shared-metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  font-size: 13px;
}

.shared-docsteps h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.shared-docstep-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: white;
}

.shared-docstep-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #555;
  margin-bottom: 12px;
  align-items: center;
}

.shared-docstep-number {
  font-weight: 700;
  color: #1a1a1a;
}

.shared-docstep-body {
  display: flex;
  gap: 16px;
}

.shared-docstep-image img {
  max-width: 250px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.shared-docstep-image img:hover {
  opacity: 0.85;
}

.shared-cover-image img {
  cursor: pointer;
  transition: opacity 0.15s;
}

.shared-cover-image img:hover {
  opacity: 0.85;
}

.shared-docstep-headline {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.shared-docstep-description {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 6px;
}

.shared-docstep-comment {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.shared-footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 32px 0 16px;
  border-top: 1px solid #e0e0e0;
  margin-top: 32px;
}

.shared-empty {
  color: #999;
  font-style: italic;
}

@media (max-width: 600px) {
  .shared-project-header { flex-direction: column; }
  .shared-cover-image img { max-width: 100%; }
  .shared-docstep-body { flex-direction: column; }
  .shared-docstep-image img { max-width: 100%; }
}

/* ── PWA / Offline Styles ── */

.hidden {
  display: none !important;
}

.badge-offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.docstep-header-right .badge-offline {
  margin-left: 6px;
}

/* ── Install Banner ── */

.install-banner {
  width: 100%;
  background: linear-gradient(135deg, #28464B 0%, #1e3538 100%);
  color: #fff;
}

.install-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.install-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.install-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #66F4C4;
}

.install-banner-text {
  min-width: 0;
}

.install-banner-headline {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.install-banner-description {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.install-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #66F4C4;
  color: #1e3538;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.install-banner-btn:hover {
  background: #88f7d3;
}

.install-banner-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.install-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 640px) {
  .install-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 16px;
  }

  .install-banner-actions {
    justify-content: space-between;
  }

  .install-banner-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ===== Tab Bar ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 20px;
}

.tab-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab-bar-btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.5);
}

.tab-bar-btn--active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== Gallery Grid ===== */
.gallery-section {
  padding: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
}

.gallery-item-number {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.gallery-item-headline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 11px;
  padding: 16px 8px 8px;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .tab-bar-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ============================================================
   Left Sidebar Navigation — Desktop (1280px+)
   Inspired by Claude Code iOS: warm paper, refined minimal,
   monospace section accents, teal active indicator.
   ============================================================ */

:root {
  --sidebar-width: 280px;
  /* Cool-neutral palette — dropped the warm sand tint so the sidebar
     sits closer in tone to the body background (#F9FAFB) while staying
     distinct from it. */
  --sidebar-bg: #F5F6F8;
  --sidebar-paper: #EDF0F4;
  --sidebar-border: #DDE1E7;
  --sidebar-border-soft: #E6E9EF;
  --sidebar-ink: #1A1A1A;
  --sidebar-ink-muted: #5F6570;
  --sidebar-ink-soft: #8E95A0;
  --sidebar-accent: #28464B;
  --sidebar-accent-soft: rgba(40, 70, 75, 0.06);
  --sidebar-accent-line: #28464B;
  --sidebar-mint: #66F4C4;
  --sidebar-hover: rgba(40, 70, 75, 0.06);
}

[data-theme="dark"] {
  --sidebar-bg: #111820;
  --sidebar-paper: #1a2330;
  --sidebar-border: #2a3240;
  --sidebar-border-soft: #3a4250;
  --sidebar-ink: #e1e5ea;
  --sidebar-ink-muted: #8b95a1;
  --sidebar-ink-soft: #6b7886;
  --sidebar-accent: #66F4C4;
  --sidebar-accent-soft: rgba(102, 244, 196, 0.08);
  --sidebar-accent-line: #66F4C4;
  --sidebar-mint: #66F4C4;
  --sidebar-hover: rgba(102, 244, 196, 0.06);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  z-index: 10;
  display: none;
  flex-direction: column;
  /* subtle warm paper grain */
  background-image:
    radial-gradient(rgba(40, 70, 75, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  background-position: 0 0;
}

/* Sidebar only from 1280px upward */
@media (min-width: 1280px) {
  .app-sidebar {
    display: flex;
  }
}

.app-sidebar::after {
  /* soft vertical shadow on the inside-right edge */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(40, 70, 75, 0.08) 20%,
    rgba(40, 70, 75, 0.08) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.app-sidebar-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-sidebar-inner::-webkit-scrollbar {
  width: 6px;
}
.app-sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}
.app-sidebar-inner::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 999px;
}
.app-sidebar-inner::-webkit-scrollbar-thumb:hover {
  background: var(--sidebar-ink-soft);
}

/* ---------- Brand (original logo) ---------- */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sidebar-ink);
  padding: 4px 6px;
  margin-bottom: 22px;
}

/* .sidebar-brand-logo replaced by .brand-logo--sidebar (see brand-logo block above) */

/* ---------- Status badges ---------- */
.sidebar-status-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 0;
}

.sidebar-status-badges:empty,
.sidebar-status-badges:has(> .hidden:only-child),
.sidebar-status-badges:has(> .hidden + .hidden) {
  display: none;
}

/* ---------- Nav sections ---------- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sidebar-ink-soft);
  padding: 0 10px 8px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sidebar-border-soft);
}

/* ---------- Nav items ---------- */
.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--sidebar-ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar-nav-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  width: 2px;
  height: 18px;
  background: var(--sidebar-accent-line);
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sidebar-nav-item:hover {
  background: rgba(40, 70, 75, 0.035);
  color: var(--sidebar-ink);
}

.sidebar-nav-item.is-active {
  background: var(--sidebar-accent-soft);
  color: var(--sidebar-accent);
}

.sidebar-nav-item.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.sidebar-nav-item--muted {
  color: var(--sidebar-ink-muted);
  font-weight: 400;
}

button.sidebar-nav-item {
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 9px 12px 9px 14px;
}

.sidebar-nav-icon {
  width: 16px;
  flex-shrink: 0;
  font-size: 13px;
  text-align: center;
  color: var(--sidebar-ink-muted);
  transition: color 160ms ease;
}

.sidebar-nav-item.is-active .sidebar-nav-icon {
  color: var(--sidebar-accent);
}

.sidebar-nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-shortcut {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--sidebar-ink-soft);
  background: var(--sidebar-paper);
  border: 1px solid var(--sidebar-border-soft);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-nav-item:hover .sidebar-nav-shortcut,
.sidebar-nav-item.is-active .sidebar-nav-shortcut {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Footer ---------- */
.sidebar-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--sidebar-border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-ink-muted);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-auth-link:hover {
  background: rgba(40, 70, 75, 0.04);
  color: var(--sidebar-ink);
}

.sidebar-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--sidebar-accent);
  color: var(--sidebar-mint);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 4px 14px rgba(40, 70, 75, 0.18);
}

.sidebar-auth-btn:hover {
  transform: translateY(-1px);
  background: #1e3539;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 22px rgba(40, 70, 75, 0.26);
}

.sidebar-auth-btn i {
  font-size: 11px;
  transition: transform 180ms ease;
}

.sidebar-auth-btn:hover i {
  transform: translateX(2px);
}

/* ---------- Account footer (authenticated) ---------- */
.sidebar-footer--account {
  padding-top: 14px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 10px;
  border-radius: 12px;
  background: var(--sidebar-paper);
  border: 1px solid var(--sidebar-border-soft);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sidebar-accent);
  color: var(--sidebar-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.sidebar-user-name {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  color: var(--sidebar-ink-soft);
  letter-spacing: 0.04em;
}

.sidebar-user-logout {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-ink-muted);
  text-decoration: none;
  font-size: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-user-logout:hover {
  background: rgba(40, 70, 75, 0.08);
  color: var(--sidebar-accent);
}

/* ============================================================
   Main content shift: only when sidebar is rendered AND ≥1280px.
   Uses :has() so marketing pages (no sidebar) stay full-width.
   ============================================================ */
@media (min-width: 1280px) {
  body:has(.app-sidebar) .app-main {
    margin-left: var(--sidebar-width);
  }

  body:has(.app-sidebar) .line-raster {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }

  body:has(.app-sidebar) .install-banner {
    margin-left: var(--sidebar-width);
  }

  body:has(.app-sidebar) turbo-frame#flash {
    display: block;
    margin-left: var(--sidebar-width);
  }

  /* On app pages the sidebar replaces the top navbar */
  body:has(.app-sidebar) .navbar-wrapper {
    display: none;
  }

  /* App pages: left-align content flush against the sidebar so the gap
     to the sidebar matches the 16px gap to the top. Remove the centering
     and max-width cap that mirror the marketing-page layout. */
  body:has(.app-sidebar) .app-main-inner {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    min-height: calc(100vh - 48px);
  }
}

.app-main-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 0px;
}

/* Image preview modal should sit above sidebar */
.image-preview-overlay {
  z-index: 200;
}

/* === Pastel Scene System (Homepage + shared use-case partials) === */
.scene-svg {
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(45, 42, 38, 0.06);
  overflow: hidden;
  margin-bottom: 32px;
}

.scene-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-svg--hero {
  aspect-ratio: 1040 / 720;
  max-height: 480px;
}

.scene-svg--medium {
  aspect-ratio: 480 / 320;
}

.scene-svg--tall {
  aspect-ratio: 480 / 480;
}

/* Ambient pulse: one element per scene gets this for a soft, indefinite "alive" beat */
.scene-svg .seq-ambient {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-pulse 3s ease-in-out infinite;
}

@keyframes scene-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.04); opacity: 0.9; }
}

/* Float + breathe: used for elements that should also gently hover vertically */
.scene-svg .seq-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-float 4s ease-in-out infinite;
}

@keyframes scene-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-5px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-svg .seq-ambient,
  .scene-svg .seq-float {
    animation: none !important;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] {
  background: #0f1419;
}

[data-theme="dark"] .app-body {
  background: #0f1419;
  color: #e1e5ea;
}

/* Header */
[data-theme="dark"] .app-main-header {
  background-color: rgba(20, 28, 35, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Menu cards */
[data-theme="dark"] .navbar-menu-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar-menu-item {
  color: #c8cdd3;
}

[data-theme="dark"] .navbar-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #66F4C4;
}

[data-theme="dark"] .navbar-menu-divider {
  background: rgba(255, 255, 255, 0.06);
}

/* Sidebar */
[data-theme="dark"] .app-sidebar {
  background: #111820;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sidebar-nav-item {
  color: #8b95a1;
}

[data-theme="dark"] .sidebar-nav-item:hover,
[data-theme="dark"] .sidebar-nav-item.is-active {
  background: rgba(102, 244, 196, 0.08);
  color: #66F4C4;
}

[data-theme="dark"] .sidebar-section-label {
  color: #4a5568;
}

[data-theme="dark"] .sidebar-user {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sidebar-user-avatar {
  background: #66F4C4;
  color: #111820;
}

[data-theme="dark"] .sidebar-user-name {
  color: #c8cdd3;
}

[data-theme="dark"] .sidebar-user-hint {
  color: #4a5568;
}

/* Project cards + list */
[data-theme="dark"] .project-show-header {
  background-color: rgba(26, 35, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-header-text {
  color: #e1e5ea;
}

[data-theme="dark"] .page-title {
  color: #f0f2f5;
}

[data-theme="dark"] .project-show-meta {
  color: #8b95a1;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-show-description {
  color: #c8cdd3;
}

[data-theme="dark"] .project-actions-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-actions-divider {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .project-actions-status-label {
  color: #4a5568;
}

/* Meta section (collapsible) */
[data-theme="dark"] .project-meta-section {
  background: linear-gradient(135deg, #1a2330 0%, #151c27 100%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

[data-theme="dark"] .project-meta-section .section-title {
  color: #c8cdd3;
}

[data-theme="dark"] .project-meta-label {
  color: #6b7886;
}

[data-theme="dark"] .project-meta-value {
  color: #c8cdd3;
}

[data-theme="dark"] .project-meta-grid > div:first-child {
  border-color: rgba(255, 255, 255, 0.06);
}

/* Tab bar */
[data-theme="dark"] .tab-bar {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tab-bar-btn {
  color: #6b7886;
}

[data-theme="dark"] .tab-bar-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #c8cdd3;
}

[data-theme="dark"] .tab-bar-btn--active {
  background: #28464B;
  color: #66F4C4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Docstep items */
[data-theme="dark"] .docstep-item {
  background-color: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .docstep-number {
  color: #f0f2f5;
}

[data-theme="dark"] .docstep-header {
  color: #6b7886;
}

[data-theme="dark"] .docstep-headline {
  color: #e1e5ea;
}

[data-theme="dark"] .docstep-description {
  color: #c8cdd3;
}

[data-theme="dark"] .docstep-comment {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .docstep-image {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .docstep-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .docstep-footer-left .btn,
[data-theme="dark"] .docstep-footer-right .btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #6b7886;
}

[data-theme="dark"] .docstep-footer-left .btn:hover,
[data-theme="dark"] .docstep-footer-right .btn:hover {
  background: rgba(102, 244, 196, 0.08);
  border-color: #28464B;
  color: #66F4C4;
}

/* Docstep timing */
[data-theme="dark"] .docstep-timing-value {
  color: #c8cdd3;
}

/* Docstep sheet (desktop inline card) */
[data-theme="dark"] .docstep-sheet {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .docstep-textarea {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e1e5ea;
}

[data-theme="dark"] .docstep-textarea::placeholder {
  color: #4a5568;
}

[data-theme="dark"] .field-label {
  color: #6b7886;
}

/* Buttons */
[data-theme="dark"] .btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #c8cdd3;
}

[data-theme="dark"] .btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .btn-ghost {
  color: #8b95a1;
}

/* Badges stay as-is (colored pills are fine on dark bg) */

/* Gallery */
[data-theme="dark"] .gallery-item {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gallery-item-number {
  color: #c8cdd3;
}

[data-theme="dark"] .gallery-item-headline {
  color: #8b95a1;
}

/* Share link input */
[data-theme="dark"] .share-link-input {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.1);
  color: #c8cdd3;
}

/* Forms */
[data-theme="dark"] .field input[type="text"],
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e1e5ea;
}

/* Project form card */
[data-theme="dark"] .project-form-card {
  background-color: rgba(26, 35, 48, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Image preview modal */
[data-theme="dark"] .image-preview-card {
  background: #1a2330;
}

[data-theme="dark"] .image-preview-meta {
  color: #8b95a1;
}

/* Flash messages */
[data-theme="dark"] .flash-notice {
  background: rgba(22, 101, 52, 0.15);
  border-color: rgba(22, 101, 52, 0.3);
  color: #66F4C4;
}

[data-theme="dark"] .flash-alert {
  background: rgba(185, 28, 28, 0.15);
  border-color: rgba(185, 28, 28, 0.3);
  color: #fca5a5;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #0f1419;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #28464B;
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #3a6066;
}

/* --- App Logo & Nav Links --- */
[data-theme="dark"] .app-logo { color: #e1e5ea; }
/* Dark mode: show the green logo variant by default (crossfade with default stays intact) */
[data-theme="dark"] .brand-logo .brand-logo-default { opacity: 0; }
[data-theme="dark"] .brand-logo .brand-logo-hover   { opacity: 1; }
[data-theme="dark"] .app-nav-link { color: #66F4C4; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .app-nav-link:hover { color: #66F4C4; }
[data-theme="dark"] .navbar-auth-link { color: #8b95a1; }
[data-theme="dark"] .navbar-auth-link:hover { color: #66F4C4; }
[data-theme="dark"] .navbar-auth-btn { background: #28464B; color: #66F4C4; border-color: #28464B; }
[data-theme="dark"] .navbar-auth-btn:hover { background: #3a6066; }
[data-theme="dark"] .navbar-menu-button { color: #66F4C4; border-color: rgba(102, 244, 196, 0.25); }
[data-theme="dark"] .navbar-menu-button:hover { color: #66F4C4; border-color: rgba(102, 244, 196, 0.5); background: rgba(102, 244, 196, 0.08); box-shadow: 0 4px 12px rgba(102, 244, 196, 0.15); }
[data-theme="dark"] .navbar-menu-close { color: #6b7886; }
[data-theme="dark"] .navbar-menu-close:hover { color: #66F4C4; }
[data-theme="dark"] .navbar-menu-card-header { border-color: rgba(255,255,255,0.06); }

/* --- Buttons complete --- */
[data-theme="dark"] .btn-primary { background: #28464B; border-color: #28464B; color: #66F4C4; }
[data-theme="dark"] .btn-primary:hover { background: #3a6066; border-color: #3a6066; box-shadow: 0 2px 8px rgba(40,70,75,0.4); }
[data-theme="dark"] .btn-secondary { color: #c8cdd3; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .btn-secondary:hover { background: rgba(255,255,255,0.06); color: #66F4C4; border-color: #28464B; }
[data-theme="dark"] .btn-danger { color: #fca5a5; border-color: rgba(185,28,28,0.3); }
[data-theme="dark"] .btn-danger:hover { background: rgba(185,28,28,0.15); }
[data-theme="dark"] .btn-small { color: #8b95a1; border-color: rgba(255,255,255,0.1); }

/* --- Badges (subtle adjustments for dark bg) --- */
[data-theme="dark"] .badge-in_progress { background: rgba(29,78,216,0.2); color: #60a5fa; }
[data-theme="dark"] .badge-in_review { background: rgba(146,64,14,0.2); color: #fbbf24; }
[data-theme="dark"] .badge-done { background: rgba(22,101,52,0.2); color: #4ade80; }
[data-theme="dark"] .badge-none { background: rgba(255,255,255,0.06); color: #6b7886; }
[data-theme="dark"] .badge-offline { background: rgba(185,28,28,0.2); color: #fca5a5; }

/* --- Docstep controls --- */
[data-theme="dark"] .docstep-icon-button { background: #1a2330; color: #6b7886; border: 1px solid rgba(255,255,255,0.08); }
[data-theme="dark"] .docstep-icon-button:hover { background: #28464B; color: #66F4C4; border-color: #28464B; }
[data-theme="dark"] .docstep-image-placeholder { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); }
[data-theme="dark"] .docstep-image-placeholder.has-image { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .docstep-sheet-handle { border-color: transparent; }
[data-theme="dark"] .docstep-sheet-title { background: rgba(102,244,196,0.1); color: #66F4C4; border-color: rgba(102,244,196,0.2); }
[data-theme="dark"] .docstep-bottom-label { color: #4a5568; }
[data-theme="dark"] .docstep-bottom-number { color: #e1e5ea; }
[data-theme="dark"] .docstep-bottom-plus { color: #66F4C4; }
[data-theme="dark"] .docstep-geo-display { color: #6b7886; }

/* --- Docstep timer --- */
[data-theme="dark"] .docstep-timer-group { background: #0f1419; }
[data-theme="dark"] .docstep-timer-display { color: #66F4C4; }
[data-theme="dark"] .docstep-timer-pause-btn { background: #66F4C4; color: #0f1419; }

/* --- Docstep meta row --- */
[data-theme="dark"] .docstep-meta-row { color: #8b95a1; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .docstep-timing { background: #151c27; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .docstep-timing-label { color: #6b7886; }
[data-theme="dark"] .docstep-timing-value { background: #1a2330; color: #8b95a1; }
[data-theme="dark"] .docstep-timing-duration { background: #1a2330; color: #60a5fa; }
[data-theme="dark"] .docstep-geo { color: #8b95a1; }
[data-theme="dark"] .docstep-geo { color: #6b7886; }
[data-theme="dark"] .project-total-duration { color: #60a5fa; }

/* --- Download bar --- */
[data-theme="dark"] .download-bar { background: #28464B; }

/* --- Project list cards --- */
[data-theme="dark"] .project-card { background: #1a2330; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .project-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
[data-theme="dark"] .project-card-title { color: #e1e5ea; }
[data-theme="dark"] .project-card-meta { color: #6b7886; }
[data-theme="dark"] .project-card-description { color: #8b95a1; }
[data-theme="dark"] .project-card-cover { border-color: rgba(255,255,255,0.06); }

/* --- Project cover image --- */
[data-theme="dark"] .project-cover-wrapper { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .project-cover-image { border-color: rgba(255,255,255,0.08); }

/* --- Image preview modal complete --- */
[data-theme="dark"] .image-preview-overlay { background: rgba(0,0,0,0.8); }
[data-theme="dark"] .image-preview-close { color: #8b95a1; }
[data-theme="dark"] .image-preview-close:hover { color: #e1e5ea; }
[data-theme="dark"] .image-preview-meta-label { color: #4a5568; }
[data-theme="dark"] .image-preview-docstep-link { color: #66F4C4; }

/* --- Docstep list section --- */
[data-theme="dark"] .docstep-list-section { background: transparent; }
[data-theme="dark"] .docstep-empty { color: #4a5568; }

/* --- Page titles & text --- */
[data-theme="dark"] .page-subtitle { color: #6b7886; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #e1e5ea; }
[data-theme="dark"] a { color: #66F4C4; }
[data-theme="dark"] a:hover { color: #8df8d8; }
[data-theme="dark"] .navbar-menu-item a { color: inherit; }
[data-theme="dark"] hr { border-color: rgba(255,255,255,0.06); }

/* --- Form elements complete --- */
[data-theme="dark"] .field label { color: #8b95a1; }
[data-theme="dark"] .field input[type="file"] { color: #8b95a1; }
[data-theme="dark"] .field-hint { color: #4a5568; }
[data-theme="dark"] .project-form-header { color: #e1e5ea; }

/* --- Footer light --- */
[data-theme="dark"] .footer-light { background: transparent; border-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .footer-light-text { color: #4a5568; }
[data-theme="dark"] .footer-light a { color: #6b7886; }
[data-theme="dark"] .footer-light a:hover { color: #66F4C4; }

/* --- Sheet desktop open state --- */
[data-theme="dark"] .docstep-form-section.is-open .docstep-sheet-handle { background: #151c27; color: #c8cdd3; border-color: transparent; border-bottom-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .docstep-form-section.is-open .docstep-sheet-title { background: rgba(255,255,255,0.06); color: #6b7886; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .docstep-form-section.is-open .docstep-sheet-chevron::before { border-color: #6b7886; }
[data-theme="dark"] .docstep-sheet-actions { background: transparent; }

/* --- Misc --- */
[data-theme="dark"] .inline-form { color: inherit; }
[data-theme="dark"] .docstep-overlay-backdrop { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .project-actions-danger { color: #fca5a5 !important; }
[data-theme="dark"] .project-actions-danger i { color: #fca5a5 !important; }
[data-theme="dark"] ::selection { background: #28464B; color: #66F4C4; }

/* --- Projects list: filters, search, status headers, empty state --- */
[data-theme="dark"] .projects-filter-btn { background: transparent; border-color: rgba(255,255,255,0.1); color: #8b95a1; }
[data-theme="dark"] .projects-filter-btn:hover { background: rgba(255,255,255,0.06); color: #e1e5ea; }
[data-theme="dark"] .projects-filter-btn--active { background: #e1e5ea; border-color: #e1e5ea; color: #0f1419; }
[data-theme="dark"] .projects-filter-btn--in_progress { border-color: rgba(29,78,216,0.3); }
[data-theme="dark"] .projects-filter-btn--in_progress:hover { background: rgba(29,78,216,0.15); color: #60a5fa; }
[data-theme="dark"] .projects-filter-btn--in_progress.projects-filter-btn--active { background: rgba(29,78,216,0.25); border-color: rgba(29,78,216,0.4); color: #60a5fa; }
[data-theme="dark"] .projects-filter-btn--in_review { border-color: rgba(146,64,14,0.3); }
[data-theme="dark"] .projects-filter-btn--in_review:hover { background: rgba(146,64,14,0.15); color: #fbbf24; }
[data-theme="dark"] .projects-filter-btn--in_review.projects-filter-btn--active { background: rgba(146,64,14,0.25); border-color: rgba(146,64,14,0.4); color: #fbbf24; }
[data-theme="dark"] .projects-filter-btn--done { border-color: rgba(22,101,52,0.3); }
[data-theme="dark"] .projects-filter-btn--done:hover { background: rgba(22,101,52,0.15); color: #4ade80; }
[data-theme="dark"] .projects-filter-btn--done.projects-filter-btn--active { background: rgba(22,101,52,0.25); border-color: rgba(22,101,52,0.4); color: #4ade80; }
[data-theme="dark"] .projects-search-input { background: #151c27; border-color: rgba(255,255,255,0.1); color: #e1e5ea; }
[data-theme="dark"] .projects-search-input::placeholder { color: #4a5568; }
[data-theme="dark"] .projects-search-input:focus { border-color: #66F4C4; box-shadow: 0 0 0 3px rgba(102,244,196,0.1); }
[data-theme="dark"] .projects-search-icon { color: #4a5568; }
[data-theme="dark"] .projects-search-clear { color: #6b7886; }
[data-theme="dark"] .projects-search-clear:hover { background: rgba(255,255,255,0.06); color: #e1e5ea; }
[data-theme="dark"] .projects-status-header { background-color: rgba(255,255,255,0.04); }
[data-theme="dark"] .projects-status-header--in_progress { background-color: rgba(29,78,216,0.1); }
[data-theme="dark"] .projects-status-header--in_review { background-color: rgba(146,64,14,0.1); }
[data-theme="dark"] .projects-status-header--done { background-color: rgba(22,101,52,0.1); }
[data-theme="dark"] .projects-status-chevron { color: #6b7886; }
[data-theme="dark"] .projects-status-count { color: #6b7886; }
[data-theme="dark"] .projects-status-empty { color: #4a5568; }
[data-theme="dark"] .projects-status-section { background: transparent; }
[data-theme="dark"] .projects-empty { background: #1a2330; border-color: rgba(255,255,255,0.1); color: #6b7886; }
[data-theme="dark"] .projects-grid-toggle { background: #1a2330; }
[data-theme="dark"] .grid-toggle-btn { color: #6b7886; }
[data-theme="dark"] .grid-toggle-btn:hover { color: #c8cdd3; }
[data-theme="dark"] .grid-toggle-btn--active { background: #28464B; color: #66F4C4; box-shadow: none; }

/* --- Project card details --- */
[data-theme="dark"] .project-card-client-label { color: #6b7886; }
[data-theme="dark"] .project-card-footer { color: #6b7886; }
[data-theme="dark"] .project-form-cover-image { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .project-meta-chevron { color: #6b7886; }
[data-theme="dark"] .project-meta-header:hover .project-meta-chevron { color: #66F4C4; }

/* --- Card slider --- */
[data-theme="dark"] .card-slider-btn { background: #1a2330; border-color: rgba(255,255,255,0.08); color: #8b95a1; box-shadow: none; }
[data-theme="dark"] .card-slider-btn:hover:not(.card-slider-btn--disabled) { background: #28464B; border-color: #28464B; color: #66F4C4; }
[data-theme="dark"] .card-slider-dot { background: rgba(255,255,255,0.15); }
[data-theme="dark"] .card-slider-dot--active { background: #66F4C4; }
[data-theme="dark"] .card-slider-dot:hover { background: rgba(255,255,255,0.3); }

/* --- Docstep remaining --- */
[data-theme="dark"] .docstep-footer-label { color: #4a5568; }
[data-theme="dark"] .docstep-timer-pause-btn.is-paused { background: rgba(102,244,196,0.3); color: #66F4C4; }
[data-theme="dark"] .docstep-timer-pause-btn:hover { background: #4ee0ad; color: #0f1419; }
[data-theme="dark"] .navbar-menu-item i { color: #6b7886; }
[data-theme="dark"] .download--done .navbar-menu-item i { color: #4ade80; }
[data-theme="dark"] .download-bar::after { background: #28464B; }

/* --- Image preview remaining --- */
[data-theme="dark"] .image-preview-img { background: #151c27; }
[data-theme="dark"] .image-preview-docstep-link:hover { background: rgba(102,244,196,0.1); color: #66F4C4; box-shadow: none; }

/* --- Map --- */
[data-theme="dark"] .project-map-canvas { border-color: rgba(255,255,255,0.06); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
[data-theme="dark"] .project-map-detail-close { color: #6b7886; }
[data-theme="dark"] .project-map-detail-close:hover { background: rgba(255,255,255,0.06); color: #e1e5ea; }
[data-theme="dark"] .project-map-empty i { color: #4a5568; }

/* --- Shared/public view --- */
[data-theme="dark"] .shared-docstep-card { background: #1a2330; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .shared-docstep-number { color: #e1e5ea; }
[data-theme="dark"] .shared-docstep-description { color: #c8cdd3; }
[data-theme="dark"] .shared-docstep-comment { color: #6b7886; }
[data-theme="dark"] .shared-docstep-meta { color: #6b7886; }
[data-theme="dark"] .shared-project-description { color: #c8cdd3; }
[data-theme="dark"] .shared-project-meta { color: #6b7886; }
[data-theme="dark"] .shared-metadata { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .shared-cover-image img { border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .shared-empty { color: #4a5568; }
[data-theme="dark"] .shared-footer { color: #4a5568; }
[data-theme="dark"] .share-link-input:focus { border-color: #66F4C4; }

/* --- Sidebar auth --- */
[data-theme="dark"] .sidebar-auth-btn { box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
[data-theme="dark"] .sidebar-auth-btn:hover { background: #3a6066; box-shadow: 0 8px 22px rgba(0,0,0,0.4); }
[data-theme="dark"] .sidebar-auth-link:hover { background: rgba(102,244,196,0.06); }
[data-theme="dark"] .sidebar-user-logout:hover { background: rgba(102,244,196,0.08); }

/* --- Tab bar + sync --- */
[data-theme="dark"] .tab-bar-btn:hover { background: rgba(255,255,255,0.06); color: #c8cdd3; }
[data-theme="dark"] .sync-badge { background: #f59e0b; color: #0f1419; }

/* --- Footer light details --- */
[data-theme="dark"] .footer-light-copyright { color: #4a5568; }
[data-theme="dark"] .footer-light-divider { color: rgba(255,255,255,0.06); }
[data-theme="dark"] .footer-light-links a { color: #6b7886; }
[data-theme="dark"] .footer-light-links a:hover { color: #66F4C4; }

/* --- Forms remaining --- */
[data-theme="dark"] .field input[type="file"] { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .flash-toast { background: #1a2330; box-shadow: 0 4px 12px rgba(0,0,0,0.4); color: #e1e5ea; }

/* ===== DARK MODE — Marketing/Static Pages ===== */

/* Hero */
[data-theme="dark"] .hero-title { color: #e1e5ea; }
[data-theme="dark"] .hero-subtitle { color: #8b95a1; }
[data-theme="dark"] .hero-typewriter-cursor { background: #66F4C4; }

/* Homepage cards */
[data-theme="dark"] .hp-block-title { color: #e1e5ea; }
[data-theme="dark"] .hp-section-title { color: #e1e5ea; }
[data-theme="dark"] .hp-section { border-bottom-color: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .hp-card { background-color: rgba(26,35,48,0.6); border-color: rgba(255,255,255,0.06); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
[data-theme="dark"] .hp-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
[data-theme="dark"] .hp-card-title { color: #e1e5ea; }
[data-theme="dark"] .hp-card-text { color: #8b95a1; }
[data-theme="dark"] .hp-col--text p { color: #8b95a1; }

/* Logo marquee */
[data-theme="dark"] .logo-item { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: #6b7886; }
[data-theme="dark"] .logos-title { color: #4a5568; }
[data-theme="dark"] .logos-marquee::before { background: linear-gradient(to right, #0f1419 0%, transparent 100%); }
[data-theme="dark"] .logos-marquee::after { background: linear-gradient(to left, #0f1419 0%, transparent 100%); }
/* Tech-stack logos: match typewriter color in dark mode */
[data-theme="dark"] .tech-logo { color: #487278; }
[data-theme="dark"] .cards-marquee::before { background: linear-gradient(to right, #0f1419 0%, transparent 100%); }
[data-theme="dark"] .cards-marquee::after { background: linear-gradient(to left, #0f1419 0%, transparent 100%); }

/* Static page text */
[data-theme="dark"] .page-headline { color: #e1e5ea; }
[data-theme="dark"] .page-subhead { color: #c8cdd3; }
[data-theme="dark"] .page-text p { color: #8b95a1; }

/* Pricing */
[data-theme="dark"] .pricing-hero-title { color: #e1e5ea; }
[data-theme="dark"] .pricing-hero-subtitle { color: #8b95a1; }
[data-theme="dark"] .pricing-card { background: #1a2330; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .pricing-plan-name { color: #e1e5ea; }
[data-theme="dark"] .pricing-amount { color: #e1e5ea; }
[data-theme="dark"] .pricing-period { color: #6b7886; }
[data-theme="dark"] .pricing-plan-tagline { color: #6b7886; }
[data-theme="dark"] .pricing-features-intro { color: #6b7886; }
[data-theme="dark"] .pricing-features-list li { color: #8b95a1; }
[data-theme="dark"] .pricing-features-list li i { color: #66F4C4; }
[data-theme="dark"] .pricing-card--highlighted { border-color: rgba(102,244,196,0.4); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
[data-theme="dark"] .pricing-enterprise-title { color: #e1e5ea; }
[data-theme="dark"] .pricing-enterprise-tagline { color: #8b95a1; }
[data-theme="dark"] .pricing-enterprise-description { color: #8b95a1; }
[data-theme="dark"] .pricing-enterprise-feature { color: #c8cdd3; }
[data-theme="dark"] .pricing-enterprise-feature i { color: #66F4C4; }
[data-theme="dark"] .pricing-enterprise:hover { box-shadow: 0 12px 40px rgba(102,244,196,0.1); }
[data-theme="dark"] .pricing-faq-title { color: #e1e5ea; }
[data-theme="dark"] .pricing-btn--secondary { border-color: rgba(255,255,255,0.15); color: #8b95a1; }
[data-theme="dark"] .pricing-btn--secondary:hover { background: rgba(255,255,255,0.06); color: #e1e5ea; box-shadow: none; }
[data-theme="dark"] .pricing-btn--outline { border-color: rgba(255,255,255,0.12); color: #c8cdd3; }
[data-theme="dark"] .pricing-btn--outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }
[data-theme="dark"] .pricing-table-wrapper { background: #1a2330; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pricing-table thead th { background: #151c27; color: #c8cdd3; }
[data-theme="dark"] .pricing-table thead th.pricing-table-highlight { background: rgba(102,244,196,0.06); }
[data-theme="dark"] .pricing-table-feature { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .pricing-table-feature strong { color: #e1e5ea; }
[data-theme="dark"] .pricing-table-feature span { color: #6b7886; }
[data-theme="dark"] .pricing-table-feature-col { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .pricing-table-title { color: #e1e5ea; }
[data-theme="dark"] .pricing-table-price { color: #66F4C4; }
[data-theme="dark"] .pricing-table-highlight { background: rgba(102,244,196,0.03); }
[data-theme="dark"] .pricing-table tbody td { color: #8b95a1; }
[data-theme="dark"] .pricing-table tbody td i.fa-check { color: #66F4C4; }
[data-theme="dark"] .pricing-table tbody td i.fa-xmark { color: #4a5568; }

/* Use cases */
[data-theme="dark"] .usecases-card { background: #1a2330; }
[data-theme="dark"] .usecases-card:hover { background: #28464B; box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
[data-theme="dark"] .usecases-card-icon { background: #151c27; color: #66F4C4; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
[data-theme="dark"] .usecases-card:hover .usecases-card-icon { background: #151c27; color: #66F4C4; }
[data-theme="dark"] .usecases-card-title { color: #e1e5ea; }
[data-theme="dark"] .usecases-card-text { color: #8b95a1; }
[data-theme="dark"] .usecases-card:hover .usecases-card-title,
[data-theme="dark"] .usecases-card:hover .usecases-card-text { color: #e1e5ea; }
[data-theme="dark"] .usecases-intro-title { color: #e1e5ea; }
[data-theme="dark"] .usecases-intro-text { color: #8b95a1; }
[data-theme="dark"] .usecases-intro-link { color: #66F4C4; }

/* FAQ + Enterprise */
[data-theme="dark"] .faq-question { color: #e1e5ea; }
[data-theme="dark"] .faq-question:hover { color: #66F4C4; }
[data-theme="dark"] .faq-icon { color: #6b7886; }
[data-theme="dark"] .faq-answer p { color: #8b95a1; }
[data-theme="dark"] .enterprise-details-title { color: #e1e5ea; }
[data-theme="dark"] .enterprise-details-text { color: #8b95a1; }
[data-theme="dark"] .enterprise-feature { color: #c8cdd3; }
[data-theme="dark"] .enterprise-feature i { color: #66F4C4; }
[data-theme="dark"] .line-raster { opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — Login, Signup, Password Reset
   ═══════════════════════════════════════════════════════════════ */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 48px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.auth-title {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}

.auth-links a {
  color: #487278;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-links a:hover {
  color: #28464B;
}

/* ── Form Components ── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #28464B;
  box-shadow: 0 0 0 3px rgba(40, 70, 75, 0.08);
}

.form-input--small {
  padding: 6px 8px;
  font-size: 13px;
}

/* Select: override native look with custom chevron */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 2px 0 0;
}

.form-group--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #28464B;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  display: block;
  margin-bottom: 4px;
}

.form-static {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ── OAuth Buttons ── */

.oauth-buttons {
  margin-top: 24px;
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 16px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.oauth-buttons form {
  display: contents;
}

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.oauth-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oauth-btn i {
  font-size: 18px;
}

.oauth-btn--google i { color: #4285F4; }
.oauth-btn--apple i { color: #000000; }
.oauth-btn--microsoft i { color: #00A4EF; }
.oauth-btn--github i { color: #333333; }

/* ── Devise Error Messages ── */

#error_explanation {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

#error_explanation h2 {
  font-size: 14px;
  font-weight: 600;
  color: #b91c1c;
  margin: 0 0 8px;
}

#error_explanation ul {
  margin: 0;
  padding: 0 0 0 16px;
}

#error_explanation li {
  font-size: 13px;
  color: #991b1b;
}

/* ── Contact Form (Kontakt Page) ── */

.contact-form-wrapper {
  margin: 0 16px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form .form-row {
  align-items: stretch;
}

.form-input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: inherit;
}

.contact-form .btn-primary {
  align-self: flex-start;
  padding: 12px 28px;
  font-size: 15px;
}

@media (max-width: 600px) {
  .contact-form-wrapper {
    margin: 0;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .contact-form .btn-primary {
    width: 100%;
    align-self: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════ */

.breadcrumbs {
  margin: 0 0 20px;
  padding: 0 24px;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-link {
  color: #487278;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #28464B;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
}

.breadcrumb-item--current span {
  color: #111827;
  font-weight: 600;
}

[data-theme="dark"] .breadcrumb-list { color: #8b95a1; }
[data-theme="dark"] .breadcrumb-link { color: #66F4C4; }
[data-theme="dark"] .breadcrumb-link:hover { color: #8df8d8; }
[data-theme="dark"] .breadcrumb-separator { color: #6b7886; }
[data-theme="dark"] .breadcrumb-item--current span { color: #e1e5ea; }

/* ═══════════════════════════════════════════════════════════════
   SETTINGS & PROFILE PAGES
   ═══════════════════════════════════════════════════════════════ */

.settings-container {
  max-width: 1200px;
  margin: 0;
  padding: 32px 24px;
}

.settings-title {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 28px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-form .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.settings-container h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 32px 0 16px;
}

.settings-container h2:first-of-type {
  margin-top: 0;
}

.settings-container hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* ── Profile Card ── */

.profile-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Profile header row (avatar left, identity middle, actions right) */

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  margin: 0;
}

.profile-identity {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.profile-email {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px;
}

.profile-since {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.profile-header-actions {
  margin-left: auto;
}

/* Profile stats grid */

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
}

.profile-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  word-break: break-word;
}

.profile-stat-value--muted {
  color: #9ca3af;
}

.profile-stat .plan-badge,
.profile-stat .member-role-badge {
  align-self: flex-start;
}

.profile-oauth-empty {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.oauth-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.oauth-provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.oauth-provider-row:hover {
  border-color: #d1d5db;
}

.oauth-provider-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.oauth-provider-info > i {
  font-size: 22px;
  width: 28px;
  text-align: center;
  color: #111827;
}

.oauth-provider-info .fa-google { color: #4285F4; }
.oauth-provider-info .fa-apple { color: #000000; }
.oauth-provider-info .fa-microsoft { color: #00A4EF; }
.oauth-provider-info .fa-github { color: #333333; }

.oauth-provider-info > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.oauth-provider-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.oauth-provider-status {
  font-size: 12px;
  color: #487278;
}

.oauth-provider-status--muted {
  color: #9ca3af;
}

.oauth-provider-action form {
  margin: 0;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

[data-theme="dark"] .oauth-provider-row {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .oauth-provider-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .oauth-provider-info > i { color: #e1e5ea; }
[data-theme="dark"] .oauth-provider-info .fa-apple { color: #ffffff; }
[data-theme="dark"] .oauth-provider-info .fa-github { color: #e1e5ea; }

[data-theme="dark"] .oauth-provider-name { color: #e1e5ea; }
[data-theme="dark"] .oauth-provider-status { color: #66F4C4; }
[data-theme="dark"] .oauth-provider-status--muted { color: #6b7886; }

[data-theme="dark"] .profile-name { color: #e1e5ea; }
[data-theme="dark"] .profile-email { color: #8b95a1; }
[data-theme="dark"] .profile-since { color: #6b7886; }

[data-theme="dark"] .profile-stats {
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .profile-stat {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .profile-stat-label { color: #6b7886; }
[data-theme="dark"] .profile-stat-value { color: #e1e5ea; }
[data-theme="dark"] .profile-stat-value--muted { color: #6b7886; }
[data-theme="dark"] .profile-oauth-empty { color: #6b7886; }

/* ── Avatar Upload (Profile Edit Form) ── */

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.avatar-upload-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.avatar-upload-drop:hover {
  border-color: #28464B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.avatar-upload-drop .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-upload-drop .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 32px;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.avatar-upload-drop:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}

.avatar-file-input {
  font-size: 13px;
  color: #4b5563;
}

.avatar-file-input::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #28464B;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-file-input::file-selector-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.settings-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

[data-theme="dark"] .avatar-upload-drop {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .avatar-upload-drop:hover {
  border-color: #66F4C4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .avatar-upload-drop .avatar-placeholder { color: #6b7886; }

[data-theme="dark"] .avatar-file-input { color: #8b95a1; }

[data-theme="dark"] .avatar-file-input::file-selector-button {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.1);
  color: #66F4C4;
}

[data-theme="dark"] .avatar-file-input::file-selector-button:hover {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-img-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 28px;
}

.navbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-details {
  margin-bottom: 24px;
}

.profile-details p {
  font-size: 14px;
  color: #4b5563;
  margin: 8px 0;
}

.profile-details p strong {
  color: #111827;
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
}

.profile-oauth {
  margin-bottom: 24px;
}

.profile-oauth h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px;
}

.oauth-linked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  color: #4b5563;
  margin: 0 8px 8px 0;
}

.oauth-linked i {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   MEMBERS / TEAM PAGE
   ═══════════════════════════════════════════════════════════════ */

.invite-form-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.invite-form-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: box-shadow 0.2s ease;
}

.member-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.member-email {
  font-size: 13px;
  color: #6b7280;
}

.member-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}

/* ═══════════════════════════════════════════════════════════════
   BILLING PAGE
   ═══════════════════════════════════════════════════════════════ */

.billing-current-plan {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.billing-current-plan h2 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.plan-badge--free {
  background: #f3f4f6;
  color: #4b5563;
}

.plan-badge--basic {
  background: #dbeafe;
  color: #1d4ed8;
}

.plan-badge--pro {
  background: linear-gradient(135deg, #11343D, #28464B);
  color: #66F4C4;
}

.plan-badge--enterprise {
  background: linear-gradient(135deg, #28464B, #487278);
  color: #ffffff;
}

.plan-trial-info {
  font-size: 13px;
  color: #487278;
  margin: 8px 0 0;
}

.plan-warning {
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 12px 0 0;
}

.billing-plans h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px;
}

.billing-plans .plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.billing-plans .plan-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.billing-plans .plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.billing-plans .plan-card--current {
  border-color: #28464B;
  border-width: 2px;
}

.billing-plans .plan-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.billing-plans .plan-card .plan-price {
  font-size: 14px;
  font-weight: 600;
  color: #28464B;
  margin: 0 0 16px;
}

.billing-plans .plan-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.billing-plans .plan-card .plan-features li {
  font-size: 13px;
  color: #4b5563;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
}

.billing-plans .plan-card .plan-features li:last-child {
  border-bottom: none;
}

.billing-plans .plan-card .btn,
.billing-plans .plan-card .btn-disabled {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  box-sizing: border-box;
}

.billing-plans .plan-card form {
  margin: 0;
  width: 100%;
}

.billing-manage {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.billing-manage h2 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — Auth, Settings, Members, Billing, Profile
   ═══════════════════════════════════════════════════════════════ */

/* Auth */
[data-theme="dark"] .auth-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-title { color: #e1e5ea; }
[data-theme="dark"] .auth-subtitle { color: #8b95a1; }

/* Contact form (on /kontakt) */
[data-theme="dark"] .contact-form-wrapper {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .form-label { color: #8b95a1; }

[data-theme="dark"] .auth-links a { color: #66F4C4; }
[data-theme="dark"] .auth-links a:hover { color: #8df8d8; }

[data-theme="dark"] .form-group label { color: #8b95a1; }

[data-theme="dark"] .form-input {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.15);
  color: #e1e5ea;
}

[data-theme="dark"] .form-input:focus {
  border-color: #66F4C4;
  box-shadow: 0 0 0 3px rgba(102, 244, 196, 0.1);
}

[data-theme="dark"] select.form-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

[data-theme="dark"] select.form-input option {
  background: #151c27;
  color: #e1e5ea;
}

[data-theme="dark"] .form-hint { color: #6b7886; }
[data-theme="dark"] .form-static { color: #8b95a1; }

[data-theme="dark"] .oauth-divider { color: #6b7886; }
[data-theme="dark"] .oauth-divider::before,
[data-theme="dark"] .oauth-divider::after { background: rgba(255, 255, 255, 0.08); }

[data-theme="dark"] .oauth-btn {
  background: #151c27;
  border-color: rgba(255, 255, 255, 0.08);
  color: #e1e5ea;
}

[data-theme="dark"] .oauth-btn:hover {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .oauth-btn--apple i { color: #ffffff; }
[data-theme="dark"] .oauth-btn--github i { color: #e1e5ea; }

[data-theme="dark"] #error_explanation {
  background: rgba(185, 28, 28, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] #error_explanation h2 { color: #fca5a5; }
[data-theme="dark"] #error_explanation li { color: #fca5a5; }

/* Settings */
[data-theme="dark"] .settings-title { color: #e1e5ea; }
[data-theme="dark"] .settings-container h2 { color: #e1e5ea; }
[data-theme="dark"] .settings-container hr { border-top-color: rgba(255, 255, 255, 0.06); }

/* Profile */
[data-theme="dark"] .profile-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .avatar-placeholder {
  background: #151c27;
  color: #6b7886;
}

[data-theme="dark"] .profile-details p { color: #8b95a1; }
[data-theme="dark"] .profile-details p strong { color: #e1e5ea; }
[data-theme="dark"] .profile-oauth h3 { color: #e1e5ea; }

[data-theme="dark"] .oauth-linked {
  border-color: rgba(255, 255, 255, 0.08);
  color: #8b95a1;
}

/* Members */
[data-theme="dark"] .invite-form-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .invite-form-card h2 { color: #e1e5ea; }

[data-theme="dark"] .member-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .member-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .member-name { color: #e1e5ea; }
[data-theme="dark"] .member-email { color: #6b7886; }

[data-theme="dark"] .member-role-badge {
  background: rgba(255, 255, 255, 0.06);
  color: #8b95a1;
}

/* Billing */
[data-theme="dark"] .billing-current-plan {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .billing-current-plan h2 { color: #6b7886; }

[data-theme="dark"] .plan-badge--free {
  background: rgba(255, 255, 255, 0.06);
  color: #8b95a1;
}

[data-theme="dark"] .plan-badge--basic {
  background: rgba(29, 78, 216, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .plan-trial-info { color: #66F4C4; }

[data-theme="dark"] .plan-warning {
  background: rgba(185, 28, 28, 0.15);
  color: #fca5a5;
}

[data-theme="dark"] .billing-plans h2 { color: #e1e5ea; }

[data-theme="dark"] .billing-plans .plan-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .billing-plans .plan-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .billing-plans .plan-card--current {
  border-color: #66F4C4;
}

[data-theme="dark"] .billing-plans .plan-card h3 { color: #e1e5ea; }
[data-theme="dark"] .billing-plans .plan-card .plan-price { color: #66F4C4; }

[data-theme="dark"] .billing-plans .plan-card .plan-features li {
  color: #8b95a1;
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .btn-disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: #6b7886;
}

[data-theme="dark"] .billing-manage {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .billing-manage h2 { color: #6b7886; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Auth, Settings, Members, Billing, Profile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 24px;
  }

  .settings-container {
    padding: 24px 16px;
  }

  .settings-title {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .member-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .member-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .billing-plans .plan-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .auth-container {
    padding: 32px 16px;
    min-height: 60vh;
  }

  .billing-plans .plan-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */

.admin-container {
  max-width: 1200px;
  margin: 0;
  padding: 32px 24px;
}

.admin-title {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 28px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #28464B;
}

.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-section {
  margin-bottom: 32px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-search .form-input {
  flex: 1;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.admin-table thead th:first-child { border-radius: 12px 0 0 0; }
.admin-table thead th:last-child { border-radius: 0 12px 0 0; }

.admin-table tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover { background: #f9fafb; }

.admin-table a {
  color: #28464B;
  text-decoration: none;
  font-weight: 500;
}

.admin-table a:hover { color: #487278; }

.admin-back {
  margin-bottom: 20px;
}

.admin-back a {
  font-size: 14px;
  color: #487278;
  text-decoration: none;
}

.admin-back a:hover { color: #28464B; }

.admin-detail-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 0;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-detail-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.admin-detail-row:last-child { border-bottom: none; }

.admin-detail-label {
  font-weight: 600;
  color: #6b7280;
  min-width: 160px;
}

/* ── Admin Dark Mode ── */

[data-theme="dark"] .admin-title { color: #e1e5ea; }

[data-theme="dark"] .admin-stat-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-stat-value { color: #66F4C4; }
[data-theme="dark"] .admin-stat-label { color: #6b7886; }

[data-theme="dark"] .admin-section-header h2 { color: #e1e5ea; }

[data-theme="dark"] .admin-table-wrap {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-table thead th {
  background: #151c27;
  color: #6b7886;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-table tbody td {
  color: #e1e5ea;
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .admin-table tbody tr:hover { background: #151c27; }

[data-theme="dark"] .admin-table a { color: #66F4C4; }
[data-theme="dark"] .admin-table a:hover { color: #8df8d8; }

[data-theme="dark"] .admin-back a { color: #66F4C4; }

[data-theme="dark"] .admin-detail-card {
  background: #1a2330;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-detail-row {
  border-bottom-color: rgba(255, 255, 255, 0.04);
  color: #e1e5ea;
}

[data-theme="dark"] .admin-detail-label { color: #6b7886; }

/* ── Admin Responsive ── */

@media (max-width: 480px) {
  .admin-container { padding: 24px 16px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-detail-label { min-width: auto; }
}
