/* Rheinfähre Bad Breisig – Bad Hönningen · Hirzmann GmbH Fährbetrieb
   Reines CSS, keine externen Schriften oder Bibliotheken. */

:root {
  --ink: #10222e;
  --river: #14506b;
  --river-deep: #0b3345;
  --river-soft: #e4eef2;
  --red: #c2202e;
  --red-deep: #9d1823;
  --sun: #f4c21f;
  --sun-soft: #fdf3cc;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #e2dccf;
  --muted: #56636c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 34, 46, .06), 0 10px 30px rgba(16, 34, 46, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .7rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Kopfzeile ---------- */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 1.22rem; line-height: 1.1; color: var(--red); font-style: italic; }
.brand span { display: block; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--river-soft); color: var(--river-deep); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  white-space: nowrap;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--river-deep); box-shadow: inset 0 0 0 1.5px var(--river); }
.btn.ghost:hover { background: var(--river-soft); color: var(--river-deep); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--river-deep); isolation: isolate; }
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 36, 50, .88) 0%, rgba(8, 36, 50, .62) 42%, rgba(8, 36, 50, .12) 78%),
    linear-gradient(0deg, rgba(8, 36, 50, .55) 0%, rgba(8, 36, 50, 0) 40%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 40px; align-items: end;
  padding-block: clamp(56px, 10vw, 120px) clamp(48px, 7vw, 84px);
  min-height: min(78vh, 760px);
}
.hero .eyebrow { color: var(--sun); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--sun); }
.hero p.sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; margin: 1.1rem 0 1.6rem; color: rgba(255, 255, 255, .92); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.credit { position: absolute; right: 12px; bottom: 8px; font-size: .68rem; color: rgba(255, 255, 255, .75); }
.credit a { color: inherit; }

/* Abfahrts-Karte */
.dep {
  background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.dep-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--river-soft); }
.dep-tabs button {
  font: inherit; font-weight: 600; font-size: .95rem; padding: 14px 10px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
}
.dep-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); border-bottom-color: var(--red); }
.dep-body { padding: 22px 24px 20px; }
.dep-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dep-big { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.1rem); line-height: 1.05; margin: .25rem 0 .2rem; font-variant-numeric: tabular-nums; }
.dep-text { margin: 0; color: var(--muted); }
.dep-next { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.dep-next li { background: var(--river-soft); border-radius: 8px; padding: 4px 10px; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .95rem; }
.dep-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 24px; font-size: .8rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa5ab; flex: none; }
.dot.on { background: #2a9d5c; box-shadow: 0 0 0 4px rgba(42, 157, 92, .18); }
.dot.off { background: var(--red); }

/* ---------- Hinweisband ---------- */
.notice { background: var(--sun); color: var(--ink); }
.notice .wrap { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; font-size: .98rem; }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice a { color: var(--ink); font-weight: 600; }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
section.alt { background: #fff; border-block: 1px solid var(--line); }
section.dark { background: var(--river-deep); color: #fff; }
section.dark .eyebrow { color: var(--sun); }
section.dark .lead { color: rgba(255, 255, 255, .8); }
section.dark a { color: #fff; }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .lead { margin-top: .9rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Fahrplan ---------- */
.dayline { display: grid; grid-template-columns: 2.5fr 12fr 3fr; gap: 4px; margin-bottom: 28px; }
.dayline div { padding: 12px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.3; min-width: 0; }
.dayline b { display: block; font-variant-numeric: tabular-nums; }
.dayline .fix { background: var(--river); color: #fff; }
.dayline .flex { background: var(--sun-soft); border: 1px dashed #d9b230; }

.tabs { display: inline-flex; gap: 4px; background: var(--river-soft); padding: 4px; border-radius: 999px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  font: inherit; font-size: .93rem; font-weight: 600; border: 0; background: transparent; color: var(--river-deep);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--river-deep); color: #fff; }
.js .panel[hidden] { display: none; }
.panel h4 { display: none; }
html:not(.js) .panel h4 { display: block; margin: 18px 0 8px; font-size: 1rem; }
html:not(.js) .tabs { display: none; }

.plan { display: grid; gap: 24px; }
.plan h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.plan h3 small { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ufer { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.times li {
  font-variant-numeric: tabular-nums; font-weight: 600; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 11px; min-width: 62px; text-align: center;
}
.times li.past { color: #a3aaae; font-weight: 500; background: transparent; }
.times li.next { background: var(--red); border-color: var(--red); color: #fff; }
.hint { color: var(--muted); font-size: .95rem; margin: 0; }
.demand { background: var(--sun-soft); border-color: #ead27a; }
.demand .big { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- Tarife ---------- */
.calc { background: var(--river-deep); color: #fff; border: 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.calc h3 { font-size: 1.5rem; margin-bottom: 14px; }
.calc label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin: 14px 0 6px; }
.calc select {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 0; background: #fff; color: var(--ink);
}
.stepper { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; overflow: hidden; }
.stepper button { font: inherit; font-size: 1.3rem; width: 46px; height: 46px; border: 0; background: #fff; color: var(--river-deep); cursor: pointer; }
.stepper button:hover { background: var(--river-soft); }
.stepper output { min-width: 44px; text-align: center; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.result { display: grid; gap: 12px; }
.result div { background: rgba(255, 255, 255, .09); border-radius: 12px; padding: 16px 18px; }
.result div.best { background: var(--sun); color: var(--ink); }
.result span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.result b { font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result small { display: block; font-size: .85rem; opacity: .85; }
.calc .fine { grid-column: 1 / -1; font-size: .82rem; color: rgba(255, 255, 255, .7); margin: 0; }

.tarif { margin-top: 24px; display: grid; gap: 14px; }
details.t { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
details.t > summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.t > summary::-webkit-details-marker { display: none; }
details.t > summary small { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted); margin-left: auto; text-align: right; }
details.t > summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--red); line-height: 1; flex: none; }
details.t[open] > summary::after { content: "–"; }
details.t .in { padding: 0 22px 20px; }
.tscroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 500; }
td.p, th.p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.p { font-weight: 600; }
td.p.g { color: var(--river); }
.fn { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Schiff ---------- */
.ship { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ship h2 em { color: var(--sun); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden; margin: 28px 0 0; }
.specs div { background: var(--river-deep); padding: 16px 14px; }
.specs dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.specs dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.specs dd small { font-family: var(--sans); font-size: .85rem; opacity: .75; }
.techlist { margin: 22px 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.techlist li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.techlist b { color: #fff; }
figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
figcaption { font-size: .74rem; color: var(--muted); margin-top: 6px; }
section.dark figcaption { color: rgba(255, 255, 255, .6); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.gallery img { aspect-ratio: 3 / 2; }

/* ---------- Anfahrt ---------- */
.map { background: var(--river-soft); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.piers { display: grid; gap: 16px; }
.pier h3 { display: flex; align-items: center; gap: 10px; }
.pier h3 i { width: 14px; height: 14px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px rgba(194, 32, 46, .18); }
.pier p { margin: 8px 0 12px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 18px 0 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 600; }
.bigtel { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); text-decoration: none; color: var(--red); font-variant-numeric: tabular-nums; }

/* ---------- Fuß ---------- */
footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-block: 36px; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Textseiten ---------- */
.prose { width: min(100% - 32px, 760px); margin-inline: auto; padding-block: clamp(40px, 6vw, 80px); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.2rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.prose .draft { background: var(--sun-soft); border: 1px solid #ead27a; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .head .wrap { flex-wrap: wrap; padding-block: 8px; gap: 8px 12px; }
  .brand { flex: 1; min-width: 0; }
  .brand > span { min-width: 0; }
  .brand span span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin-inline: -4px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 120px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 36, 50, .82) 0%, rgba(8, 36, 50, .6) 55%, rgba(8, 36, 50, .75) 100%); }
  .calc, .ship, .contact { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid2, .gallery { grid-template-columns: 1fr; }
  .dayline { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .btn.tel span { display: none; }
  .btn.tel { padding: 10px 12px; }
  .card { padding: 20px; }
  details.t > summary { padding: 16px 18px; font-size: 1.08rem; }
  details.t > summary small { display: none; }
  details.t .in { padding: 0 14px 16px; }
  .credit { position: static; display: block; padding: 0 16px 8px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .head, .hero .cta, .dep, .notice, .calc, #schiff, #anfahrt, footer, .tabs, .credit { display: none !important; }
  .hero { color: #000; background: none; }
  .hero > img, .hero::before { display: none; }
  .hero .wrap { min-height: 0; padding: 0; display: block; }
  .hero h1 em, .hero .eyebrow { color: #000; }
  .hero p.sub { color: #000; }
  section { padding-block: 16px; }
  .panel[hidden] { display: block !important; }
  .panel h4 { display: block !important; margin: 12px 0 6px; }
  details.t > .in { display: block; }
  body { background: #fff; font-size: 12px; }
  .card { box-shadow: none; }
}
