/* Anleitung – vorher Inline-<style> in eventtimer-anleitung.html; Sprachregeln entfernt, Lightbox als <dialog> */
/* ====== Layout ====== */
.art-wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gut);
  padding-top: clamp(100px,14vw,140px);
  padding-bottom: clamp(64px,10vw,100px);
}
.art-layout { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: start; }
@media (min-width: 900px) { .art-layout { grid-template-columns: 1fr 220px; gap: 64px; } }

/* ====== Header ====== */
.art-header { margin-bottom: clamp(32px,5vw,48px); }
.art-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; font-family: var(--ff-display); font-size: 15px; color: var(--faint);
}
.art-breadcrumb a { color: var(--muted); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--text); }
.art-breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }
.art-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); background: rgba(217,185,120,0.08);
  border: 1px solid rgba(217,185,120,0.18); padding: 4px 11px;
  border-radius: 6px; margin-bottom: 16px;
}
.art-cat svg { width: 12px; height: 12px; }
.art-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(28px,5vw,44px); line-height: 1.08;
  letter-spacing: -.025em; margin-bottom: 14px; text-wrap: balance;
}
.art-lead {
  color: var(--muted); font-size: clamp(16px, 2vw, 17px);
  max-width: 58ch; line-height: 1.7; text-wrap: pretty; margin-bottom: 22px;
}
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.art-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: 13px; color: var(--faint);
}
.art-meta-item svg { width: 13px; height: 13px; }
.art-meta-badge {
  font-family: var(--ff-display); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px;
  background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--line);
}

/* ====== Quick Facts ====== */
.quick-facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; margin-bottom: 30px;
}
.qf-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: 15px;
  color: var(--muted); background: var(--card);
  border: 1px solid var(--line); padding: 7px 13px; border-radius: 9px;
}
.qf-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* ====== Body ====== */
.art-body { min-width: 0; }
.art-section { margin-bottom: clamp(48px,6vw,68px); }
.art-h2 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(19px,2.6vw,24px); letter-spacing: -.02em;
  color: var(--text); margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.art-h2-num {
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; color: var(--gold);
  background: rgba(217,185,120,0.08); border: 1px solid rgba(217,185,120,0.18);
  padding: 3px 8px; border-radius: 5px; flex-shrink: 0;
}
.art-h3 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(16px, 1.8vw, 17px); letter-spacing: -.012em;
  color: var(--text); margin-bottom: 10px; margin-top: 26px;
}
.art-h3:first-child { margin-top: 0; }
.art-p {
  color: var(--muted); font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75; text-wrap: pretty; margin-bottom: 12px;
}
.art-p:last-child { margin-bottom: 0; }
.art-p strong { color: var(--text); font-weight: 600; }

/* ====== Plattform-Trenner ====== */
.os-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.os-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: 15px; font-weight: 600;
  color: var(--text); background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-2); padding: 7px 14px;
  border-radius: 9px; margin-bottom: 20px;
}
.os-tag svg { width: 15px; height: 15px; color: var(--muted); }

/* ====== Steps ====== */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 0 18px; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: -1px;
  width: 1px; background: linear-gradient(to bottom, var(--line-2), var(--line));
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(217,185,120,0.07); border: 1px solid rgba(217,185,120,0.2);
  color: var(--gold); font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1;
}
.step-content { padding-bottom: 26px; }
.step:last-child .step-content { padding-bottom: 0; }
.step-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(16px, 1.7vw, 18px); color: var(--text);
  margin-bottom: 5px; line-height: 1.3; padding-top: 9px;
}
.step-body { color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.72; text-wrap: pretty; }
.step-body strong { color: var(--text); font-weight: 600; }

/* ====== Callouts ====== */
.callout { display: flex; gap: 13px; padding: 14px 17px; border-radius: var(--r); border: 1px solid; margin-block: 16px; }
.callout-icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.callout-icon svg { width: 18px; height: 18px; }
.callout-label { font-family: var(--ff-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.callout-text { font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.callout-text strong { font-weight: 600; }
.callout-tip  { background: rgba(217,185,120,0.06); border-color: rgba(217,185,120,0.22); }
.callout-tip .callout-icon, .callout-tip .callout-label { color: var(--gold); }
.callout-tip .callout-text { color: rgba(217,185,120,0.85); }
.callout-info { background: rgba(255,255,255,0.03); border-color: var(--line-2); }
.callout-info .callout-icon, .callout-info .callout-label { color: var(--muted); }
.callout-info .callout-text { color: var(--muted); }
.callout-warn { background: rgba(220,70,60,0.07); border-color: rgba(220,70,60,0.25); }
.callout-warn .callout-icon, .callout-warn .callout-label { color: #e05c52; }
.callout-warn .callout-text { color: rgba(230,120,115,0.9); }

/* ====== Tabellen ====== */
.art-table-wrap { overflow-x: auto; margin-block: 18px; border-radius: var(--r); border: 1px solid var(--line); }
.art-table { width: 100%; border-collapse: collapse; font-size: clamp(14px, 1.5vw, 16px); }
.art-table th {
  font-family: var(--ff-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  padding: 9px 15px; border-bottom: 1px solid var(--line-2);
  text-align: left; background: var(--bg-2);
}
.art-table td {
  padding: 11px 15px; color: var(--muted);
  border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5;
}
.art-table tr:last-child td { border-bottom: none; }
.art-table td:first-child { font-family: var(--ff-display); font-weight: 600; color: var(--text); white-space: nowrap; }
.art-table td code, .art-table th code {
  font-family: 'SF Mono','Fira Mono',monospace; font-size: 13px;
  background: rgba(255,255,255,0.06); color: var(--gold-2);
  padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.09);
}
.art-table td.mono { font-family: 'SF Mono','Fira Mono',monospace; font-size: 13px; color: var(--gold-2); white-space: nowrap; }

/* ====== Screenshot-Platzhalter ====== */
.art-img { width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-block: 20px; }
.art-img img { width: 100%; display: block; }
.art-img.compact { max-width: 300px; margin-inline: auto; align-self: center; }
dialog.lightbox-guide { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(0,0,0,0.88); backdrop-filter: blur(4px); cursor: zoom-out; }
dialog.lightbox-guide[open] { display: flex; }
dialog.lightbox-guide img { max-width: 95vw; max-height: 92vh; width: auto; height: auto; border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.6); cursor: default; }
dialog.lightbox-guide .lb-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
dialog.lightbox-guide .lb-close:hover { background: rgba(255,255,255,0.22); }
.art-img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: repeating-linear-gradient(-45deg,rgba(255,255,255,0.014),rgba(255,255,255,0.014) 1px,transparent 1px,transparent 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--faint);
}
.art-img-placeholder.tall { aspect-ratio: 4/3; }
.art-img-placeholder svg { width: 26px; height: 26px; opacity: .4; }
.art-img-placeholder span { font-family: monospace; font-size: 13px; opacity: .6; text-align: center; padding: 0 24px; }
.art-img figcaption { padding: 10px 15px; font-size: 14px; color: var(--faint); background: var(--card); border-top: 1px solid var(--line); text-wrap: pretty; }
.art-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: 20px; }
@media (max-width: 580px) { .art-img-row { grid-template-columns: 1fr; } }
.art-img-row .art-img { margin-block: 0; }
/* Bild schmal links, Text/Tabelle rechts (z. B. Dialog-Ausschnitt neben den Schritten) */
.art-split { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; align-items: start; margin-block: 20px; }
.art-split.wide { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.art-split > .art-img { margin: 0; max-width: none; }
.art-split > .art-list, .art-split > .art-table-wrap, .art-split .steps { margin-block: 0; }
@media (max-width: 760px) {
  .art-split, .art-split.wide { grid-template-columns: 1fr; }
  .art-split > .art-img { max-width: 360px; margin-inline: auto; }
}

/* ====== Inline-Code ====== */
.art-code {
  font-family: 'SF Mono','Fira Mono',monospace; font-size: 14px;
  background: rgba(255,255,255,0.06); color: var(--gold-2);
  padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.09); white-space: nowrap;
}

/* ====== Einfache Liste ====== */
.art-list { list-style: none; padding: 0; margin-block: 14px; display: flex; flex-direction: column; gap: 9px; }
.art-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); line-height: 1.6;
}
.art-list li::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); margin-top: 7px; }
.art-list li strong { color: var(--text); font-weight: 600; }

/* ====== Trennlinie ====== */
.art-rule { height: 1px; background: var(--line); margin-block: clamp(28px,4vw,42px); }

/* ====== ToC ====== */
.art-toc { position: sticky; top: 88px; }
.art-toc-inner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.art-toc-label { font-family: var(--ff-display); font-size: 12.5px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.art-toc-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.art-toc-list a {
  display: block; font-family: var(--ff-display); font-size: 13px; color: var(--muted);
  padding: 6px 9px; border-radius: 6px; border-left: 2px solid transparent;
  transition: color .2s, background .2s, border-color .2s; line-height: 1.4;
}
.art-toc-list a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.art-toc-list a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(217,185,120,0.06); }
.art-toc-divider { height: 1px; background: var(--line); margin: 12px 0; }
.art-toc-back {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: 13px; color: var(--faint);
  padding: 6px 9px; border-radius: 6px; transition: color .2s, background .2s;
}
.art-toc-back:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.art-toc-back svg { width: 12px; height: 12px; flex-shrink: 0; }
@media (max-width: 899px) { .art-toc { display: none; } }

/* ====== Scroll-Offset (Nav-Höhe) ====== */
.art-section[id] { scroll-margin-top: 90px; }

/* ====== Hauptlayout: ToC links | Content rechts ====== */
.art-main-cols {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .art-main-cols { grid-template-columns: 1fr; }
}
.art-main-content { min-width: 0; }
.art-intro-toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 18px 14px;
  position: sticky;
  top: 88px;
}
@media (max-width: 900px) {
  .art-intro-toc { display: none; }
}
.art-intro-screenshot { margin-block: 0; margin-bottom: clamp(28px,4vw,44px); }

/* ====== Nav-Left-Gruppe ====== */
.nav-left { display: flex; align-items: center; gap: 0; min-width: 0; }

/* ====== Nav-Sectiontitel (erscheint beim Scrollen) ====== */
.nav-section-title {
  font-family: var(--ff-display); font-size: 15px; font-weight: 500;
  color: var(--muted); letter-spacing: -.01em;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s, transform .25s, color .2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
  pointer-events: none;
}
.nav.scrolled .nav-section-title.visible {
  opacity: 1; transform: translateY(0);
}
.nav-section-sep {
  color: var(--faint); font-size: 13px; margin: 0 6px;
  opacity: 0; transition: opacity .25s;
}
.nav.scrolled .nav-section-sep.visible { opacity: 1; }

/* ====== Hilfe-Box ====== */
.art-helpful {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 17px 22px; margin-top: 44px;
}
.art-helpful-label { font-family: var(--ff-display); font-size: 15px; color: var(--muted); }
.art-helpful-btns { display: flex; gap: 9px; }
.art-helpful-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: 15px; font-weight: 500;
  padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line-2);
  color: var(--muted); background: transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.art-helpful-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.art-helpful-btn svg { width: 14px; height: 14px; }
/* ====== Updates-Strip ====== */
.updates-strip {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-block: 22px;
}
.updates-strip-item {
  flex: 1; padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.updates-strip-sep { width: 1px; background: var(--line); flex-shrink: 0; }
.updates-strip-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: rgba(217,185,120,0.07); border: 1px solid rgba(217,185,120,0.18);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.updates-strip-icon svg { width: 16px; height: 16px; }
.updates-strip-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 16px; color: var(--text); line-height: 1.3;
}
.updates-strip-desc {
  font-size: 15px; color: var(--muted);
  line-height: 1.65; text-wrap: pretty;
}
.updates-strip-desc strong { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .updates-strip { flex-direction: column; }
  .updates-strip-sep { width: auto; height: 1px; }
}

/* ====== Ersatz für frühere style-Attribute ====== */
.mt-0 { margin-top: 0 !important; }
.mt-10 { margin-top: 10px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-18 { margin-top: 18px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.art-img.mw-230 { max-width: 230px; }
.art-img.mw-340 { max-width: 340px; }
.art-img.mw-360 { max-width: 360px; }
.art-img.mw-400 { max-width: 400px; }
.art-img.mw-420 { max-width: 420px; }
.art-img.mw-460 { max-width: 460px; }
.link-gold { color: rgba(217,185,120,0.9) !important; text-decoration: underline !important; }
.code-gold { color: var(--gold-2) !important; font-family: monospace !important; font-size: 13px !important; }

/* ====== Vergrößerbare Bilder ====== */
.art-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.art-zoom img { width: 100%; display: block; }
