@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/*******************************
   solidcoded — Global Styles
   ================================ */

/* Base */
:root{
  --bg: #1c1c1c;        /* Seite anthrazit */
  --bg-2:#181818;       /* Dashboard-Hintergrund */
  --panel:#242424;      /* Panels */
  --card:#2a2a2a;
  --border:#3a3a3a;
  --muted:#a0a0a0;
  --text:#e0e0e0;
  --link:#5fa8ff;
  --primary:#3b82f6;
  --primary-2:#2563eb;
  --upload-btn-bg: limegreen;
  --upload-btn-bg-hover: #2ab82a;
  --upload-btn-text: #062306;
  --upload-btn-shadow: 0 0 14px rgba(50,205,50,0.35);
  --danger:#ef4444;
}

/* Light theme overrides (applied when body has .theme-light) */
.theme-light{
  --bg: #f7f9fc;
  --bg-2:#f1f5f9;
  --panel:#ffffff;
  --card:#ffffff;
  --border:#e5e7eb;
  --muted:#475569;
  --text:#0f172a;
  --link:#2563eb;
  --primary:#2563eb;
  --primary-2:#1d4ed8;
  --upload-btn-bg: limegreen;
  --upload-btn-bg-hover: #2ab82a;
  --upload-btn-text: #062306;
  --upload-btn-shadow: 0 0 14px rgba(50,205,50,0.35);
  --danger:#dc2626;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-y: auto;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3 { margin: 0 0 24px; }

/* Utility: zentrierte Seite (nur für Login etc.) */
.centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  background-color: #050a14;
  background-image: radial-gradient(circle at 18% 0%, rgba(46,133,97,0.42) 0%, rgba(23,54,69,0.72) 45%, rgba(9,18,34,0.92) 70%, rgba(5,10,20,1) 100%);
  color: #f6f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(32px + env(safe-area-inset-top, 0)) 16px calc(32px + env(safe-area-inset-bottom, 0));
}

@supports (min-height: 100svh) {
  .auth-body {
    min-height: 100svh;
  }
}

@supports (min-height: 100dvh) {
  .auth-body {
    min-height: 100dvh;
  }
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: linear-gradient(165deg, rgba(22,34,51,0.95) 0%, rgba(9,15,26,0.95) 100%);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 32px 60px rgba(5, 10, 20, 0.55);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -30% 40% 55% -30%;
  background: none;
  opacity: 0.65;
  filter: blur(0px);
}

.auth-card::after {
  display: none;
}

.logout-card {
  background: linear-gradient(165deg, rgba(21,31,48,0.96) 0%, rgba(7,15,28,0.96) 100%);
}

.auth-card > * {
  position: relative;
  z-index: 2;
}

.auth-logo {
  display: block;
  width: 56px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.auth-brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 0.95rem;
  color: #4ae59b;
  margin-bottom: 36px;
}

.auth-title {
  font-size: 1.9rem;
  margin: 0 0 12px;
  color: #ffffff;
}

.auth-subtitle {
  margin: 0 0 32px;
  color: rgba(219, 227, 240, 0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  color: #061110;
  background: linear-gradient(135deg, #4de995 0%, #16c772 55%, #13b363 100%);
  box-shadow: 0 16px 28px rgba(19, 179, 99, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(19, 179, 99, 0.35);
}

.auth-button:active {
  transform: translateY(0);
  box-shadow: 0 12px 20px rgba(19, 179, 99, 0.28);
}

/* Reusable components */
.container {
  background: var(--card);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
  width: 100%;
  max-width: 380px;
}

.order-confirmation {
  max-width: min(100%, 640px);
  margin: 40px auto 24px;
  padding: 32px;
  gap: 0;
}

.order-confirmation h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: left;
}

.order-confirmation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.order-confirmation li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.theme-light .order-confirmation li {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
}

.order-confirmation strong {
  min-width: 150px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: .92rem;
  color: #f0f0f0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #202020;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #555;
  background: #262626;
}

button, .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
button:hover, .btn:hover { background: var(--primary-2); text-decoration: none; }

.btn-positive {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #f9fafb;
  box-shadow: 0 0 0 rgba(21,128,61,0.0);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-positive:hover,
.btn-positive:focus-visible {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 10px 24px rgba(34,197,94,0.22);
  transform: translateY(-1px);
}

/* Subtile Puls-Animation für Primärbuttons */
.btn-pulse {
  box-shadow: 0 0 0 rgba(95,168,255,0.0);
  animation: btnPulse 1.6s ease-in-out infinite;
}
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 rgba(95,168,255,0.0), 0 0 0 rgba(37,99,235,0.0); }
  50%  { box-shadow: 0 0 14px rgba(95,168,255,0.35), 0 0 22px rgba(37,99,235,0.25); }
  100% { box-shadow: 0 0 0 rgba(95,168,255,0.0), 0 0 0 rgba(37,99,235,0.0); }
}

.error {
  background: var(--danger);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.footer {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* ================================
   Dashboard Layout
   ================================ */

/* Top background image with soft fade */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/backgrounds/triangles-blue.jpg') top center / cover no-repeat;
  opacity: .22;
  pointer-events: none;
  height: 30vh; /* cover upper 30% */
  bottom: auto;
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.95) 30%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.25) 48%,
    rgba(0,0,0,0.0) 60%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.95) 30%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.25) 48%,
    rgba(0,0,0,0.0) 60%
  );
  z-index: 0; /* ensure overlay sits behind content */
}
.hero-bg > * { position: relative; z-index: 1; }

.dash-bg {
  background: var(--bg-2);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.main {
  padding: 24px 28px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Slim, dark scrollbar for content area */
.main { scrollbar-width: thin; scrollbar-color: #3a3a3a var(--panel); }
.main::-webkit-scrollbar { width: 8px; height: 8px; }
.main::-webkit-scrollbar-track { background: var(--panel); }
.main::-webkit-scrollbar-thumb {
  background-color: #3a3a3a; /* dark thumb */
  border-radius: 8px;
  border: 2px solid var(--panel); /* gap effect */
}
.main::-webkit-scrollbar-thumb:hover { background-color: #4a4a4a; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.dash-bg .topbar {
  width: min(100%, 1100px);
  margin: 0 auto 24px;
}
.topbar-title { font-size: 1.4rem; flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.user-chip {
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .9rem;
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.topbar-greeting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #e5e5e5;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
.topbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}
.topbar-logout:hover,
.topbar-logout:focus-visible {
  text-decoration: none;
  border-color: rgba(148, 163, 184, 0.8);
  color: #f5f5f5;
  background-color: rgba(148, 163, 184, 0.08);
}
.topbar-logout:focus-visible {
  outline: 2px solid rgba(95, 168, 255, 0.4);
  outline-offset: 2px;
}
.topbar-logout:active {
  transform: translateY(1px);
}
.user-chip:hover,
.user-chip:focus-visible {
  background: #3a3a3a;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
  outline: none;
}

.mobile-menu {  
  display: none;
  align-items: center;
  gap: 12px;
}

@media (max-width: 899px) {
  .mobile-menu {
    display: flex;
  }
}

.mobile-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mobile-menu button:hover,
.mobile-menu button:focus-visible {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.8);
  color: #f5f5f5;
  text-decoration: none;
}

.mobile-menu button:focus-visible {
  outline: 2px solid rgba(95, 168, 255, 0.4);
  outline-offset: 2px;
}

.mobile-menu button:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .topbar-title {
    flex: 1 1 auto;
    font-size: 1.2rem;
  }

  .topbar .user-chip {
    order: 2;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-menu {
    display: flex;
    width: 100%;
  }

  .topbar .mobile-menu {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.card-title { font-weight: 700; margin-bottom: 6px; }
.card-actions { margin-top: 12px; }
.card .btn { width: auto; }

/* Single hero card (index Neue Reise) */
.single-card.center { display:flex; justify-content:center; margin: 36px 0 20px; }
.card-hero { max-width: 420px; padding: 22px; text-align: left; }

.dash-bg .single-card.center {
  width: min(100%, 420px);
  margin: 36px auto 20px;
}

.dash-bg .card-hero {
  width: 100%;
  max-width: none;
}
.card-hero .card-title { font-size: 1.25rem; margin-bottom: 0; letter-spacing: .2px; }
.card-hero .card-sub { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.btn-compact {
  padding: 8px 12px;
  font-weight: 600;
  font-size: .95rem;
  width: auto;
}

#beleg-form .btn-upload {
  border-color: rgba(0, 229, 255, 0.45);
}

#beleg-form .btn-upload.neon-cyan-outline {
  border-color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.45);
}

#beleg-form .btn-upload.neon-cyan-outline:hover,
#beleg-form .btn-upload.neon-cyan-outline:focus-visible {
  border-color: #72ffff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.7);
}

#beleg-form {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

#beleg-form .btn {
  flex: 1 1 220px;
  min-width: min(200px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#beleg-form .btn.upload-trigger {
  margin-top: 0;
}


.card-hero-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.card-hero-upload {
  margin: 0;
  margin-left: auto;
}

.btn-upload {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: none;
  white-space: nowrap;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.btn-upload.neon-cyan-outline {
  border-color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.45);
}

.btn-upload.neon-cyan-outline:hover,
.btn-upload.neon-cyan-outline:focus-visible {
  border-color: #72ffff;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.7);
}

.btn-upload:hover,
.btn-upload:focus-visible {
  background: var(--card);
  color: var(--text);
  border-color: #00E5FF;
  box-shadow: 0 18px 35px -20px rgba(0, 229, 255, 0.65);
  transform: none;
  text-decoration: none;
  outline: none;
}

/* Panel + Table */
.panel {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.page-trips-list .panel.spacious { margin-top: 150px; }
.panel.spacious {
  padding-left: 56px;
  padding-right: 56px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel.spacious .table {
  width: 100%;
}
.panel-head {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;
}
.link { color: var(--link); }

.table { display: grid; gap: 8px; }
.t-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; /* Kunde | Ort | Zeitraum | Betrag */
  gap: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.theme-light .hero-bg::before{ opacity: .80; filter: brightness(0.9); }
.panel.spacious .t-row { padding-left: 22px; padding-right: 22px; }
.t-row:hover {
  background: rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.t-head {
  background: var(--panel);
  font-weight: 700;
  cursor: default;
  transform: none !important;
}
.t-row a {
  color: var(--link);
  text-decoration: none;
}
.t-row a:hover {
  text-decoration: underline;
}

.t-cell { min-width: 0; }
.t-label { display: none; }
.t-value { display: inline; }
.recent-trips-table .cell-meta-mobile { display: none; }
.recent-trips-table .cell-meta-mobile .meta-item,
.recent-trips-table .cell-meta-mobile .meta-sep {
  display: inline-flex;
  align-items: center;
}
.t-row.t-empty .t-cell {
  grid-column: 1 / -1;
  text-align: center;
}

/* Betrag Hervorhebung */
.amount-eur { color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,.35), 0 0 14px rgba(16,185,129,.25); font-weight: 700; }

@media (max-width: 720px) {
  .order-confirmation {
    margin: 28px auto 20px;
    padding: 28px 24px;
  }
  .order-confirmation h2 {
    font-size: 1.25rem;
    text-align: center;
  }
  .order-confirmation ul {
    gap: 14px;
  }
  .order-confirmation li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 1rem;
    padding: 12px 14px;
  }
  .order-confirmation strong {
    min-width: 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  .panel.spacious {
    margin: 18px auto 0;
    padding: 18px 16px;
    max-width: 100%;
    text-align: center;
    align-items: stretch;
  }

  .panel {
    margin-top: 18px;
  }
  .panel-head {
    margin-bottom: 12px;
  }
  .panel-head h2 {
    font-size: 1.15rem;
  }
  .panel.spacious .panel-head {
    justify-content: center;
  }
  .panel.spacious .panel-head h2 {
    text-align: center;
    width: 100%;
  }
  .panel.spacious .table {
    width: 100%;
  }
  .table {
    gap: 14px;
  }
  .t-head {
    display: none;
  }
  .table:not(.recent-trips-table) .t-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
    align-items: flex-start;
  }
  .table:not(.recent-trips-table) .t-row .t-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.95rem;
  }
  .table:not(.recent-trips-table) .t-row .t-label {
    display: none;
  }
  .table:not(.recent-trips-table) .t-row .t-value {
    display: block;
  }
  .table:not(.recent-trips-table) .t-row .amount-eur {
    font-size: 1.05rem;
  }

  .recent-trips-table .t-row:not(.t-head) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "customer amount"
      "meta amount";
    align-items: center;
    gap: 8px 12px;
    padding: 16px 14px;
    justify-items: center;
    text-align: center;
  }
  .recent-trips-table .cell-customer {
    grid-area: customer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .recent-trips-table .cell-customer a {
    color: var(--text);
    text-decoration: none;
  }
  .recent-trips-table .cell-customer a:hover {
    color: var(--link);
    text-decoration: none;
  }
  .recent-trips-table .cell-location,
  .recent-trips-table .cell-period {
    display: none;
  }
  .recent-trips-table .cell-meta-mobile {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    justify-content: center;
  }
  .recent-trips-table .cell-meta-mobile .meta-item {
    line-height: 1.3;
  }
  .recent-trips-table .cell-meta-mobile .meta-sep {
    color: var(--muted);
    opacity: 0.75;
  }
  .recent-trips-table .cell-amount {
    grid-area: amount;
    justify-self: center;
    align-self: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.98rem;
  }
  .recent-trips-table .cell-amount .amount-eur {
    font-size: 1.05rem;
  }
}

/* Loader overlay + variants */
.loader { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); z-index: 1000; }
.loader.show { display: grid; }
.loader-box {
  background:#1f1f1f;
  border:1px solid #333;
  border-radius:12px;
  padding:20px 28px;
  /* Schatten + sanfter bläulicher Glow */
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 32px rgba(4, 138, 172, 0.747),
    0 0 64px rgba(37,99,235,.18);
}
.loader-title { text-align:center; color:#cfd8e3; font-weight:700; margin-bottom:10px; }
.loader-grid { display:none; }


    opacity: 0;
  }
}

/* (Triangles and Scan variants removed) */

/* Responsive section removed */

/* Landing (Projekte-Übersicht) */
.landing {
  min-height: 100vh;
  background: var(--bg-2);
  color: var(--text);
  padding: 24px 28px;
}
.topbar-plain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.muted { color: var(--muted); margin: -12px 0 16px; }

/* 3-Spalten Grid auf Landing */
.grid-3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 16px; }
/* grid-3 responsive rules removed */

/* Karten klickbar machen */
.card-link { text-decoration: none; display: block; }
.card-link:hover { border-color: #555; background: #2f2f2f; }

/* Kleine Mülleimer-Icons für Löschaktionen in Sektionen */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-heading h3 {
  margin: 0;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.belege-wrapper .delete,
.belege-item .delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: var(--danger);
  text-decoration: none;
  font-size: 0; /* Text (z.B. ✖) ausblenden */
}

.order-wrapper {
  position: relative;
}

.section-toggle,
.order-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent !important;
  border: none;
  padding: 0;
  color: inherit !important;
  font: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: left;
}

.section-toggle:hover,
.order-toggle:hover {
  background: transparent !important;
}

.section-toggle:focus-visible,
.order-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.section-toggle-title,
.order-toggle-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-toggle-icon,
.order-toggle-icon {
  transition: transform 0.2s ease;
}

.section-toggle.open .section-toggle-icon,
.order-toggle.open .order-toggle-icon {
  transform: rotate(180deg);
}

.section-dropdown,
.order-dropdown {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  padding-top: 0;
}

.section-dropdown.open,
.order-dropdown.open {
  display: block;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  max-height: none;
  padding-top: 8px;
}
.belege-wrapper .delete::before,
.belege-item .delete::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor; /* nutzt var(--danger) vom Link */
  /* SVG als Maske für sauberes, einfarbiges Icon */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.belege-wrapper .delete:hover,
.belege-item .delete:hover {
  filter: brightness(1.1);
}

/* Einfache, einfarbige Icons (Masken) */
.icon-check, .icon-cross {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 6px;
  background: currentColor;
}
.icon-check { color: #22c55e; /* grün */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-cross { color: #ef4444; /* rot */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat; }


.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-actions .link { white-space: nowrap; }





/* Mobile Layout Optimierungen (z.B. iPhone 12 Pro Max) */
@media (max-width: 450px) {
  body {
    overflow-y: auto;
  }
  .dash-bg {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .sidebar {
    display: none !important;
  }
  .main {
    margin-left: 0 !important;
    height: auto;
    min-height: 100vh;
    padding: 20px 16px 32px;
    overflow: visible;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar-title {
    font-size: 1.35rem;
  }
  .topbar-greeting {
    align-self: flex-end;
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  .mobile-menu {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .mobile-menu button {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
  }
  .single-card.center {
    margin: 8px 0 18px;
    justify-content: stretch;
  }
  .card-hero {
    width: 100%;
    max-width: none;
    padding: 20px 18px;
    text-align: left;
  }
  .card-hero .card-title {
    font-size: 1.15rem;
  }
  .card-hero .card-sub {
    font-size: 0.95rem;
  }
  .card-actions {
    display: flex;
  }
  .card-actions .btn {
    width: 100%;
  }
  .panel.spacious .panel-head h2 {
    font-size: 1.05rem;
  }
  .recent-trips-table .t-row:not(.t-head) {
    font-size: 0.92rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "customer"
      "meta"
      "amount";
  }
  .recent-trips-table .cell-customer {
    font-size: 0.98rem;
    justify-self: center;
  }
  .recent-trips-table .cell-meta-mobile {
    font-size: 0.78rem;
  }
  .recent-trips-table .cell-amount {
    font-size: 0.9rem;
    justify-self: center;
  }
  .recent-trips-table .cell-amount .amount-eur {
    font-size: 0.98rem;
  }
  .order-confirmation {
    margin: 20px 0 16px;
    padding: 24px 18px;
  }
  .order-confirmation h2 {
    text-align: left;
    font-size: 1.18rem;
  }
  .order-confirmation li {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 12px;
  }
}

/* ================================
   Back Link
   ================================ */
.trip-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.trip-back-link:hover {
  background: var(--card);
  color: var(--text);
  border-color: var(--link);
  text-decoration: none;
}

