/**
 * Conference 2026
 * Nutzt Design-Tokens aus assets/css/variables.css
 * Schriften: Vollkorn (Serif) + IBM Plex Mono (UI / Grid)
 */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/Vollkorn-Regular.woff2") format("woff2"),
       url("../fonts/Vollkorn-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/Vollkorn-Italic.woff2") format("woff2"),
       url("../fonts/Vollkorn-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/Vollkorn-Medium.woff2") format("woff2"),
       url("../fonts/Vollkorn-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vollkorn";
  src: url("../fonts/Vollkorn-MediumItalic.woff2") format("woff2"),
       url("../fonts/Vollkorn-MediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --sc-beige: var(--clr-beige, var(--clr-background, rgb(250, 250, 247)));
  --sc-beige-dark: var(--clr-beige-dark, rgb(242, 240, 236));
  --sc-ink: var(--clr-black, #1B1B1B);
  --sc-white: var(--clr-white, #ffffff);
  --sc-red: var(--clr-red, #ff263d);
  --sc-green: var(--clr-green, rgb(0, 145, 0));
  --sc-surface: var(--clr-surface, #ffffff);
  --sc-gray: var(--clr-gray-light, #f2f2f2);
  --sc-font-ui: "IBM Plex Mono", ui-monospace, monospace;
  --sc-font-serif: "Vollkorn", Georgia, serif;
  --sc-size-ui: 16px;
  --sc-size-body: 26px;
  --sc-leading: 1.38;
  --sc-pad: 20px;
  --sc-max: 800px;
  --sc-frame: #E4E4E4; /* 1px Rahmen — hellgrau */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.conference {
  margin: 0;
  min-height: 100vh;
  background: var(--sc-beige);
  color: var(--sc-ink);
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: var(--sc-size-ui);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Reset globale Kreis-Buttons aus variables.css */
body.conference button {
  min-height: 0;
  width: max-content;
  max-width: 100%;
  height: auto;
  top: auto;
  position: static;
  border-radius: 2px;
  color: inherit;
  font-weight: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Eine zentrierte Spalte: max 800px, darunter 100% mit 20px Padding */
body.conference > .sc-header,
body.conference > main {
  width: 100%;
  max-width: var(--sc-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sc-pad);
  padding-right: var(--sc-pad);
  box-sizing: border-box;
}

.sc-skip {
  position: absolute;
  left: -9999px;
}
.sc-skip:focus {
  left: var(--sc-pad);
  top: 0.5rem;
  z-index: 100;
  background: var(--sc-white);
  padding: 0.5rem 0.75rem;
}

/* —— Header / Signet —— */
.sc-header {
  position: relative;
  z-index: 5;
  padding-top: 40px;
  padding-bottom: 35px;
}

.sc-header__inner,
.sc-footer__band {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
  width: 100%;
}

.sc-signet {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.4rem;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.sc-signet__row {
  display: contents;
}

.sc-signet__year {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sc-signet__line {
  display: block;
  height: 0;
  border-top: 1.5px solid var(--sc-ink);
  width: 100%;
  align-self: center;
}

/* Menü: von rechts, Spalten nach Inhalt — 25px zum Strich */
.sc-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  max-width: min(620px, 100%);
  margin-left: auto;
  flex: 0 0 auto;
}

/* Footer-Stats: gleiche Ausrichtung von rechts */
.sc-stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  max-width: min(620px, 100%);
  margin-left: auto;
  flex: 0 0 auto;
}

.sc-nav__item,
.sc-stat {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.15rem 25px;
  border: 0;
  border-left: 1px solid var(--sc-frame);
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9.5rem;
  width: auto;
  box-sizing: border-box;
  transition: color 0.15s ease;
}

body.conference button.sc-nav__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: auto;
  min-width: 0;
  max-width: 9.5rem;
}

.sc-nav__item:first-child {
  border-left: 0;
  padding-left: 0;
  max-width: 7.5rem; /* Platz für „svens kleine konferenz“ */
}

.sc-nav__item:nth-child(3) {
  max-width: 20rem; /* „Ha’ – Welch Glück“ bei größerer Serife */
}

.sc-nav__item:last-child,
.sc-stat:last-child {
  padding-right: 0;
}

/* Stats: etwas Luft links statt leerer 4.-Spalte */
.sc-stats .sc-stat:first-child {
  margin-left: 0;
}

.sc-nav__title {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: calc(0.88rem + 2px);
  line-height: 1.2;
}

.sc-nav__sub {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.58rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
  transition: color 0.15s ease;
}

.sc-nav__item:hover .sc-nav__title,
.sc-nav__item:hover .sc-nav__sub,
.sc-nav__item:focus-visible .sc-nav__title,
.sc-nav__item:focus-visible .sc-nav__sub {
  color: var(--sc-red);
}

.sc-nav__item.is-glow .sc-nav__title,
.sc-nav__item.is-glow .sc-nav__sub {
  color: var(--sc-red);
  animation: sc-nav-glow 0.35s linear;
}

@keyframes sc-nav-glow {
  0%, 80% { color: var(--sc-red); }
  100% { color: var(--sc-ink); }
}

.sc-nav__item:focus-visible {
  outline: none;
}

/* Hamburger: nur Smartphone (höher als body.conference button) */
body.conference .sc-nav-toggle {
  display: none;
  appearance: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--sc-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}

.sc-nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sc-header.is-nav-open .sc-nav-toggle__bars span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.sc-header.is-nav-open .sc-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.sc-header.is-nav-open .sc-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.sc-stat {
  justify-content: center;
  cursor: default;
}

.sc-stat__n {
  display: block;
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sc-stat__l {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.58rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
}

@media (max-width: 720px) {
  .sc-header {
    padding-top: 1.25rem;
    padding-bottom: 1rem;
  }

  .sc-header__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    row-gap: 0;
  }

  .sc-nav-toggle,
  body.conference .sc-nav-toggle {
    display: inline-flex;
  }

  .sc-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    order: 3;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: var(--sc-beige);
    border-top: 1px solid transparent;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      margin 0.4s ease,
      border-color 0.3s ease;
  }

  .sc-header.is-nav-open .sc-nav {
    max-height: 26rem;
    margin-top: 0.85rem;
    opacity: 1;
    border-top-color: var(--sc-frame);
  }

  .sc-nav__item,
  body.conference button.sc-nav__item {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--sc-frame);
    gap: 0.25rem;
  }

  .sc-nav__item:first-child,
  .sc-nav__item:nth-child(odd),
  .sc-nav__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    max-width: none;
  }

  .sc-nav__item:last-child {
    border-bottom: 0;
    padding-right: 0;
  }

  .sc-nav__title {
    font-size: calc(1rem + 2px);
  }

  .sc-nav__sub {
    font-size: 0.62rem;
  }

  /* Footer: Logo links, 3 Zahlen rechts mit gleichem Abstand */
  .sc-footer__band {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }

  .sc-footer__band .sc-signet {
    flex: 0 0 auto;
    min-width: 0;
    align-self: center;
    justify-items: start;
    column-gap: 0.3rem;
    row-gap: 0.22rem;
    margin-right: 0;
  }

  .sc-footer__band .sc-signet__year {
    font-size: 0.72rem;
  }

  .sc-footer__band .sc-signet__line {
    width: 1.35rem;
    max-width: 1.35rem;
  }

  .sc-footer__band .sc-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    width: auto;
    max-width: none;
    margin: 0;
    margin-left: auto;
  }

  .sc-footer__band .sc-stat {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0 0 0 0.75rem;
    border-left: 1px solid var(--sc-frame);
    align-items: flex-start;
    justify-content: center;
  }

  .sc-footer__band .sc-stat:first-child {
    padding-left: 0.75rem;
  }

  .sc-footer__band .sc-stat__n {
    font-size: clamp(1.15rem, 5.5vw, 1.65rem);
  }

  .sc-footer__band .sc-stat__l {
    font-size: 0.48rem;
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.sc-back {
  margin-left: auto;
  align-self: flex-start;
  color: inherit;
  text-decoration: none;
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.15rem 0;
}
.sc-back:hover,
.sc-back:focus-visible {
  color: var(--sc-red);
  outline: none;
}

/* —— Sections —— */
.sc-section {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.sc-h {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  margin: 0;
}

.sc-heading {
  margin: 0 0 1.25rem;
}

.sc-h-sub {
  margin: calc(0.35rem - 3px) 0 0;
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
}

.sc-lead {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
  max-width: none;
  margin: 0 0 2rem;
}

.sc-lead--nonsens {
  font-family: var(--sc-font-ui);
  font-style: normal;
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(27, 27, 27, 0.38);
  margin-bottom: 1.25rem;
}

/* —— Hero / ASCII —— */
.sc-hero {
  padding-top: 1.5rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* —— Save-the-date Störer —— */
body.conference > main {
  position: relative;
}

.sc-sticker {
  position: absolute;
  top: 0.25rem;
  right: 0;
  z-index: 12;
  width: calc(9.25rem - 2px);
  height: calc(9.25rem - 2px);
  border-radius: 50%;
  background: var(--sc-white);
  color: var(--sc-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.28rem;
  padding: 0.9rem 0.75rem 0.8rem;
  box-sizing: border-box;
  transform: rotate(7deg);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.2s ease;
  box-shadow: 0 1px 0 rgba(27, 27, 27, 0.04);
  pointer-events: auto;
}

.sc-sticker:hover {
  transform: rotate(7deg) scale(1.1);
  color: var(--sc-red);
}

.sc-sticker[hidden] {
  display: none;
}

body.conference .sc-sticker__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  z-index: 1;
  margin: 0;
  padding: 0;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sc-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.sc-sticker:hover .sc-sticker__close {
  opacity: 0.55;
  pointer-events: auto;
}

body.conference .sc-sticker__close:hover,
body.conference .sc-sticker__close:focus-visible {
  opacity: 1;
  color: var(--sc-red);
}

.sc-sticker__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 50%;
}

.sc-sticker__title {
  margin: 0;
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.15;
  max-width: 6.6rem;
  transition: color 0.2s ease;
}

.sc-sticker__date {
  margin: 0;
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.sc-sticker--paint {
  position: relative;
  top: 0.35rem;
  right: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.sc-sticker--paint .sc-sticker__title {
  font-size: 0.98rem;
  max-width: 6.2rem;
  line-height: 1.2;
}

.sc-ticket-form-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 4vw, 2.75rem);
}

.sc-ticket-form-row .sc-form {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .sc-ticket-form-row {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 1.25rem;
  }

  .sc-sticker--paint {
    top: 0;
  }
}

@media (max-width: 720px) {
  .sc-sticker {
    width: calc(7.75rem - 2px);
    height: calc(7.75rem - 2px);
    top: 0;
    right: 0;
  }

  .sc-sticker__title {
    font-size: 0.95rem;
    max-width: 5.6rem;
  }

  .sc-sticker__date {
    font-size: 0.8rem;
  }

  /* Touch: × ohne Hover erreichbar halten */
  body.conference .sc-sticker__close {
    opacity: 0.4;
    pointer-events: auto;
  }
}

.sc-intro {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sc-intro__label {
  margin: 0 0 0.75rem;
}

.sc-tool__stage {
  background: transparent;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  container-type: inline-size;
  min-height: 12rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.15s ease;
  cursor: crosshair;
}

.sc-tool__stage.is-painting {
  cursor: crosshair;
}

.sc-ascii-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  padding-top: 2px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.sc-btn--icon {
  box-sizing: border-box;
  padding: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  letter-spacing: 0;
  text-transform: none;
}

.sc-icon-pause,
.sc-icon-play,
.sc-icon-rewind,
.sc-icon-reset {
  display: block;
  width: 12px;
  height: 12px;
}

.sc-seq-pause .sc-icon-play,
.sc-seq-pause .sc-icon-rewind {
  display: none;
}

.sc-seq-pause.is-paused .sc-icon-play {
  display: block;
}

.sc-seq-pause.is-paused .sc-icon-pause {
  display: none;
}

.sc-seq-pause.is-rewind .sc-icon-rewind {
  display: block;
}

.sc-seq-pause.is-rewind .sc-icon-play,
.sc-seq-pause.is-rewind .sc-icon-pause {
  display: none;
}

.sc-brush {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  aspect-ratio: 1;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.sc-brush[data-mode="bold"] {
  font-weight: 700;
  color: var(--sc-ink);
}

.sc-brush[data-mode="red"] {
  color: var(--sc-red);
  border-color: rgba(255, 38, 61, 0.45);
}

.sc-brush[data-mode="clear"] {
  opacity: 0.35;
}

.sc-brush[data-mode="light"] {
  font-weight: 300;
  letter-spacing: 0.08em;
}

.sc-brush[data-mode="dim"] {
  opacity: 0.4;
}

/* Secondary button: kleiner als Subline */
.sc-btn--secondary {
  padding: 0.22rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.sc-btn--secondary.is-open,
.sc-btn--secondary[aria-pressed="true"] {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
}

.sc-tool__stage .sc-gen-toolbar {
  display: none;
}

.sc-tool__stage--gen {
  flex-direction: column;
  align-items: stretch;
  padding: 0.75rem;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sc-ascii-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sc-ascii .sc-dim {
  color: var(--sc-ink);
  opacity: 0.14;
  font-weight: 400;
}

.sc-ascii .sc-bold {
  color: var(--sc-ink);
  opacity: 1;
  font-weight: 700;
}

.sc-ascii .sc-red {
  color: var(--sc-red);
  opacity: 1;
  font-weight: 700;
}

.sc-tool__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.sc-tool__actions--hero {
  margin-bottom: 0.75rem;
}

.sc-ascii-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.4rem 0.65rem;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 1rem;
  color: var(--sc-ink);
  background: transparent;
  border: 1px solid var(--sc-frame);
  border-radius: 2px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.sc-ascii-btn:hover,
.sc-ascii-btn:focus-visible,
.sc-ascii-btn.is-open {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
  outline: none;
  transform: translateY(1px);
}

.sc-generator {
  margin-top: 1rem;
}

.sc-linkbtn {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: auto;
  min-height: 0;
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  display: inline;
  top: auto;
  position: static;
}
a.sc-linkbtn {
  color: inherit;
}

.sc-gen-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.sc-gen-modes {
  display: inline-flex;
  gap: 0.35rem;
}

.sc-mode {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  width: auto;
  height: auto;
  min-height: 0;
  border: 1px solid rgba(27, 27, 27, 0.25);
  border-radius: 2px;
  background: var(--sc-white);
  color: var(--sc-ink);
  cursor: pointer;
}

.sc-mode.is-active {
  background: var(--sc-ink);
  color: var(--sc-beige);
  border-color: var(--sc-ink);
}

.sc-mode[data-mode="red"].is-active {
  background: var(--sc-red);
  border-color: var(--sc-red);
  color: #fff;
}

.sc-gen-hint {
  font-size: 0.8rem;
  opacity: 0.55;
}

#sc-gen-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 76 / 24;
  background: var(--sc-beige);
  border: 1px solid rgba(27, 27, 27, 0.08);
  cursor: crosshair;
  touch-action: none;
  align-self: center;
}

/* —— Intro —— */
.sc-intro__text {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
}

.sc-intro__text p {
  margin: 0 0 1em;
}
.sc-intro__text p:last-child {
  margin-bottom: 0;
}

.sc-starref {
  color: inherit;
  text-decoration: none;
  font-style: italic;
  margin-left: -0.12em; /* Stern enger an „Vorträgen“ */
  padding-left: 0;
}
.sc-starref:hover,
.sc-starref:focus-visible {
  color: var(--sc-red);
  outline: none;
}

/* —— CfP —— */
/* —— CfP: 100vw hellweiß, trennt Sektionen davor/danach —— */
section.sc-cfp {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ffffff;
  box-sizing: border-box;
}

section.sc-cfp .sc-cfp__inner {
  width: 100%;
  max-width: var(--sc-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sc-pad);
  padding-right: var(--sc-pad);
  box-sizing: border-box;
}

.sc-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--sc-frame);
}

@media (min-width: 720px) {
  .sc-slots {
    grid-template-columns: 1fr 1fr;
  }
}

.sc-slot {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--sc-frame);
}

@media (min-width: 720px) {
  .sc-slot:nth-child(odd) {
    padding-right: 1.5rem;
  }
  .sc-slot:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--sc-frame);
  }
}

.sc-slot__num {
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 0.9rem;
  opacity: 0.5;
  padding-top: 0.25rem;
}

.sc-slot__thema {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--sc-size-body);
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.sc-slot__person {
  margin: 0 0 0.45rem;
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 0.95rem;
  opacity: 0.75;
}

.sc-slot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0;
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 0.85rem;
}

.sc-slot__pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--sc-beige, rgb(250, 248, 245));
  color: var(--sc-ink);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.sc-slot__dur {
  opacity: 0.55;
}

.sc-cfp__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
}

.sc-cfp__soon {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.35);
}

.sc-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--sc-ink);
  border: 1px solid var(--sc-frame);
  border-radius: 2px;
  padding: 0.35rem 0.85rem;
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  justify-self: start;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.sc-btn:hover,
.sc-btn:focus-visible {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
  outline: none;
  opacity: 1;
  transform: translateY(1px);
}
.sc-btn.is-glow {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
  animation: sc-btn-glow 1.1s ease;
}
@keyframes sc-btn-glow {
  0% { border-color: var(--sc-red); color: var(--sc-red); }
  70% { border-color: var(--sc-red); color: var(--sc-red); }
  100% { border-color: var(--sc-frame); color: var(--sc-ink); }
}
.sc-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sc-btn[hidden] {
  display: none !important;
}

/* Hero-Buttons: einheitlich 28px hoch; Icon-Buttons 28×28 */
.sc-hero-actions .sc-btn {
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
}

.sc-hero-actions .sc-btn--icon,
.sc-hero-actions .sc-brush {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.sc-org {
  padding-bottom: clamp(4.5rem, 10vw, 7rem);
}

.sc-org__cta {
  margin: 1.5rem 0 0;
}

.sc-field__label {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
}

.sc-org__text {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
  margin: 0 0 1em;
}
.sc-org__text:last-child {
  margin-bottom: 0;
}

.sc-org__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.sc-org__meta li {
  padding-left: 0;
}

/* —— Footer / Stats —— */
.sc-footer {
  width: 100%;
  box-sizing: border-box;
  background: var(--sc-beige-dark);
  border-top: 1px solid rgba(255, 38, 61, 0.45);
  padding: 30px var(--sc-pad);
}

.sc-footer__inner {
  width: 100%;
  max-width: var(--sc-max);
  margin: 0 auto;
}

.sc-footer__band {
  margin: 0 0 1.35rem;
}

.sc-colophon {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
  margin: 0;
}

.sc-colophon a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.15em;
}
.sc-colophon a:hover,
.sc-colophon a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* —— Dialog / Form —— */
.sc-dialog {
  border: 1px solid rgba(27, 27, 27, 0.15);
  background: var(--sc-beige);
  color: var(--sc-ink);
  padding: 1.75rem;
  max-width: min(26rem, calc(100vw - 2rem));
  width: 100%;
}
.sc-dialog::backdrop {
  background: rgba(27, 27, 27, 0.35);
}

.sc-dialog__close-form {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  margin: 0;
}
.sc-dialog {
  position: relative;
}
.sc-dialog__close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

.sc-ticket-copy {
  font-family: var(--sc-font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.sc-form {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.sc-form--wide {
  max-width: 28rem;
}

.sc-field {
  display: grid;
  gap: 0.55rem;
}
.sc-field > span:first-of-type,
.sc-field legend {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.7rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.42);
  opacity: 1;
}
.sc-field input[type="text"],
.sc-field input[type="email"],
.sc-field textarea {
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(27, 27, 27, 0.25);
  background: var(--sc-white);
  color: var(--sc-ink);
  width: 100%;
  box-sizing: border-box;
}
.sc-field textarea {
  resize: vertical;
  min-height: 8rem;
}
.sc-field--area {
  position: relative;
}
.sc-charcount {
  justify-self: end;
  margin: 0;
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.65rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(27, 27, 27, 0.4);
  transition: color 0.15s ease;
}
.sc-charcount.is-over {
  color: var(--sc-red);
}
.sc-field--radio {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.sc-field--radio label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* iOS-like toggle switches (eine Auswahl) */
.sc-seg {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  justify-items: start;
}

.sc-seg > legend {
  padding: 0;
  margin: 0 0 0.55rem;
  float: none;
  width: auto;
}

.sc-seg__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.65rem;
  width: max-content;
  max-width: 100%;
}

.sc-seg__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.sc-seg__row--grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1.85rem;
  row-gap: 0.95rem;
}

.sc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.sc-toggle[hidden] {
  display: none !important;
}

.sc-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.sc-toggle__label {
  font-family: var(--sc-font-ui);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.55);
  transition: color 0.15s ease;
  max-width: 18rem;
  white-space: normal;
}

.sc-toggle__ui {
  position: relative;
  display: block;
  width: 32px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(27, 27, 27, 0.18);
  transition: background-color 0.2s ease;
  box-shadow: inset 0 0 0 0.5px rgba(27, 27, 27, 0.06);
}

.sc-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sc-white);
  box-shadow: 0 1px 2px rgba(27, 27, 27, 0.22);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.sc-toggle input:checked + .sc-toggle__ui {
  background: var(--sc-red);
}

.sc-toggle input:checked + .sc-toggle__ui .sc-toggle__knob {
  transform: translateX(12px);
}

.sc-toggle:has(input:checked) .sc-toggle__label {
  color: var(--sc-ink);
}

.sc-toggle:hover .sc-toggle__label {
  color: var(--sc-ink);
}

.sc-toggle input:focus-visible + .sc-toggle__ui {
  outline: 2px solid var(--sc-red);
  outline-offset: 2px;
}

.sc-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
}

.sc-form__msg {
  margin: 0;
  font-size: 0.95rem;
}
.sc-form__msg.is-error {
  color: var(--sc-red);
}
.sc-form__msg.is-ok {
  color: var(--sc-green);
}

.sc-form__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sc-form__next {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
  margin: 1.25rem 0 0;
}

.sc-form__next a {
  color: var(--sc-red);
  text-decoration: none;
  margin-left: 0.35em;
}

.sc-form__next a:hover {
  text-decoration: underline;
}

.sc-cfp--page {
  min-height: 70vh;
}

/* —— Ticket-Hub —— */
.sc-ticket-hub {
  padding: clamp(2rem, 5vw, 3.5rem) var(--sc-pad-x) clamp(5rem, 12vw, 8rem);
}

.sc-ticket-hub__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.sc-ticket-hub__art {
  margin: 0 0 0.85rem;
}

.sc-ticket-hub__art img {
  display: block;
  width: 100%;
  height: auto;
}

.sc-ticket-hub__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.sc-ticket-hub__item {
  margin: 0;
}

.sc-ticket-hub__item .sc-btn {
  display: inline-flex;
}

.sc-ticket-hub .sc-btn::before {
  content: "›";
  margin-right: 0.35em;
}

.sc-ticket-hub__meta {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
  margin: 0 0 1rem;
}

.sc-ticket-hub__note {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.82;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.sc-ticket-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 2.5rem;
}

.sc-btn--ghost {
  background: transparent;
}

.sc-btn--ghost:hover,
.sc-btn--ghost:focus-visible {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
}

/* —— Begleiter-Felder —— */
.sc-companions {
  margin: 0 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(27, 27, 27, 0.12);
}

.sc-companions__hint {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.15rem;
  opacity: 0.8;
}

.sc-companions__list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sc-companions__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1.25rem;
  margin: 0;
  min-width: 0;
}

.sc-companions__row[hidden] {
  display: none !important;
}

.sc-companions .sc-field {
  gap: 0.85rem;
}

.sc-companions__add {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1.1rem 0 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--sc-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--sc-ink);
  font-family: var(--sc-font-ui);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sc-companions__add:hover,
.sc-companions__add:focus-visible {
  background: transparent;
  border-color: var(--sc-red);
  color: var(--sc-red);
  outline: none;
}

.sc-companions__add[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .sc-companions__row {
    grid-template-columns: 1fr;
  }
}

.sc-ticket-hub__party {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sc-ticket-hub__party-name {
  font-family: var(--sc-font-serif);
  font-style: italic;
  margin-right: 0.5rem;
}

.sc-ticket-hub__party-badge {
  font-family: var(--sc-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sc-ticket-hub__pdfs {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.sc-ticket-hub__pattern {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.sc-ticket-hub__pattern .sc-field select,
.sc-ticket-hub__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 22rem;
  font-family: var(--sc-font-ui);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--sc-ink);
  background-color: var(--sc-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B1B1B' d='M0 1.2h12L6 7.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 10px 7px;
  padding: 0.65rem 2.4rem 0.65rem 0.8rem;
  border: 1.5px solid rgba(27, 27, 27, 0.55);
  border-radius: 3px;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sc-ticket-hub__pattern .sc-field select::-ms-expand,
.sc-ticket-hub__select::-ms-expand {
  display: none;
}

.sc-ticket-hub__pattern .sc-field select:hover,
.sc-ticket-hub__select:hover {
  border-color: var(--sc-ink);
}

.sc-ticket-hub__pattern .sc-field select:focus,
.sc-ticket-hub__pattern .sc-field select:focus-visible,
.sc-ticket-hub__select:focus,
.sc-ticket-hub__select:focus-visible {
  border-color: var(--sc-red);
  outline: none;
  box-shadow: 0 0 0 1px var(--sc-red);
}

.sc-ticket-hub__pattern-preview {
  margin: 0;
  max-width: 16rem;
}

.sc-ticket-hub__pattern-preview img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(27, 27, 27, 0.03);
}

/* —— Gallery —— */
.sc-gallery {
  padding: clamp(2rem, 5vw, 3.5rem) var(--sc-pad-x) clamp(4rem, 10vw, 6rem);
}

.sc-gallery__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.sc-gallery__lead {
  font-family: var(--sc-font-serif);
  font-style: italic;
  font-size: var(--sc-size-body);
  line-height: var(--sc-leading);
  margin: 0 0 2rem;
  max-width: 36rem;
  opacity: 0.85;
}

.sc-gallery__empty {
  font-family: var(--sc-font-serif);
  font-style: italic;
  opacity: 0.7;
}

.sc-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.5rem 1.25rem;
}

.sc-gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.sc-gallery__frame {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 27, 27, 0.03);
  border: 1px solid rgba(27, 27, 27, 0.12);
  padding: 0.75rem;
  box-sizing: border-box;
}

.sc-gallery__frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.sc-gallery__meta {
  font-family: var(--sc-font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, 0.45);
}

.sc-gallery__save {
  margin: 0;
}
