/* ==========================================================================
   Baltic Belt Ferries — shared stylesheet
   Routes: Gedser–Rostock · Puttgarden–Rødby
   ========================================================================== */

:root {
  --sea-900: #06263f;
  --sea-800: #0a3455;
  --sea-700: #0f4570;
  --sea-600: #14598f;
  --sea-500: #1b74b4;
  --sea-300: #7fbde3;
  --sea-100: #dceefa;
  --sea-50:  #f1f8fd;

  --sand-100: #f7f4ee;
  --sand-200: #ece5d8;

  --ink:      #10202c;
  --ink-soft: #40566a;
  --line:     #d8e3ec;
  --white:    #ffffff;

  --danger-bg:     #fdecec;
  --danger-border: #f3b4b4;
  --danger-ink:    #8d1f1f;

  --ok-bg: #e8f6ee;
  --ok-ink: #1c6b40;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 2px 4px rgba(6, 38, 63, .05), 0 12px 32px rgba(6, 38, 63, .08);
  --shadow-sm: 0 1px 2px rgba(6, 38, 63, .06), 0 4px 12px rgba(6, 38, 63, .06);

  --wrap: 1120px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

/* the hidden attribute must win over any display rule below */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sea-600); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sea-800); }

h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--sea-900);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.4rem); margin-top: 1.8em; }

p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--sea-900); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--sea-900); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--sea-700); }
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--sea-500), var(--sea-800));
  display: grid; place-items: center;
  color: #fff; font-size: 15px;
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  margin-left: auto;
  display: none;
  background: var(--sea-50); border: 1px solid var(--line); color: var(--sea-800);
  width: 42px; height: 38px; border-radius: 9px; font-size: 18px; cursor: pointer;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.site-nav a:hover { background: var(--sea-50); color: var(--sea-800); }
.site-nav a[aria-current="page"] { color: var(--sea-800); background: var(--sea-50); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--sand-100); border: 1px solid var(--line); border-radius: 10px;
}
.lang-switch a {
  padding: 4px 9px; border-radius: 7px; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
}
.lang-switch a:hover { background: #fff; color: var(--sea-800); }
.lang-switch a[aria-current="true"] { background: var(--sea-700); color: #fff; }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: .97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sea-800); color: #fff; }
.btn-ghost { background: #fff; color: var(--sea-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--sea-50); color: var(--sea-900); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-block { width: 100%; padding-block: 16px; font-size: 1.03rem; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--sea-900) 0%, var(--sea-700) 55%, var(--sea-600) 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background:
    radial-gradient(120% 100% at 20% 0, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(90% 100% at 80% 0, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero p.lead { font-size: clamp(1.02rem, .96rem + .45vw, 1.22rem); color: rgba(255,255,255,.87); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 40px; position: relative; z-index: 1;
}
.hero-facts div {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.hero-facts b { display: block; font-size: 1.35rem; letter-spacing: -.02em; }
.hero-facts span { font-size: .82rem; color: rgba(255,255,255,.75); }

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--sea-900), var(--sea-700));
  color: #fff; padding: clamp(36px, 4.5vw, 64px) 0;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 68ch; margin: 0; }

/* ---------- Breadcrumbs / meta ---------------------------------------- */

.crumbs { font-size: .84rem; color: rgba(255,255,255,.72); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.9); }
.article-meta {
  font-size: .85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: 30px;
}

/* ---------- Sections & cards ------------------------------------------ */

.section { padding: clamp(46px, 6vw, 76px) 0; }
.section-alt { background: var(--sea-50); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--sea-50); color: var(--sea-700); font-size: 20px; margin-bottom: 16px;
}

.route-card { display: flex; flex-direction: column; }
.route-card .route-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 800; font-size: 1.16rem; color: var(--sea-900); margin-bottom: 6px;
}
.route-card .route-line em { font-style: normal; color: var(--sea-500); }
.route-card .flags { font-size: .8rem; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.route-card ul { margin-bottom: 18px; }
.route-card .btn { margin-top: auto; align-self: flex-start; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.pill-list li {
  margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--sea-50);
  border: 1px solid var(--sea-100); font-size: .84rem; font-weight: 600; color: var(--sea-800);
}

/* facts table */
.facts { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 42%; color: var(--ink-soft); font-weight: 600; background: var(--sea-50); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 26px; }
.table-scroll .facts { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--sea-500); background: var(--sea-50);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--sea-900); }

/* article body */
.article { padding: clamp(40px, 5vw, 64px) 0 20px; }
.article h2:first-of-type { margin-top: 0; }
.toc {
  background: var(--sand-100); border: 1px solid var(--sand-200);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px;
}
.toc strong { display: block; margin-bottom: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.toc ul { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: .3em; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--sea-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sea-500); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: 10px; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Booking form ---------------------------------------------- */

.booking-layout { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .booking-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.form-step { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.form-step:last-of-type { border-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-num {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: var(--sea-700); color: #fff; display: grid; place-items: center;
  font-size: .84rem; font-weight: 700;
}
.step-head h2 { margin: 0; font-size: 1.15rem; }

.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: block; margin-bottom: 6px;
  font-size: .87rem; font-weight: 700; color: var(--sea-900);
}
.hint { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 500; margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sea-500); box-shadow: 0 0 0 3px rgba(27, 116, 180, .16);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2340566a' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }

/* passenger counters */
.counter-list { display: grid; gap: 10px; }
.counter {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.counter-text { flex: 1 1 auto; min-width: 0; }
.counter-text b { display: block; font-size: .95rem; color: var(--sea-900); }
.counter-text span { font-size: .8rem; color: var(--ink-soft); }
.counter-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.counter-controls button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--sea-50); color: var(--sea-800); font-size: 18px; font-weight: 700;
  line-height: 1; cursor: pointer;
}
.counter-controls button:hover:not(:disabled) { background: var(--sea-100); }
.counter-controls button:disabled { opacity: .4; cursor: not-allowed; }
.counter-controls input {
  width: 54px; text-align: center; padding: 8px 4px; font-weight: 700;
  -moz-appearance: textfield;
}
.counter-controls input::-webkit-outer-spin-button,
.counter-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* vehicle chooser */
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.choice {
  position: relative; display: block; cursor: pointer;
}
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.choice span i { font-style: normal; font-size: 22px; line-height: 1; }
.choice input:checked + span { border-color: var(--sea-500); background: var(--sea-50); color: var(--sea-900); box-shadow: 0 0 0 1px var(--sea-500) inset; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27,116,180,.2); }

.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.check-line input { margin-top: 4px; flex: 0 0 auto; }
.check-line a { font-weight: 600; }

.form-submit { padding: 24px 28px; background: var(--sea-50); border-top: 1px solid var(--line); }

/* honeypot — hidden from humans, visible to naive bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* price / fee disclosure above the submit button */
.price-note {
  border: 1px solid var(--sand-200); background: var(--sand-100);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
  font-size: .9rem; color: var(--ink-soft);
}
.price-note strong { color: var(--sea-900); }
.price-note p { margin: 0 0 8px; }
.price-note p:last-child { margin-bottom: 0; }

.alert {
  display: none; gap: 14px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 18px;
  border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-ink);
}
.alert.is-visible { display: flex; }
.alert.alert-ok { border-color: #a8d8bd; background: var(--ok-bg); color: var(--ok-ink); }
.alert.alert-ok code { background: rgba(28, 107, 64, .10); }
.alert-icon { font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.alert strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.alert p { margin: 0; font-size: .92rem; color: inherit; }
.alert code { background: rgba(141, 31, 31, .09); padding: 1px 6px; border-radius: 5px; font-size: .85em; }

.aside-card {
  background: var(--sand-100); border: 1px solid var(--sand-200);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px;
}
.aside-card h3 { margin-top: 0; font-size: 1.05rem; }
.aside-card ul { padding-left: 1.1em; font-size: .92rem; color: var(--ink-soft); }
.aside-card p { font-size: .92rem; color: var(--ink-soft); }
.aside-card p:last-child, .aside-card ul:last-child { margin-bottom: 0; }

/* ---------- Legal pages ------------------------------------------------ */

.legal { padding: clamp(40px, 5vw, 64px) 0; }
.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.08rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 24px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--sea-50); color: var(--sea-900); }

/* ---------- Language landing ------------------------------------------ */

.lang-landing {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(160deg, var(--sea-900), var(--sea-700) 60%, var(--sea-600));
  color: #fff; padding: 48px 0;
}
.lang-landing h1 { color: #fff; }
.lang-landing p { color: rgba(255,255,255,.85); }
.lang-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 34px; }
.lang-cards a {
  display: block; padding: 26px; border-radius: var(--radius); text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.lang-cards a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); color: #fff; }
.lang-cards b { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.lang-cards span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---------- Footer ----------------------------------------------------- */

.site-footer {
  background: var(--sea-900); color: rgba(255,255,255,.72);
  padding: 54px 0 28px; font-size: .93rem; margin-top: 0;
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Cookie banner ---------------------------------------------- */

.cookie-banner {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
  max-width: 620px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(6, 38, 63, .22);
  padding: 22px 24px;
}
.cookie-banner h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--sea-900); }
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 18px; margin-left: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 11px 12px; font-size: 1rem; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form-step, .form-submit { padding-inline: 18px; }
  .card { padding: 20px; }
  .brand small { display: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .hero-actions { display: none; }
}
