/* BracFerries – Design-Layer. Farben: Adria (tief), Meer (türkis), Brač-Kalkstein (hell), Sonne (CTA), Kiefer (Akzent). */
:root {
  --sea-900: #08324a; --sea-800: #0d4a63; --sea-600: #1f6f86; --sea-400: #3fa3b2; --sea-200: #bfe3e6; --sea-50: #eef8f8;
  --stone-50: #fbf8f2; --stone-100: #f4efe4; --stone-300: #e2d8c4; --stone-600: #8a7d66;
  --sun: #f2b544; --sun-600: #d99a22; --pine: #2f5d3a; --ink: #18262f; --ink-2: #44535c; --line: #dfe5e7;
  --radius: 14px; --shadow: 0 8px 28px rgba(8, 50, 74, .12); --wrap: 1160px;
  --f-display: 'Source Serif 4', Georgia, serif; --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 var(--f-body); color: var(--ink); background: var(--stone-50); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-600); text-underline-offset: 2px; }
a:hover { color: var(--sea-800); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; color: var(--sea-900); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: .2em 0 .25em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.4rem; margin: 1.3em 0 .4em; }
h4 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { flex: none; vertical-align: -4px; }
:focus-visible { outline: 3px solid var(--sea-400); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 0; border-radius: 999px; padding: 12px 22px;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: #1c1503; }
.btn-sun:hover { background: var(--sun-600); color: #1c1503; }
.btn-sea { background: var(--sea-800); color: #fff; }
.btn-sea:hover { background: var(--sea-900); color: #fff; }
.btn-ghost { background: #fff; color: var(--sea-800); box-shadow: inset 0 0 0 2px var(--sea-200); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sea-600); color: var(--sea-900); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sea-900); }
.brand-word { font: 600 1.35rem/1 var(--f-display); letter-spacing: -.2px; }
.brand-word b { color: var(--sea-600); font-weight: 700; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--sea-50); color: var(--sea-800); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: .82rem; font-weight: 700; }
.langs a, .langs span { display: block; padding: 5px 6px; border-radius: 6px; text-decoration: none; color: var(--ink-2); }
.langs span { color: var(--sea-800); background: var(--sea-50); }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--sea-900); cursor: pointer; }
.drawer { border-top: 1px solid var(--line); background: var(--stone-50); }
.drawer ul { list-style: none; margin: 0; padding: 8px 20px 16px; columns: 2; }
.drawer a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
@media (max-width: 1080px) { .nav { display: none; } .burger { display: block; } .hdr-tools { margin-left: auto; } }
@media (max-width: 560px) { .hdr-cta { display: none; } .langs { font-size: .78rem; } .brand-word { font-size: 1.3rem; } .drawer ul { columns: 1; } }

/* Hero Startseite */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 50, 74, .55) 0%, rgba(8, 50, 74, .25) 45%, rgba(8, 50, 74, .8) 100%); }
.hero-in { padding: 70px 20px 40px; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .lead { font-size: 1.2rem; max-width: 46ch; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.hero .photo-credit { color: rgba(255, 255, 255, .85); }
.hero .photo-credit a { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.facts li { background: rgba(8, 50, 74, .55); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 14px; font-size: .95rem; backdrop-filter: blur(4px); }

/* Unterseiten-Hero */
.sub-hero { position: relative; background: var(--sea-900); color: #fff; isolation: isolate; }
.sub-hero.has-photo { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.sub-hero-img, .sub-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sub-hero.has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 50, 74, .05) 0%, rgba(8, 50, 74, .35) 45%, rgba(8, 50, 74, .82) 100%); }
.sub-hero h1, .sub-hero .lead { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.sub-hero a, .hero .lead a { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
.sub-hero-in { padding: 56px 20px 18px; }
.sub-hero h1 { color: #fff; max-width: 22ch; }
.sub-hero .lead { font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: .9rem; opacity: .9; }
.crumbs a { color: #fff; }
.updated { font-size: .88rem; opacity: .85; }
.photo-credit { display: block; font-size: .75rem; padding: 6px 0 10px; color: rgba(255, 255, 255, .75); }
.photo-credit a { color: inherit; }

/* Inhalt */
.content { padding: 24px 0 40px; }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.aside { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } .aside { position: static; } }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.box h3 { margin-top: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 500; }
.callout { background: var(--sea-50); border-left: 4px solid var(--sea-400); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 1.2em 0; }
.callout.warn { background: #fff6e2; border-color: var(--sun-600); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sea-800); color: #fff; font-weight: 700; }
tbody th { font-weight: 500; }
td { white-space: nowrap; }

/* Suche */
.search { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 24px; color: var(--ink); margin: 0 0 24px; }
.hero .search { margin-top: 28px; }
.search-head h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.search-head p { color: var(--ink-2); margin-bottom: 14px; font-size: .98rem; }
.search-form { display: grid; grid-template-columns: 2.2fr 1.3fr .8fr .9fr 1.4fr auto; gap: 12px; align-items: end; }
.f { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .3px; }
.f select, .f input { width: 100%; font: 500 1rem var(--f-body); color: var(--ink); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--stone-50); min-height: 46px; }
.f select:focus, .f input:focus { border-color: var(--sea-400); outline: none; box-shadow: 0 0 0 3px var(--sea-200); }
.f-go { min-height: 46px; }
@media (max-width: 1000px) { .search-form { grid-template-columns: 1fr 1fr; } .f-route, .f-go { grid-column: 1 / -1; } }
@media (max-width: 420px) { .search { padding: 18px 14px; } }
.results { margin-top: 18px; }
.r-head { margin-bottom: 8px; }
.r-status { padding: 14px; background: var(--sea-50); border-radius: 10px; }
.r-err { background: #fff2ef; }
.r-block { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.r-block h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--sea-800); }
.r-list { list-style: none; margin: 0; padding: 0; }
.r-row { display: grid; grid-template-columns: 150px 1fr 170px auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.r-row small { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 400; }
.r-time b { font-size: 1.15rem; }
.r-price b { font-size: 1.1rem; color: var(--sea-900); }
.r-onreq { color: var(--ink-2); font-size: .9rem; }
.r-note { font-size: .9rem; color: var(--ink-2); margin: 8px 0; }
.r-flag { font-size: .9rem; background: #fff6e2; border-radius: 8px; padding: 8px 12px; }
@media (max-width: 640px) { .r-row { grid-template-columns: 1fr auto; } .r-op { grid-column: 1; } .r-price { grid-column: 2; grid-row: 1; text-align: right; } .r-row .btn { grid-column: 1 / -1; } }

/* Fahrplan / Tarife */
.tt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 1.2em 0; }
.tt h3 { margin-top: 0; }
.tt-meta { color: var(--ink-2); font-size: .95rem; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tt-period { background: var(--stone-50); border-radius: 12px; padding: 14px; }
.tt-period h4 { color: var(--sea-800); display: flex; gap: 6px; align-items: center; }
.tt-port { margin-top: 10px; }
.tt-port strong { font-size: .92rem; }
.tt-wk { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; margin-top: 4px; }
.tt-wk > span { font-size: .8rem; color: var(--ink-2); padding-top: 4px; }
.times { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.times li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; font-size: .92rem; }
.times sup { color: var(--sun-600); font-weight: 700; margin-left: 1px; }
.tt-notes { list-style: none; padding: 0; font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.tt-notes sup { color: var(--sun-600); font-weight: 700; }
.tt-src { font-size: .85rem; color: var(--ink-2); margin: 12px 0 0; }
.fares { margin: 1.2em 0; }
.fares h3 { margin-bottom: .6em; }

/* Karten */
.cards-sec { padding: 10px 0 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; display: grid; gap: 4px; }
.card-kicker { font-size: .82rem; font-weight: 700; color: var(--sea-600); text-transform: uppercase; letter-spacing: .3px; }
.card strong { font: 600 1.3rem/1.2 var(--f-display); color: var(--sea-900); }
.card-txt { font-size: .95rem; color: var(--ink-2); }

/* Boxen */
.stay, .df-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0; }
.stay { background: var(--stone-100); border: 1px solid var(--stone-300); }
.df-cta { background: var(--sea-50); border: 1px solid var(--sea-200); }
.stay h3, .df-cta h3 { margin: 0 0 4px; font-size: 1.25rem; }
.stay p, .df-cta p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.stay > .ic, .df-cta > .ic { width: 34px; height: 34px; color: var(--sea-600); }
@media (max-width: 640px) { .stay, .df-cta { grid-template-columns: 1fr; } .stay > .ic, .df-cta > .ic { display: none; } }

/* FAQ */
.faq { max-width: 820px; margin: 2em 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--sea-600); }
.faq details[open] summary::after { content: '–'; }
.faq-a { padding: 0 18px 14px; }
.faq-a p:last-child { margin-bottom: 0; }

/* Startseite: Abschnitte */
.sec { padding: 28px 0; }
.sec-alt { background: var(--stone-100); }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }
.compare th:first-child { white-space: normal; }

/* Footer */
.ftr { background: var(--sea-900); color: #cfe4ea; margin-top: 40px; font-size: .95rem; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 24px; }
.ftr h2 { font: 700 .85rem var(--f-body); text-transform: uppercase; letter-spacing: .6px; color: var(--sea-200); margin: 0 0 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 6px; }
.brand-inv { color: #fff; }
.brand-inv .brand-word b { color: var(--sea-200); }
.ftr-brand p { margin-top: 12px; max-width: 36ch; }
.langs-ftr { margin-top: 14px; flex-wrap: wrap; }
.langs-ftr a { color: #cfe4ea; }
.langs-ftr a[aria-current] { color: #fff; background: rgba(255, 255, 255, .1); }
.ftr-note { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 26px; font-size: .85rem; color: #a9c6cf; }
@media (max-width: 860px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* Preisalarm-Box (nl.js) im Suchergebnis */
.results .nl-box { margin-top: 12px; }

/* Bildnachweise, Bilder im Text */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 20px 0; }
.credit { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.credit img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.credit figcaption { padding: 10px 12px; }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: 12px; }
.prose figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 6px; }
.prose figcaption .photo-credit { color: var(--ink-2); padding: 0; display: inline; }

/* Mobil: Suche früher im Blick (Lehre Preisalarm-Diagnose 28.10.2026: tief sitzende Boxen werden kaum genutzt) */
@media (max-width: 640px) {
  .hero-in { padding: 26px 16px 22px; }
  .hero h1 { font-size: 2rem; margin-bottom: .15em; }
  .hero .lead { font-size: 1rem; margin-bottom: .4em; }
  .facts { gap: 6px; margin-top: 10px; }
  .facts li { font-size: .8rem; padding: 4px 10px; }
  .hero .search { margin-top: 16px; }
  .search-head p { display: none; }
  .search-head h2 { font-size: 1.35rem; margin-bottom: 10px; }
  .sub-hero.has-photo { min-height: 260px; }
  .sub-hero-in { padding: 34px 16px 12px; }
  .wrap { padding: 0 16px; }
}

/* Suche und Kästen in der Textspalte/Seitenleiste */
.search-compact .search-form, .cols .search-form { grid-template-columns: 1fr 1fr 1fr; }
.search-compact .f-route, .cols .f-route { grid-column: 1 / -1; }
.search-compact .f-go, .cols .f-go { grid-column: span 2; }
@media (max-width: 520px) { .search-compact .search-form, .cols .search-form { grid-template-columns: 1fr 1fr; } .search-compact .f-go, .cols .f-go { grid-column: 1 / -1; } }
.aside .stay, .aside .df-cta { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.aside .stay > .ic, .aside .df-cta > .ic { display: none; }
.aside .stay .btn, .aside .df-cta .btn { justify-self: start; }
.prose .search { margin: 1.4em 0; }
