/* Reederei Tafel — Design Tokens & Base Styles */
:root {
  --ink: #0E0E0E;
  --ink-soft: #1A1A1A;
  --paper: #F2EDE3;
  --paper-deep: #E8E1D2;
  --paper-fade: #EDE6D8;
  --brass: #B08D3F;
  --brass-deep: #8A6E2E;
  --rust: #7A2E1F;
  --line: rgba(14, 14, 14, 0.18);
  --line-strong: rgba(14, 14, 14, 0.4);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 144px;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --serif: "Helvetica Neue", "Inter", "Arial", sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8.4vw, 120px); letter-spacing: -0.04em; }
h2 { font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.035em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.025em; line-height: 1.1; }
h4 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em 0; max-width: 62ch; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 60ch; font-weight: 300; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-block;
}
.section-no {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: block;
  margin-bottom: var(--space-5);
}

/* Wordmark */
.wordmark {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.wordmark-lg { font-size: 14px; letter-spacing: 0.42em; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--space-7) 0; }
section.tight { padding: var(--space-6) 0; }
section.large { padding: var(--space-8) 0; }

.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow, .dark .section-no { color: var(--brass); }
.dark hr, .dark .rule { border-color: rgba(242, 237, 227, 0.18); }

.deep { background: var(--paper-deep); }

hr, .rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-strong { border-top: 1px solid var(--ink); }
.dark .rule-strong { border-top: 1px solid var(--paper); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 237, 227, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass-deep);
  transition: width 200ms ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brass-deep); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--ink);
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
  }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 16px var(--gutter);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--ink);
  transition: background 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .btn:hover { background: transparent; color: var(--paper); }
.btn .arrow { font-family: var(--mono); font-size: 14px; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 200ms ease;
}
.link-arrow:hover { gap: 18px; }

/* Pull Quote */
.pullquote {
  border-left: 2px solid var(--brass);
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 28ch;
}
.pullquote-source {
  display: block;
  margin-top: var(--space-4);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.dark .pullquote-source { color: var(--brass); }

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dark .stat-grid { border-color: rgba(242, 237, 227, 0.2); }
.stat {
  padding: var(--space-5) var(--space-3) var(--space-5) 0;
  border-right: 1px solid var(--line);
}
.dark .stat { border-color: rgba(242, 237, 227, 0.2); }
.stat:last-child { border-right: 0; }
.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--space-3);
}
.dark .stat-label { color: var(--brass); }
.stat-value {
  font-size: clamp(48px, 5.4vw, 84px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-unit {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: var(--space-3);
  color: var(--brass-deep);
}
.dark .stat-unit { color: var(--brass); }
.stat-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .stat-grid, .stat-grid.two { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat { padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); }
  .dark .stat { border-color: rgba(242, 237, 227, 0.2); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Tables — editorial */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  padding: 18px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--ink);
}
.dark .table th, .dark .table td { border-color: rgba(242,237,227,0.2); }
.dark .table th { border-bottom-color: var(--paper); color: var(--brass); }

/* Image placeholder */
.image-frame {
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}
.image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.image-frame.tall { aspect-ratio: 4/5; }
.image-frame.portrait { aspect-ratio: 3/4; }
.image-frame.square { aspect-ratio: 1/1; }
.image-frame.wide { aspect-ratio: 16/9; }
.image-frame.broad { aspect-ratio: 3/2; }
.image-caption {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: var(--space-3);
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--space-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(242,237,227,0.18);
}
.footer h5 {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--space-4) 0;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; font-size: 14px; }
.footer li a:hover { color: var(--brass); }
.footer p { font-size: 14px; margin: 0; opacity: 0.8; max-width: 36ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,227,0.55);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-2); align-items: flex-start; }
}

/* Hero block */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 14vw, 200px) 0 clamp(60px, 9vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid rgba(242,237,227,0.2);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-7);
}
.hero h1 { color: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: end;
  margin-top: var(--space-7);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Card grid (lines/packages) */
.card {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-4);
}
.dark .card { border-top-color: var(--paper); }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
  margin-bottom: var(--space-4);
}
.dark .card .num { color: var(--brass); }
.card h3 { margin-bottom: var(--space-3); }
.card p { font-size: 15px; }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}
.two-col.lopsided { grid-template-columns: 5fr 6fr; }
.two-col.lopsided-r { grid-template-columns: 6fr 5fr; }
@media (max-width: 860px) {
  .two-col, .two-col.lopsided, .two-col.lopsided-r { grid-template-columns: 1fr; gap: var(--space-5); }
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 860px) { .three-col { grid-template-columns: 1fr; } }

.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) { .four-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .four-col { grid-template-columns: 1fr; } }

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-6);
}
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-5); } }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--brass-deep);
}
.radio-row, .check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.radio-row label, .check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms;
}
.radio-row input, .check-row input { accent-color: var(--ink); margin: 0; }
.radio-row label:has(input:checked), .check-row label:has(input:checked) {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Misc */
.text-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-deep);
}
.dark .label { color: var(--brass); }

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border: 1px solid currentColor;
  padding: 4px 10px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.divider-text::before, .divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.dark .divider-text::before, .dark .divider-text::after { background: rgba(242,237,227,0.2); }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dark .list-clean li { border-color: rgba(242,237,227,0.2); }
.list-clean li:last-child { border-bottom: 0; }

/* Menu list (Speisekarte) */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.menu-list .dish-name {
  font-size: 22px;
  font-weight: 200;
  letter-spacing: -0.02em;
}
.menu-list .dish-desc {
  font-size: 14px;
  color: rgba(14,14,14,0.7);
  margin-top: 4px;
  max-width: 56ch;
}
.menu-list .season {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-deep);
  white-space: nowrap;
  font-weight: 500;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 0;
  padding: 18px 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  position: relative;
}
.tab.active {
  border-bottom-color: var(--brass);
  color: var(--brass-deep);
}
.tab .roman { color: var(--brass-deep); margin-right: 12px; font-family: var(--mono); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-5);
  border-left: 1px solid var(--ink);
}
.dark .timeline { border-left-color: var(--paper); }
.timeline-item { padding: var(--space-4) 0 var(--space-5) var(--space-4); position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-5) - 5px);
  top: 30px;
  width: 9px; height: 9px;
  background: var(--brass);
  border-radius: 50%;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
}
.dark .timeline-year { color: var(--brass); }
.timeline-item h4 { margin: 6px 0 8px 0; }
.timeline-item p { font-size: 15px; }

/* Cookie / mini-banner if needed */

/* Page header (sub pages) */
.page-head {
  background: var(--paper-deep);
  padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px);
}
.page-head .meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
}
.page-head .meta .label { color: var(--brass-deep); }
.page-head h1 { font-size: clamp(44px, 7vw, 96px); max-width: 16ch; }
