/* cloud-transfair · Werkzeug */
[hidden] { display: none !important; }
.hero { padding-block: 32px 64px; display: grid; gap: 20px; }
.hero__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--c-brand); }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; align-items: start; padding-block: 56px 88px; }
  .hero__head { grid-column: 1 / -1; }
}

.tool { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 600px) { .tool { padding: 28px; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; padding: 4px; }
.tabs button { font: inherit; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; min-height: 46px; border: 0; border-radius: 9px; background: transparent; color: var(--c-soft); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--c-brand); color: var(--c-on-brand); }
.tool[data-busy] .tabs { display: none; }

.pane, .step { display: flex; flex-direction: column; gap: 14px; }
.step[hidden], .pane[hidden] { display: none; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.lbl { font-weight: 600; }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 170px; padding: 20px; border: 2px dashed var(--c-line); border-radius: var(--r-m); cursor: pointer; color: var(--c-soft); transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 7%, transparent); }
.drop:focus-within { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.drop strong { font-family: var(--f-head); font-size: 1.15rem; color: var(--c-text); }
.fileinfo { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); overflow-wrap: anywhere; }
.fileinfo b { display: block; }

.ttl { display: flex; flex-direction: column; gap: 6px; }
.ttl label { font-weight: 600; }
.ttl input { width: 100%; accent-color: var(--c-brand); min-height: 32px; }

.code { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.8rem, 12vw, 4.4rem); letter-spacing: .06em; text-align: center; color: var(--c-brand); line-height: 1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.countdown { height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.countdown__bar { height: 100%; width: 100%; background: var(--c-brand); transition: width 1s linear; }

.codein { font: inherit; font-family: var(--f-head); font-weight: 700; font-size: 2.2rem; letter-spacing: .12em; text-align: center; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; padding: 10px; width: 100%; font-variant-numeric: tabular-nums; }
.codein:focus { outline: 2px solid var(--c-brand); outline-offset: 1px; border-color: transparent; }

.peer { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding: 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); }
.peer dt { color: var(--c-muted); } .peer dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--c-line); border-top-color: var(--c-brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.transfer__head { display: flex; gap: 14px; align-items: center; }
.schaubi { width: 64px; height: auto; flex-shrink: 0; }
.progress { height: 14px; border-radius: 7px; background: var(--c-line); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--c-brand); transition: width .25s ease; }
.progress__txt { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--c-soft); }

.status { padding: 12px 14px; border-radius: 10px; font-weight: 600; background: color-mix(in srgb, var(--c-amber) 14%, transparent); border: 1px solid var(--c-amber); }
.status[data-kind='ok'] { background: color-mix(in srgb, var(--c-brand) 14%, transparent); border-color: var(--c-brand); }
.status[data-kind='error'] { background: color-mix(in srgb, var(--c-magenta) 14%, transparent); border-color: var(--c-magenta); }

.info { padding: 0; }
.info summary { cursor: pointer; padding: 16px 20px; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; min-height: 48px; }
.info__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; padding: 0 20px 20px; font-size: 15px; }
.info__grid dt { color: var(--c-muted); }
.info__grid dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.ok { color: var(--c-brand); font-weight: 600; } .bad { color: var(--c-magenta); font-weight: 600; }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps3 li { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps3 li::before { counter-increment: s; content: '0' counter(s); font-family: var(--f-pixel); color: var(--c-brand); font-size: 14px; }
.steps3 strong { font-family: var(--f-head); font-size: 1.15rem; }

.cols2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.list { margin: 0; padding: 22px 22px 22px 44px; display: grid; gap: 8px; }
.list--yes li::marker { content: '✓  '; color: var(--c-brand); }
.list--no li::marker { content: '✗  '; color: var(--c-magenta); }

.support { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 860px) { .support { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ── M2: QR, Richtungen, Kontroll-Symbole ── */
.alt { border: 1px solid var(--c-line); border-radius: 12px; }
.alt summary { cursor: pointer; padding: 12px 14px; font-weight: 600; min-height: 44px; color: var(--c-soft); }
.alt__in { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }
.codein--sm { font-size: 1.6rem; }
.target { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--c-brand); background: color-mix(in srgb, var(--c-brand) 10%, transparent); font-weight: 600; }
.codebox { display: grid; gap: 18px; align-items: center; justify-items: center; }
@media (min-width: 560px) { .codebox { grid-template-columns: 180px 1fr; justify-items: stretch; } }
.qr { width: 180px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.sas { display: flex; justify-content: center; gap: 18px; margin: 4px 0; }
.sas span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: var(--c-muted); }
.sas b { font-size: 2.8rem; line-height: 1.1; font-weight: 400; }
.sasline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); font-size: 15px; }
.sasline .emo { font-size: 1.6rem; letter-spacing: 4px; }
.tip { margin-top: 18px; }

/* Kann / kann nicht mit Symbolen */
.pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid; }
.pill--yes { color: var(--c-brand); border-color: color-mix(in srgb, var(--c-brand) 55%, transparent); background: color-mix(in srgb, var(--c-brand) 10%, transparent); }
.pill--no { color: var(--c-magenta); border-color: color-mix(in srgb, var(--c-magenta) 55%, transparent); background: color-mix(in srgb, var(--c-magenta) 9%, transparent); }
.caphead { font-size: 1.25rem; margin: 8px 0 14px; display: flex; gap: 10px; align-items: center; }
.caphead span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.caphead--yes span { background: var(--c-brand); color: var(--c-on-brand); }
.caphead--no span { background: var(--c-magenta); color: #fff; }
.caphead--no { margin-top: 36px; }
.capgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .capgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cap { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-m); border-left-width: 4px; }
.cap--yes { border-left-color: var(--c-brand); } .cap--no { border-left-color: var(--c-magenta); }
.cap__ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative; }
.cap--yes .cap__ic { color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 14%, transparent); }
.cap--no .cap__ic { color: var(--c-magenta); background: color-mix(in srgb, var(--c-magenta) 12%, transparent); }
.cap__ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap__ic::after { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--c-surface); }
.cap--yes .cap__ic::after { content: '✓'; background: var(--c-brand); color: var(--c-on-brand); }
.cap--no .cap__ic::after { content: '✗'; background: var(--c-magenta); color: #fff; }
.cap strong { font-family: var(--f-head); font-size: 1.1rem; }
.cap > span:last-child { color: var(--c-soft); font-size: 15px; }
.codebox .code { font-size: clamp(2.2rem, 6vw, 3rem); white-space: nowrap; letter-spacing: .04em; }
.codebox > div { min-width: 0; }
button.btn--ghost { background: transparent; }
.fileinfo .warn { display: block; margin-top: 6px; color: var(--c-amber); }

/* ── M4: Dateityp-Prüfung ── */
.risk { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--c-amber); background: color-mix(in srgb, var(--c-amber) 12%, transparent); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.risk--disguised { border-color: var(--c-magenta); background: color-mix(in srgb, var(--c-magenta) 12%, transparent); }
.risk__title { font-weight: 700; }
.risk ul { margin: 0; padding-left: 1.2em; color: var(--c-soft); }
.risk__ack { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; padding-top: 4px; }
.risk__ack input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-magenta); flex-shrink: 0; }

/* ── M5: Inhalte ── */
.h3 { font-family: var(--f-head); font-size: 1.35rem; margin: 0 0 14px; }
.bubble { position: relative; margin-top: 4px; padding: 12px 16px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-soft); max-width: 60ch; font-style: italic; }
.bubble--small { font-size: 14px; padding: 10px 12px; margin-top: auto; }
.guide-head { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 28px; }
.guide-head .section-head { margin-bottom: 0; }
.guide-head__img { width: auto; height: 170px; flex-shrink: 0; }
@media (max-width: 600px) { .guide-head { align-items: center; } .guide-head__img { height: 120px; } }

/* Grafik "So geht's" */
.fig { margin: 0; display: grid; gap: 22px; }
@media (min-width: 960px) { .fig { grid-template-columns: 1.5fr 1fr; align-items: center; } }
.diagram { width: 100%; height: auto; }
.d-box { fill: var(--c-surface); stroke: var(--c-line); stroke-width: 2; }
.d-box--soft { stroke-dasharray: 5 5; }
.d-title { fill: var(--c-text); font-family: var(--f-head); font-weight: 700; font-size: 22px; }
.d-small { fill: var(--c-muted); font-size: 14px; }
.d-label { fill: var(--c-soft); font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.d-dev { fill: var(--c-surface); stroke: var(--c-muted); stroke-width: 2; }
.d-screen { fill: var(--c-bg); stroke: var(--c-line); }
.d-dash { fill: none; stroke: var(--c-muted); stroke-width: 2.5; stroke-dasharray: 7 7; }
.d-dot { fill: none; stroke: var(--c-muted); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.d-direct { fill: none; stroke: var(--c-brand); stroke-width: 5; stroke-linecap: round; }
.d-arrow { fill: var(--c-brand); }
.d-num { fill: var(--c-bg); stroke: var(--c-muted); stroke-width: 2; }
.d-num--brand { fill: var(--c-brand); stroke: var(--c-brand); }
.d-numt { fill: var(--c-text); font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.d-numt--brand { fill: var(--c-on-brand); }
.d-lock rect { fill: var(--c-brand); } .d-lock path { fill: none; stroke: var(--c-brand); stroke-width: 3; }
.legend { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; color: var(--c-soft); }
.legend li::marker { font-family: var(--f-head); font-weight: 700; color: var(--c-brand); }
.legend b { color: var(--c-text); }

/* Anleitung */
.guides { display: grid; gap: 16px; }
@media (min-width: 900px) { .guides { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.guide h3 { font-size: 1.15rem; display: flex; flex-direction: column; gap: 4px; }
.guide h3 span { font-size: 1.4rem; letter-spacing: 2px; }
.guide ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--c-soft); }
.guide li::marker { color: var(--c-brand); font-weight: 700; }

/* Sicherheit: Abschnitte mit Schaubi + Ablauf */
.split { display: grid; gap: 24px; align-items: center; margin-top: 36px; }
.split:first-of-type { margin-top: 0; }
.split__img { width: 150px; height: auto; justify-self: center; }
@media (min-width: 860px) { .split { grid-template-columns: 190px 1fr; gap: 40px; } .split__img { width: 100%; } .split--rev { grid-template-columns: 1fr 190px; } .split--rev .split__img { order: 2; } }
.flow { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; counter-reset: f; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); }
.flow__step span:last-child { color: var(--c-muted); font-size: 14px; }
.flow__ic { font-size: 1.5rem; line-height: 1; }
.flow__step--ok { border-color: var(--c-brand); }
.flow__step--warn { border-color: var(--c-amber); }
@media (min-width: 720px) { .flow__step:not(:last-child)::after { content: '→'; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-weight: 700; z-index: 1; } }
.store { display: grid; gap: 12px; margin-bottom: 10px; }
@media (min-width: 720px) { .store { grid-template-columns: 1.4fr 1fr; } }
.store__col { list-style: none; margin: 0; padding: 16px; border-radius: 12px; display: grid; gap: 8px; font-size: 15px; border: 1px solid var(--c-line); background: var(--c-surface); }
.store__col li { padding-left: 26px; position: relative; color: var(--c-soft); }
.store__col li::before { position: absolute; left: 0; font-weight: 700; }
.store__col--yes li::before { content: '•'; color: var(--c-amber); font-size: 1.2em; line-height: 1.2; }
.store__col--no { border-color: var(--c-brand); }
.store__col--no li::before { content: '✗'; color: var(--c-brand); }

/* Tabelle */
.table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--c-line); }
.tbl { width: 100%; border-collapse: collapse; background: var(--c-surface); font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.tbl thead th { font-family: var(--f-head); background: var(--c-bg-2); }
.tbl tbody th { white-space: nowrap; font-weight: 600; }
.tbl td { color: var(--c-soft); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .tbl tbody th { white-space: normal; min-width: 110px; } }

/* FAQ */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 280px 1fr; gap: 48px; } }
.faq-img { width: 110px; height: auto; display: none; }
@media (min-width: 900px) { .faq-img { display: block; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--c-brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; color: var(--c-soft); }

/* Glossar */
.gloss { margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .gloss { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gloss { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gloss > div { padding: 14px 16px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); }
.gloss dt { font-family: var(--f-head); font-weight: 700; color: var(--c-brand); }
.gloss dd { margin: 4px 0 0; color: var(--c-soft); font-size: 15px; }

/* transfair vs. transfer */
.brand { color: var(--c-brand); } .brand2 { color: var(--c-violet); }
.versus { display: grid; gap: 16px; }
@media (min-width: 760px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus__col { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.versus__col ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--c-soft); }
.badge { align-self: flex-start; font-family: var(--f-pixel); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--c-violet); color: var(--c-violet); }
.badge--brand { border-color: var(--c-brand); color: var(--c-brand); }

/* Familie */
.family { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .family { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .family { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fam { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; color: var(--c-text); transition: border-color .15s, transform .15s; }
a.fam:hover { border-color: var(--c-brand); color: var(--c-text); transform: translateY(-2px); }
.fam b { font-family: var(--f-head); font-size: 1.1rem; }
.fam b em { font-style: normal; font-family: var(--f-pixel); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--c-violet); margin-left: 6px; vertical-align: middle; }
.fam span { color: var(--c-muted); font-size: 15px; }
.fam--soon { opacity: .8; border-style: dashed; }

/* Tipp nach dem Transfer */
.tipafter { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--c-line); font-size: 15px; color: var(--c-soft); }
.tipafter a { color: var(--c-brand); font-weight: 600; }
.d-label { font-size: 20px; }
@media (max-width: 560px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 1px solid var(--c-line); padding: 12px 16px; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl tbody th, .tbl td { border: 0; padding: 0; }
  .tbl tbody th { color: var(--c-brand); margin-bottom: 4px; }
}
