/* MakeaPrint.ch - Dark Theme Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Layer-Line-Anthrazit: dark, wide tonal range so photos/product images
     carry more contrast against the UI than the old flat navy-black did. */
  --bg-primary: #101517;
  --bg-secondary: #1a2124;
  --bg-card: #222a2d;
  --bg-input: #1a2124;
  --bg-hover: #2e3538;
  --bg-tertiary: #2e3538;
  --surface: #222a2d;
  /* Skirt-Line-Blau: primary accent (buttons, links, CTAs, focus) */
  --accent: #1685ca;
  --accent-hover: #106b9f;
  --accent-dim: rgba(22, 133, 202, 0.22);
  /* Sand: secondary accent (badges, highlights, small details) */
  --sand: #e8a32c;
  --sand-hover: #c2871f;
  --sand-dim: rgba(232, 163, 44, 0.24);
  --text-primary: #f1f2f2;
  --text-secondary: #a9b0b2;
  --text-muted: #7d8688;
  --border: #3a4346;
  --success: #00e676;
  --warning: #ffab40;
  --danger: #ff5252;
  --info: #448aff;
  --shadow: 0 4px 16px rgba(2, 6, 23, 0.45);
  --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.35);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition: all 0.2s ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

legend {
  padding: 0;
  font-size: inherit;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navbar */
.navbar {
  background: rgba(26, 33, 36, 0.82);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 160ms ease;
}

.navbar-brand:hover {
  opacity: 0.85;
}

.navbar-brand span {
  color: var(--text-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 160ms ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 200ms var(--ease-out);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  transform: scaleX(1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1440px;
  width: 92%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 220ms var(--ease-out), border-color 200ms ease, box-shadow 220ms var(--ease-out);
  animation: heroRise 280ms var(--ease-out) backwards;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 200ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.25);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #ff1744;
}

.btn-success {
  background: var(--success);
  color: var(--bg-primary);
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 160ms ease, box-shadow 200ms var(--ease-out), background-color 160ms ease;
}

.form-control:hover:not(:focus):not(:disabled) {
  border-color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: var(--danger);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.2);
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-open { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.badge-accepted { background: rgba(68, 138, 255, 0.15); color: var(--info); }
.badge-pending_approval { background: rgba(255, 171, 64, 0.15); color: var(--warning); }
.badge-committed { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }
.badge-shipped { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-received { background: rgba(0, 230, 118, 0.25); color: var(--success); }
.badge-auto_received { background: rgba(0, 230, 118, 0.25); color: var(--success); }
.badge-reassigned { background: rgba(255, 171, 64, 0.15); color: var(--warning); }
.badge-refunded { background: rgba(255, 82, 82, 0.15); color: var(--danger); }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 70px;
  z-index: 100;
  animation: alertSlideIn 280ms var(--ease-out);
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-text { flex: 1; }

.alert-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 0.25rem;
  line-height: 1;
}
.alert-close:hover { opacity: 1; }

.alert-success { background: rgba(0, 230, 118, 0.15); border: 1px solid rgba(0, 230, 118, 0.4); color: var(--success); }
.alert-danger { background: rgba(255, 82, 82, 0.15); border: 1px solid rgba(255, 82, 82, 0.4); color: var(--danger); font-weight: 500; }
.alert-warning { background: rgba(255, 171, 64, 0.15); border: 1px solid rgba(255, 171, 64, 0.4); color: var(--warning); }
.alert-info { background: rgba(68, 138, 255, 0.15); border: 1px solid rgba(68, 138, 255, 0.4); color: var(--info); }

.alert.hidden { display: none; }

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

td {
  border-bottom: 1px solid var(--border);
  transition: background-color 120ms ease;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--bg-hover);
}

tbody tr {
  transition: background-color 120ms ease;
}

/* Stats */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 220ms var(--ease-out), border-color 200ms ease, box-shadow 220ms var(--ease-out);
  opacity: 0;
  animation: heroRise 450ms var(--ease-out) forwards;
  animation-delay: calc(var(--stat-index, 0) * 80ms);
}

.stat-card:nth-child(1) { --stat-index: 1; }
.stat-card:nth-child(2) { --stat-index: 2; }
.stat-card:nth-child(3) { --stat-index: 3; }
.stat-card:nth-child(4) { --stat-index: 4; }
.stat-card:nth-child(5) { --stat-index: 5; }
.stat-card:nth-child(6) { --stat-index: 6; }
.stat-card:nth-child(7) { --stat-index: 7; }
.stat-card:nth-child(8) { --stat-index: 8; }

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Asymmetric stat layout (homepage) — one emphasized claim instead of three
   identical boxes in a row. */
.stat-highlight-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.stat-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card-stack .stat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card-feature {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-color: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-value-lg {
  font-size: 3.2rem;
  line-height: 1;
  color: var(--sand);
}

@media (max-width: 640px) {
  .stat-highlight-grid { grid-template-columns: 1fr; }
  .stat-value-lg { font-size: 2.6rem; }
}

/* Rating Stars */
.stars {
  color: var(--warning);
  letter-spacing: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.pagination button.active,
.pagination button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.6;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
  animation: heroRise 600ms var(--ease-out) backwards;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: heroRise 600ms var(--ease-out) 80ms backwards;
}

.hero > div {
  animation: heroRise 600ms var(--ease-out) 160ms backwards;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-Reveal: Elemente mit .reveal starten unsichtbar/leicht versetzt und
   blenden ein, sobald initScrollReveal() (app.js) sie per IntersectionObserver
   in den Viewport kommen sieht. Gestaffelt ueber --reveal-index. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gemeinsame Eingangs-Animation fuer Modals/Popups (Bewertung, Problem melden,
   Versand-/Foto-Modal, Erfolgs-Overlay) - ein einheitliches Bewegungsgefuehl. */
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card {
  animation: modalPopIn 220ms var(--ease-out);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-close-btn:active {
  transform: scale(0.9);
}

/* Buttons that contain only an SVG icon (chat attach, etc.) */
.icon-btn {
  padding: 0 0.75rem;
  border-radius: 22px;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Homepage: Vertrauen / Material / FAQ Sektionen */
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-align: center;
  letter-spacing: -0.015em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0.5rem auto 0;
}

.trust-section,
.material-section,
.faq-section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 220ms var(--ease-out), border-color 200ms ease, box-shadow 220ms var(--ease-out);
}

.trust-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trust-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.trust-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.material-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .material-strip { grid-template-columns: repeat(2, 1fr); }
}

.material-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.1rem 1.25rem;
  min-width: 130px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}

.material-chip:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.material-chip-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: transform 220ms var(--ease-out);
}

.material-chip-icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.material-chip:hover .material-chip-icon {
  transform: scale(1.1) translateY(-2px);
}

.material-chip strong {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.material-chip span {
  font-size: 0.78rem;
  color: var(--accent);
}

.faq-list {
  max-width: 700px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 220ms var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

/* Sanftes Auf-/Zuklappen statt des abrupten Browser-Standards: <details> versteckt
   Nicht-summary-Kinder normalerweise per display:none (nicht animierbar) - hier stattdessen
   immer sichtbar im Layout gehalten und über max-height/opacity ein-/ausgeblendet. */
.faq-item > :not(summary) {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 280ms var(--ease-out), opacity 200ms ease, margin-top 200ms ease;
}

.faq-item[open] > :not(summary) {
  max-height: 400px;
  opacity: 1;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item[open] p {
  margin-top: 0.75rem;
}

.become-printer-card {
  display: block;
  text-align: center;
  padding: 3rem 2rem;
  margin: 1rem 0 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.become-printer-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.become-printer-card h2 {
  margin-bottom: 0.75rem;
}

.become-printer-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.become-printer-card .btn {
  pointer-events: none;
}

/* Steps */
.steps {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 200px;
  opacity: 0;
  animation: heroRise 500ms var(--ease-out) forwards;
  animation-delay: calc(var(--step-index, 0) * 90ms);
}

.step:nth-child(1) { --step-index: 1; }
.step:nth-child(2) { --step-index: 2; }
.step:nth-child(3) { --step-index: 3; }
.step:nth-child(4) { --step-index: 4; }

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sand-dim);
  border: 2px solid var(--sand);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.step:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--sand-dim);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Price Display */
.price-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.price-breakdown {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-breakdown dt {
  color: var(--text-muted);
}

.price-breakdown dd {
  text-align: right;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  opacity: 0;
  animation: heroRise 350ms var(--ease-out) forwards;
}

.empty-state::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border: 2px dashed var(--border);
  border-radius: 50%;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; height: auto; min-height: 56px; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
  .navbar-brand { font-size: 1.15rem; order: 1; }
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; margin-right: 0.5rem; order: 0; }
  .navbar-actions { font-size: 0.85rem; gap: 0.4rem; margin-left: auto; order: 2; }
  .navbar-actions .btn { padding: 0.4rem 0.8rem; font-size: 0.82rem; min-width: 72px; text-align: center; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    animation: heroRise 200ms var(--ease-out);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .steps { gap: 1.5rem; }
  .container { padding: 1rem; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utils */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Konsistenter Seitenkopf (Dashboard/Upload/Browse/Drucker-Dashboard/...):
   Titel (+ optional Untertitel oder Aktions-Button) mit Trennlinie. */
.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.015em;
}

.page-header p {
  margin-top: 0.4rem;
  font-size: 1.05rem;
}
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
