/* Kieler Hansekogge – Designentwurf: Hanse-Blau, Gold, Pergament */
:root {
  --navy: #0f2a43;
  --navy-2: #173a5c;
  --sea: #2c6e8f;
  --gold: #c9a24b;
  --gold-d: #a9822f;
  --brick: #9c3a2b;
  --parch: #f7f1e3;
  --parch-2: #efe6d0;
  --ink: #1d2733;
  --muted: #5d6874;
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--parch); }
img, svg { max-width: 100%; }
a { color: var(--sea); }
a:hover { color: var(--brick); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 99; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--gold); margin: 0 0 .4rem; font-weight: 600; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; }
.brand small { color: var(--gold); font-size: .75rem; letter-spacing: .08em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .2rem; }
.main-nav a { display: block; padding: .55rem .8rem; color: #e8eef4; text-decoration: none; border-radius: 6px; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--navy-2); color: #fff; }
.main-nav a[aria-current]:not(.btn) { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
.caret { margin-left: .3rem; font-size: .7rem; opacity: .7; }
.has-sub { position: relative; }
.sub { display: none !important; position: absolute; top: 100%; left: 0; min-width: 15rem; background: var(--navy); border-top: 3px solid var(--gold); padding: .4rem; border-radius: 0 0 8px 8px; box-shadow: 0 10px 24px rgba(0,0,0,.3); flex-direction: column; align-items: stretch !important; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex !important; }
.nav-toggle { display: none; background: var(--gold); color: var(--navy); border: 0; font-weight: 700; padding: .5rem 1rem; border-radius: 6px; font-size: 1rem; }
.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy) !important; }
.btn-gold:hover { background: #dcb862 !important; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.15) !important; }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-2) !important; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 80% 0%, #2c6e8f 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, #1b4a6b 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 4.5rem 0 6rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 1rem; }
.hero p.lead { font-size: 1.2rem; color: #dbe6ee; max-width: 36rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .ship { color: var(--parch); width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.waves { display: block; width: 100%; height: 50px; fill: var(--parch); position: absolute; bottom: -1px; left: 0; }

.page-hero { position: relative; background: linear-gradient(180deg, var(--navy), #1b4a6b); color: #fff; padding: 3rem 0 4.2rem; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: #dbe6ee; font-size: 1.15rem; max-width: 42rem; margin: .6rem 0 0; }

/* Content */
.content { padding: 2rem 0 4rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; border-bottom: 2px solid var(--gold); padding-bottom: .3rem; display: inline-block; }
.prose blockquote { margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--gold); background: var(--parch-2); font-family: var(--serif); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.prose th, .prose td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--parch-2); }
.prose th { background: var(--navy); color: #fff; font-weight: 600; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.subnav a { padding: .4rem .9rem; border-radius: 999px; background: #fff; text-decoration: none; font-size: .9rem; border: 1px solid var(--parch-2); }
.subnav a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.note { background: #fff8e1; border: 1px dashed var(--gold-d); border-radius: var(--radius); padding: .8rem 1rem; font-size: .92rem; color: #6b5516; }

/* Sections on the start page */
.section { padding: 3.5rem 0; }
.section.alt { background: #fff; }
.section.dark { background: var(--navy); color: #dbe6ee; }
.section.dark h2 { color: #fff; }
.section h2.big { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 .5rem; }
.sec-head { max-width: 40rem; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(15,42,67,.1); border-top: 4px solid var(--gold); display: flex; flex-direction: column; }
.section.alt .card { background: var(--parch); }
.card h3 { margin: .2rem 0 .5rem; }
.card p { margin: 0 0 1rem; flex: 1; }
.card .more { font-weight: 700; text-decoration: none; }
.card .icon { font-size: 2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.fact b { display: block; font: 700 2.4rem var(--serif); color: var(--gold); }
.fact span { font-size: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); }
.timeline li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); }
.timeline b { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.termine li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius); padding: .8rem 1rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.termine .date { text-align: center; background: var(--navy); color: #fff; border-radius: 8px; padding: .3rem; line-height: 1.1; }
.termine .date b { display: block; font: 700 1.5rem var(--serif); }
.termine .date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.tag { font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; color: #fff; white-space: nowrap; }
.tag.gruen { background: #3c8a4f; } .tag.rot { background: var(--brick); } .tag.blau { background: var(--sea); }

/* Form */
form.booking { display: grid; gap: 1rem; background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(15,42,67,.1); }
form.booking label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
form.booking input, form.booking select, form.booking textarea { font: inherit; padding: .6rem .8rem; border: 1px solid #c9c2ad; border-radius: 6px; background: var(--parch); }
form.booking .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.site-footer { position: relative; background: var(--navy); color: #c8d4de; margin-top: 4rem; padding-top: 4rem; }
.site-footer .waves { top: -1px; bottom: auto; transform: rotate(180deg); fill: var(--parch); }
.site-footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0 2rem; font-size: .85rem; margin-top: 2rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: .5rem 1rem 1rem; max-height: 80vh; overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; display: none !important; box-shadow: none; border: 0; padding-left: 1rem; }
  .has-sub.expanded > .sub { display: flex !important; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .ship { max-width: 420px; margin: 0 auto; }
  .termine li { grid-template-columns: 4.5rem 1fr; } .termine .tag { grid-column: 2; justify-self: start; }
  form.booking .row { grid-template-columns: 1fr; }
}

.hero .wrap > *, .split > * { min-width: 0; }
.brand small { white-space: nowrap; }

/* Entwurfs-Banner (abschaltbar über draft_banner in _config.yml) */
.draft-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.2rem; padding: .9rem 1rem; text-align: center; color: #1d1d1d; background: repeating-linear-gradient(-45deg, #ffd23f 0 22px, #f2bd1c 22px 44px); border-bottom: 4px solid #1d1d1d; }
.draft-banner strong { font: 900 clamp(1.6rem, 4vw, 2.4rem)/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; background: #1d1d1d; color: #ffd23f; padding: .25rem .8rem .25rem 1.05rem; border-radius: 4px; }
.draft-banner span { font-weight: 700; font-size: 1rem; }

/* Bilder, Preise, Termine */
figure.photo { margin: 1.5rem 0; }
figure.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(15,42,67,.2); }
figure.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; }
.prose .btn { text-decoration: none; }
.prose table.small { font-size: .9rem; }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; }
.month { margin: 2rem 0 .6rem; font: 700 1.3rem var(--serif); color: var(--navy); }
.termine.full li { grid-template-columns: 6.5rem 1fr auto; }
.termine .when { font-size: .8rem; color: var(--muted); }
.past { opacity: .75; }
details.archive { margin-top: 2.5rem; }
details.archive summary { cursor: pointer; font: 700 1.1rem var(--serif); color: var(--navy); }
.lang-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
