/* DPD — gemeinsames Design (Landingpage, App-Seite, Admin-Panel) */

:root {
  --red: #dc0032;
  --red-dark: #b00028;
  --red-soft: #fdecf0;
  --ink: #1d1d1b;
  --gray: #6f6f6f;
  --gray-light: #d9d9d9;
  --bg: #f4f4f4;
  --surface: #ffffff;
  --green: #1b8a4b;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(29, 29, 27, 0.08);
  --max: 1080px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------ Kopfzeile ------------------------------ */

.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.logo .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.logo .name-accent {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--red);
}

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

.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 56px 0 68px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  margin: 0 0 28px;
  font-size: 1.06rem;
  opacity: 0.94;
  max-width: 620px;
}

.track-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  flex-wrap: wrap;
}

.track-form input {
  flex: 1 1 300px;
  min-width: 0;
  padding: 15px 16px;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  letter-spacing: 0.05em;
}

.track-form input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.6);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

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

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-light);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* -------------------------------- Karten ------------------------------- */

.section {
  padding: 44px 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.result-card {
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.hidden {
  display: none !important;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray);
  margin: 0 0 6px;
}

.tracking-number {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-soft);
  color: var(--red-dark);
  border-radius: 999px;
  padding: 6px 15px;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-pill.ready {
  background: #e6f4ec;
  color: var(--green);
}

.divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 22px 0;
}

.app-callout {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.app-callout .text {
  flex: 1 1 340px;
}

.app-callout h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.app-callout p {
  margin: 0;
  color: var(--gray);
}

/* ------------------------------- Hinweis ------------------------------- */

.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--red-soft);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.notice .icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--red);
}

.notice strong {
  display: block;
  margin-bottom: 3px;
}

.notice p {
  margin: 0;
  color: #611021;
}

.error-box {
  background: var(--red-soft);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #611021;
  font-weight: 600;
}

/* -------------------------------- Raster ------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.feature .icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

/* -------------------------------- Schritte ----------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.steps h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
}

.steps p {
  margin: 0;
  color: var(--gray);
  font-size: 0.94rem;
}

/* -------------------------------- Fußzeile ----------------------------- */

.site-footer {
  background: var(--ink);
  color: #cfcfcf;
  padding: 34px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 18px;
}

.site-footer .disclaimer {
  opacity: 0.7;
  max-width: 520px;
  margin: 10px 0 0;
  font-size: 0.82rem;
}

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

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

/* -------------------------------- Tabelle ------------------------------ */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--gray-light);
  white-space: nowrap;
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

tbody tr:hover {
  background: #fafafa;
}

.mono {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.ready {
  background: #e6f4ec;
  color: var(--green);
}

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

.stack > * + * {
  margin-top: 18px;
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .result-card {
    margin-top: -40px;
  }
}
