/* Verkaufsseite im Stil von steinhauser-morjan.media. Mobil zuerst. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e8e8ed;
  --input-border: #d2d2d7;
  --dark: #1d1d1f;
  --dark-hover: #424247;
  --red: #d6202a;
  --red-hover: #b81b24;
  --ok: #1d7a3a;
  --warn: #9a5b00;
  --error: #c4161f;
  --radius: 18px;
  --radius-sm: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
/* Links: Textfarbe, fett, kein Blau */
a { color: inherit; font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Kopfleiste */
.sm-header { background: var(--dark); color: #fff; }
.sm-header-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; height: 48px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.sm-header .sm-mark { width: 26px; height: 26px; flex: none; }
.sm-brand { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sm-home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.sm-home:hover .sm-brand { text-decoration: underline; }
.sm-header .sm-ticket { width: 22px; height: 22px; flex: none; }
.sm-brand.sm-domain { text-transform: none; letter-spacing: .01em; font-size: .9rem; }
.sm-brand span { color: var(--muted-2); font-weight: 500; letter-spacing: .02em; text-transform: none; margin-left: 6px; }

.test-banner { background: #fff6e5; color: #9a5b00; font-size: .8rem; font-weight: 600; text-align: center; padding: 8px 16px; }

.shop { max-width: 720px; margin: 0 auto; padding: 0 0 56px; }
h1 { font-size: 2rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.event-head .program { font-size: 1.15rem; font-weight: 500; margin: -4px 0 10px; color: #333; }
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }

.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-head, .description, .buy, .order { padding: 0 16px; }
.event-head { padding-top: 24px; }
.when { margin: 0 0 4px; }
.where { margin: 0 0 18px; }
.where span { color: var(--muted); }
.description { color: var(--muted); margin-bottom: 28px; }

.buy { border-top: 1px solid var(--line); padding-top: 28px; }
.cats { list-style: none; margin: 0 0 8px; padding: 0; }
.cat { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cat-info { display: flex; flex-direction: column; }
.cat-name { font-weight: 600; }
.cat-price { font-size: 1.15rem; }
.cat-fee { font-size: .78rem; color: var(--muted); }
.cat-badge { font-size: .78rem; color: var(--red); font-weight: 600; }
.is-soldout { opacity: .5; }
.qty select { font: inherit; font-size: 1.05rem; padding: 9px 14px; min-width: 76px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: #fff; color: var(--text); }

.buyer { display: grid; gap: 14px; margin: 26px 0; }
.buyer label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.buyer input { font: inherit; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.buyer input:focus, .qty select:focus { outline: 3px solid rgba(29, 29, 31, .15); border-color: var(--dark); outline-offset: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }

.summary { background: var(--surface); border-radius: var(--radius); padding: 18px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.3rem; margin-bottom: 6px; }
.total strong { font-weight: 600; letter-spacing: -.01em; }
.small { font-size: .8rem; color: var(--muted); margin: 6px 0; }
.total + .small { margin-top: -2px; }
.fineprint { margin-top: 14px; padding-top: 10px; border-top: 1px solid #d9d9de; }
.fineprint .small { font-size: .74rem; color: var(--muted-2); }

/* Knöpfe wie auf steinhauser-morjan.media: Pille, Rot für die Haupt-Aktion */
button.pay, a.button {
  display: block; width: 100%; margin-top: 14px; padding: 13px 22px;
  font: inherit; font-size: 1.05rem; font-weight: 500;
  border: 0; border-radius: 980px; background: var(--red); color: #fff;
  cursor: pointer; text-align: center; text-decoration: none; transition: background .15s;
}
button.pay:hover, a.button:hover { background: var(--red-hover); text-decoration: none; }
a.button.dark { background: var(--dark); }
a.button.dark:hover { background: var(--dark-hover); }
button.secondary { display: block; width: 100%; margin-top: 10px; padding: 12px 22px; font: inherit; border: 1px solid var(--dark); border-radius: 980px; background: transparent; color: var(--dark); cursor: pointer; }

.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.notice-ok { background: #e8f5ec; color: var(--ok); }
.notice-warn { background: #fff6e5; color: var(--warn); }
.notice-error { background: #fdecec; color: var(--error); }
.shop > .notice { margin: 16px; }
.field-error { color: var(--error); font-weight: 400; font-size: .82rem; margin: 2px 0 0; }

.order { padding-top: 36px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 24px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines .sum td { font-weight: 600; border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.shop-footer { background: var(--surface); color: var(--muted); font-size: .76rem; }
.shop-footer-inner { max-width: 1120px; margin: 0 auto; padding: 20px 16px 36px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 28px; text-align: center; }
.shop-footer p { margin: 4px 0; }
.shop-footer a { color: var(--text); margin: 0 7px; }

@media (min-width: 760px) {
  .shop { padding-top: 28px; }
  .hero { border-radius: var(--radius); }
  .event-head, .description, .buy, .order { padding-left: 0; padding-right: 0; }
  h1 { font-size: 2.6rem; }
}

/* Desktop: links Bild und Infos, rechts Tickets in einer Karte (läuft beim Scrollen mit) */
@media (min-width: 960px) {
  .shop:has(.event-layout) { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
  .sm-header-inner, .shop-footer-inner { padding-left: 24px; padding-right: 24px; }
  .event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
  .buy { position: sticky; top: 24px; border-top: 0; padding: 24px; background: var(--surface); border-radius: var(--radius); }
  .buy .summary { background: #fff; }
  .buyer { margin: 18px 0; gap: 10px; }
  .buyer input { padding: 10px 12px; }
  .cat { padding: 10px 0; border-color: #dcdce1; }
}

/* Rechtstexte */
.legal { max-width: 720px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 1.05rem; margin: 26px 0 6px; }
.legal p, .legal li { color: #333; }
.legal ul { padding-left: 20px; }
.legal mark { background: #fff1c2; padding: 0 3px; border-radius: 3px; }
.legal .notice { margin: 0 0 20px; }

/* Termine einer Reihe (Reihen-Seite und „Weitere Termine“ auf der Event-Seite) */
.dates { list-style: none; margin: 0 0 12px; padding: 0; }
.date-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--text); }
.date-row:hover { text-decoration: none; }
.date-row:hover strong { text-decoration: underline; }
.date-when { display: flex; flex-direction: column; }
.date-when span { color: var(--muted); font-size: .9rem; }
.date-price { flex: none; font-weight: 600; white-space: nowrap; }
.date-row.is-off .date-price { color: var(--muted); font-weight: 500; }
.more-dates { padding: 0 16px; margin-bottom: 28px; }
.more-dates .date-row { padding: 10px 0; }
.more-dates .date-when { flex-direction: row; gap: 4px; flex-wrap: wrap; }
@media (min-width: 760px) { .more-dates { padding: 0; } }
@media (min-width: 960px) { .buy .date-row { border-color: #dcdce1; } }
/* Handy: Tickets bzw. Termine direkt unter Datum und Ort, Beschreibung danach (wie bei Eventim) */
@media (max-width: 959px) {
  .event-layout { display: flex; flex-direction: column; }
  .event-layout > .event { display: contents; }
  .event-layout .hero { order: 1; }
  .event-layout .event-head { order: 2; }
  .event-layout .buy { order: 3; margin-bottom: 28px; }
  .event-layout .description { order: 4; }
  .event-layout .more-dates { order: 5; }
  .series-layout .buy { border-top: 0; padding-top: 0; }
}
