/* Gemeinsame Grundlage beider Seiten. Farben und Schrift setzt die Themendatei (perihel.css, machinemuse.css)
   über die Variablen in :root. Mobil zuerst, 16 px Rand, keine waagerechte Scrollleiste. */

@font-face { font-family: "Barlow W"; src: url("schrift/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow W"; src: url("schrift/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow W"; src: url("schrift/Barlow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Cond W"; src: url("schrift/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: "Barlow W", "Segoe UI", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: .18em; }
a:hover { color: var(--akzent-hell); }
h1, h2, h3 { color: var(--hell); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }

.sprung { position: absolute; left: -9999px; top: 0; background: var(--akzent); color: var(--grund); padding: .5rem 1rem; z-index: 50; }
.sprung:focus { left: 16px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.schmal { max-width: 46rem; }
.abschnitt { padding: 3.5rem 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.marke { font-family: "Barlow Cond W", "Barlow W", sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--akzent); margin: 0 0 .7rem; font-weight: 700; }
.leise { color: var(--grau); }
.klein { font-size: .92rem; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--kopf); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.kopf-marke { display: flex; align-items: center; text-decoration: none; color: var(--hell); flex: 0 1 auto; min-width: 0; }
.kopf-marke img { height: 22px; width: auto; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current] { color: var(--akzent); }
.menue { position: relative; }
.menue summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--hell); padding: .4rem .2rem; user-select: none; }
.menue summary::-webkit-details-marker { display: none; }
.menue summary::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.menue[open] summary::after { transform: translateY(.05em) rotate(-135deg); }
.menue nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: .5rem 0; min-width: 12rem; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.menue nav a { display: block; padding: .55rem 1rem; color: var(--text); text-decoration: none; font-weight: 600; }
.menue nav a:hover { background: var(--linie); color: var(--hell); }
@media (min-width: 860px) { .nav { display: flex; } .menue { display: none; } .kopf-marke img { height: 26px; } }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; padding: .8rem 1.3rem; border-radius: 4px; text-decoration: none; border: 1px solid var(--akzent); line-height: 1.2; text-align: center; }
.knopf-voll { background: var(--akzent); color: var(--grund); }
.knopf-voll:hover { background: var(--akzent-hell); border-color: var(--akzent-hell); color: var(--grund); }
.knopf-rand { color: var(--akzent); background: transparent; }
.knopf-rand:hover { background: var(--akzent-schleier); }
@media (max-width: 479px) { .knoepfe .knopf { flex: 1 1 100%; } }

/* Karten und Raster */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 1.4rem; }
.raster { display: grid; gap: 1.6rem 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .raster-2, .raster-3, .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
figure { margin: 0; }
figcaption { color: var(--grau); font-size: .92rem; margin-top: .5rem; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 2.5rem 0 3rem; color: var(--grau); font-size: .95rem; }
.fuss .wrap { display: grid; gap: 1.2rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.fuss a { color: var(--text); }
.fuss p { margin: 0; }

/* Textseiten (Impressum, Datenschutz, Kontakt) */
.text h1 { margin-top: .2em; }
.text h2 { font-size: 1.35rem; margin-top: 2rem; }
.text address { font-style: normal; }
.platzhalter { background: #8a3a12; color: #fff; padding: .05em .35em; border-radius: 3px; font-weight: 600; }
.mit-abstand { margin-top: 2rem; }

/* perihel.world: dunkel im Stil der Cover (Navy, Creme, Cyan). */
:root {
  --grund: #05060D; --flaeche: #0E121D; --kopf: rgba(5, 6, 13, .86);
  --hell: #F2EEE6; --text: #D9DEE6; --grau: #A9B1BD; --linie: rgba(242, 238, 230, .12);
  --akzent: #5FD4E6; --akzent-hell: #8BE4F1; --akzent-schleier: rgba(95, 212, 230, .1);
  color-scheme: dark;
}
h1, h2 { font-family: "Barlow W", sans-serif; letter-spacing: -.01em; }

/* Startbild */
.held { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.held > picture, .held > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.held > picture img { object-fit: cover; object-position: 62% 50%; }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--grund) 4%, rgba(5,6,13,.78) 38%, rgba(5,6,13,.15) 70%, rgba(5,6,13,.35) 100%); }
.held .wrap { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 2.6rem; }
.held-logo { width: min(520px, 86%); margin-bottom: .6rem; }
.held-unter { font-family: "Barlow Cond W", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--hell); font-size: clamp(.82rem, 2.6vw, 1.05rem); margin: 0 0 1.4rem; }
.held h1 { font-size: clamp(1.55rem, 5vw, 2.6rem); max-width: 22em; }
.held p { max-width: 38rem; }
.termin { display: inline-block; background: var(--akzent); color: var(--grund); font-weight: 700; padding: .3rem .75rem; border-radius: 3px; margin-bottom: 1rem; font-size: .95rem; }
@media (min-width: 900px) { .held > picture img { object-position: 50% 50%; } }

/* Band 1 */
.start { display: grid; gap: 2rem; align-items: start; }
.start-cover { max-width: 280px; }
.cover { border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(242,238,230,.08); }
.auszug { border-left: 3px solid var(--akzent); padding: .2rem 0 .2rem 1.1rem; margin: 1.4rem 0; color: var(--hell); font-size: 1.12rem; }
.auszug .ort { color: var(--grau); font-style: italic; font-size: .98rem; }
@media (min-width: 760px) { .start { grid-template-columns: 280px minmax(0, 1fr); gap: 3rem; } }

/* Paket */
.paket { display: grid; gap: 1.8rem; align-items: center; border-color: rgba(95,212,230,.55); padding: 1.6rem; }
.stapel { position: relative; height: 250px; max-width: 320px; width: 100%; margin: 0 auto; }
.stapel img { position: absolute; top: 10px; width: 46%; left: 27%; border-radius: 3px; box-shadow: 0 10px 28px rgba(0,0,0,.65); }
.stapel img:nth-child(1) { transform: translateX(-62%) rotate(-9deg); }
.stapel img:nth-child(2) { transform: translateX(-24%) rotate(-3deg); }
.stapel img:nth-child(3) { transform: translateX(16%) rotate(3deg); }
.stapel img:nth-child(4) { transform: translateX(54%) rotate(9deg); }
.paket-titel { font-size: 1.5rem; color: var(--hell); font-weight: 700; margin: 0 0 .3rem; }
.paket-preis { font-size: 1.15rem; color: var(--hell); font-weight: 600; }
.etikett { display: inline-block; font-size: .78rem; font-weight: 700; background: var(--akzent); color: var(--grund); padding: .12rem .5rem; border-radius: 3px; vertical-align: middle; margin-left: .4rem; letter-spacing: .02em; }
.flex { margin-top: 1.2rem; }
@media (min-width: 760px) { .paket { grid-template-columns: 340px minmax(0, 1fr); padding: 2rem; } .stapel { height: 270px; } }

/* Bände */
.baende { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .baende { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .baende { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.band h3 { font-size: 1.08rem; margin: .8rem 0 .25rem; }
.band .nr { display: block; font-family: "Barlow Cond W", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--akzent); font-size: .8rem; }
.band p { font-size: .95rem; color: var(--text); margin-bottom: .5rem; }
.band .tag { font-size: .88rem; color: var(--grau); }
.band .tag b { color: var(--hell); font-weight: 600; }
.band a.cover-link { display: block; }

/* Crew */
.crew img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: .9rem; }
.crew h3 { margin: 0 0 .1rem; }
.rolle { color: var(--akzent); font-size: .95rem; margin: 0 0 .4rem; }
.crew p { font-size: .98rem; }

/* Schiff */
.schiff-gross img, .schiff-bilder img { border-radius: 6px; width: 100%; }
.schiff-text { display: grid; gap: 1.5rem 3rem; margin: 2rem 0; }
.fakten { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.2rem; align-content: start; }
.fakten dt { color: var(--grau); }
.fakten dd { margin: 0; color: var(--hell); font-weight: 600; }
.riss { display: grid; gap: 1rem 2rem; align-items: center; margin-top: 2.2rem; }
.riss img { border-radius: 6px; max-width: 360px; width: 100%; }
@media (min-width: 860px) { .schiff-text { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .riss { grid-template-columns: 360px minmax(0, 1fr); } }

/* Lexikon */
.lex img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: .8rem; }
.lex p { font-size: .98rem; }
.lex-ohne { border-top: 2px solid var(--akzent); padding-top: .9rem; }

/* Kaufen */
.kaufen { display: grid; gap: 1rem; }
.kaufen .karte h3 { margin-bottom: .35rem; }
.kaufen .karte p { margin-bottom: .8rem; }
.kaufen-erst { border-color: rgba(95,212,230,.55); }
@media (min-width: 860px) { .kaufen { grid-template-columns: 3fr 2fr 2fr; } }

/* Leseprobe */
@font-face { font-family: "Charis W"; src: url("schrift/CharisSILR.ttf") format("truetype"); font-weight: 400; font-display: swap; }
.probe { background: #F2EEE6; color: #1E2230; border-radius: 6px; padding: 1.6rem 1.25rem 1.2rem; margin: 1.5rem 0; }
.probe p { font-family: "Charis W", Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.7; margin: 0 0 .9rem; color: #1E2230; hyphens: auto; }
.probe .kapitel { font-family: "Barlow W", sans-serif; font-weight: 700; font-size: 1.35rem; color: #05060D; margin-bottom: .2rem; }
.probe .ort { color: #6A7080; margin-bottom: 1.4rem; }
.probe em { font-style: italic; }
@media (min-width: 700px) { .probe { padding: 2.4rem 2.6rem 1.8rem; } }
/* letzte Figur bei ungerader Zahl quer über die ganze Breite */
@media (min-width: 600px) {
  .crew-breit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.4rem; align-items: center; }
  .crew-breit img { margin-bottom: 0; }
}
@media (min-width: 900px) { .crew-breit { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .crew-breit > div { max-width: 34rem; } }
/* Startbild mobil: Bild oben ganz sichtbar, Text darunter, damit das Schiff nicht hinter der Schrift verschwindet */
@media (max-width: 759px) {
  .held { display: block; min-height: 0; }
  .held::after { display: none; }
  .held > picture { position: relative; display: block; aspect-ratio: 5 / 4; }
  .held > picture img { object-position: 52% 78%; }
  .held > picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--grund) 2%, rgba(5,6,13,0) 42%); }
  .held .wrap { padding-top: 0; margin-top: -2.2rem; padding-bottom: 2.4rem; }
  .termin { font-size: .9rem; }
}
