:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5c6975;
  --line: #dce4ea;
  --paper: #f6f8f9;
  --white: #ffffff;
  --teal: #087f8c;
  --teal-dark: #075e68;
  --gold: #c88b2c;
  --danger: #b54438;
  --shadow: 0 18px 44px rgba(23, 33, 43, 0.1);
  --soft-shadow: 0 8px 24px rgba(23, 33, 43, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.88rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
}

nav a:hover {
  background: #eef8f7;
}

nav a:hover {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #10202b;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 30, 0.9) 0%, rgba(10, 22, 30, 0.72) 42%, rgba(10, 22, 30, 0.15) 100%),
    linear-gradient(0deg, rgba(10, 22, 30, 0.4), rgba(10, 22, 30, 0.08));
}

.hero-content {
  position: relative;
  max-width: 790px;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 72px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #72d7df;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 6vw, 5.65rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
button {
  background: var(--teal);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-strip div {
  min-height: 126px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.status-strip strong,
.status-strip span {
  display: block;
}

.status-strip span,
.section p,
.result-preview span,
.form-note,
.site-footer {
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.two-column,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd8df;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-note {
  margin: 12px 0 18px;
  font-size: 0.92rem;
}

.result-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #eef8f7;
  border: 1px solid #cae6e4;
  border-radius: 8px;
}

.result-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-grid article {
  min-height: 210px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 70px);
  background: #17212b;
  color: var(--white);
}

.split-band p {
  color: rgba(255, 255, 255, 0.72);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.partner-steps {
  display: grid;
  gap: 12px;
}

.partner-steps div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.partner-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e8f4f3;
  color: var(--teal-dark);
}

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

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.94rem;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: clamp(48px, 8vw, 86px) clamp(20px, 5vw, 72px);
  background: #17212b;
  color: var(--white);
}

.legal-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.74);
}

.legal-content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 82px) clamp(20px, 5vw, 42px);
}

.legal-content section {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-box {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.message-box {
  max-width: 680px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-page {
  background:
    linear-gradient(180deg, #ffffff 0, var(--paper) 220px),
    var(--paper);
}

.app-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 58px) 0;
}

.app-shell.wide {
  width: min(1180px, calc(100% - 40px));
}

.app-card,
.table-wrap {
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.app-head h1,
.app-card h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.5vw, 3.9rem);
  line-height: 1;
}

.app-head p,
.app-card > p {
  max-width: 760px;
}

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

.app-form label {
  color: #2d3a45;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 127, 140, 0.18);
  border-color: var(--teal);
}

.device-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-form button {
  grid-column: 1 / -1;
}

.notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.notice-success {
  background: #eef8f7;
  border-color: #cae6e4;
  color: var(--teal-dark);
}

.notice-error {
  background: #fff1ef;
  border-color: #f2c6bf;
  color: var(--danger);
}

.device-table {
  width: 100%;
  border-collapse: collapse;
}

.device-table th,
.device-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.device-table th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.device-table tbody tr:hover td {
  background: #fbfdfd;
}

.device-table td span {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef8f7;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.status-verloren,
.status-gestohlen,
.status-gesperrt {
  background: #fff1ef;
  color: var(--danger);
}

.status-zurückgeführt {
  background: #f7f0df;
  color: #805814;
}

.status-form {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 8px;
}

.status-form select,
.status-form button {
  min-height: 40px;
}

.public-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.action-stack {
  display: grid;
  gap: 8px;
}

.mini-button,
.secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 800;
  box-shadow: none;
}

.mini-button:hover,
.secondary-light:hover {
  background: #eef8f7;
}

.danger-button {
  width: 100%;
  background: var(--danger);
  color: var(--white);
}

.danger-button:hover {
  background: #97362d;
}

.delete-form {
  display: grid;
  gap: 8px;
}

.delete-form input {
  min-height: 40px;
}

.recovery-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f2c6bf;
  border-radius: 8px;
  background: #fff8f6;
}

.pass-document {
  padding: clamp(24px, 5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pass-document::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.pass-watermark {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(760px, 88%);
  transform: translate(-50%, -50%);
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.pass-document > *:not(.pass-watermark) {
  position: relative;
  z-index: 1;
}

.pass-security-head {
  display: grid;
  grid-template-columns: minmax(170px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.pass-security-head img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}

.pass-security-head strong,
.pass-security-head span {
  display: block;
}

.pass-security-head strong {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.pass-security-head span {
  color: var(--muted);
  font-weight: 800;
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.pass-top h1 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

.qr-code {
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.qr-panel {
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pass-grid div {
  min-height: 86px;
  padding: 16px;
  background: var(--white);
}

.pass-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pass-grid strong {
  overflow-wrap: anywhere;
}

.pass-note {
  margin-top: 24px;
  padding: 18px;
  background: #eef8f7;
  border: 1px solid #cae6e4;
  border-radius: 8px;
}

.pass-footer-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.pass-footer-box div {
  padding: 14px;
  background: #fbfdfd;
}

.pass-footer-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.pass-footer-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stats article,
.admin-section {
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.admin-stats article {
  position: relative;
  overflow: hidden;
}

.admin-stats article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--teal);
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-section {
  margin-bottom: 24px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-filter {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.compact-table {
  min-width: 560px;
}

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

.audit-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.audit-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.audit-list p {
  margin: 6px 0 0;
}

.detail-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--white);
}

.public-result h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.detail-list span {
  color: var(--muted);
  font-weight: 800;
}

.detail-list strong {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.credit {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  .status-strip,
  .two-column,
  .contact-section,
  .feature-grid,
  .split-band,
  .audience-list,
  .device-form,
  .pass-grid,
  .pass-footer-box,
  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .pass-top {
    flex-direction: column;
  }

  .pass-security-head {
    grid-template-columns: 1fr;
  }

  .app-head,
  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter,
  .detail-list div {
    grid-template-columns: 1fr;
  }

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

  .device-table {
    min-width: 840px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  .site-header,
  .site-footer,
  .print-actions {
    display: none;
  }

  body,
  .app-page {
    background: #ffffff;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .pass-document {
    min-height: auto;
    padding: 8mm;
    box-shadow: none;
    border: 1px solid #dce4ea;
    border-radius: 0;
    page-break-inside: avoid;
  }

  .pass-document::before {
    height: 5px;
  }

  .pass-watermark {
    width: 92%;
    opacity: 0.045;
    top: 44%;
  }

  .pass-security-head {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 14px;
    padding: 8px 0 12px;
    margin-bottom: 14px;
  }

  .pass-security-head img {
    max-height: 72px;
  }

  .pass-security-head strong {
    margin-bottom: 3px;
    font-size: 18pt;
  }

  .pass-security-head span {
    font-size: 9.5pt;
  }

  .pass-top {
    gap: 14px;
    padding-bottom: 12px;
  }

  .pass-top h1 {
    margin-bottom: 6px;
    font-size: 24pt;
    line-height: 1.05;
  }

  .pass-top p {
    margin-bottom: 4px;
  }

  .qr-code {
    width: 118px;
    height: 118px;
    padding: 5px;
  }

  .qr-panel {
    gap: 4px;
    font-size: 8.5pt;
  }

  .pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }

  .pass-grid div {
    min-height: 42px;
    padding: 7px 9px;
  }

  .pass-grid span {
    margin-bottom: 2px;
    font-size: 7.8pt;
  }

  .pass-grid strong,
  .pass-note,
  .status-pill {
    font-size: 9.5pt;
  }

  .pass-note {
    margin-top: 12px;
    padding: 9px 10px;
  }

  .pass-note p {
    margin-bottom: 0;
  }

  .pass-footer-box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8px;
  }

  .pass-footer-box div {
    padding: 7px 8px;
  }

  .pass-footer-box strong {
    margin-bottom: 2px;
    font-size: 8pt;
  }

  .pass-footer-box p {
    font-size: 7.4pt;
    line-height: 1.25;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 8pt;
  }

  body {
    font-size: 10pt;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 700px;
  }

  .button,
  button {
    width: 100%;
  }

  .feature-grid article {
    min-height: auto;
  }
}
