/* =========================================================
   Brüggemann Internationale Transporte – Stylesheet
   Marine #1A2B4C · Cyan #00A3A6 · Weiß #F5F6F8
   Editorial / präzise Logistik-Ästhetik
   ========================================================= */

:root {
  --navy:        #1A2B4C;
  --navy-deep:   #15233E;
  --navy-line:   #243a5e;
  --surface:     #1F3252;
  --cyan:        #00A3A6;
  --cyan-bright: #2BD4D7;
  --cyan-soft:   rgba(0, 163, 166, 0.12);
  --white:       #F5F6F8;
  --muted:       #A9B8D0;
  --muted-dim:   #748AAC;
  --hair:        rgba(245, 246, 248, 0.10);
  --hair-strong: rgba(245, 246, 248, 0.16);
  --border-cyan: rgba(0, 163, 166, 0.34);

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container: 1240px;
  --radius:    4px;
  --shadow:    0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; color: var(--cyan-bright); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.text-accent { color: var(--cyan-bright); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--cyan); color: #00231f; padding: 10px 18px; border-radius: 4px; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--cyan-bright); outline-offset: 2px; border-radius: 3px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cyan); color: #00231f; }
.btn--primary:hover { background: var(--cyan-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--hair-strong); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-bright); }
.btn--ghost .ico { transition: transform .25s var(--ease); }
.btn--ghost:hover .ico { transform: translateX(4px); }

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--cyan-bright); margin-bottom: 26px; }
.eyebrow__line { width: 34px; height: 1px; background: var(--cyan); }

.head { margin-bottom: clamp(44px, 6vw, 72px); }
.head__index { display: block; font-family: var(--font-head); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-bright); padding-bottom: 20px; margin-bottom: 34px; border-bottom: 1px solid var(--hair); }
.head__row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.head__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.head__lead { color: var(--muted); font-size: 1.1rem; padding-bottom: 6px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 22px 0; transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.header.scrolled { background: rgba(21, 35, 62, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--hair); padding: 12px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand__logo { height: 38px; width: auto; transition: height .3s var(--ease); }
.header.scrolled .brand__logo { height: 32px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 4px; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--white); padding: 8px 14px; position: relative; transition: color .2s var(--ease); }
.nav__link::after { content: ''; position: absolute; left: 14px; bottom: 2px; width: 0; height: 1.5px; background: var(--cyan); transition: width .25s var(--ease); }
.nav__link:hover { color: var(--cyan-bright); }
.nav__link:hover::after, .nav__link.active::after { width: calc(100% - 28px); }
.nav__link.active { color: var(--cyan-bright); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 15vw, 168px) 0 clamp(48px, 6vw, 76px); }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

/* Corridor signature element */
.corridor { border-top: 1px solid var(--hair); padding-top: 26px; max-width: 480px; }
.corridor__track { position: relative; height: 16px; margin-bottom: 12px; }
.corridor__line { position: absolute; top: 50%; left: 4px; right: 4px; height: 1.5px; background: var(--navy-line); }
.corridor__dot { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--cyan); transform: translate(-50%, -50%); left: calc(var(--i) * 33.333%); }
.corridor__dot:first-of-type, .corridor__dot:nth-of-type(1) { left: 4px; }
.corridor__dot[style*="--i:0"] { left: 2%; }
.corridor__dot[style*="--i:1"] { left: 35%; }
.corridor__dot[style*="--i:2"] { left: 68%; }
.corridor__dot[style*="--i:3"] { left: 98%; background: var(--cyan); }
.corridor__pulse { position: absolute; top: 50%; left: 2%; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-bright); transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(43,212,215,.6); animation: run 4.5s var(--ease) infinite; }
@keyframes run { 0% { left: 2%; } 45% { left: 98%; } 50% { left: 98%; } 95% { left: 2%; } 100% { left: 2%; } }
.corridor__stops { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.corridor__stops span:last-child { color: var(--cyan-bright); }

/* Hero aside / frame */
.hero__aside { position: relative; }
.hero__chip { position: absolute; left: -20px; bottom: -24px; background: var(--navy-deep); border: 1px solid var(--border-cyan); border-left: 3px solid var(--cyan); padding: 16px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.hero__chip-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; color: var(--cyan-bright); border: 1px solid var(--border-cyan); border-radius: 4px; }
.hero__chip-icon svg { width: 23px; height: 23px; }
.hero__chip-label { font-family: var(--font-head); font-weight: 500; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* ---------- Frame placeholders (elegant, intentional) ---------- */
.frame { position: relative; }
.frame__inner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--surface); border: 1px solid var(--hair-strong); }
.frame__inner::before, .frame__inner::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); }
.frame__inner::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame__inner::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.frame--hero .frame__inner { aspect-ratio: 4 / 3.4; }
.frame--portrait .frame__inner { aspect-ratio: 4 / 4.6; }
.frame__mark { width: 46px; height: 46px; color: var(--cyan); opacity: .85; }
.frame__tag { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--white); padding: 6px 14px; border: 1px solid var(--hair-strong); border-radius: 999px; }
.frame__cap { margin-top: 12px; font-size: 12.5px; color: var(--muted-dim); text-align: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6.5vw, 88px) 0; }
.section--alt { background: var(--navy); border-block: 1px solid var(--hair); }

/* Subpages: clear the fixed header */
.subpage main { padding-top: clamp(70px, 9vw, 96px); }

/* Page-level CTA block (bottom of subpages) */
.page-cta { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.page-cta p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--white); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.service { position: relative; padding: 40px 36px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); transition: background .3s var(--ease); }
.service::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service:hover { background: var(--surface); }
.service:hover::after { transform: scaleX(1); }
.service__icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--cyan-bright); border: 1px solid var(--border-cyan); border-radius: 4px; background: var(--cyan-soft); margin-bottom: 26px; transition: background .3s var(--ease); }
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { background: rgba(0,163,166,.2); }
.service__title { font-size: 1.24rem; margin-bottom: 10px; }
.service__text { color: var(--muted); font-size: .98rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 18px 0 18px; }
.split__lead { color: var(--muted); font-size: 1.12rem; margin-bottom: 12px; }

.feature-list { display: grid; gap: 4px; margin-top: 30px; }
.feature { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--hair); }
.feature:last-child { border-bottom: 1px solid var(--hair); }
.feature__bullet { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--cyan-bright); border: 1px solid var(--border-cyan); border-radius: 4px; }
.feature__bullet svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 3px; }
.feature p { color: var(--muted); font-size: .97rem; }

.prose { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.quote { border-left: 3px solid var(--cyan); padding: 6px 0 6px 22px; margin: 26px 0 30px; font-family: var(--font-head); font-style: italic; font-size: 1.18rem; line-height: 1.5; color: var(--white); }
.quote cite { display: block; margin-top: 10px; font-size: .92rem; font-style: normal; font-weight: 500; color: var(--cyan-bright); }
.split__body .btn { margin-top: 6px; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); border-block: 1px solid var(--hair); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px, 6vw, 68px) 28px; text-align: center; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat__num { display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--cyan-bright); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat__num i { font-style: normal; font-size: .5em; margin-left: 2px; }
.stat__label { display: block; margin-top: 14px; font-family: var(--font-head); font-weight: 500; font-size: .98rem; letter-spacing: .03em; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 2px; }
.contact-item { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-top: 1px solid var(--hair); }
.contact-item:last-child { border-bottom: 1px solid var(--hair); }
.contact-item__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--cyan-bright); border: 1px solid var(--border-cyan); border-radius: 4px; }
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 1px; }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--cyan-bright); }

/* ---------- Form ---------- */
.form { background: var(--surface); border: 1px solid var(--hair-strong); padding: clamp(26px, 4vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.field label span { color: var(--cyan-bright); }
.field input, .field textarea { font-family: var(--font-body); font-size: 16px; color: var(--white); background: var(--navy-deep); border: 1.5px solid var(--hair-strong); border-radius: 4px; padding: 13px 15px; width: 100%; resize: vertical; transition: border-color .2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field__error { color: #ff8a8a; font-size: 13px; margin-top: 6px; }
.form__note { color: var(--muted-dim); font-size: 13px; margin-top: 14px; }
.form__success { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 4px; background: var(--cyan-soft); border: 1px solid var(--border-cyan); color: var(--cyan-bright); font-weight: 500; }
.form__success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); border-top: 1px solid var(--hair); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 20px; }
.footer__about { color: var(--muted); font-size: .98rem; max-width: 38ch; }
.footer__col h4 { font-family: var(--font-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-bright); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: var(--muted); font-size: .96rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--cyan-bright); }
.footer__contact li { color: var(--muted); font-size: .96rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 24px 0; border-top: 1px solid var(--hair); color: var(--muted-dim); font-size: .9rem; }
.footer__legal a:hover { color: var(--cyan-bright); }

/* ---------- To top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: #00231f; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease); }
.to-top svg { width: 21px; height: 21px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--cyan-bright); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .head__row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); background: var(--navy-deep); border-left: 1px solid var(--hair); flex-direction: column; align-items: stretch; justify-content: center; gap: 26px; padding: 44px; transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow); }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { font-size: 1.1rem; padding: 12px 14px; }
  .nav__link::after { display: none; }
  .nav__cta { text-align: center; }
  .nav-toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__chip { left: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .corridor__pulse { animation: none !important; }
}
