/* ==========================================================================
   Interceptor Portal – modernes, schlichtes Dark-Interface
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-soft: #0c0e11;
  --panel: #101317;
  --panel-2: #15191e;
  --panel-3: #1b2026;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #9aa1ab;
  --faint: #6d747e;
  --accent: #ff6a2b;
  --accent-soft: rgba(255, 106, 43, 0.12);
  --accent-line: rgba(255, 106, 43, 0.38);
  --success: #79e0a4;
  --success-soft: rgba(121, 224, 164, 0.12);
  --danger: #ff7070;
  --danger-soft: rgba(255, 112, 112, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 106, 43, 0.07), transparent 60%),
    radial-gradient(700px 400px at 0% 20%, rgba(80, 130, 255, 0.04), transparent 60%);
  background-repeat: no-repeat;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

em {
  font-style: normal;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.small {
  font-size: 0.82rem;
}

.small-note {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--faint);
}

.align-right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(8, 9, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 106, 43, 0.8);
}

.brand-word {
  font-weight: 700;
}

.brand-sub {
  color: var(--faint);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.role-badge.role-admin {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.role-badge.role-seller {
  color: #b9c8ff;
  border-color: rgba(147, 170, 255, 0.35);
  background: rgba(120, 150, 255, 0.1);
}

.role-badge.role-buyer {
  color: var(--success);
  border-color: rgba(121, 224, 164, 0.32);
  background: var(--success-soft);
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu summary:hover {
  border-color: var(--accent-line);
}

.user-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 250px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.menu-head {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  min-width: 0;
}

.menu-head strong {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-head span {
  color: var(--faint);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu .menu a,
.user-menu .menu button {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  text-align: left;
  color: var(--muted);
  background: none;
  border: 0;
  width: 100%;
  cursor: pointer;
}

.user-menu .menu a:hover,
.user-menu .menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 2px;
  z-index: 70;
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Flash / Struktur
   -------------------------------------------------------------------------- */

.flash-stack {
  position: fixed;
  top: 86px;
  right: clamp(18px, 4vw, 48px);
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 36px));
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  animation: flash-in 0.3s ease both;
}

.flash-success {
  border-color: rgba(121, 224, 164, 0.4);
  background: #102019;
  color: var(--success);
}

.flash-error {
  border-color: rgba(255, 112, 112, 0.4);
  background: #211213;
  color: var(--danger);
}

.flash-info {
  border-color: var(--line-strong);
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.main {
  flex: 1;
  padding-bottom: 40px;
}

.hero,
.stats-strip,
.section,
.page {
  width: min(1200px, calc(100% - clamp(36px, 8vw, 96px)));
  margin-inline: auto;
}

.page {
  padding: 56px 0 40px;
}

.page-narrow {
  width: min(760px, calc(100% - clamp(36px, 8vw, 96px)));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
  display: grid;
  gap: 16px;
}

.section-head p {
  color: var(--muted);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #140a04;
}

.btn-primary:hover {
  background: #ff7d45;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

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

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(255, 112, 112, 0.32);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(255, 112, 112, 0.18);
}

.btn-small {
  padding: 7px 13px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.page-login .main {
  padding-bottom: 0;
}

.login-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 71px);
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(255, 106, 43, 0.16), transparent 65%),
    linear-gradient(160deg, #10151b 0%, #090b0e 60%);
  border-right: 1px solid var(--line);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}

.login-visual-inner {
  position: relative;
  max-width: 560px;
  display: grid;
  gap: 24px;
}

.login-visual h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.login-visual p {
  color: var(--muted);
  max-width: 44ch;
  font-size: 1.02rem;
}

.login-stats {
  display: flex;
  gap: 36px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.login-stats div {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.login-stats strong {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.login-stats span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.login-visual-foot {
  position: relative;
  margin-top: 56px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.login-card {
  width: min(400px, 100%);
  display: grid;
  gap: 18px;
}

.login-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.login-card h2 {
  font-size: 2rem;
}

.login-card > p {
  font-size: 0.92rem;
}

.login-card .form {
  margin-top: 10px;
  display: grid;
  gap: 16px;
}

.login-hint {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Formulare
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field > span small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #59606a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.12);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-card {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 18px;
}

.form-card h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: #ffc4a6;
  font-size: 0.86rem;
}

.readonly-value {
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Hero / Produktseite
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}

.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.hero .lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-price {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.price-note {
  color: var(--faint);
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  min-height: 0;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 11, 0.82));
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.2);
}

.media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  gap: 24px;
}

.stat {
  display: grid;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat strong small {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.stat span {
  font-size: 0.78rem;
  color: var(--faint);
}

/* Feature-Grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-index {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.feature h3 {
  font-size: 1rem;
}

.feature p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Split / Thermal */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.split-copy p {
  color: var(--muted);
  max-width: 54ch;
}

.split-copy em {
  color: var(--accent);
}

.split-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  position: relative;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-visual figcaption {
  padding: 12px 16px;
  font-size: 0.76rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 8px 0 0;
  width: 100%;
  border-top: 1px solid var(--line);
}

.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list > div:nth-child(odd) {
  padding-right: 20px;
}

.spec-list dt {
  font-size: 0.8rem;
  color: var(--faint);
}

.spec-list dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

/* Paket */

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.package-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  gap: 16px;
  align-content: start;
}

.package-card h3 {
  font-size: 1rem;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.checks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.86rem;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.checks.compact li {
  font-size: 0.84rem;
}

.highlight-card {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255, 106, 43, 0.16), transparent 70%),
    var(--panel-2);
  border-color: var(--accent-line);
}

.tag {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  padding: 0;
  cursor: zoom-in;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  opacity: 0.86;
}

.gallery-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 10px;
  font-size: 0.74rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* Videos */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.video-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: cover;
}

.video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  border-top: 1px solid var(--line);
}

.download-link {
  font-size: 0.76rem;
  color: var(--faint);
  border-bottom: 1px solid transparent;
}

.download-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* Dokumente */

.document-list {
  border-top: 1px solid var(--line);
}

.document-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

.document-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.doc-badge {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.document-info {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.document-info strong {
  font-size: 0.92rem;
}

.document-info span {
  font-size: 0.76rem;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.documents .small-note {
  margin-top: 18px;
}

/* CTA */

.cta-section {
  padding-bottom: 96px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 380px at 0% 0%, rgba(255, 106, 43, 0.14), transparent 65%),
    linear-gradient(150deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.cta-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.cta-price {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cta-form {
  background: rgba(8, 9, 11, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.cta-form h3 {
  font-size: 1.15rem;
}

.cta-form .field input,
.cta-form .field textarea {
  background: rgba(255, 255, 255, 0.03);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 5, 6, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 56px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}

.lightbox figcaption {
  font-size: 0.82rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Verwaltung / Tabellen
   -------------------------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.page-head > div {
  display: grid;
  gap: 10px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-head p {
  max-width: 60ch;
  font-size: 0.92rem;
}

.table-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 24px;
}

.panel-head {
  margin-bottom: 18px;
  display: grid;
  gap: 4px;
}

.panel-head h2 {
  font-size: 1.15rem;
}

.upload-form {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 16px;
  align-items: end;
}

.upload-form .checkbox {
  grid-column: 1 / -1;
}

.table-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-head h2 {
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th {
  text-align: left;
  padding: 12px 22px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.88rem;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-cell > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.user-cell strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-cell small {
  color: var(--faint);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.avatar-large {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-on {
  color: var(--success);
}

.status-off {
  color: var(--faint);
}

.status-button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.status-button:hover {
  text-decoration: underline;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.row-actions form {
  display: inline-flex;
}

.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.icon-button:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.empty-state {
  padding: 52px 24px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.empty-state strong {
  font-size: 1rem;
}

.empty-state p {
  color: var(--faint);
  font-size: 0.86rem;
}

.materials-table {
  min-width: 860px;
}

.thumb {
  display: block;
  width: 74px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px solid var(--line);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-doc {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.materials-table td strong {
  display: block;
  font-weight: 600;
}

.materials-table td small {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.kind-image {
  color: #a9c8ff;
  border-color: rgba(147, 178, 255, 0.3);
}

.kind-video {
  color: #ffc59e;
  border-color: rgba(255, 160, 106, 0.3);
}

.kind-document {
  color: var(--success);
  border-color: rgba(121, 224, 164, 0.3);
}

/* Anfragen */

.inquiry-list {
  display: grid;
  gap: 12px;
}

.inquiry-card {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.inquiry-card.is-done {
  opacity: 0.62;
}

.inquiry-main {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

.inquiry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.inquiry-card h3 {
  font-size: 1.02rem;
}

.inquiry-contact {
  font-size: 0.86rem;
  color: var(--muted);
}

.inquiry-contact a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.inquiry-contact a:hover {
  border-color: var(--accent-line);
}

.inquiry-message {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  white-space: pre-wrap;
  color: #c8ccd2;
}

.inquiry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-panel {
  margin-bottom: 20px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-row > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.profile-row strong {
  font-size: 1rem;
}

.profile-row span.muted {
  font-size: 0.84rem;
}

/* Fehlerseite */

.error-page {
  min-height: 52vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
}

.error-code {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.error-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 22ch;
}

.error-page .hero-cta {
  margin-top: 8px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  width: min(1200px, calc(100% - clamp(36px, 8vw, 96px)));
  margin: 0 auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.footer-sep {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .feature-grid,
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 170px;
  }

  .upload-form {
    grid-template-columns: 1fr 1fr;
  }

  .upload-form .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .nav,
  .topbar-actions .role-badge {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .topbar {
    gap: 16px;
  }

  .hero,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 160px);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-head {
    align-items: flex-start;
  }

  .feature-grid,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .gallery-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-list > div:nth-child(odd) {
    padding-right: 0;
  }

  .document-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .document-info {
    flex: 1 1 60%;
  }

  .document-actions {
    width: 100%;
    padding-left: 72px;
  }

  .upload-form {
    grid-template-columns: 1fr;
  }

  .upload-form .btn {
    width: 100%;
  }

  .inquiry-card {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-sep {
    display: none;
  }

  .flash-stack {
    top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
