/* 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; }

/* machinemuse.de: ruhig und dunkel, warmes Schwarz mit Kupfer. Eigenständig neben PERIHEL. */
:root {
  --grund: #0D0C0B; --flaeche: #171514; --kopf: rgba(13, 12, 11, .88);
  --hell: #F2EEE6; --text: #DCD6CC; --grau: #A39C92; --linie: rgba(242, 238, 230, .12);
  --akzent: #D99A5F; --akzent-hell: #EDB582; --akzent-schleier: rgba(217, 154, 95, .1);
  color-scheme: dark;
}
.wortmarke { font-family: "Barlow Cond W", "Barlow W", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .28em; color: var(--hell); font-size: 1.05rem; white-space: nowrap; }
.wortmarke span { color: var(--akzent); margin-left: .25em; }

.mm-held { padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.mm-held::before { content: ""; position: absolute; width: 760px; height: 760px; right: -320px; top: -260px; border-radius: 50%;
  border: 1px solid rgba(217,154,95,.22); box-shadow: 0 0 0 70px rgba(217,154,95,.035), 0 0 0 140px rgba(217,154,95,.025); pointer-events: none; }
.mm-held h1 { max-width: 15em; font-size: clamp(2rem, 6.4vw, 3.4rem); letter-spacing: -.015em; }
.mm-held p { max-width: 40rem; font-size: 1.12rem; }
@media (min-width: 900px) { .mm-held { padding: 7rem 0 5rem; } }

.grundsatz h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.grundsatz p { margin: 0; font-size: .98rem; }
.grundsatz { border-top: 2px solid var(--akzent); padding-top: 1rem; }

.programm { display: grid; gap: 1.4rem; }
.titel-karte { display: grid; gap: 1.4rem; align-items: start; }
.titel-karte .cover { max-width: 200px; border-radius: 4px; box-shadow: 0 14px 32px rgba(0,0,0,.6); }
.titel-karte h3 { font-size: 1.6rem; margin: 0 0 .2rem; letter-spacing: .02em; }
.titel-art { color: var(--akzent); font-size: .95rem; margin: 0 0 .8rem; }
.titel-leer { min-height: 180px; display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--grau); }
@media (min-width: 700px) { .titel-karte { grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; } }
