/* =========================================================
   Bundes Impex GmbH — style.css
   Design-System: Handelsrouten-Ästhetik für eine Digitalagentur
   Farben, Typografie und Layout sind bewusst gewählte Tokens.
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL-lizenziert, keine externen Requests) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --ink: #0b1b2b;          /* Tiefes Marineblau — Textfarbe & dunkle Flächen */
  --ink-soft: #16283c;
  --paper: #f7f7f5;        /* Warmes, kühles Off-White für Hauptflächen */
  --surface: #ffffff;
  --surface-alt: #eef1f6;  /* Kühles Hellgrau-Blau für alternierende Sektionen */
  --signal: #3457ff;       /* Signalblau — Routenlinien, Links, Akzente */
  --signal-deep: #1f3fcc;
  --amber: #ffb020;        /* Warmes Gold — sparsam für Hervorhebungen */
  --line: #dbe0e8;         /* Haarlinien / Trenner */
  --muted: #5b6b7f;        /* Sekundärtext */
  --success: #1f9d63;

  /* Typografie */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 27, 43, 0.18);
  --speed: 220ms;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 1000; transition: top var(--speed);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--speed) ease, background var(--speed) ease, color var(--speed) ease, box-shadow var(--speed) ease;
}
.btn-primary { background: var(--signal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--signal-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-on-dark { background: var(--amber); color: var(--ink); }
.btn-on-dark:hover { background: #ffc44d; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .name-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); top: -7px;}
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); top: 7px;}

.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); padding: 8px 2px; border-bottom: 2px solid transparent; transition: border-color var(--speed), color var(--speed); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--signal); border-color: var(--signal); }
.header-cta { display: flex; align-items: center; gap: 18px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper);
    transform: translateX(100%); transition: transform var(--speed) ease;
    overflow-y: auto; padding: 24px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .header-cta .btn-primary { display: none; }
}

/* ---------- Hero / Signature: Handelsrouten-Animation ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background: var(--ink);
  color: #fff;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); color: #fff; }
.hero h1 .accent { color: var(--amber); }
.hero p.lead { color: #cdd8e6; font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.hero-stats div span { font-size: 0.82rem; color: #9fb0c4; }

.route-art { width: 100%; height: auto; }
.route-art .node { fill: var(--amber); }
.route-art .node-core { fill: #fff; }
.route-art .route-line {
  fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: dash-flow 14s linear infinite;
  opacity: 0.85;
}
.route-art .route-line.alt { stroke: #4d6ea8; animation-duration: 20s; animation-direction: reverse; }
@keyframes dash-flow { to { stroke-dashoffset: -400; } }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .route-art { max-width: 340px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; display: block; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform var(--speed) ease, box-shadow var(--speed) ease, border-color var(--speed) ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

.domain-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.94rem;
}
.domain-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms ease, transform 640ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 24px;
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #b9c6d8; margin: 0; }

/* ---------- Timeline (Über uns) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); display: grid; gap: 36px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 4px; width: 12px; height: 12px;
  background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper);
}
.timeline .year { font-family: var(--font-display); font-weight: 800; color: var(--signal); display: block; margin-bottom: 4px; }

/* ---------- Werte / Values ---------- */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .num { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--line); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input, textarea, select {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--signal); }
textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent-check input { width: 18px; height: 18px; margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: #e5f6ec; color: var(--success); border: 1px solid #b9e6cc; }
.form-status.err { display: block; background: #fdecec; color: #b3261e; border: 1px solid #f3c2c0; }

/* ---------- Contact / Impressum info blocks ---------- */
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.info-card address { font-style: normal; color: var(--muted); line-height: 1.8; }
.info-card a.link { color: var(--signal); font-weight: 600; }
.info-card a.link:hover { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2.4em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin-bottom: 0.4em; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.notice-box {
  background: #fff7e6; border: 1px solid #ffe1a3; border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 0.92rem; margin: 24px 0 36px;
}
.notice-box strong { color: #8a5a00; }
.placeholder { background: #fff2f2; color: #b3261e; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd8e6; padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-grid h4 { color: #fff; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: #9fb0c4; font-size: 0.92rem; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #7c8ea3; }
.footer-bottom .legal-links { display: flex; gap: 18px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie Consent Banner ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  padding: 22px 0; transform: translateY(110%); transition: transform 400ms ease;
}
#cookie-banner.is-visible { transform: translateY(0); }
#cookie-banner .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
#cookie-banner .cb-text { max-width: 62ch; font-size: 0.9rem; color: var(--muted); }
#cookie-banner .cb-text strong { color: var(--ink); }
#cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cb-modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,27,43,0.55); z-index: 2100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cb-modal-backdrop.is-open { display: flex; }
.cb-modal { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; padding: 32px; max-height: 86vh; overflow-y: auto; }
.cb-modal h2 { font-size: 1.3rem; }
.cb-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.cb-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.cb-cat-head strong { font-size: 0.98rem; }
.cb-cat p { color: var(--muted); font-size: 0.86rem; margin: 0; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background var(--speed); cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform var(--speed); box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--signal); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { background: #9fb0c4; cursor: not-allowed; }

.cb-modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
