/* ShirtGo – gemeinsame Oberfläche für Warenkorb, Kasse, Konto, Login, Designer */
:root {
  --sg-gold: #D18F2F; --sg-gold-d: #B8791C; --sg-ink: #101010; --sg-muted: #6B6B6B; --sg-line: #E9E9E9; --sg-bg: #FFFFFF; --sg-soft: #FAFAFA;
  --sg-ok: #1E7A46; --sg-ok-bg: #E9F7EF; --sg-err: #B23A2E; --sg-err-bg: #FDECEA; --sg-warn: #8A6100; --sg-warn-bg: #FFF7E0; --sg-info: #1B4FD8; --sg-info-bg: #EAF3FF;
  --sg-r: 3px; --sg-font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.sg { background: var(--sg-bg); color: var(--sg-ink); font-family: var(--sg-font); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
.sg a { color: var(--sg-ink); }
.sg a:hover { color: var(--sg-gold-d); }
.sg input, .sg select, .sg textarea, .sg button { font-family: inherit; font-size: inherit; }
.sg *:focus-visible { outline: 2px solid var(--sg-gold); outline-offset: 2px; }
.sg-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .sg-wrap { padding: 0 16px; } }

/* Header */
.sg-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--sg-line); }
.sg-header .sg-wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.sg-logo img { height: 50px; width: auto; display: block; }
.sg-nav { display: flex; gap: 22px; align-items: center; }
.sg-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: #3C3C3C; white-space: nowrap; }
.sg-nav a.active, .sg-nav a:hover { color: var(--sg-ink); box-shadow: inset 0 -2px 0 var(--sg-gold); }
.sg-head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sg-head-right a { text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sg-head-right svg { width: 20px; height: 20px; }
.sg-badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sg-gold); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sg-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sg-burger svg { width: 24px; height: 24px; }
@media (max-width: 980px) {
  .sg-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sg-line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .sg-nav.open { display: flex; }
  .sg-nav a { padding: 12px 4px; border-bottom: 1px solid #F3F3F3; }
  .sg-burger { display: block; }
  .sg-head-right .sg-hide-m { display: none; }
  .sg-logo img { height: 40px; }
}

/* Footer */
.sg-footer { margin-top: 64px; background: #101010; color: #CFCFCF; font-size: 13.5px; }
.sg-footer .sg-wrap { padding-top: 40px; padding-bottom: 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.sg-footer h4 { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.sg-footer a { color: #CFCFCF; text-decoration: none; display: block; margin: 5px 0; }
.sg-footer a:hover { color: var(--sg-gold); }
.sg-footer .sg-legal { border-top: 1px solid #262626; padding: 16px 0; font-size: 12px; color: #8A8A8A; }
@media (max-width: 800px) { .sg-footer .sg-wrap { grid-template-columns: 1fr 1fr; } }

/* Typo & Bausteine */
.sg h1 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.025em; line-height: 1.1; margin: 0; font-weight: 800; }
.sg h2 { font-size: 20px; letter-spacing: -0.01em; margin: 0; font-weight: 800; }
.sg h3 { font-size: 16px; margin: 0; font-weight: 800; }
.sg-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-gold-d); }
.sg-muted { color: var(--sg-muted); }
.sg-small { font-size: 13px; }
.sg-card { border: 1px solid var(--sg-line); border-radius: var(--sg-r); background: #fff; }
.sg-card-h { padding: 16px 20px; border-bottom: 1px solid #F0F0F0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-card-b { padding: 20px; }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--sg-ink); background: var(--sg-ink); color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px 22px; border-radius: var(--sg-r); cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.sg a.sg-btn { color: #fff; }
.sg-btn:hover { background: #2A2A2A; color: #fff; }
.sg-btn-gold { background: var(--sg-gold); border-color: var(--sg-gold); color: #101010; font-weight: 800; }
.sg a.sg-btn-gold { color: #101010; }
.sg-btn-gold:hover { background: var(--sg-gold-d); border-color: var(--sg-gold-d); color: #101010; }
.sg-btn-ghost { background: #fff; color: var(--sg-ink); border-color: #C9C9C9; }
.sg a.sg-btn-ghost { color: var(--sg-ink); }
.sg-btn-ghost:hover { background: var(--sg-soft); color: var(--sg-ink); border-color: #999; }
.sg-btn-sm { padding: 8px 12px; font-size: 13px; }
.sg-btn[disabled], .sg-btn.is-busy { opacity: .55; cursor: not-allowed; }
.sg-btn.is-busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sgspin .7s linear infinite; }
@keyframes sgspin { to { transform: rotate(360deg); } }
.sg-link { background: none; border: 0; padding: 0; color: var(--sg-ink); text-decoration: underline; cursor: pointer; font-weight: 600; }
.sg-field { display: block; }
.sg-field > span, .sg-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A8A8A; margin-bottom: 7px; }
.sg-input { width: 100%; padding: 12px 13px; border: 1px solid #DFDFDF; border-radius: var(--sg-r); font-size: 14.5px; outline: none; background: #fff; color: var(--sg-ink); }
.sg-input:focus { border-color: var(--sg-gold); box-shadow: 0 0 0 3px rgba(209,143,47,.15); }
.sg-input.is-invalid { border-color: var(--sg-err); }
.sg-grid { display: grid; gap: 14px; }
.sg-grid-2 { grid-template-columns: 1fr 1fr; }
.sg-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .sg-grid-2, .sg-grid-3 { grid-template-columns: 1fr; } }
.sg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.sg-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sg-gold); flex: 0 0 auto; }
.sg-alert { padding: 12px 15px; border-radius: var(--sg-r); font-size: 14px; font-weight: 600; border: 1px solid; }
.sg-alert-err { background: var(--sg-err-bg); color: var(--sg-err); border-color: #F0D2CD; }
.sg-alert-ok { background: var(--sg-ok-bg); color: var(--sg-ok); border-color: #CDE8D8; }
.sg-alert-warn { background: var(--sg-warn-bg); color: var(--sg-warn); border-color: #F2E3B3; }
.sg-alert-info { background: var(--sg-info-bg); color: var(--sg-info); border-color: #CFE0FF; }
.sg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #F1F1F1; color: #3C3C3C; white-space: nowrap; }
.sg-pill.ok { background: var(--sg-ok-bg); color: var(--sg-ok); }
.sg-pill.warn { background: var(--sg-warn-bg); color: var(--sg-warn); }
.sg-pill.err { background: var(--sg-err-bg); color: var(--sg-err); }
.sg-pill.info { background: var(--sg-info-bg); color: var(--sg-info); }
.sg-pill.gold { background: #FFF0DD; color: #8A5A12; }
.sg-swatch { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); vertical-align: middle; }
.sg-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.sg-steps span { padding: 8px 14px; border: 1px solid #E4E4E4; color: #8A8A8A; border-radius: var(--sg-r); }
.sg-steps span.done { color: var(--sg-ink); }
.sg-steps span.active { background: var(--sg-ink); color: #fff; border-color: var(--sg-ink); }
.sg-sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.sg-sumrow b { white-space: nowrap; }
.sg-total { background: var(--sg-ink); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sg-total strong { font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sg-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #8A8A8A; padding: 10px 12px; border-bottom: 1px solid var(--sg-line); }
.sg-table td { padding: 12px; border-bottom: 1px solid #F3F3F3; vertical-align: top; }
.sg-empty { text-align: center; padding: 56px 24px; border: 1px dashed #DADADA; border-radius: var(--sg-r); }
.sg-skel { background: linear-gradient(90deg,#F2F2F2 25%,#E9E9E9 50%,#F2F2F2 75%); background-size: 200% 100%; animation: sgsk 1.2s infinite; border-radius: var(--sg-r); }
@keyframes sgsk { to { background-position: -200% 0; } }
.sg-toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 100002; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: min(420px, calc(100vw - 150px)); }
@media (max-width: 640px) { .sg-toast-host { left: 12px; right: 84px; transform: none; bottom: 16px; width: auto; max-width: none; align-items: stretch; } }
.sg-toast { background: var(--sg-ink); color: #fff; padding: 12px 16px; border-radius: var(--sg-r); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: sgin .2s ease-out; max-width: 380px; }
.sg-toast.err { background: var(--sg-err); }
.sg-toast.ok { border-left: 4px solid var(--sg-gold); }
@keyframes sgin { from { transform: translateY(8px); opacity: 0; } }
.sg-modal-bg { position: fixed; inset: 0; background: rgba(16,16,16,.55); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sg-modal { background: #fff; border-radius: 4px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.sg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-timeline { list-style: none; margin: 0; padding: 0; }
.sg-timeline li { position: relative; padding: 0 0 16px 26px; }
.sg-timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -2px; width: 2px; background: #EAEAEA; }
.sg-timeline li:last-child::before { display: none; }
.sg-timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #D5D5D5; }
.sg-timeline li.done::after { background: var(--sg-ink); border-color: var(--sg-ink); }
.sg-timeline li.cur::after { background: var(--sg-gold); border-color: var(--sg-gold); }
.sg h1, .sg h2, .sg h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

.sg-head-right .sg-acc-name { display: inline-block; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-weight: 700; }
@media (max-width: 640px) { .sg-head-right .sg-acc-name { max-width: 80px; font-size: 13px; } }
/* Einheitlicher Footer (wie Startseite/Kategorien) */
.sg-footer2 { border-top: 1px solid #EAEAEA; background: #FAFAFA; margin-top: 56px; color: #101010; }
.sg-f2-grid { padding-top: 48px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.sg-footer2 h4 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.sg-footer2 h4 + a { margin-top: 14px; }
.sg-footer2 .sg-f2-grid > div > a { display: block; font-size: 13.5px; font-weight: 600; margin-top: 9px; color: #101010; text-decoration: none; }
.sg-footer2 .sg-f2-grid > div > a:hover { color: var(--sg-gold-d); }
.sg-f2-claim { font-size: 13.5px; color: #6B6B6B; line-height: 1.65; margin: 14px 0 0; max-width: 280px; }
.sg-f2-soc { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; font-size: 13px; font-weight: 700; }
.sg-f2-soc a { color: #3C3C3C; text-decoration: none; }
.sg-f2-bottom { padding-top: 18px; padding-bottom: 40px; border-top: 1px solid #EAEAEA; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #8A8A8A; }
.sg-nav a[href$="#staffel"] { color: var(--sg-gold-d); }
.sg-head-right .sg-cta { border: 1px solid #101010; color: #101010; font-weight: 700; font-size: 13.5px; padding: 10px 16px; border-radius: 3px; white-space: nowrap; }
.sg-head-right .sg-cta:hover { background: #101010; color: #fff; }
@media (max-width: 1180px) { .sg-head-right .sg-cta { display: none; } }
/* Kopfbereich wie Startseite/Kategorien: Zeile 1 Logo · Suche · Konto · Warenkorb · CTA, Zeile 2 Navigation */
.sg-header2 .sg-h2-row { height: auto; padding-top: 12px; padding-bottom: 12px; gap: 18px; }
.sg-header2 .sg-logo img { height: 53px; }
.sg-h2-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid #DFDFDF; border-radius: 3px; padding: 0 14px; height: 44px; background: #FAFAFA; }
.sg-h2-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.sg-h2-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14.5px; outline: none; }
.sg-h2-search button { border: 0; border-left: 1px solid #E4E4E4; background: none; padding: 0 0 0 12px; font: inherit; font-size: 12.5px; font-weight: 800; color: #D18F2F; cursor: pointer; }
.sg-header2 .sg-head-right { margin-left: 0; }
.sg-h2-navrow { border-top: 1px solid #F0F0F0; }
.sg-h2-navrow .sg-nav { gap: 26px; overflow-x: auto; }
.sg-h2-navrow .sg-nav a { padding: 12px 0; font-size: 13.5px; color: #2A2A2A; }
@media (max-width: 980px) {
  .sg-header2 .sg-h2-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .sg-header2 .sg-logo img { height: 38px; }
  .sg-h2-search { order: 3; flex: 1 1 100%; height: 40px; }
}
@media (max-width: 480px) {
  .sg-h2-search button { font-size: 0; padding-left: 10px; }
  .sg-h2-search button::after { content: "\2192"; font-size: 17px; font-weight: 800; }
  .sg-header2 .sg-cta { font-size: 0 !important; padding: 8px 10px !important; }
  .sg-header2 .sg-cta::after { content: "Gestalten"; font-size: 12.5px; font-weight: 700; }
}
@media (max-width: 980px) {
  .sg-header2 .sg-head-right { margin-left: auto; }
  .sg-h2-navrow { border-top: 0; }
  .sg-h2-navrow .sg-wrap { padding: 0; }
  /* Mobil wie die übrigen Seiten: Kategorien als waagerecht scrollbare Zeile statt Hamburger-Menü */
  .sg-header2 .sg-burger { display: none; }
  .sg-h2-navrow .sg-nav { display: flex; position: static; box-shadow: none; flex-direction: row; align-items: center; gap: 26px; padding: 0 16px; border-bottom: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sg-h2-navrow .sg-nav::-webkit-scrollbar { display: none; }
  .sg-h2-navrow .sg-nav a { padding: 12px 0; border-bottom: 0; flex-shrink: 0; font-weight: 600; }
}
.sg-header .sg-h2-navrow .sg-wrap { height: auto; display: block; }
.sg-h2-navrow .sg-nav a[href$="#staffel"] { color: var(--sg-gold-d); }
.sg-h2-navrow .sg-nav a.active { box-shadow: inset 0 -2px 0 #101010; color: #101010; }
