/* CC Dahmen – schlichtes neues Layout */
:root {
  --bg: #f4f6f8;
  --surface: #fff;
  --text: #1a2330;
  --muted: #5a6570;
  --line: #dce3ea;
  --accent: #1c517c;
  --accent-hover: #153e5f;
  --accent-soft: #e7f0f6;
  --notice: #6b4f1d;
  --notice-bg: #f4eee2;
  --shadow: 0 1px 2px rgba(26, 35, 48, 0.06), 0 8px 24px rgba(26, 35, 48, 0.05);
  --radius: 12px;
  --max: 84rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand-logo {
  height: 3.5rem;
  width: auto;
  flex: 0 0 auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent-hover); }
.nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

main.wrap { padding: 2rem 0 3.5rem; }

.crumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #9aa6b0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 0.8rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 50rem; }
.meta, .rights, .pruefen {
  font-size: 0.9rem;
  color: var(--muted);
}
.pruefen { color: var(--notice); }

.notice {
  background: var(--notice-bg);
  border: 1px solid #e4d7bd;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  color: var(--notice);
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }

.prose { max-width: none; }
.prose > p, .prose > ul, .prose > ol, .prose > h1, .prose > h2, .prose > h3, .prose > table, .prose > address { max-width: 50rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.2rem 0; }
.prose li + li { margin-top: 0.2rem; }

.figure-inline {
  margin: 1.25rem 0 1.5rem;
  max-width: 28rem;
}
.figure-inline figcaption, .gallery figcaption, .pdf-card small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.hero {
  padding: 1.2rem 0 0.4rem;
}
.hero h1 { margin-bottom: 0.6rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.card:hover { color: inherit; transform: translateY(-2px); border-color: #b7cde0; }
.card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  background: #e8eef3;
}
.card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.card h2, .card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }
.card .more { margin-top: 0.8rem; font-size: 0.9rem; color: var(--accent); font-weight: 600; }

.rating { font-weight: 650; color: var(--accent); letter-spacing: 0.05em; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
  align-items: start;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gallery a { display: block; text-decoration: none; color: inherit; }
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8eef3;
}
.gallery figcaption { padding: 0.45rem 0.55rem 0.65rem; }

.pdf-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
}
.pdf-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}
.pdf-card:hover { border-color: #b7cde0; color: inherit; }
.pdf-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
}
.pdf-card strong { display: block; }

.album-grid {
  grid-template-columns: repeat(auto-fill, minmax(max(9rem, calc((100% - 3rem) / 4)), 1fr));
}
.album-grid .card img { height: 9rem; }

.rights {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Lightbox */
.lb[hidden] { display: none; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 16, 14, 0.88);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #f4f3ee;
}
.lb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  gap: 0.5rem;
}
.lb-count { font-size: 0.9rem; color: #d4d2ca; }
.lb-close, .lb-prev, .lb-next {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.1); }
.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 3.2rem;
  position: relative;
}
.lb-stage img {
  max-width: 95vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-cap {
  padding: 0.7rem 1rem 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #e8e6de;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.4rem 0.7rem; z-index: 30; }

@media (max-width: 640px) {
  .header-inner { padding: 0.7rem 0; }
  .brand-logo { height: 2.75rem; }
  .brand-name { font-size: 1.2rem; }
  main.wrap { padding: 1.4rem 0 2.5rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; }
  .lb-stage { padding: 0 0.5rem 3rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.4rem; transform: none; }
  .lb-prev { left: 0.6rem; }
  .lb-next { right: 0.6rem; }
}


/* Ergänzungen für Rezepte und Adresse */
address { font-style: normal; }
.recipe-section { margin: 1.25rem 0; }


/* Überblick Schiffsmodelle und Rezepte-Banner */
.page-banner {
  margin: 0.4rem 0 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.page-banner figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.55rem 0.85rem 0.7rem;
}
.ship-block {
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.ship-block h2 { margin: 0 0 0.35rem; }
.ship-block .meta { margin: 0.2rem 0 0.8rem; }

.owner {
  font-weight: 650;
  color: var(--text);
  margin: 0.35rem 0 0.85rem;
  font-size: 1.05rem;
}
.card .owner {
  margin: 0.5rem 0 0;
  flex: 0 0 auto;
}

.gallery figcaption:empty { display: none; }
