/* Inhaltsbausteine der Anleitungen: Abschnitte, Schritte, Hinweise, Bilder, rechte Spalte. */

/* Inhalt ---------------------------------------------------------------- */
.sc-content { display: flex; flex-direction: column; gap: 24px; }
.sc-content > * { margin: 0 !important; max-width: none !important; }
.sc-content p { margin: 0; }
.sc-content strong { font-weight: 600; }

/* Abschnitts-Karte */
.sc-section { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 20px; }
.sc-section > * { margin: 0 !important; }
.sc-section > p { font-size: 16px; line-height: 26px; color: var(--sc-ink-2); }
.sc-section > h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; scroll-margin-top: calc(var(--sc-header-h) + 24px); }
.sc-section > h2::before { content: ""; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--sc-accent-soft) var(--sc-h-icon, none) center / 20px no-repeat; }

/* Nummerierte Schritte */
ol.sc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 26px; }
ol.sc-steps > li { position: relative; padding-left: 42px; min-height: 28px; }
ol.sc-steps > li::before { content: counter(list-item); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--sc-accent-soft); color: var(--sc-accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
ol.sc-steps + .sc-shot, ol.sc-steps + figure { margin-left: 42px !important; }
.sc-section > .sc-shot + ol.sc-steps { margin-top: 2px !important; }

/* Oberflächenbegriffe aus dem Admin Center: <kbd> */
.sc-content kbd, .sc-acbox kbd { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid var(--sc-field); border-radius: 6px; background: var(--sc-tint); font: inherit; font-size: 14px; font-weight: 600; line-height: 24px; color: var(--sc-ink); white-space: nowrap; box-shadow: none; }
.sc-acbox kbd { align-self: flex-start; font-size: 13px; }
.sc-acbox kbd .sc-icon { color: var(--sc-muted); }

/* Hinweise */
.sc-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: 10px; font-size: 15px; line-height: 23px; }
.sc-note::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; background: currentColor; -webkit-mask: var(--sc-note-icon) center / contain no-repeat; mask: var(--sc-note-icon) center / contain no-repeat; }
.sc-note > .sc-note__body, .sc-note > div { display: flex; flex-direction: column; gap: 2px; }
.sc-note p { margin: 0; }
.sc-note strong { font-weight: 700; }
.sc-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sc-note--info { background: var(--sc-accent-soft); color: var(--sc-info-ink); --sc-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); padding: 18px 20px; border-radius: 12px; }
.sc-note--tip { background: var(--sc-tip-soft); color: var(--sc-tip-ink); --sc-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.sc-note--success { align-items: center; padding: 12px 16px; background: var(--sc-success-soft); color: var(--sc-success-ink); font-weight: 600; --sc-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.sc-note--success::before { margin-top: 0; width: 18px; height: 18px; }

/* Screenshot-Platzhalter und Bilder */
.sc-shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-shot__frame { min-height: 240px; border-radius: 10px; border: 1px solid var(--sc-line); background: var(--sc-tint); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--sc-muted); }
.sc-content figure.wp-block-image img { border-radius: 10px; border: 1px solid var(--sc-line); }
.sc-content figcaption, .sc-shot__caption { margin: 8px 0 0; font-size: 13px; color: var(--sc-muted); text-align: left; }

/* Kacheln (z. B. Entwurf / Live-Version) */
.sc-tiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; margin: 0 !important; }
.sc-tiles > .wp-block-column { background: var(--sc-tint); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex-basis: auto !important; }
.sc-tiles > .wp-block-column > * { margin: 0 !important; }
.sc-tiles p { font-size: 15px; line-height: 23px; color: var(--sc-ink-2); }
.sc-tiles kbd { align-self: flex-start; background: var(--sc-surface); }
.sc-status { display: flex; flex-direction: column; gap: 6px; }
.sc-dot { display: flex !important; align-items: center; gap: 8px; font-size: 14px !important; font-weight: 600; }
.sc-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sc-dot--green { color: var(--sc-success) !important; }
.sc-dot--red { color: var(--sc-danger-ink) !important; }

.sc-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.sc-examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 23px; color: var(--sc-ink-2); }
ul.sc-examples > li { position: relative; padding-left: 22px; }
ul.sc-examples > li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-accent); }
.sc-section > figure.wp-block-image { margin: 0 !important; }
.sc-section > figure.wp-block-image img { display: block; width: 100%; height: auto; }
.sc-note--warning { background: #fdecdf; color: #7a3300; --sc-note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9 16H3z'/%3E%3Cpath d='M12 10v4M12 17v.01'/%3E%3C/svg%3E"); }
.sc-note kbd { background: rgba(255,255,255,.7); }

/* Weiterführend, Hilfe -------------------------------------------------- */
.sc-related { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.sc-related__title { margin: 0; font-size: 18px; }
.sc-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc-related__item { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; color: var(--sc-ink); }
.sc-related__item:hover { border-color: var(--sc-field); color: var(--sc-ink); }
.sc-related__name { font-size: 15px; font-weight: 700; }
.sc-related__text { font-size: 14px; line-height: 21px; color: var(--sc-muted); }
.sc-help { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.sc-help__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sc-help__text strong { font-size: 16px; font-weight: 700; }
.sc-help__text span { font-size: 14px; color: var(--sc-muted); }

/* Rechte Spalte --------------------------------------------------------- */
.sc-toc { display: flex; flex-direction: column; gap: 2px; }
.sc-toc .sc-label { padding-bottom: 8px; }
.sc-toc a { padding: 6px 0 6px 12px; border-left: 2px solid var(--sc-line); font-size: 14px; line-height: 1.4; color: var(--sc-ink-2); }
.sc-toc a:hover { color: var(--sc-ink); }
.sc-toc a.is-active { border-left-color: var(--sc-accent); color: var(--sc-accent); font-weight: 700; }
.sc-acbox { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sc-acbox__link { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 600; }
.sc-copylink { appearance: none; border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; color: var(--sc-muted); cursor: pointer; }
.sc-copylink:hover { color: var(--sc-ink); }

/* Unterüberschrift in Abschnitten */
.sc-section > h3 { margin: 4px 0 -8px !important; font-size: 16px; }

/* Aufzählung mit Punkten */
ul.sc-bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 25px; color: var(--sc-ink-2); }
ul.sc-bullets li::marker { color: var(--sc-accent); }

/* Tabellen */
.sc-table { margin: 0 !important; overflow-x: auto; border: 1px solid var(--sc-line); border-radius: 10px; }
.sc-table thead, .sc-table tfoot { border: 0 !important; }
.sc-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.sc-table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sc-muted); background: var(--sc-tint); padding: 10px 14px; border: 0; border-bottom: 1px solid var(--sc-line); }
.sc-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--sc-line-2); vertical-align: top; color: var(--sc-ink-2); }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table td:first-child { font-weight: 600; color: var(--sc-ink); white-space: nowrap; }

/* Galerie (z. B. Vorlagen) */
.sc-gallery { margin: 0 !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important; }
.sc-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-gallery > .wp-block-image { width: auto !important; flex: none !important; }
.sc-gallery .wp-block-image img { display: block; width: 100%; height: auto !important; }
.sc-gallery .wp-block-image { margin: 0 !important; }
.sc-gallery .wp-block-image img { border-radius: 8px; border: 1px solid var(--sc-line); background: var(--sc-tint); }
.sc-gallery .wp-block-image figcaption { position: static !important; background: none !important; color: var(--sc-muted) !important; padding: 6px 0 0 !important; font-size: 13px !important; text-align: left !important; max-height: none !important; }
.sc-gallery .wp-block-image::before, .sc-gallery .wp-block-image figcaption::before { display: none !important; }

/* Bild direkt im Inhalt (außerhalb eines Abschnitts) */
.sc-content > figure.wp-block-image img { display: block; width: 100%; height: auto; }

/* Gerätekarten: Foto mit Name und Beschreibung */
.sc-gallery--devices .wp-block-image { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: 12px; padding: 12px; box-sizing: border-box; }
.sc-gallery--devices .wp-block-image img { aspect-ratio: 4 / 3; object-fit: contain; border: 0; background: var(--sc-surface); }
.sc-gallery--devices .wp-block-image figcaption { font-size: 14px !important; line-height: 21px; color: var(--sc-ink-2) !important; }
.sc-gallery--devices .wp-block-image figcaption a { font-size: 15px; }
