/* kopf-slider.css — T581 (12.10.2026): Slider im Kopf der Startseite
 *
 * Die erste Folie steht fertig im HTML (Logo, Leitsatz, für Angemeldete die Begrüßung): sie braucht
 * kein Skript und ist sofort da. Die weiteren Folien baut kopf-slider.js aus dem Bestand (Kalender,
 * Aktion, Künstler-Banner, neuestes Werk) und hängt sie rechts an. Gibt es nichts zu zeigen, bleibt
 * es bei der einen Folie, ohne Punkte und Pfeile.
 *
 * Farben nur aus theme.css: Gold = Knopf, --c2 (Petrol) = Punkte, Marken, Aktionsfläche.
 * Höhe: alle Folien gleich hoch (Flex), die Seite springt nicht, wenn Folien dazukommen.
 */
#jmaHero.ks { display: block; padding: 0; text-align: left; }
body.veredelung #jmaHero.ks::after { display: none; }      /* kein Goldschimmer hinter farbigen Folien */
.ks-spur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ks-spur::-webkit-scrollbar { display: none; }
.ks-spur:focus-visible { outline: 2px solid var(--c2-text); outline-offset: -2px; }
.ks-folie { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden;
  display: grid; align-items: center; min-height: 500px; padding: 104px 24px 64px; }
@media (min-width: 768px) { .ks-folie { min-height: 470px; padding: 104px 72px 68px; } }
.ks-folie--marke { text-align: center; }
.ks-folie--marke .jma-masthead { margin: 0 auto; }
.ks-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.ks-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--surface-0) 8%, transparent 70%), linear-gradient(0deg, var(--surface-0), transparent 55%); }
.ks-innen { position: relative; z-index: 2; display: grid; gap: 22px; align-items: center; width: 100%; max-width: 1040px; margin: 0 auto; }
@media (min-width: 768px) { .ks-innen--zwei { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.ks-innen > * { min-width: 0; }
.ks-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; align-items: flex-start; }
.ks-marke { font-size: var(--fs-1); letter-spacing: .14em; text-transform: uppercase; color: var(--c2-text); }
.ks-ht { font-family: var(--font-head); font-size: 30px; line-height: 1.08; letter-spacing: -.01em; color: var(--ink-1); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
@media (min-width: 768px) { .ks-ht { font-size: 44px; } }
.ks-ht em { font-family: var(--font-voice); font-style: italic; font-weight: 400; color: var(--gold-ink); display: block; }
.ks-sub { color: var(--ink-2); font-size: var(--fs-4); line-height: 1.5; max-width: 44ch; margin: 0; }
.ks-leise { font-family: var(--font-voice); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--ink-1); }
.ks-preis { font-family: var(--font-head); font-size: var(--fs-6); font-variant-numeric: lining-nums; color: var(--ink-1); }
.ks-preis small { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-3); color: var(--ink-3); margin-left: 4px; }
.ks-kn { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ks-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--radius-btn);
  font: 600 14px/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.ks-btn--go { background: var(--gold); color: var(--on-gold); }
.ks-btn--go:hover { filter: brightness(1.08); }
.ks-btn--zwei { background: transparent; color: var(--ink-1); border-color: var(--line-2); }
.ks-btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* Erste Folie: das vollständige Logo */
.ks-logo { width: clamp(170px, 30vw, 250px); height: auto; aspect-ratio: 1414.02 / 1315.16; fill: currentColor; }
.jma-copy--me .ks-logo { width: clamp(120px, 20vw, 160px); }
.ks-folie--marke .ks-kn { justify-content: center; margin-top: 18px; }
.ks-folie--marke .jma-eyebrow { margin: 14px 0 0; color: var(--ink-1); }

/* Kalender */
.ks-faecher { display: flex; justify-content: center; align-items: center; min-height: 240px; }
.ks-faecher a { display: block; width: 44%; max-width: 210px; transition: transform var(--motion-base) var(--ease-out); }
.ks-faecher img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--line-1); box-shadow: var(--shadow-float); aspect-ratio: 1321 / 1854; background: var(--surface-1); }
@media (max-width: 767px) { .ks-faecher { min-height: 190px; } .ks-faecher a { max-width: 138px; } .ks-folie { min-height: 0; } }
.ks-faecher a:nth-child(1) { transform: rotate(-5deg) translateX(14%); }
.ks-faecher a:nth-child(2) { transform: rotate(4deg) translateX(-10%) translateY(4%); }
.ks-faecher a:only-child { transform: none; }
.ks-faecher a:focus-visible { outline: 2px solid var(--c2-text); outline-offset: 4px; }

/* Aktion: die eine farbige Fläche */
.ks-folie--aktion { background: var(--c2); }
.ks-folie--aktion .ks-marke { color: var(--status-gold-soft, #e9d9b4); }
.ks-folie--aktion .ks-ht, .ks-folie--aktion .ks-gross { color: var(--c2-on); }
.ks-folie--aktion .ks-sub { color: var(--c2-on); opacity: .82; }
.ks-code { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--radius-btn);
  border: 1px dashed var(--c2-on); background: var(--scrim); color: var(--c2-on);
  font: 600 17px/1 var(--font-sans); letter-spacing: .12em; cursor: pointer; }
.ks-code small { font: 500 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ks-code:focus-visible { outline: 2px solid var(--c2-on); outline-offset: 3px; }
.ks-gross { font-family: var(--font-head); font-size: 76px; line-height: .95; letter-spacing: -.03em; font-variant-numeric: lining-nums; justify-self: center; }
.ks-gross sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 4px; }
@media (min-width: 768px) { .ks-gross { font-size: 124px; } }

/* Neuestes Werk */
.ks-werk { justify-self: center; width: min(240px, 60%); display: block; }
.ks-werk img { width: 100%; height: auto; max-height: 300px; object-fit: contain; display: block; border-radius: 6px; box-shadow: var(--shadow-float); background: var(--surface-1); }

/* Bedienung */
.ks-punkte { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 4; display: flex; justify-content: center; gap: 4px; }
.ks-punkte button { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.ks-punkte i { display: block; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--ink-3); opacity: .6; transition: width var(--motion-base) var(--ease), background var(--motion-base) var(--ease); }
.ks-punkte button[aria-current="true"] i { width: 24px; background: var(--c2-text); opacity: 1; }
.ks-punkte button:focus-visible { outline: 2px solid var(--c2-text); border-radius: 8px; }
.ks-pfeil, .ks-pause { position: absolute; z-index: 4; width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--glass); color: var(--ink-1); display: grid; place-items: center; cursor: pointer; }
.ks-pfeil { top: 58%; transform: translateY(-50%); display: none; }
.ks-pfeil--l { left: 14px; } .ks-pfeil--r { right: 14px; }
@media (min-width: 900px) { .ks-pfeil { display: grid; } }
.ks-pause { right: 14px; bottom: 14px; width: 36px; height: 36px; }
.ks-pfeil svg, .ks-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ks-pfeil:focus-visible, .ks-pause:focus-visible { outline: none; box-shadow: var(--ring); }
/* Auf der Petrol-Fläche brauchen die Punkte helle Töne */
#jmaHero.ks[data-ks-farbe="1"] .ks-punkte i { background: var(--c2-on); }
#jmaHero.ks[data-ks-farbe="1"] .ks-punkte button[aria-current="true"] i { background: var(--c2-on); }
#jmaHero.ks:not(.ks--mehr) .ks-punkte, #jmaHero.ks:not(.ks--mehr) .ks-pfeil, #jmaHero.ks:not(.ks--mehr) .ks-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ks-punkte i, .ks-faecher a { transition: none; }
}
