/* Kreuzfahrt buchen website. Colours and fonts match the app (app/lib/theme.dart). */

@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("fonts/Lexend-600.ttf") format("truetype"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/SourceSans3-400.ttf") format("truetype"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/SourceSans3-600.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --petrol: #0e4d5c;
  --petrol-dark: #08343f;
  --bg: #eef4f5;
  --surface: #ffffff;
  --ink: #10262d;
  --muted: #3e5a62;
  --border: #c9dadd;
  --tint: #dceaec;
  --on-petrol: #ffffff;
  --on-petrol-muted: #cfe3e7;
  --radius: 20px;
  --max: 1080px;
  --heading: "Lexend", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-dark); }
:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em.brand { font-style: italic; }
button, select, input { font: inherit; color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-header { background: var(--petrol); color: var(--on-petrol); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--on-petrol); text-decoration: none; font-family: var(--heading); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo:hover { color: var(--on-petrol); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--on-petrol); text-decoration: none; font-weight: 600; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--on-petrol); }
.nav .nav-cta { background: var(--on-petrol); color: var(--petrol); padding: 0 20px; white-space: nowrap; }
.nav .nav-cta:hover { background: var(--tint); color: var(--petrol-dark); }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }
@media (max-width: 420px) {
  .logo { font-size: 1.05rem; gap: 10px; }
  .logo img { width: 34px; height: 34px; }
  .nav .nav-cta { padding: 0 16px; }
}

/* Hero with the search */
.hero { background: var(--petrol); color: var(--on-petrol); padding: 36px 0 40px; }
.hero .lead { font-size: 1.25rem; color: var(--on-petrol-muted); margin-bottom: 24px; }
.search { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.search-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.search label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 1rem; }
.search select, .search input, .sort select { font-weight: 400; font-size: 1.05rem; min-height: 54px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: 100%; }
.search select:focus, .search input:focus, .sort select:focus { border-color: var(--petrol); }
.search-go { min-height: 54px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--petrol); color: var(--on-petrol); font-family: var(--heading); font-weight: 600; font-size: 1.05rem; cursor: pointer; white-space: nowrap; }
.search-go:hover { background: var(--petrol-dark); }
.search-more { margin-top: 12px; }
.search-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--petrol); list-style: none; }
.search-more summary::-webkit-details-marker { display: none; }
.search-more summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.search-more[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.search-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; margin-top: 6px; }
@media (max-width: 860px) {
  .search-main { grid-template-columns: 1fr 1fr; }
  .search-main label:first-child { grid-column: 1 / -1; }
  .search-go { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero { padding: 24px 0 28px; }
  .hero .lead { margin-bottom: 18px; }
  .search { padding: 16px; }
  .search-main { gap: 12px; }
  .search-extra { grid-template-columns: 1fr 1fr; }
  .search select, .search input { padding: 10px 12px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: var(--on-petrol); font-weight: 600; font-size: 1rem; cursor: pointer; }
.chip:hover { background: rgba(255, 255, 255, .12); }
.chip[aria-pressed="true"] { background: var(--on-petrol); color: var(--petrol); border-color: var(--on-petrol); }

/* Results */
.results { padding: 36px 0 56px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.results-count { margin: 0 0 4px; }
.results-note { margin: 0; color: var(--muted); font-size: .98rem; }
.results-tools { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sort { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 1rem; }
.link-button { min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--petrol); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button[hidden] { display: none; }
.sort select { min-width: 190px; }
@media (max-width: 520px) {
  .results-tools { width: 100%; justify-content: space-between; align-items: flex-end; flex-wrap: nowrap; }
  .sort select { min-width: 160px; }
}

.trips { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trip { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.trip-main { min-width: 0; }
.trip-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; color: var(--ink); }
.trip-nights { background: var(--tint); color: var(--petrol-dark); font-weight: 600; font-size: .92rem; padding: 2px 10px; border-radius: 8px; }
.trip h3 { margin-bottom: .15em; }
.trip-ship { color: var(--muted); margin: 0 0 12px; }
.route { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 1rem; }
.route li { white-space: nowrap; }
.route li:not(:last-child)::after { content: "→"; color: var(--muted); margin: 0 8px; }
.trip-side { text-align: right; }
.trip-price { font-family: var(--heading); font-weight: 600; font-size: 1.6rem; line-height: 1.1; margin: 0 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trip-price .from { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--muted); }
.trip-price-sub { margin: 0; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.trip-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--tint); }
.trip-toggle, .trip-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.trip-toggle { border: 2px solid var(--petrol); background: transparent; color: var(--petrol); }
.trip-toggle:hover { background: var(--tint); }
.trip-toggle::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.trip-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.trip-link { background: var(--petrol); color: var(--on-petrol); border: 2px solid var(--petrol); }
.trip-link .brand { margin: 0 .25em; }
.trip-link:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: var(--on-petrol); }
.trip-stops { grid-column: 1 / -1; overflow-x: auto; }
.trip-stops[hidden] { display: none; }
.stops { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 1rem; }
.stops th, .stops td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--tint); }
.stops th { color: var(--muted); font-weight: 600; }
.stops td.nowrap { white-space: nowrap; }
.stops tr.sea td { color: var(--muted); }
@media (max-width: 640px) {
  .trip { grid-template-columns: 1fr; padding: 18px; }
  .trip-side { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .trip-price { margin: 4px 0 0; }
  .trip-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .trip-toggle, .trip-link { padding: 0 12px; }
  .stops th, .stops td { padding: 8px 6px; }
}

.skeleton { min-height: 178px; background: linear-gradient(90deg, var(--surface) 0%, var(--tint) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-color: transparent; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.empty { list-style: none; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px 24px; color: var(--muted); }
.empty strong { color: var(--ink); }
.more { display: block; margin: 22px auto 0; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--petrol); background: var(--surface); color: var(--petrol); font-weight: 600; cursor: pointer; }
.more:hover { background: var(--tint); }
.more[hidden] { display: none; }
.results-fineprint { color: var(--muted); font-size: .95rem; margin: 26px 0 0; text-align: center; }

/* App band */
.app-band { background: var(--petrol); color: var(--on-petrol); padding: 48px 0 0; overflow: hidden; }
.app-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.app-text { padding-bottom: 48px; }
.app-text p { color: var(--on-petrol-muted); font-size: 1.15rem; max-width: 36ch; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.stores a { display: block; border-radius: 10px; }
.stores img { height: 56px; width: auto; }
/* The Google Play PNG has transparent space above and below the badge (188 of 250 px are badge), so it is drawn taller to match. */
.stores img.badge-google { height: 74px; margin: -9px 0; }
.phone { width: 250px; border: 10px solid #06262e; border-bottom: 0; border-radius: 42px 42px 0 0; overflow: hidden; background: #06262e; box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }
.phone img { width: 100%; height: auto; aspect-ratio: 780 / 1100; object-fit: cover; object-position: top; border-radius: 32px 32px 0 0; }
@media (max-width: 720px) {
  .app-band .wrap { grid-template-columns: 1fr; }
  .app-text { padding-bottom: 8px; }
  .phone { width: 210px; justify-self: center; }
}

/* Text pages (Impressum, Datenschutz, Hilfe) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page h3 { font-size: 1.1rem; margin-top: 1.5em; }
.page .updated { color: var(--muted); }
.page address { font-style: normal; }

/* Footer */
.site-footer { background: var(--petrol-dark); color: var(--on-petrol-muted); padding: 32px 0 40px; font-size: .95rem; }
.site-footer a { color: var(--on-petrol); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 -8px 14px; }
.site-footer .links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; }
.site-footer p { margin: 0 0 .6em; max-width: 70ch; }
