/* gepost – öffentliche Website
   Konzept: ruhige, helle Fläche; eine Akzentfarbe (gpost-Blau) für alles Klickbare;
   warme Neutraltöne; Überschriften in Plus Jakarta Sans, Text in Inter; Karten-Optik nur für den Paketschein. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #1d2f40;
  --text-2: #4c5966;
  --muted: #747b82;
  --bg: #ffffff;
  --bg-warm: #f8f5f1;
  --line: #e7e2db;
  --line-strong: #d3ccc2;
  --accent: #0f78b4;
  --accent-hover: #0b6399;
  --accent-soft: #eaf4fa;
  --ok: #1f7a52;
  --ok-soft: #e8f4ee;
  --warn: #8a5a00;
  --warn-soft: #fbf1df;
  --danger: #b5412c;
  --danger-soft: #fbeee9;

  --font-head: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --t-3xl: clamp(2.1rem, 4.2vw, 3rem);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(29, 47, 64, .05), 0 12px 32px -12px rgba(29, 47, 64, .16);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--t-base); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--t-md); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(15, 120, 180, .35); outline-offset: 2px; border-radius: 6px; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .container { padding-left: 32px; padding-right: 32px; } }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 7vw, 88px); }
.section--warm { background: var(--bg-warm); }
.section-head { max-width: 680px; margin-bottom: 36px; display: grid; gap: 12px; }
.lead { font-size: var(--t-md); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.stack { display: grid; gap: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Kopfzeile */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--text); }
.logo__mark { width: 32px; height: 32px; }
.logo__ge { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--text); background: var(--bg-warm); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.nav-account svg { width: 18px; height: 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; cursor: pointer; color: var(--text); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: var(--t-base); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #12202d; color: #fff; }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-2); color: var(--text); }
.btn--link { background: none; border: 0; color: var(--text-2); padding-inline: 6px; }
.btn--link:hover { color: var(--text); text-decoration: underline; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #973523; color: #fff; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: var(--t-md); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: var(--t-sm); border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Einstieg: Bild mit fester Größe (richtet sich nur nach dem Bildschirm, nicht nach dem Formular),
   Menü liegt oben auf dem Bild, Paketschein mittig. */
.hero { position: relative; overflow: hidden; background: #163b5a; padding-top: clamp(300px, 54svh, 560px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__media { position: absolute; top: 0; left: 0; right: 0; height: max(100svh, 760px); background: #163b5a; }
.hero__media img, .hero__media svg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 40, 62, .72) 0%, rgba(14, 40, 62, .28) 26%, rgba(14, 40, 62, .3) 72%, #163b5a 100%); }
.hero__center { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero__form { width: 100%; max-width: 420px; scroll-margin-top: 16px; }
@media (max-width: 920px) { .hero { padding-top: clamp(260px, 46svh, 440px); } }

/* Kopfzeile auf dem Bild (nur Startseite) */
.site-header--overlay { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.site-header--overlay .site-header__inner { align-items: flex-start; padding-block: 18px; }
.site-header__brand { display: grid; gap: 6px; }
.site-header__partner { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.site-header__partner svg { width: 16px; height: 16px; color: #a9dcf5; flex: none; }
.site-header--overlay .logo, .site-header--overlay .logo:hover { color: #fff; }
.site-header--overlay .logo__ge { color: #a9dcf5; }
.site-header--overlay .nav { gap: 2px; align-items: center; }
.site-header--overlay .nav a { color: #fff; font-size: var(--t-sm); padding: 6px 10px; border-radius: 999px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.site-header--overlay .nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header--overlay .nav .nav-account { margin-left: 8px; background: #fff; color: var(--text); font-weight: 600; padding: 7px 14px; text-shadow: none; }
.site-header--overlay .nav .nav-account:hover { background: var(--accent-soft); color: var(--text); }
.site-header--overlay .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); }
@media (max-width: 1180px) {
  .site-header--overlay .nav { top: calc(100% - 6px); left: 16px; right: 16px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header--overlay .nav a { color: var(--text); font-size: var(--t-base); text-shadow: none; border-radius: var(--r-sm); }
  .site-header--overlay .nav a:hover { background: var(--bg-warm); color: var(--text); }
  .site-header--overlay .nav .nav-account { margin: 6px 0 0; background: var(--accent); color: #fff; justify-content: center; }
  .site-header--overlay .nav .nav-account:hover { background: var(--accent-hover); color: #fff; }
}

/* Paketschein (einzige Karte auf der Startseite) */
.lf { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.lf__head { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.lf__title { font-size: var(--t-lg); }
.lf__sub { color: var(--muted); font-size: var(--t-sm); }
.lf-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lf-steps li > span, .lf-steps li > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; background: none; border: 0; font: inherit; text-align: left; color: var(--muted); }
.lf-steps li > button { cursor: pointer; color: var(--text-2); }
.lf-steps li > button:hover .lf-steps__label { text-decoration: underline; }
.lf-steps__dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 600; flex: none; background: #fff; }
.lf-steps__dot svg { width: 14px; height: 14px; }
.lf-steps__label { font-size: var(--t-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-steps .is-done .lf-steps__dot { border-color: var(--accent); color: var(--accent); }
.lf-steps .is-current .lf-steps__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.lf-steps .is-current .lf-steps__label { color: var(--text); font-weight: 600; }
@media (max-width: 480px) { .lf-steps .lf-steps__label { display: none; } .lf-steps .is-current .lf-steps__label { display: inline; } }
.lf__body { padding: 22px 24px 24px; display: grid; gap: 18px; }
.lf__intro { display: grid; gap: 2px; }
.lf__intro h3 { font-size: var(--t-md); }
.lf__intro p { color: var(--muted); font-size: var(--t-sm); }
.lf-fields { display: grid; gap: 14px; }
.lf-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-row--zip { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
.lf-row--weight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lf-row--contents { grid-template-columns: minmax(0, 1fr) minmax(0, 150px); align-items: start; }
@media (max-width: 560px) {
  .lf-row, .lf-row--contents { grid-template-columns: minmax(0, 1fr); }
  .lf-row--zip { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); }
  .lf-row--weight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lf-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.lf-choice legend { font-weight: 600; font-size: var(--t-sm); padding: 0; margin-bottom: 2px; }
.lf-options { display: grid; gap: 8px; }
.lf-options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .lf-options--two { grid-template-columns: minmax(0, 1fr); } }
.lf-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.lf-option:hover { border-color: var(--text-2); }
.lf-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.lf-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.lf-option__body { flex: 1; min-width: 0; display: grid; }
.lf-option__name { font-weight: 600; }
.lf-option__class { font-weight: 400; color: var(--muted); font-size: var(--t-sm); margin-left: 4px; }
.lf-option__meta { color: var(--muted); font-size: var(--t-sm); }
.lf-option__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lf-option.is-unfit { opacity: .55; }
.lf-details { font-size: var(--t-sm); color: var(--text-2); }
.lf-details summary { cursor: pointer; font-weight: 600; color: var(--text); }
.lf-details p { margin-top: 6px; }
.lf-price { background: var(--bg-warm); border-radius: var(--r); padding: 16px; }
.lf-price__hint { color: var(--muted); font-size: var(--t-sm); }
.lf-price__error { display: flex; gap: 8px; color: var(--danger); font-weight: 500; font-size: var(--t-sm); }
.lf-price__error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lf-lines { margin: 0 0 10px; display: grid; gap: 4px; font-size: var(--t-sm); color: var(--text-2); }
.lf-lines div { display: flex; justify-content: space-between; gap: 12px; }
.lf-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.lf-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-strong); }
.lf-total span { font-size: var(--t-sm); color: var(--text-2); }
.lf-total strong { font-family: var(--font-head); font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.lf-summary { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.lf-summary > div { padding: 12px 14px; display: grid; gap: 2px; }
.lf-summary > div + div { border-top: 1px solid var(--line); }
.lf-summary dt { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 600; }
.lf-summary dt button { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--accent); cursor: pointer; }
.lf-summary dd { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.lf__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.lf__actions .btn--primary { min-width: 180px; }
@media (max-width: 480px) { .lf__actions .btn--primary { flex: 1; min-width: 0; } }
.lf__note { font-size: var(--t-sm); color: var(--muted); text-align: right; }

/* Kompakte Darstellung des Paketscheins auf dem Bild (etwa 55 % der bisherigen Größe) */
.hero__form .lf__head { padding: 14px 16px 10px; gap: 2px; }
.hero__form .lf__title { font-size: 1.05rem; }
.hero__form .lf__sub { font-size: .75rem; }
.hero__form .lf-steps { margin-top: 10px; gap: 6px; }
.hero__form .lf-steps__dot { width: 20px; height: 20px; font-size: .7rem; border-width: 1.5px; }
.hero__form .lf-steps__dot svg { width: 11px; height: 11px; }
.hero__form .lf-steps__label { font-size: .72rem; }
.hero__form .lf__body { padding: 12px 16px 16px; gap: 12px; }
.hero__form .lf__intro h3 { font-size: .9rem; }
.hero__form .lf__intro p { font-size: .75rem; }
.hero__form .lf-fields { gap: 10px; }
.hero__form .lf-row { gap: 10px; }
.hero__form .lf-row--zip { grid-template-columns: minmax(0, 90px) minmax(0, 1fr); }
.hero__form .lf-row--weight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__form .lf-row--contents { grid-template-columns: minmax(0, 1fr); }
.hero__form .field { gap: 3px; }
.hero__form .field__label { font-size: .75rem; }
.hero__form .field__hint { font-size: .7rem; }
.hero__form .field__error { font-size: .72rem; }
.hero__form .field__error svg { width: 13px; height: 13px; margin-top: 1px; }
.hero__form .input { min-height: 36px; padding: 6px 10px; font-size: .875rem; border-radius: 7px; }
.hero__form .input-addon { padding: 0 8px; font-size: .75rem; }
.hero__form .input-addon--before { border-radius: 7px 0 0 7px; }
.hero__form .input-addon--after { border-radius: 0 7px 7px 0; }
.hero__form .input-wrap .input-addon--before + .input { border-radius: 0 7px 7px 0; }
.hero__form .input-wrap .input:has(+ .input-addon--after) { border-radius: 7px 0 0 7px; }
.hero__form .lf-choice legend { font-size: .75rem; }
.hero__form .lf-options { gap: 6px; }
.hero__form .lf-option { padding: 7px 10px; gap: 8px; border-radius: 9px; }
.hero__form .lf-option__name, .hero__form .lf-option__price { font-size: .8rem; }
.hero__form .lf-option__meta, .hero__form .lf-option__class { font-size: .7rem; }
.hero__form .lf-option input { width: 15px; height: 15px; }
.hero__form .lf-details { font-size: .75rem; }
.hero__form .lf-price { padding: 10px 12px; border-radius: 9px; }
.hero__form .lf-price__hint, .hero__form .lf-price__error, .hero__form .lf-lines { font-size: .75rem; }
.hero__form .lf-price__note { font-size: .7rem; margin-top: 6px; }
.hero__form .lf-total { padding-top: 6px; }
.hero__form .lf-total span { font-size: .75rem; }
.hero__form .lf-total strong { font-size: 1.2rem; }
.hero__form .lf-summary > div { padding: 8px 10px; }
.hero__form .lf-summary dt, .hero__form .lf-summary dd { font-size: .75rem; }
.hero__form .notice { padding: 8px 10px; font-size: .75rem; gap: 8px; }
.hero__form .notice svg { width: 15px; height: 15px; margin-top: 1px; }
.hero__form .check { font-size: .75rem; gap: 8px; }
.hero__form .check input { width: 15px; height: 15px; margin-top: 1px; }
.hero__form .lf__note { font-size: .7rem; }
.hero__form .lf__actions { padding-top: 2px; }
.hero__form .lf__actions .btn { min-height: 36px; padding: 6px 14px; font-size: .85rem; border-radius: 9px; }
.hero__form .lf__actions .btn--primary { min-width: 120px; }
.hero__form .lf__actions .btn svg { width: 15px; height: 15px; }
/* iPhones zoomen in Felder unter 16 px hinein – auf kleinen Bildschirmen daher 16 px */
@media (max-width: 600px) { .hero__form .input { font-size: 16px; min-height: 40px; } }

/* Formularfelder */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__label { font-weight: 600; font-size: var(--t-sm); }
.field__label .opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field__error svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.input-wrap { display: flex; align-items: stretch; }
.input, .textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.textarea { min-height: 90px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #a5a29d; }
.input:hover { border-color: #b9b1a6; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 120, 180, .14); }
.input:disabled { background: var(--bg-warm); color: var(--muted); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.input-addon { display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); background: var(--bg-warm); border: 1px solid var(--line-strong); font-size: var(--t-sm); white-space: nowrap; }
.input-addon--before { border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-addon--after { border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-wrap .input-addon--before + .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-wrap .input:has(+ .input-addon--after) { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.field.has-error .input-addon { border-color: var(--danger); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-zip { display: grid; gap: 14px; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
@media (max-width: 560px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: var(--t-sm); color: var(--text-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check.has-error span { color: var(--danger); }
.inline-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: var(--t-sm); color: var(--text-2); }
.inline-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Hinweise */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: var(--t-sm); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice--info { background: var(--accent-soft); color: #164b6e; }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--danger { background: var(--danger-soft); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow); transition: opacity .3s, transform .3s; border-radius: var(--r); }
.toast.is-hidden { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }

/* Partner */
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .partners { grid-template-columns: minmax(0, 1fr); } }
.partner { padding: 24px 24px 8px 0; display: grid; gap: 8px; align-content: start; }
@media (min-width: 801px) { .partner + .partner { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (max-width: 800px) { .partner + .partner { border-top: 1px solid var(--line); } }
.partner__logo { height: 48px; display: flex; align-items: center; }
.partner__logo img { max-height: 48px; width: auto; max-width: min(220px, 100%); object-fit: contain; }
.partner__logo span { font-family: var(--font-head); font-weight: 700; font-size: var(--t-lg); }
.partner__label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 600; color: var(--accent); }
.partner__label svg { width: 16px; height: 16px; }
.partner__text { color: var(--text-2); font-size: var(--t-sm); }

/* Ablauf (echte Reihenfolge, daher nummeriert) */
.process { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }
.process li { counter-increment: step; display: grid; gap: 6px; align-content: start; }
.process li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; margin-bottom: 6px; background: #fff; }
.process p { color: var(--text-2); }

/* Warum gepost */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 900px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); } }
.reason { display: grid; gap: 8px; align-content: start; }
.reason svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.reason p { color: var(--text-2); }

/* Häufige Fragen */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding-bottom: 18px; color: var(--text-2); max-width: 68ch; }

/* Kontakt */
.closing { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.closing > div { display: grid; gap: 10px; }
.contact { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.contact li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.contact svg { width: 18px; height: 18px; color: var(--accent); }
.contact a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact a:hover { color: var(--accent); }

/* Fußzeile */
.site-footer { background: var(--bg-warm); border-top: 1px solid var(--line); padding-block: 48px 24px; font-size: var(--t-sm); color: var(--text-2); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__about { margin-top: 12px; max-width: 340px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-head); font-size: var(--t-base); color: var(--text); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); }

/* Gemeinsame Bausteine für Unterseiten */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.card--pad { padding: clamp(20px, 3vw, 28px); }
.card--lg { box-shadow: var(--shadow); }
.section-title { font-size: var(--t-md); margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge--neutral { background: #f0eeea; color: var(--text-2); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--info { background: var(--accent-soft); color: #164b6e; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.tag { display: inline-flex; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: #164b6e; }

/* Ergebnis- und Statusseiten */
.result { padding-block: clamp(32px, 6vw, 64px) 72px; background: var(--bg-warm); min-height: 60vh; }
.result__card { max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.result__card h1 { font-size: var(--t-2xl); }
.result__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.result__icon svg { width: 28px; height: 28px; }
.result__icon--ok { background: var(--ok-soft); color: var(--ok); }
.result__icon--warn { background: var(--warn-soft); color: var(--warn); }
.order-number { display: inline-grid; gap: 2px; justify-self: start; background: var(--bg-warm); border-radius: var(--r); padding: 10px 16px; }
.order-number span { font-size: .8125rem; color: var(--muted); }
.order-number strong { font-family: var(--font-head); font-size: var(--t-lg); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.next-steps { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; margin-top: 8px; align-items: start; }
@media (max-width: 760px) { .next-steps { grid-template-columns: minmax(0, 1fr); } }
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 20px; }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.numbered > li::before { content: counter(n); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; }
.numbered h3 { font-size: var(--t-base); margin: 5px 0 4px; }
.numbered p { margin-bottom: 8px; color: var(--text-2); }
.qr-box { text-align: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: #fff; display: grid; gap: 6px; justify-items: center; }
.qr-box img { width: 190px; height: 190px; image-rendering: pixelated; }
.address-box { background: var(--bg-warm); border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 14px 16px; font-weight: 600; line-height: 1.5; position: relative; }
.address-box .copy { position: absolute; top: 10px; right: 10px; }
.signup-cta { padding: 18px 20px; border-radius: var(--r); background: var(--accent-soft); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.signup-cta p { color: var(--text-2); }

/* Sendungsverfolgung */
.timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.timeline li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 20px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.is-done:not(:last-child)::after { background: var(--accent); }
.timeline__dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: var(--muted); }
.timeline__dot svg { width: 15px; height: 15px; }
.timeline li.is-done .timeline__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline li.is-current .timeline__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline strong { display: block; margin-top: 3px; font-weight: 600; }
.timeline span { font-size: var(--t-sm); color: var(--muted); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row .input { flex: 1 1 220px; text-transform: uppercase; letter-spacing: .04em; }

/* Anmeldung & Kundenkonto */
.auth { padding-block: clamp(32px, 6vw, 64px) 72px; background: var(--bg-warm); min-height: 60vh; }
.auth-card { max-width: 480px; margin: 0 auto; padding: clamp(24px, 4vw, 36px); }
.auth-card h1 { font-size: var(--t-2xl); margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--text-2); font-size: var(--t-sm); }
.auth-benefits { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.auth-benefits li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: var(--t-sm); }
.auth-benefits svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.account { padding-block: clamp(24px, 4vw, 48px) 72px; background: var(--bg-warm); min-height: 60vh; }
.account__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.account__head h1 { font-size: var(--t-2xl); }
.account-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.account-tabs a, .account-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font: inherit; font-weight: 500; color: var(--text-2); text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.account-tabs a:hover, .account-tabs button:hover { color: var(--text); }
.account-tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.account-tabs svg { width: 18px; height: 18px; }
.account-tabs form { margin-left: auto; }
.shipments { display: grid; gap: 10px; margin-bottom: 32px; }
.shipment { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
.shipment:hover { border-color: var(--line-strong); color: inherit; }
.shipment__num { font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; }
.shipment__meta { color: var(--muted); font-size: var(--t-sm); }
.shipment__progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; max-width: 240px; }
.shipment__progress span { display: block; height: 100%; background: var(--accent); }
.shipment__side { display: grid; gap: 6px; justify-items: end; }
.shipment__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.shipment--muted { opacity: .7; }
@media (max-width: 720px) { .shipment { grid-template-columns: minmax(0, 1fr); gap: 8px; } .shipment__side { justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; } }
.empty { text-align: center; padding: clamp(32px, 6vw, 56px) 24px; display: grid; gap: 12px; justify-items: center; }
.empty > svg { width: 40px; height: 40px; color: var(--muted); }
.empty p { color: var(--text-2); max-width: 440px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.detail-grid > div, .detail-grid > aside { display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: var(--t-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }
.doc-links { display: grid; gap: 10px; }
.danger-zone { border-color: #eed3cb; }

/* Rechtstexte */
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h1 { font-size: var(--t-2xl); }
.prose h2 { font-size: var(--t-lg); margin-top: 18px; }
.prose h3 { font-size: var(--t-md); margin-top: 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.lf-price__note { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

/* Überweisungsdaten */
.transfer { margin: 0; border: 1px solid var(--line); border-radius: var(--r); }
.transfer > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; align-items: center; }
.transfer > div + div { border-top: 1px solid var(--line); }
.transfer dt { color: var(--muted); font-size: var(--t-sm); }
.transfer dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.transfer__key { background: var(--accent-soft); }
@media (max-width: 520px) { .transfer > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Kopfzeile ohne Zeilenumbrüche: Menüpunkte bleiben einzeilig (passt das Menü nicht, gibt es unter 1180 px den Menü-Button),
   die Partnerzeile steht immer in einer eigenen Zeile unter Logo und Menü. Auf schmalen Bildschirmen wird ihre Schrift so klein,
   dass der Text passt: Breite pro Zeichen je Schrift (lateinisch 0,52, georgisch 0,63 × Schriftgröße, gemessen mit Reserve). */
.nav a, .nav .btn { white-space: nowrap; }
.site-header--overlay .site-header__inner { flex-wrap: wrap; row-gap: 6px; }
.site-header--overlay .site-header__brand { display: contents; }
.site-header--overlay .site-header__partner { order: 3; flex: 0 0 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: min(.875rem, calc((100vw - 32px - 24px) / (var(--partner-chars, 60) * var(--partner-char-width, 0.52)))); }

/* Sprachumschalter (DE · EN · ქა) in Kopf- und Fußzeile */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.nav .lang-switch { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav .lang-switch a { padding: 6px 8px; font-size: .8rem; font-weight: 600; border-radius: 999px; letter-spacing: .02em; }
.lang-switch a.is-active { background: var(--accent-soft); color: var(--text); }
.site-header--overlay .nav .lang-switch { border-left-color: rgba(255, 255, 255, .35); }
.site-header--overlay .nav .lang-switch a.is-active { background: rgba(255, 255, 255, .22); color: #fff; }
.lang-switch--footer { gap: 14px; flex-wrap: wrap; }
.lang-switch--footer a.is-active { background: none; color: var(--text); font-weight: 700; }
@media (max-width: 1180px) {
  .nav .lang-switch, .site-header--overlay .nav .lang-switch { justify-content: center; gap: 6px; margin: 6px 0 2px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav .lang-switch a { padding: 8px 14px; font-size: .9rem; }
  .site-header--overlay .nav .lang-switch a.is-active { background: var(--accent-soft); color: var(--text); }
}

/* Handy-Feinschliff (S22 & Co., ca. 360 px breit) */
/* Handy und Tablet (Menü als ☰): Kopfzeile als Balken über dem Bild, Bild vollständig (nicht beschnitten)
   und darunter der Paketschein, damit das Formular die Motive im Bild nicht verdeckt. */
@media (max-width: 920px) {
  .site-header--overlay { position: relative; top: 0; background: #163b5a; }
  .site-header--overlay .site-header__inner { padding-block: 12px; }
  .hero { padding-top: 0; padding-bottom: 28px; }
  .hero__media { position: relative; height: auto; }
  .hero__media img { height: auto; object-fit: contain; }
  .hero__media svg { height: auto; aspect-ratio: 16 / 9; }
  .hero__media::after { background: linear-gradient(180deg, rgba(22, 59, 90, 0) 90%, #163b5a 100%); }
  .hero__center { margin-top: 14px; }
  .site-header--overlay .site-header__partner svg { width: 14px; height: 14px; }
}

@media (max-width: 600px) {

  /* Abschnitte etwas dichter */
  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; }
  .lead { font-size: 1.0625rem; }

  /* Unterseiten (Anmelden, Registrieren, Sendungsverfolgung): mehr Breite für Inhalt */
  .auth, .result { padding-block: 16px 40px; }
  .auth .container, .result .container { padding-left: 10px; padding-right: 10px; }
  .auth-card, .result__card { padding: 22px 16px; border-radius: var(--r); }
  .auth-card h1, .result__card h1 { font-size: 1.6rem; }
  .search-row .btn { flex: 1 1 100%; }

  /* Kontakt: Buttons volle Breite */
  .closing { gap: 20px; }
  .closing .btn-row, .closing .btn-row .btn { width: 100%; }

  /* Fußzeile kürzer: Links zweispaltig */
  .site-footer { padding-block: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 24px; }
}

/* Schrittanzeige: auf schmalen Bildschirmen bekommt der aktuelle Schritt den Platz für seine Beschriftung */
@media (max-width: 480px) {
  .lf-steps { display: flex; align-items: center; gap: 8px; }
  .lf-steps li { flex: none; }
  .lf-steps li.is-current { flex: 1 1 auto; min-width: 0; }
}

@media print {
  .site-header, .site-footer, .toast, .btn-row, .address-box .copy, .transfer .btn { display: none !important; }
  .result { background: #fff; padding: 0; }
  .result__card { box-shadow: none; border: 0; }
}
