/* ==========================================================================
   Weserhanse Logistik GmbH, main.css
   Fiktives Demo-Projekt. Konzept, Design & Entwicklung: Eric Lubczynski
   ========================================================================== */

/* Hausschrift fuer Headlines: Archivo Narrow, lokal aus ./fonts (kein CDN) */
@font-face {
  font-family: "Archivo Narrow";
  src: url("../fonts/archivo-narrow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("../fonts/archivo-narrow-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #10263f;
  --navy-2: #1d3a5f;
  --accent: #f2762e;
  --accent-deep: #c75a1b;
  --sky-a: #cfe6f4;
  --sky-b: #f6e9d4;
  --sand: #faf6ef;
  --ink: #22303e;
  --mut: #5d6b7a;
  --green-1: #9dc08b;
  --green-2: #76a36f;
  --water-1: #7fb6c9;
  --water-2: #5f9db3;
  --line: #e4ddd1;
  --radius: 6px;
  --shadow-card:
    0 1px 2px rgba(16, 38, 63, 0.06), 0 10px 28px rgba(16, 38, 63, 0.08);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-head: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--navy-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-deep);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--navy);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus-visible {
  transform: none;
  color: #fff;
}

.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  contain: content;
}
.section--tight {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
/* kurzer orangefarbener Balken vor jeder Sektions-Headline */
.section-head h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 0.55rem;
}
.section-head p {
  color: var(--mut);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 42px;
  width: auto;
}

.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 0.5em 0.75em;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.main-nav a:hover {
  background: rgba(16, 38, 63, 0.07);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.35em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--accent);
  color: #46210a;
}
.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}
.btn--ghost {
  border-color: var(--navy-2);
  color: var(--navy);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--navy);
}
.btn--light:hover {
  background: var(--sky-a);
  color: var(--navy);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  position: relative;
  z-index: 130;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: var(--navy);
    display: grid;
    place-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .main-nav a {
    color: var(--sand);
    font-size: 1.4rem;
    font-weight: 800;
  }
  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .main-nav .nav-cta-li {
    margin-top: 1.2rem;
  }
  .main-nav .nav-cta-li a {
    background: var(--accent);
    color: #46210a;
    border-radius: var(--radius);
    padding: 0.6em 1.4em;
    font-size: 1.15rem;
  }
}
@media (min-width: 921px) {
  .main-nav .nav-cta-li {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px rgba(16, 38, 63, 0.07),
    0 18px 38px rgba(16, 38, 63, 0.13);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
  color: var(--navy-2);
}
.service-card .icon svg {
  width: 100%;
  height: 100%;
}
.service-card .icon .ic-motion {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .icon .ic-motion {
  transform: translateX(5px);
}
.service-card:hover .icon .ic-motion--up {
  transform: translateY(-4px);
}
.service-card:hover .icon .ic-motion--spin {
  transform: rotate(12deg);
  transform-origin: center;
  transform-box: fill-box;
}
.service-card h3 {
  margin-bottom: 0.4rem;
}
.service-card p {
  color: var(--mut);
  font-size: 0.95rem;
  margin: 0;
}
.service-card .tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-card .tags span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-2);
  background: var(--sky-a);
  padding: 0.25em 0.7em;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Zahlen (counter band)
   -------------------------------------------------------------------------- */
.numbers-band {
  background: var(--navy);
  border-top: 4px solid var(--accent);
  color: var(--sand);
  padding: clamp(3.2rem, 6vw, 5rem) 0;
  contain: content;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.number-item .value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.number-item .value .unit {
  font-size: 0.55em;
  font-weight: 700;
  color: var(--water-1);
  margin-left: 0.1em;
}
.number-item .label {
  color: var(--sky-a);
  font-size: 0.95rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Flotte
   -------------------------------------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.fleet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.fleet-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 2px 4px rgba(16, 38, 63, 0.07),
    0 18px 38px rgba(16, 38, 63, 0.13);
}
.fleet-card .vehicle {
  background: var(--sky-a);
  padding: 1.2rem 1rem 0.6rem;
}
.fleet-card .vehicle svg {
  width: 100%;
  height: auto;
}
.fleet-card .body {
  padding: 1.1rem 1.3rem 1.3rem;
}
.fleet-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}
.fleet-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.18rem 0.8rem;
  font-size: 0.88rem;
}
.fleet-card dt {
  font-weight: 700;
  color: var(--navy-2);
}
.fleet-card dd {
  margin: 0;
  color: var(--mut);
}

/* --------------------------------------------------------------------------
   Standorte (map)
   -------------------------------------------------------------------------- */
.map-section {
  background: #fff;
  border-block: 1px solid var(--line);
}
.map-frame {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
}
.map-frame > svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}
.map-pin .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(16, 38, 63, 0.45);
  position: relative;
  z-index: 2;
}
.map-pin--hq .dot {
  width: 18px;
  height: 18px;
  background: var(--navy);
}
.map-pin .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(242, 118, 46, 0.4);
  animation: pin-pulse 2.4s ease-out infinite;
}
.map-pin--hq .pulse {
  background: rgba(29, 58, 95, 0.35);
}
@keyframes pin-pulse {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.pin-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: 230px;
  background: var(--navy);
  color: var(--sand);
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.7em 0.9em;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 5;
}
.pin-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--navy);
}
.pin-tip strong {
  color: #fff;
  display: block;
  margin-bottom: 0.15em;
}
.map-pin:hover .pin-tip,
.map-pin:focus-visible .pin-tip,
.map-pin.is-open .pin-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.map-legend {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--mut);
}
.map-legend .swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: baseline;
}

/* --------------------------------------------------------------------------
   Über uns (timeline)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: 1rem 0 2rem;
}
.timeline-svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
}
.timeline-svg .rail {
  stroke: var(--line);
  stroke-width: 4;
}
.timeline-svg .draw {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
}
.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  width: calc(50% - 42px);
  margin-bottom: 2.4rem;
}
.timeline li:nth-child(odd) {
  margin-left: auto;
  text-align: left;
}
.timeline li:nth-child(even) {
  margin-right: auto;
  text-align: right;
}
.timeline .entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-card);
}
.timeline .year {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 0.15rem;
}
.timeline h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.timeline p {
  margin: 0;
  color: var(--mut);
  font-size: 0.92rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--sand);
  z-index: 2;
}
.timeline li:nth-child(odd)::before {
  left: -52px;
}
.timeline li:nth-child(even)::before {
  right: -52px;
}

@media (max-width: 680px) {
  .timeline-svg {
    left: 10px;
    transform: none;
  }
  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    width: auto;
    margin: 0 0 1.8rem 42px;
    text-align: left;
  }
  .timeline li:nth-child(odd)::before,
  .timeline li:nth-child(even)::before {
    left: -39px;
    right: auto;
  }
}

/* --------------------------------------------------------------------------
   Karriere
   -------------------------------------------------------------------------- */
.career-band {
  background: var(--sky-b);
  border-block: 1px solid var(--line);
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.25s ease;
}
.job-card:hover {
  transform: translateY(-4px);
}
.job-card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(242, 118, 46, 0.13);
  padding: 0.3em 0.8em;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
.job-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}
.job-card p {
  margin: 0;
  color: var(--mut);
  font-size: 0.9rem;
}
.career-cta {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) minmax(300px, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 840px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info address {
  font-style: normal;
}
.contact-info .info-block {
  margin-bottom: 1.5rem;
}
.contact-info .info-block h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.3rem;
}
.contact-info .info-block p {
  margin: 0;
  font-size: 1.02rem;
}
.contact-info .info-block a {
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
.field {
  margin-bottom: 1.1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.field label .opt {
  font-weight: 400;
  color: var(--mut);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid #cfc8ba;
  border-radius: 10px;
  background: var(--sand);
  padding: 0.7em 0.9em;
  font-size: 0.97rem;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  background: #fff;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  background: #fdf3f1;
}
.field .error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a93226;
}
.field .error.is-visible {
  display: block;
}

.submit-row {
  margin-top: 1.4rem;
}
.submit-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.95em 1.4em;
  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}
.submit-btn:hover {
  background: var(--navy-2);
}
.submit-btn:active {
  transform: scale(0.985);
}
.submit-btn .btn-label {
  transition: opacity 0.2s ease;
}
.submit-btn .btn-truck {
  position: absolute;
  top: 50%;
  left: -56px;
  width: 46px;
  height: 26px;
  transform: translateY(-50%);
  opacity: 0;
}
.submit-btn.is-sending {
  background: var(--navy-2);
  pointer-events: none;
}
.submit-btn.is-sending .btn-label {
  opacity: 0.25;
}
.submit-btn.is-sending .btn-truck {
  opacity: 1;
  animation: btn-truck-drive 1.5s cubic-bezier(0.45, 0.05, 0.4, 0.95) forwards;
}
@keyframes btn-truck-drive {
  0% {
    left: -56px;
  }
  100% {
    left: calc(100% + 16px);
  }
}
.submit-btn.is-sent {
  background: var(--green-2);
  color: #10301c;
}
.submit-btn.is-sent .btn-label {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .submit-btn.is-sending .btn-truck {
    animation: none;
    opacity: 0;
  }
}
.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--mut);
  background: var(--sky-b);
  border: 1px dashed #d8c9a8;
  border-radius: 10px;
  padding: 0.75em 1em;
  display: none;
}
.form-note.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--sky-a);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  contain: content;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}
@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.45rem;
}
.site-footer a {
  color: var(--sky-a);
  text-decoration: none;
  font-size: 0.94rem;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-brand p {
  font-size: 0.92rem;
  color: var(--water-1);
  max-width: 34ch;
}
.footer-brand .logo-footer {
  margin-bottom: 1rem;
}
.footer-legal-btn {
  background: none;
  border: 0;
  color: var(--sky-a);
  padding: 0;
  font-size: 0.94rem;
  text-align: left;
}
.footer-legal-btn:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(207, 230, 244, 0.18);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--water-1);
}
.footer-bottom .demo-note {
  font-weight: 700;
  color: var(--sky-b);
}

/* --------------------------------------------------------------------------
   Dialogs (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.legal-dialog {
  width: min(620px, calc(100vw - 2rem));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 24px 70px rgba(16, 38, 63, 0.4);
  color: var(--ink);
}
.legal-dialog::backdrop {
  background: rgba(16, 38, 63, 0.55);
}
.legal-dialog .dialog-inner {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.legal-dialog h2 {
  font-size: 1.4rem;
}
.legal-dialog p {
  font-size: 0.94rem;
  color: var(--ink);
}
.legal-dialog .legal-demo-note {
  background: var(--sky-b);
  border: 1px dashed #d8c9a8;
  border-radius: 10px;
  padding: 0.75em 1em;
  font-size: 0.86rem;
  color: var(--mut);
}
.legal-dialog .dialog-close {
  margin-top: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* --------------------------------------------------------------------------
   Demo ribbon (shared portfolio chrome)
   -------------------------------------------------------------------------- */
.demo-ribbon {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 18, 22, 0.85);
  color: #fff;
  font:
    500 12px/1 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
.demo-ribbon:hover,
.demo-ribbon:focus-visible {
  opacity: 1;
}
@media print {
  .demo-ribbon {
    display: none;
  }
}
