/* 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%; }
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(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em.brand { font-style: italic; }

.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: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--on-petrol); text-decoration: none; font-family: var(--heading); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.logo img { width: 44px; height: 44px; border-radius: 11px; }
.logo:hover { color: var(--on-petrol); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--on-petrol); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; color: var(--on-petrol); }
.nav .nav-cta { background: var(--on-petrol); color: var(--petrol); padding: 10px 18px; border-radius: 999px; white-space: nowrap; }
.nav .nav-cta:hover { background: var(--tint); color: var(--petrol-dark); text-decoration: none; }
@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: 36px; height: 36px; }
  .nav .nav-cta { padding: 8px 14px; }
}

/* Hero */
.hero { background: var(--petrol); color: var(--on-petrol); padding: 48px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.hero-text { padding-bottom: 72px; }
.hero .lead { font-size: 1.3rem; color: var(--on-petrol-muted); max-width: 30ch; }
.phones { display: flex; justify-content: center; }
.phone { width: 270px; border: 10px solid #06262e; border-bottom: 0; border-radius: 44px 44px 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 / 1300; object-fit: cover; object-position: top; border-radius: 34px 34px 0 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 16px; }
  .phone { width: 230px; }
}

/* Official store badges: same height, used as provided (Apple and Google badge guidelines) */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.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; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
.section-intro { max-width: 52ch; color: var(--muted); font-size: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Route finder */
.finder-section { padding-top: 56px; }
.finder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 8px; }
.finder[hidden] { display: none; }
.finder label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 1rem; }
.finder select, .finder input { font: inherit; font-weight: 400; font-size: 1.05rem; color: var(--ink); min-height: 52px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: 100%; }
.finder select:focus, .finder input:focus { border-color: var(--petrol); }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .finder { grid-template-columns: 1fr; padding: 18px; } }
.finder-count { font-weight: 600; margin: 22px 0 12px; }
.trips { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.trip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.trip h3 { margin-bottom: .2em; }
.trip-meta { color: var(--muted); margin: 0; }
.trip-price { text-align: right; flex: none; }
.trip-price strong { display: block; font-family: var(--heading); font-weight: 600; font-size: 1.45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-price span { color: var(--muted); font-size: .95rem; }
.trip-route { margin: 12px 0 14px; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trip-link { display: inline-block; line-height: 28px; padding: 10px 20px; border-radius: 999px; background: var(--petrol); color: var(--on-petrol); text-decoration: none; font-weight: 600; }
.trip-link:hover { background: var(--petrol-dark); color: var(--on-petrol); }
.trip-toggle { font: inherit; font-weight: 600; line-height: 28px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--petrol); background: transparent; color: var(--petrol); cursor: pointer; }
.trip-toggle:hover { background: var(--tint); }
.trip-stops { margin-top: 12px; overflow-x: auto; }
.stops { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 1rem; }
.stops th, .stops td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--tint); }
.stops th { color: var(--muted); font-weight: 600; }
.stops tr.sea td { color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }
.more { font: inherit; font-weight: 600; margin-top: 18px; min-height: 52px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--petrol); background: transparent; color: var(--petrol); cursor: pointer; }
.more:hover { background: var(--tint); }
.more[hidden] { display: none; }
.finder-note { color: var(--muted); font-size: .95rem; margin-top: 22px; }
@media (max-width: 520px) {
  .trip-top { flex-direction: column; gap: 8px; }
  .trip-price { text-align: left; }
}

/* FAQ */
.faq { max-width: 760px; margin-top: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--heading); font-size: 1.4rem; line-height: 1; color: var(--petrol); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Download band */
.download { background: var(--petrol); color: var(--on-petrol); text-align: center; }
.download .stores { justify-content: center; margin-top: 8px; }

/* 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: 40px 0; font-size: .95rem; }
.site-footer a { color: var(--on-petrol); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.site-footer p { margin: 0 0 .6em; max-width: 70ch; }
