/*
 * Placeholder site for eurokurier-su.de.
 * A calling card: warm white ground, one large calm area in a warm signal
 * red, dark type. System fonts only, nothing is loaded from other servers.
 */

:root {
  /* Always light, whatever the device prefers (decision of 2026-11-26). */
  color-scheme: light;
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #5e544d;
  --line: #e4d9cc;
  --on-ink: #fff6ec;
  --on-ink-soft: #d8cdc3;

  /*
   * The signal colour. To switch to a company colour, change --signal here
   * and adjust the tones derived from it in the lines below; nothing else in
   * this file names a colour of this family. The tests recompute the contrast
   * of every pair (--on-signal on --signal must stay at 4.5 or more).
   * favicon.svg cannot read these variables and repeats the values.
   */
  --signal: #c63f17;
  --signal-deep: #b23610; /* the large shape on the signal area, a shade darker */
  --signal-tint: #fbe9df; /* the round ground behind the icons, very light */
  --on-signal: #fff6ec; /* text and lines on the signal area */
  --parcel-top: #fff6ec; /* the three faces of the parcel, light to shaded */
  --parcel-left: #f6dcc8;
  --parcel-right: #e9c0a3;
  --wood-top: #e8b78c; /* the three faces of the pallet's wood, light to shaded */
  --wood-left: #d49b6c;
  --wood-right: #b67b4f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

/* --- layout: one column on phones, two halves from 900 px -------------------- */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.stage {
  position: relative;
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 16px 0;
  padding: 14px 16px 12px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--signal);
}

/* One large quiet shape, tone on tone. */
.stage::before {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -70%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal-deep);
}

.content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 18px 16px 20px;
}

/* --- type ------------------------------------------------------------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: none;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--signal);
}

h1 {
  margin-top: 4px;
  font-size: clamp(2.1rem, 10.6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The section is introduced by the sentence above it; the heading stays for
   screen readers and the document outline. */
h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- contact cards ---------------------------------------------------------- */

.contact-section {
  position: relative;
  margin-top: 16px;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  list-style: none;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 60px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.icon {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--signal-tint);
  color: var(--signal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label {
  align-self: end;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.contact a {
  align-self: start;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* The whole card is the tap target. */
.contact a::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
}

.contact a:focus-visible {
  outline: none;
}

.contact a:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.contact:hover {
  border-color: var(--ink);
}

/* Phone is the main action. */
.contact-main {
  min-height: 68px;
  border-color: var(--ink);
  background: var(--ink);
}

.contact-main .icon {
  background: var(--signal);
  color: var(--on-signal);
}

.contact-main .label {
  color: var(--on-ink-soft);
}

.contact-main a {
  color: var(--on-ink);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

/* --- drawing: a delivery by van and the three stations ------------------------
 * One isometric drawing, light from the upper left: top faces lightest, the
 * left faces in the middle, the right faces shaded. The van, the pallet and
 * the parcel share the faces' tones; only the wood of the pallet adds three.
 */

.scene,
.track {
  position: relative;
  display: block;
}

.scene {
  height: 84px;
  width: auto;
  aspect-ratio: 240 / 232;
}

.track {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.shadow {
  fill: var(--ink);
  opacity: 0.2;
}

/* The still picture, used without movement: the van stands with its door
   open, the pallet in front of it, the note signed. The movement block at the
   end of this file takes every part from here through the story. */
.door {
  transform: translate(-35.5px, -17.5px);
}

.load-parcel {
  opacity: 0;
}

.door-gap {
  fill: var(--ink);
  opacity: 0.85;
}

.door-panel {
  fill: var(--parcel-left);
  stroke: var(--parcel-right);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.door-handle,
.spokes {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.spokes {
  stroke-width: 1.6;
}

.note-sheet {
  fill: var(--surface);
}

.note-lines,
.note-sign {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-lines {
  stroke: var(--line);
  stroke-width: 2.5;
}

.note-sign {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.wood-top {
  fill: var(--wood-top);
}

.wood-left {
  fill: var(--wood-left);
}

.wood-right {
  fill: var(--wood-right);
}

.pallet-gap,
.van-dark,
.wheel circle {
  fill: var(--ink);
}

.pallet-gap {
  opacity: 0.6;
}

.load-seam,
.van-seam {
  fill: none;
  stroke: var(--wood-left);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.van-seam {
  stroke: var(--parcel-right);
}

/* The stretch film: a thin bright sheet with a few glints. */
.film {
  fill: var(--surface);
  opacity: 0.3;
}

.film-shine,
.film-edge {
  fill: none;
  stroke: var(--surface);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.film-edge {
  stroke-width: 1;
  opacity: 0.7;
}

.van-glass {
  fill: var(--ink);
  opacity: 0.82;
}

.van-lamp {
  fill: var(--on-ink);
}

.wheel .wheel-arch {
  opacity: 0.55;
}

.wheel .wheel-hub {
  fill: var(--on-ink-soft);
}

.parcel-top {
  fill: var(--parcel-top);
}

.parcel-left {
  fill: var(--parcel-left);
}

.parcel-right {
  fill: var(--parcel-right);
}

.parcel-tape {
  fill: var(--signal);
}

.parcel-mark {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.badge-disc {
  fill: var(--ink);
  stroke: var(--signal);
  stroke-width: 3;
}

.badge-tick {
  fill: none;
  stroke: var(--on-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.track-rail,
.track-run {
  fill: none;
  stroke: var(--on-signal);
  stroke-width: 4;
}

.track-rail {
  opacity: 0.35;
}

.track-run {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.track-ring {
  fill: var(--signal);
  stroke: var(--on-signal);
  stroke-width: 3;
}

.node circle {
  fill: var(--on-signal);
}

.node path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-label {
  fill: var(--on-signal);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

/* --- short phones: the stations alone say it --------------------------------- */

@media (max-height: 660px) and (max-width: 899px) {
  .scene {
  display: none;
  }
}

/* --- taller phones: room for a larger scene, contacts stay on the first screen */

@media (max-width: 599px) and (min-height: 661px) {
  .scene {
    height: 112px;
  }
}

@media (max-width: 599px) and (min-height: 780px) {
  .scene {
    height: 140px;
  }
}

/* --- tablets: a little more air ---------------------------------------------- */

@media (min-width: 600px) and (max-width: 899px) {
  .stage {
    margin: 16px 16px 0;
    padding: 28px 24px 24px;
    gap: 14px;
  }

  .scene {
  height: 150px;
  }

  .track {
    max-width: 420px;
  }

  .content {
    padding: 36px 24px 40px;
  }
}

/* --- desktop: type on the left, the signal area on the right ----------------- */

@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .content {
    align-self: center;
    max-width: none;
    margin: 0;
    padding: 48px clamp(40px, 5vw, 88px) 48px clamp(48px, 7.5vw, 128px);
  }

  .stage {
    order: 0;
    gap: clamp(32px, 6vh, 64px);
    margin: 20px 20px 20px 0;
    padding: 48px 40px;
    border-radius: 36px;
  }

  .stage::before {
    right: -38%;
    bottom: -22%;
    width: 120%;
  }

  .scene {
  width: min(58%, 320px);
    height: auto;
  }

  .track {
    max-width: 440px;
  }

  .kicker {
    font-size: 0.9375rem;
  }

  .kicker::before {
    width: 36px;
  }

  h1 {
    margin-top: 14px;
    font-size: clamp(3.25rem, 5.7vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .lead {
    margin-top: 28px;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    line-height: 1.25;
  }

  .sub {
    margin-top: 10px;
    font-size: 1.125rem;
  }

  .contact-section {
    max-width: 620px;
    margin-top: 44px;
  }

  .contacts {
    /* The mail address is the longest value; its card gets the wider column. */
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
  }

  .contact {
    min-height: 80px;
    padding: 14px 20px;
    column-gap: 16px;
    border-radius: 20px;
  }

  .contact a::after {
    border-radius: 20px;
  }

  .icon {
    width: 46px;
    height: 46px;
    padding: 11px;
  }

  .label {
    font-size: 0.875rem;
  }

  .contact a {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .contact-main {
    grid-column: 1 / -1;
    min-height: 104px;
    padding: 20px 24px;
    column-gap: 20px;
  }

  .contact-main .icon {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  .contact-main .label {
    font-size: 0.9375rem;
  }

  .contact-main a {
    font-size: 2.125rem;
    letter-spacing: -0.02em;
  }
}

/* --- narrow desktops and tablets held sideways: one contact per row ----------- */

/* Below this width the left half is too narrow for the mail address next to
   the mobile number; stacked cards keep every number on one line. */
@media (min-width: 900px) and (max-width: 1279px) {
  .contacts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- phones held sideways: text and contacts beside a slim signal strip ------- */

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1023px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.34fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .stage {
    order: 0;
    margin: 12px 12px 12px 0;
    padding: 12px;
  }

  .scene {
  display: none;
  }

  .content {
    align-self: center;
    max-width: none;
    padding: 12px 16px 12px max(16px, env(safe-area-inset-left));
  }

  .lead {
    margin-top: 4px;
  }

  .contact-section {
    margin-top: 10px;
  }

  /* One compact row per contact: every number stays on one line. */
  .contacts {
    gap: 6px;
  }

  .contact {
    min-height: 44px;
    padding: 5px 12px;
  }

  .icon {
    width: 32px;
    height: 32px;
    padding: 7px;
  }

  .contact a,
  .contact-main a {
    font-size: 1rem;
    white-space: nowrap;
  }

  .label {
    font-size: 0.75rem;
  }
}

/* --- very large screens: let the type grow with the room ---------------------- */

@media (min-width: 1800px) {
  .kicker {
    font-size: 1.0625rem;
  }

  .content {
    justify-self: center;
    width: min(100%, 1100px);
  }

  h1 {
    font-size: clamp(5.5rem, 5vw, 8rem);
  }

  .lead {
    font-size: clamp(1.875rem, 1.6vw, 2.5rem);
  }

  .sub,
  .contact a {
    font-size: 1.375rem;
  }

  .label {
    font-size: 1.0625rem;
  }

  .contact-main a {
    font-size: 2.75rem;
  }

  .track {
    max-width: 640px;
  }

  .scene {
  width: min(58%, 440px);
  }
}

/* --- movement ----------------------------------------------------------------
 * One delivery takes 12 s and tells the three stations as a short story:
 *   0.0–3.6 s  pickup: the sliding door opens, the load goes in, door closes
 *   3.6–6.2 s  on the way: the van drives off, comes back into view, stops
 *   6.2–10.3 s delivered: door opens, the load comes out, the delivery note
 *              is signed and gets its tick
 *   then everything rests, fades and the next delivery starts.
 * The stations on the track light up with their scene. The load alternates
 * per delivery, pallet first, so the whole loop lasts 24 s. Without this
 * block the drawing stands still: the van with its door open and the pallet
 * in front of it. Only transform, opacity and stroke-dashoffset move.
 */

@media (prefers-reduced-motion: no-preference) {
  .cycle,
  .track-run,
  .node,
  .van,
  .door,
  .spokes,
  .cargo,
  .note,
  .note-sign,
  .badge,
  .badge-tick {
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  }

  .load {
    animation-duration: 24s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }

  .node,
  .badge {
    transform-box: fill-box;
    transform-origin: center;
  }

  .cycle {
    animation-name: cycle;
  }

  .track-run {
    animation-name: run;
  }

  .node-1 {
    animation-name: station-1;
  }

  .node-2 {
    animation-name: station-2;
  }

  .node-3 {
    animation-name: station-3;
  }

  .van {
    animation-name: drive;
  }

  .door {
    animation-name: door;
  }

  .spokes {
    animation-name: spin;
  }

  .cargo {
    animation-name: cargo;
  }

  .load-pallet {
    animation-name: first-load;
  }

  .load-parcel {
    animation-name: second-load;
  }

  .note {
    animation-name: note;
  }

  .note-sign {
    animation-name: sign;
  }

  .badge {
    animation-name: badge;
  }

  .badge-tick {
    animation-name: tick;
  }

  .contact {
    transition: border-color 0.2s ease;
  }
}

/* 1 s is 8.33 % of a delivery. */
@keyframes cycle {
  0% {
    opacity: 0;
  }
  4%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes door {
  0%,
  5% {
    transform: translate(0, 0);
  }
  11.7%,
  23.3% {
    transform: translate(-35.5px, -17.5px);
  }
  29.2%,
  51.7% {
    transform: translate(0, 0);
  }
  58.3%,
  100% {
    transform: translate(-35.5px, -17.5px);
  }
}

/* The load stands in front of the door and slides in, later out again. */
@keyframes cargo {
  0%,
  11.7% {
    opacity: 1;
    transform: translate(0, 0);
  }
  16% {
    opacity: 1;
  }
  21.7%,
  58.3% {
    opacity: 0;
    transform: translate(26px, -25px);
  }
  61% {
    opacity: 1;
  }
  68.3%,
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Off towards the lower right, back in from the upper left. */
@keyframes drive {
  0%,
  30% {
    opacity: 1;
    transform: translate(0, 0);
  }
  34% {
    opacity: 1;
  }
  40% {
    opacity: 0;
    transform: translate(38px, 22px);
  }
  40.1% {
    opacity: 0;
    transform: translate(-38px, -22px);
  }
  46% {
    opacity: 1;
  }
  51.7%,
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* The spokes have a quarter-turn symmetry, so 540 degrees look like 0. */
@keyframes spin {
  0%,
  30% {
    transform: rotate(0deg);
  }
  40%,
  40.1% {
    transform: rotate(270deg);
  }
  51.7%,
  100% {
    transform: rotate(540deg);
  }
}

@keyframes first-load {
  0%,
  49.9% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes second-load {
  0%,
  49.9% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

@keyframes note {
  0%,
  70% {
    opacity: 0;
    transform: translate(0, 6px);
  }
  75%,
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes sign {
  0%,
  75% {
    stroke-dashoffset: 1;
  }
  81.7%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes badge {
  0%,
  80% {
    opacity: 0;
    transform: scale(0.4);
  }
  85%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tick {
  0%,
  83% {
    stroke-dashoffset: 1;
  }
  89%,
  100% {
    stroke-dashoffset: 0;
  }
}

/* The track: pickup from the start, on the way as the van leaves, delivered
   as it stops again. */
@keyframes run {
  0%,
  29% {
    stroke-dashoffset: 100;
  }
  35%,
  40% {
    stroke-dashoffset: 50;
  }
  51%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes station-1 {
  0%,
  2% {
    opacity: 0;
    transform: scale(0.4);
  }
  6%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes station-2 {
  0%,
  32% {
    opacity: 0;
    transform: scale(0.4);
  }
  37%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes station-3 {
  0%,
  49% {
    opacity: 0;
    transform: scale(0.4);
  }
  54%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Keeps compound words such as "E-Mail" on one line. */
.keep {
  white-space: nowrap;
}
