/* ==========================================================================
   Fähren Dänemark – Deutschland · Informationsportal
   Unabhängiges Portal. Anfragen per E-Mail, Buchung beim Anbieter.
   ========================================================================== */

:root {
  --blue-900: #04223c;
  --blue-800: #073454;
  --blue-700: #0a4a74;
  --blue-600: #0d6098;
  --blue-500: #1180c4;
  --blue-400: #34a2e0;
  --blue-100: #dceefb;
  --blue-050: #f1f8fd;

  --sand: #fdfcf9;
  --ink: #10222f;
  --ink-soft: #4a6070;
  --line: #dbe4ec;
  --white: #ffffff;
  --accent: #ffb703;
  --ok: #12805c;

  --bg: var(--sand);
  --surface: var(--white);
  --surface-2: var(--blue-050);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --brand: var(--blue-700);
  --brand-strong: var(--blue-800);
  --brand-soft: var(--blue-100);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(8, 35, 58, .06), 0 8px 24px -12px rgba(8, 35, 58, .25);
  --shadow-lg: 0 24px 60px -28px rgba(8, 35, 58, .45);
  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1621;
    --surface: #10222f;
    --surface-2: #14293a;
    --text: #e8f1f8;
    --text-soft: #a3b6c6;
    --border: #22394b;
    --brand: #4bb0e8;
    --brand-strong: #7cc7f0;
    --brand-soft: #16324a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .8);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.18rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
small { font-size: .86rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -.03em; font-size: 1.06rem; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo span small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--text-soft);
  font-size: .93rem; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.langs { display: flex; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border); }
.langs a {
  padding: 6px 9px; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-soft); border-radius: 7px;
}
.langs a:hover { background: var(--surface-2); text-decoration: none; }
.langs a.is-active { background: var(--brand); color: #fff; }

.nav-toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--border);
  border-radius: 9px; width: 42px; height: 38px; cursor: pointer; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; margin: 0 auto; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; font-size: 1rem; }
  .langs { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(52, 162, 224, .35), transparent 60%),
    linear-gradient(165deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #eaf5fd;
  padding: 54px 0 0;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0 60c180 40 320-30 520-18 210 12 300 52 500 40 130-8 260-46 420-38v46H0z' fill='%23ffffff'/></svg>") bottom / 100% 100% no-repeat;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'><path d='M0 60c180 40 320-30 520-18 210 12 300 52 500 40 130-8 260-46 420-38v46H0z' fill='%230a1621'/></svg>"); }
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding-bottom: 110px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 96px; } }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: 1.1rem; color: #cbe6f8; max-width: 38ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.hero-badges li {
  margin: 0; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #eaf5fd;
}
.hero-note { margin-top: 20px; font-size: .84rem; color: #a9cde6; max-width: 44ch; }
.hero-note a { color: #fff; text-decoration: underline; }

/* ---------- Booking widget ---------- */
.booker {
  background: var(--surface); color: var(--text);
  border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  padding: 22px;
}
.booker h2 { margin: 0 0 4px; font-size: 1.2rem; }
.booker .booker-sub { font-size: .87rem; color: var(--text-soft); margin-bottom: 16px; }

.field { margin-bottom: 14px; }
.field > label, .fieldset-label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 6px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
/* grid/flex children default to min-width:auto, which lets long option
   labels push the layout wider than the viewport */
.grid-2 > *, .grid-3 > *, .swap-row > *, .hero-grid > *, .cards > *, .facts > * { min-width: 0; }

input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23708598' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue-400); outline-offset: 2px;
}
input[type="date"] { min-width: 0; }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 11px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 9px 8px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: var(--text-soft); cursor: pointer; line-height: 1.25;
}
.segmented input:checked + label { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.segmented input:focus-visible + label { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.swap-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.swap-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--brand);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.swap-btn:hover { background: var(--brand-soft); }
@media (max-width: 480px) {
  .swap-row { grid-template-columns: 1fr; justify-items: stretch; }
  .swap-btn { transform: rotate(90deg); margin: 0 auto; }
}

.hint { font-size: .78rem; color: var(--text-soft); margin: 6px 0 0; }
.is-hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 14px 22px; border-radius: 11px; border: 1px solid transparent;
  background: var(--brand); color: #fff; width: 100%; min-height: 52px; text-align: center;
}
.btn:hover { background: var(--brand-strong); text-decoration: none; color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #06202f; } }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: var(--border); width: auto;
  padding: 11px 18px; min-height: 46px; font-size: .94rem;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--brand); }
.btn svg { flex: none; }

.form-error {
  background: #fdecec; color: #93231f; border: 1px solid #f3c3c0;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) { .form-error { background: #3a1a1a; color: #ffc9c4; border-color: #5d2a28; } }

.summary-box {
  margin-top: 14px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem;
}
.summary-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.summary-box dt { color: var(--text-soft); }
.summary-box dd { margin: 0; font-weight: 600; }
.summary-fallback { margin: 12px 0 0; font-size: .82rem; color: var(--text-soft); }

.redirect-note { font-size: .78rem; color: var(--text-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Sections ---------- */
main { padding-bottom: 40px; }
.section { padding: 8px 0; }
.page-head { padding: 46px 0 6px; }
.page-head .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--text-soft); }

.breadcrumbs { font-size: .82rem; color: var(--text-soft); padding: 18px 0 0; }
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs span { margin: 0 6px; opacity: .5; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 26px 0; padding: 0; list-style: none; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-soft); font-size: .95rem; flex: 1; }
.card .card-cta { font-weight: 700; font-size: .94rem; }
.card .card-cta::after { content: " →"; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.fact {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0;
}
.fact .fact-k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-soft); font-weight: 700; }
.fact .fact-v { display: block; font-size: 1.05rem; font-weight: 700; margin-top: 3px; }

.table-scroll { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-soft); }
tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 15px 18px; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 4px; color: var(--text-soft); font-size: .96rem; }

.cta-band {
  margin: 40px 0 10px; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #cbe6f8; max-width: 56ch; margin: 0 auto 18px; }
.cta-band .btn { background: #fff; color: var(--blue-800); width: auto; }
.cta-band .btn:hover { background: #eaf5fd; color: var(--blue-900); }

.route-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.route-strip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.route-strip .line { flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px; background: var(--surface); border-top: 1px solid var(--border);
  padding: 40px 0 30px; font-size: .9rem; color: var(--text-soft);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } }
.site-footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--brand); }
.disclaimer {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: .82rem; line-height: 1.6;
}

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  list-style: none; padding: 0; margin: 16px 0 0; font-size: .82rem;
}
.footer-legal li { margin: 0; }
.linklike {
  font: inherit; color: var(--text-soft); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--brand); }

/* ---------- Legal pages ---------- */
.legal-date { font-size: .85rem; color: var(--text-soft); margin-top: 10px; }
.legal-body h2 { font-size: 1.18rem; margin-top: 34px; }
.legal-body p, .legal-body li { max-width: 78ch; }
.legal-body code {
  font-size: .88em; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px;
}

/* ---------- Cookie banner ---------- */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 40px rgba(4, 26, 43, .28); max-width: 620px; margin: 0 auto;
}
.consent[hidden] { display: none; }
.consent-inner { padding: 20px 22px 22px; }
.consent h2 { font-size: 1.05rem; margin: 0 0 8px; }
.consent p { font-size: .88rem; color: var(--text-soft); margin: 0 0 16px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { width: auto; flex: 1 1 180px; min-height: 46px; font-size: .95rem; }
@media (max-width: 460px) { .consent-actions .btn { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
