/* saltwind-pirates.com — gesetzt wie ein Druckwerk von 1718: Papier, schwarze und rote Druckfarbe, Fell-Typen.
   Schriften selbst ausgeliefert (IM Fell, OFL), kein Dritt-CDN, kein JavaScript. */
@font-face { font-family: "Fell Canon"; src: url("fonts/FellCanon-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell Canon"; src: url("fonts/FellCanon-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Fell Pica"; src: url("fonts/FellPica-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell Pica"; src: url("fonts/FellPica-Italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Fell SC"; src: url("fonts/FellEnglishSC-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #ece2c9; --paper-hi: #f4ecd8; --paper-lo: #e0d3b3;
  --ink: #1e1811; --ink-2: #4b4031; --ink-3: #7a6c57;
  --red: #a3271b; --sea: #3f7f86;
  --rule: rgba(30, 24, 17, .55);
  --display: "Fell Canon", "Libre Caslon Display", Georgia, serif;
  --text: "Fell Pica", Georgia, "Times New Roman", serif;
  --sc: "Fell SC", "Fell Pica", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 1.3rem/1.5 var(--text); overflow-x: hidden;
  background-color: var(--paper);
  /* Papier: feines Korn + große, blasse Stockflecken */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .12 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}
::selection { background: var(--red); color: var(--paper-hi); }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.defs { position: absolute; }
.wave { display: block; width: 120px; height: 10px; margin: 0 auto; color: var(--red); }
.dia { display: inline-block; width: .34em; height: .34em; background: var(--red); transform: rotate(45deg); margin: 0 .7em; vertical-align: .22em; }

/* Kopfzeile */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; max-width: 1240px; margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 40px) 10px; border-bottom: 4px double var(--rule); }
.brand { font-family: var(--sc); font-size: 1.25rem; letter-spacing: .14em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; justify-content: flex-end; align-items: baseline; }
.top nav a { color: var(--ink); text-decoration: none; font-style: italic; font-size: 1.12rem; }
.top nav a:hover { color: var(--red); }
.top .lang { font-family: var(--sc); font-style: normal; letter-spacing: .1em; font-size: 1rem; color: var(--red); }

/* Titelblatt */
.titlepage { padding-top: clamp(18px, 3vw, 40px); }
.titlepage h1 { font-size: clamp(3.3rem, 15.2vw, 13.4rem); text-transform: uppercase; letter-spacing: .035em; line-height: .86; text-align: center;
  margin: 0 -.04em; filter: url(#ink); white-space: nowrap; }
.titlepage h1 .h1sub { display: block; font-family: var(--sc); font-size: clamp(.95rem, 3.6vw, 3rem); letter-spacing: .2em; line-height: 1.15;
  margin: .75em 0 0; padding-left: .2em; color: var(--red); }
.title-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 90px); align-items: end;
  margin: clamp(14px, 2.4vw, 30px) 0 clamp(28px, 4vw, 52px); padding-top: clamp(14px, 2vw, 24px); border-top: 1px solid var(--rule); }
.sub { margin: 0; font-family: var(--display); line-height: 1.02; }
.sub span { display: block; }
.sub .or { font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--ink-2); margin-bottom: .2em; }
.sub .l1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); color: var(--red); }
.sub .l2 { font-style: italic; font-size: clamp(1.9rem, 4.4vw, 3.7rem); margin-top: .08em; }
.sub .l3 { font-family: var(--sc); letter-spacing: .16em; font-size: clamp(1.15rem, 2.2vw, 1.75rem); margin-top: .55em; }
.sub .l3 b { font-family: var(--display); font-weight: 400; letter-spacing: .04em; font-size: 1.9em; color: var(--red); vertical-align: -.06em; }
.lead { font-size: clamp(1.3rem, 1.7vw, 1.5rem); margin: 0 0 .7em; }
.lead::first-letter { font-family: var(--display); float: left; font-size: 3.9em; line-height: .74; padding: .08em .08em 0 0; color: var(--red); }
.more { font-style: italic; font-size: 1.25rem; }
.more::after { content: " \00BB"; font-style: normal; }

.frontis { position: relative; }
.seal { position: absolute; right: clamp(-18px, -1.2vw, -6px); top: clamp(-74px, -5vw, -34px); width: clamp(108px, 15vw, 190px); height: auto;
  transform: rotate(-11deg); filter: drop-shadow(0 5px 7px rgba(30, 14, 8, .45)); }
.seal-t { font-family: var(--sc); font-size: 15.5px; fill: #f6dccd; }
.facts { margin: clamp(16px, 2.4vw, 26px) 0 0; text-align: center; font-family: var(--sc); letter-spacing: .1em; font-size: 1.05rem; color: var(--ink-2); line-height: 1.9; }
.facts span { white-space: nowrap; }
.facts span:first-child { color: var(--red); }

/* Tafeln */
.plate { margin: 0; }
.plate a { display: block; padding: 7px; background: var(--paper-hi); border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 4px;
  box-shadow: 0 14px 30px -14px rgba(40, 26, 10, .55); line-height: 0; transition: transform .25s ease, box-shadow .25s ease; }
.plate img { width: 100%; height: auto; border: 1px solid var(--ink); }
.plate a:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: 0 22px 36px -16px rgba(40, 26, 10, .6); }
.plate figcaption { margin-top: 16px; text-align: center; font-style: italic; font-size: 1.08rem; color: var(--ink-2); line-height: 1.3; }
.plate .pl { font-family: var(--sc); font-style: normal; letter-spacing: .1em; color: var(--red); margin-right: .3em; }

/* Inhalt */
.contents { margin-top: clamp(48px, 7vw, 90px); text-align: center; }
.toc { max-width: 58rem; margin: 22px auto; font-size: 1.22rem; line-height: 1.75; font-style: italic; }
.toc .k { display: block; font-family: var(--sc); font-style: normal; letter-spacing: .22em; font-size: 1.05rem; color: var(--ink-2); margin-bottom: .2em; }
.toc a { color: var(--ink); text-decoration: none; white-space: nowrap; margin: 0 .5em; }
.toc a:hover { color: var(--red); }
.toc .n { font-family: var(--sc); font-style: normal; color: var(--red); letter-spacing: .06em; }

/* Kapitel */
.num { display: block; font-family: var(--display); font-style: italic; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; color: var(--red); margin-bottom: .1em; }
.chap-text h2, .chart-head h2, .sec-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: .35em; }
.chap-text p { max-width: 34rem; }
.chap-text.center { text-align: center; }
.chap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5.5vw, 84px); align-items: center; margin: clamp(64px, 10vw, 140px) 0; }
.chap.flip .chap-text { order: 2; }
.chap.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* II. Schiffe: vom Kleinsten zum Größten gesetzt */
.fleet { margin: 1.2em 0 0; font-family: var(--display); line-height: 1.12; color: var(--ink); }
.fleet span { font-size: calc(1.02rem + var(--i) * .135rem); white-space: nowrap; margin-right: .3em; }
.fleet span:last-child { color: var(--red); font-style: italic; }
.fleet .dia { width: 5px; height: 5px; margin: 0 0 0 .5em; vertical-align: .3em; }

/* I. Seekarte */
.chartsec { margin-top: clamp(48px, 7vw, 96px); }
.chart-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; margin-bottom: clamp(20px, 3vw, 36px); }
.chart-head p { max-width: 40rem; margin: 0; }
.chart-sheet { position: relative; background: var(--paper-hi); border: 1px solid var(--ink); outline: 1px solid var(--rule); outline-offset: 5px;
  padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 24px 50px -28px rgba(40, 26, 10, .6); }
.cartouche { position: absolute; z-index: 1; right: clamp(14px, 3.2vw, 46px); top: clamp(14px, 3vw, 44px); width: min(21rem, 34%); margin: 0; text-align: center;
  background: var(--paper-hi); border: 1px solid var(--ink); outline: 3px double var(--ink); outline-offset: -8px; padding: 22px 20px 20px; line-height: 1.15; }
.cartouche strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 2.1vw, 1.8rem); text-transform: uppercase; letter-spacing: .05em; }
.cartouche em { display: block; margin-top: .45em; font-size: clamp(.92rem, 1.2vw, 1.05rem); color: var(--ink-2); }
.chart { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: #f1e9d3; overflow: hidden; }
.chart .rays line { stroke: var(--ink); stroke-width: 1.2; opacity: .2; }
.chart .rays .r1 { stroke: var(--red); opacity: .38; stroke-width: 1.4; }
.chart .rays .r2 { opacity: .26; }
.chart .wash { fill: none; stroke: var(--sea); stroke-width: 44; stroke-linejoin: round; opacity: .2; }
.chart .hatch { fill: none; stroke: var(--ink); stroke-width: 18; stroke-dasharray: 1.4 4.6; opacity: .5; }
.chart .coast { fill: #e3d3a6; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart text { font-family: var(--text); fill: var(--ink); }
.chart .seaname { font-family: var(--display); font-style: italic; font-size: 92px; letter-spacing: 14px; fill: var(--ink); opacity: .34; }
.chart .seaname.small { font-size: 58px; letter-spacing: 10px; }
.chart .region { font-family: var(--sc); font-size: 34px; letter-spacing: 8px; fill: var(--ink-2); paint-order: stroke; stroke: #e3d3a6; stroke-width: 9px; stroke-linejoin: round; }
.chart .port circle { fill: var(--paper-hi); stroke: var(--red); stroke-width: 2.4; }
.chart .port .dot { fill: var(--red); stroke: none; }
.chart .port text { font-style: italic; font-size: 38px; paint-order: stroke; stroke: #f1e9d3; stroke-width: 7px; stroke-linejoin: round; }
.chart .rose circle { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chart .rose .pt { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.chart .rose .pt.a { fill: var(--ink); }
.chart .rose .pt.b { fill: #f1e9d3; }
.chart .rose text { font-family: var(--display); font-size: 44px; fill: var(--red); }
.ports { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px clamp(14px, 2vw, 28px); margin: clamp(14px, 2vw, 22px) 4px 4px; font-size: 1.05rem; line-height: 1.35; }
.ports dt { font-family: var(--sc); letter-spacing: .12em; color: var(--red); border-bottom: 1px solid var(--rule); padding-bottom: 2px; margin-bottom: 5px; }
.ports dd { margin: 0; font-style: italic; color: var(--ink-2); }

/* V. Bekanntmachung */
.procl-sec { margin: clamp(64px, 10vw, 140px) 0; padding: clamp(40px, 6vw, 80px) 0 clamp(52px, 7vw, 96px);
  background: linear-gradient(rgba(30, 24, 17, .07), rgba(30, 24, 17, .07)); border-top: 4px double var(--rule); border-bottom: 4px double var(--rule); }
.procl { position: relative; max-width: 860px; margin: clamp(20px, 3vw, 36px) auto 0; padding: clamp(26px, 5vw, 60px) clamp(18px, 5vw, 64px) clamp(24px, 4vw, 46px);
  background: var(--paper-hi); border: 1px solid var(--ink-2); box-shadow: 0 30px 50px -30px rgba(40, 26, 10, .7), 0 2px 0 rgba(255, 255, 255, .4) inset;
  transform: rotate(-.5deg); text-align: center; container-type: inline-size; }
.procl::before, .procl::after { content: ""; position: absolute; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 1px 2px 2px rgba(0, 0, 0, .35); }
.procl::before { left: 16px; } .procl::after { right: 16px; }
.procl .by { font-family: var(--sc); letter-spacing: .2em; font-size: 1.02rem; margin: 0 0 .5em; color: var(--ink-2); }
.procl h3 span { display: block; }
.procl h3 .a { font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.procl h3 .b { font-size: clamp(1.5rem, calc(78vw / var(--n, 14)), 4rem); font-size: min(calc(100cqi / (var(--n, 14) * .8)), 5.2rem); white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; color: var(--red); line-height: 1; filter: url(#ink); }
.procl h3 .c { font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: .25em 0 .7em; line-height: 1.15; }
.whereas { max-width: 38rem; margin: 1em auto 1.2em; text-align: left; }
.whereas::first-letter { font-family: var(--display); font-size: 2.9em; float: left; line-height: .76; padding: .08em .08em 0 0; }
.procl table { width: 100%; border-collapse: collapse; text-align: left; font-size: 1.16rem; line-height: 1.25; }
.procl thead th { font-family: var(--sc); font-weight: 400; letter-spacing: .14em; font-size: .98rem; color: var(--ink-2); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 5px 8px 4px 0; }
.procl thead th:last-child, .procl .sum { text-align: right; padding-right: 0; }
.procl tbody th, .procl tbody td { font-weight: 400; padding: 9px 8px 8px 0; border-bottom: 1px dotted var(--rule); vertical-align: baseline; }
.procl .who { font-family: var(--sc); letter-spacing: .05em; font-size: 1.08em; }
.procl tbody em { color: var(--ink-2); white-space: nowrap; }
.procl .vessel { font-style: italic; }
.procl .sum { font-family: var(--display); font-size: 1.45rem; color: var(--red); white-space: nowrap; }
.procl .sum small { font-family: var(--text); font-style: italic; font-size: .7em; color: var(--ink-2); }
.pfoot { margin: 1.3em 0 0; font-style: italic; }

/* Anzeige: Controller */
.advert-sec { margin-top: clamp(64px, 10vw, 140px); }
.advert { border: 1px solid var(--ink); outline: 4px double var(--ink); outline-offset: -11px; padding: clamp(34px, 5vw, 64px) clamp(26px, 5vw, 68px); }
.advert .k, .sec-head .k { font-family: var(--sc); letter-spacing: .3em; text-align: center; color: var(--red); margin: 0 0 .3em; font-size: 1.05rem; }
.advert h2 { text-align: center; font-size: clamp(2.1rem, 4.6vw, 3.8rem); margin-bottom: .7em; }
.advert-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
.advert .intro { font-size: 1.36rem; }
.pil { list-style: none; margin: 0; padding: 0; }
.pil li { position: relative; padding: .42em 0 .42em 1.5em; border-bottom: 1px dotted var(--rule); line-height: 1.35; }
.pil li::before { content: "\00B6"; position: absolute; left: 0; color: var(--red); }

/* IX. + Artikel: eigener Server */
.articles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5.5vw, 84px); align-items: start; margin-top: clamp(64px, 10vw, 140px); }
.art-body { border-left: 1px solid var(--rule); padding-left: clamp(18px, 3.4vw, 48px); }
.art-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-style: italic; margin-bottom: .45em; }
.art-body ol { list-style: none; margin: 1.2em 0 0; padding: 0; }
.art-body li { padding: .55em 0; border-top: 1px dotted var(--rule); line-height: 1.35; }
.art { display: block; font-family: var(--sc); letter-spacing: .14em; font-size: .98rem; color: var(--red); }

/* Weitere Tafeln */
.sec-head { text-align: center; margin: clamp(72px, 11vw, 150px) 0 clamp(26px, 4vw, 44px); }
.sec-head h2 { margin-top: .4em; }
.note { color: var(--ink-2); font-style: italic; margin: 0; }
.more-plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 64px) clamp(26px, 5vw, 64px); }

/* Große Fassung einer Tafel */
.lb { display: none; position: fixed; inset: 0; z-index: 20; align-items: center; justify-content: center; padding: 16px; }
.lb:target { display: flex; }
.lb-bg { position: absolute; inset: 0; background: rgba(22, 17, 11, .93); }
.lb figure { position: relative; margin: 0; max-width: min(1600px, 100%); }
.lb img { display: block; width: 100%; height: auto; max-height: 84vh; object-fit: contain; border: 1px solid var(--paper); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lb figcaption { color: var(--paper); margin-top: 12px; font-style: italic; font-size: 1.1rem; text-align: center; }
.lb figcaption a { color: #e9a89a; }

/* Druckvermerk */
.foot { margin-top: clamp(72px, 11vw, 150px); padding-top: 0; padding-bottom: 46px; text-align: center; color: var(--ink-2); font-size: 1.05rem; }
.foot p { margin: .35rem 0; }
.foot .wave { margin-bottom: 26px; }
.colophon { font-family: var(--sc); letter-spacing: .14em; color: var(--ink); font-size: 1.1rem; }

/* Rechtstexte + 404 (impressum.html, datenschutz.html, 404.html) */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 16px 40px; font-size: 1.15rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .5em; }
.legal h2 { font-size: 1.6rem; margin: 2rem 0 .5rem; }

@media (max-width: 860px) {
  body { font-size: 1.2rem; }
  .top nav a:not(.lang) { display: none; }
  .title-grid, .chap, .chap.flip, .advert-grid, .articles { grid-template-columns: minmax(0, 1fr); }
  .chap.flip .chap-text { order: 0; }
  .title-grid { align-items: start; }
  .seal { top: -30px; right: -6px; }
  .toc a { white-space: normal; }
  .cartouche { position: static; width: auto; margin: 0 0 10px; outline-offset: -7px; padding: 18px 16px 16px; }
  .chart .port text, .chart .region { display: none; }
  .chart .seaname { font-size: 120px; letter-spacing: 10px; opacity: .4; }
  .chart .seaname.small { display: none; }
  .chart .port circle { r: 16px; stroke-width: 4; }
  .chart .port .dot { r: 7px; }
  .ports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .procl { transform: none; }
  .procl table, .procl tbody, .procl tr, .procl th, .procl td { display: block; }
  .procl thead { display: none; }
  .procl tbody tr { border-bottom: 1px dotted var(--rule); padding: 10px 0; text-align: center; }
  .procl tbody th, .procl tbody td { border: 0; padding: 0; text-align: center; }
  .procl .sum { text-align: center; }
  .procl tbody em { white-space: normal; display: block; }
  .art-body { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
  .more-plates { grid-template-columns: minmax(0, 1fr); }
  .advert { padding: 34px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate a { transition: none; }
}
@media print { .lb, .seal { display: none; } body { background: #fff; } }
