/* Fährhaus Krautsand — palette taken from the place: river fog, channel green, buoy red. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-vf.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --fog: #E6ECEA;
  --paper: #FBFCFA;
  --deep: #12352F;
  --ink: #131A19;
  --buoy: #C8371F;
  --buoy-dark: #A32A15;
  --brass: #8A6520;
  --water: #B9CFCB;
  --line: rgba(19, 26, 25, .16);
  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
h1, h2, h3, p, ul, dl, dd, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: .5rem; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1.35rem; border: 2px solid transparent; border-radius: 999px; font: 600 1rem/1.2 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-solid { background: var(--buoy); color: #fff; }
.btn-solid:hover { background: var(--buoy-dark); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: .7rem var(--pad); background: rgba(230, 236, 234, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 400 1.3rem/1 var(--display); text-decoration: none; color: var(--deep); margin-right: auto; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { text-decoration: none; font-weight: 500; padding-block: .4rem; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: var(--buoy); }
.top .btn { min-height: 2.5rem; padding-inline: 1.1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; max-width: calc(var(--wrap) + 8rem); margin-inline: auto; padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) 0; }
.hero-copy { padding-bottom: 2rem; }
.lede { max-width: 34em; margin-top: 1.5rem; font-size: 1.1875rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.tafel { position: relative; z-index: 1; padding: 1.6rem 1.7rem 1.4rem; background: var(--deep); color: #E9F1EE; border-radius: 6px; box-shadow: 0 0 0 6px var(--deep), 0 0 0 7px rgba(233, 241, 238, .35), 0 24px 40px -18px rgba(18, 53, 47, .55); }
.tafel-date { font: 400 1.75rem/1.15 var(--display); }
.tafel-status { display: inline-flex; align-items: center; gap: .5rem; margin-top: .7rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(233, 241, 238, .14); font-weight: 600; font-size: .9375rem; }
.tafel-status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #9FB3AE; }
.tafel-status.is-open::before { background: #7BE0A2; box-shadow: 0 0 0 4px rgba(123, 224, 162, .22); }
.tafel-status.is-closed::before { background: #F0947F; }
.tafel dl { margin-top: 1.3rem; border-top: 1px solid rgba(233, 241, 238, .25); }
.tafel dl div { display: grid; grid-template-columns: 7.2rem 1fr; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid rgba(233, 241, 238, .25); }
.tafel dt { color: #A9C2BC; font-size: .9375rem; }
.tafel dd { font-weight: 500; }
.tafel-note { margin-top: 1rem; font-size: .8125rem; line-height: 1.45; color: #A9C2BC; }

.horizon { display: block; width: 100%; height: clamp(150px, 21vw, 300px); margin-top: -3.5rem; }
.horizon .sun { fill: #F2C9A0; }
.horizon .far { fill: #C9D8D4; }
.horizon .dike { fill: #5E8A6F; }
.horizon .beam { fill: #FBFCFA; opacity: .55; transform-origin: 282px 66px; animation: sweep 7s ease-in-out infinite alternate; }
.horizon .w1 { fill: var(--water); animation: drift 9s linear infinite; }
.horizon .w2 { fill: var(--deep); animation: drift 6s linear infinite reverse; }
/* Negative delay: the ferry is already mid-river on load instead of poking a corner in from the left edge. */
.horizon .ferry { animation: cross 46s linear -14s infinite; }
@keyframes drift { to { transform: translateX(160px); } }
@keyframes sweep { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes cross { from { transform: translate(-180px, 196px); } to { transform: translate(1460px, 196px); } }

/* ---------- sections ---------- */
section:not(.hero) { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { display: grid; gap: .8rem; max-width: 40rem; margin-bottom: 2.2rem; }
.fineprint { margin-top: 1.2rem; font-size: .875rem; color: #4A5856; }

.karte { background: var(--deep); color: #E9F1EE; margin-top: -1px; }
.karte .fineprint { color: #A9C2BC; }
.karte-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(233, 241, 238, .25); }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.tabs button { padding: .5rem 0; border: 0; border-bottom: 3px solid transparent; background: none; color: #A9C2BC; font: 500 1.0625rem/1.2 var(--text); cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--buoy); }
.chips { display: flex; gap: .5rem; }
.chip { padding: .4rem .95rem; border: 1.5px solid rgba(233, 241, 238, .45); border-radius: 999px; background: none; color: inherit; font: 500 .9375rem/1.2 var(--text); cursor: pointer; }
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #E9F1EE; border-color: #E9F1EE; color: var(--deep); }
.karte :focus-visible { outline-color: #F2C9A0; }

.dishes { columns: 2; column-gap: clamp(2rem, 6vw, 5rem); }
.dishes li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(233, 241, 238, .18); break-inside: avoid; }
.dishes p { margin-top: .2rem; color: #BCD0CB; font-size: .9688rem; }
.price { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: #F2C9A0; }
.dishes-empty { padding: 2rem 0; max-width: 34em; }

.haus { background: var(--paper); }
.haus-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.haus-grid p { max-width: 36em; margin-top: 1.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts li { font-size: .9688rem; max-width: 9rem; line-height: 1.35; }
.facts b { display: block; font: 400 2.4rem/1.1 var(--display); color: var(--buoy); }
.hours { padding: 1.6rem 1.7rem; background: var(--fog); border-radius: 6px; }
.hours h3 { font: 400 1.6rem/1.2 var(--display); margin-bottom: .8rem; }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--deep); }
.hours tr.is-today th::after { content: " · heute"; color: var(--buoy); }

.tisch-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.tisch-copy p { margin-top: 1.2rem; max-width: 30em; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); border-radius: 6px; box-shadow: 0 18px 36px -24px rgba(18, 53, 47, .5); }
dialog form { display: block; padding: 0; background: none; box-shadow: none; }
.field { display: grid; gap: .35rem; align-content: start; }
.field-wide { grid-column: 1 / -1; }
label, .label { font-weight: 600; font-size: .9375rem; }
.opt { font-weight: 400; color: #4A5856; }
input, select, textarea { width: 100%; min-height: 2.9rem; padding: .55rem .8rem; border: 1.5px solid #8FA09C; border-radius: 4px; background: #fff; color: var(--ink); font: 400 1rem/1.3 var(--text); }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--deep); }
select:disabled { background: var(--fog); color: #4A5856; }
[aria-invalid="true"] { border-color: var(--buoy); background: #FDF1EE; }
.err { min-height: 0; font-size: .875rem; font-weight: 500; color: var(--buoy-dark); }
.err:empty { display: none; }
.stepper { display: inline-grid; grid-template-columns: 2.9rem 3.2rem 2.9rem; align-items: center; border: 1.5px solid #8FA09C; border-radius: 4px; background: #fff; width: max-content; }
.stepper button { height: 2.75rem; border: 0; background: none; font: 500 1.4rem/1 var(--text); color: var(--deep); cursor: pointer; }
.stepper button:hover { background: var(--fog); }
.stepper button:disabled { color: #9FB0AC; cursor: default; background: none; }
.stepper output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tisch .fineprint { margin-top: 0; }

.confirm { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--deep); color: #E9F1EE; border-radius: 6px; }
.confirm svg { color: #7BE0A2; }
.confirm h3 { font: 400 1.9rem/1.2 var(--display); margin-top: .8rem; }
.confirm p { margin-top: .8rem; }
.confirm .fineprint { color: #A9C2BC; }
.confirm .btn { margin-top: 1.4rem; }
.confirm .btn-line:hover { background: #E9F1EE; border-color: #E9F1EE; color: var(--deep); }

.anfahrt { background: var(--paper); }
.anfahrt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
address { margin-top: 1.4rem; font-size: 1.125rem; line-height: 1.5; }
.ways { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.ways li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.ways b { display: block; }
.map svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.map-here { font: 700 17px var(--text); fill: #A32A15; }
.map-label { font: 500 13px var(--text); fill: #131A19; }
.map-water { font: 400 22px var(--display); fill: #12352F; font-style: italic; }
figcaption { margin-top: .7rem; font-size: .875rem; color: #4A5856; }

/* ---------- footer & dialog ---------- */
.foot { padding-block: 2.8rem 2rem; background: var(--ink); color: #D5DEDB; font-size: .9688rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem 2rem; }
.foot-brand { font: 400 1.5rem/1.2 var(--display); color: #fff; }
.foot a:hover { color: #fff; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover { color: #fff; }
.demo-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(213, 222, 219, .2); font-size: .8438rem; color: #A3B2AE; }
.foot :focus-visible { outline-color: #F2C9A0; }

dialog { width: min(32rem, calc(100vw - 2rem)); padding: 1.8rem; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(19, 26, 25, .6); }
dialog h2 { font-size: 1.9rem; }
dialog p { margin-top: 1rem; }
dialog .btn { margin-top: 1.4rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .haus-grid, .tisch-grid, .anfahrt-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .horizon { margin-top: -1rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .top nav { display: none; }
  .dishes { columns: 1; }
  form { grid-template-columns: minmax(0, 1fr); }
  .tafel dl div { grid-template-columns: 6.2rem 1fr; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.1rem; }
  .top { gap: .75rem; }
  .top .btn { padding-inline: .85rem; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .horizon .beam, .horizon .w1, .horizon .w2 { animation: none; }
  .horizon .ferry { animation: none; transform: translate(880px, 196px); }
  .btn { transition: none; }
}
