/* Swipa Webseiten-Baukasten (01.12.2026) */
.wb-root { padding: 0 !important; }
.wb { display: flex; flex-direction: column; min-height: calc(100vh - 120px); }
.wb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.wb-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wb-title h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.wb-title p { margin: 2px 0 0; display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.wb-topact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wb-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-3, #eee); color: var(--text-2); }
.wb-pill.online { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.wb-pill.entwurf { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.wb-save { color: var(--text-3); }
.wb-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wb-seg button { border: 0; background: none; padding: 7px 10px; cursor: pointer; color: var(--text-3); line-height: 0; }
.wb-seg button.on { background: var(--surface-3, #eee); color: var(--text); }

.wb-body { flex: 1; display: grid; grid-template-columns: 290px minmax(360px, 1fr) minmax(380px, 1.1fr); min-height: 0; }
.wb-body.mob { grid-template-columns: 290px minmax(360px, 1fr) 420px; }
.wb-side { border-right: 1px solid var(--border); padding: 14px; overflow-y: auto; background: var(--surface); max-height: calc(100vh - 140px); position: sticky; top: 70px; }
.wb-main { padding: 18px; overflow-y: auto; max-height: calc(100vh - 140px); background: var(--bg, var(--surface-2)); }
.wb-prev { border-left: 1px solid var(--border); padding: 14px; background: var(--surface-2, #f3f3f5); position: sticky; top: 70px; height: calc(100vh - 140px); }
.wb-frame { height: 100%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--border); margin: 0 auto; }
.wb-body.mob .wb-frame { width: 390px; border-radius: 30px; border: 8px solid #1d1d1f; }
.wb-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1280px) { .wb-body, .wb-body.mob { grid-template-columns: 270px 1fr; } .wb-prev { grid-column: 1 / -1; position: static; height: 70vh; border-left: 0; border-top: 1px solid var(--border); } }
@media (max-width: 780px) { .wb-body, .wb-body.mob { grid-template-columns: 1fr; } .wb-side, .wb-main { max-height: none; position: static; } .wb-side { border-right: 0; border-bottom: 1px solid var(--border); } .wb-body.mob .wb-frame { width: 100%; } }

.wb-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--surface-3, #eee); padding: 3px; border-radius: 10px; margin-bottom: 14px; }
.wb-tabs button { border: 0; background: none; padding: 7px 4px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.wb-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.wb-pages { display: grid; gap: 4px; margin-bottom: 18px; }
.wb-page { display: flex; align-items: center; border-radius: 10px; }
.wb-page.on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wb-pg { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 8px; font: inherit; cursor: pointer; text-align: left; color: var(--text); min-width: 0; }
.wb-pg span { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-pg small { color: var(--text-3); font-size: 12px; margin-left: auto; }
.wb-page[draggable="true"] .wb-pg { cursor: grab; }
.wb-addpage { margin-top: 6px; justify-self: start; }
.wb-l { display: block; font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.wb-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wb-chip { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 13px; color: var(--text); cursor: grab; text-align: left; }
.wb-chip:hover { border-color: var(--accent); color: var(--accent); }

.wb-pagehead { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.wb-pagehead .wide { grid-column: 1 / -1; }
.wb-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 60px; }
.wb-main, .wb-side, .wb-prev, .wb-block, .wb-bh { min-width: 0; }
.wb-block { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color .15s, opacity .15s; position: relative; }
.wb-block.open { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.wb-block.is-hidden { opacity: .55; }
.wb-block.dragged, .wb-item.dragged, .wb-page.dragged { opacity: .35; }
.wb-bh { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.wb-grip { color: var(--text-3); cursor: grab; line-height: 0; }
.wb-bi { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); flex: none; }
.wb-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-bt b { font-size: 14px; } .wb-bt small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-tools { display: inline-flex; gap: 1px; }
.wb-ib { border: 0; background: transparent; color: var(--text-3); padding: 5px; border-radius: 7px; cursor: pointer; line-height: 0; }
.wb-ib:hover { color: var(--accent); background: var(--surface-3, rgba(0,0,0,.05)); }
.wb-ib.danger:hover { color: var(--red); }
.wb-bb { padding: 4px 14px 16px; border-top: 1px solid var(--border); }
.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.wb-grid .wide, .wb-grid .wb-img { grid-column: 1 / -1; }
.wb-f { display: block; min-width: 0; }
.wb-f input:not([type=checkbox]):not([type=color]), .wb-f textarea, .wb-f select { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); }
.wb-f input:focus, .wb-f textarea:focus, .wb-f select:focus { outline: none; border-color: var(--accent); }
.wb-f textarea { resize: vertical; line-height: 1.5; }
.wb-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; align-self: end; padding-bottom: 8px; }
.wb-imgbox { position: relative; border: 1.5px dashed var(--border-strong); border-radius: 12px; overflow: hidden; min-height: 90px; display: flex; align-items: center; justify-content: center; background: var(--surface-2, #f7f7f9); }
.wb-imgbox.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wb-imgbox img { width: 100%; max-height: 180px; object-fit: cover; }
.wb-noimg { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; padding: 20px; }
.wb-imgact { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.wb-imgact .btn { box-shadow: var(--shadow-sm); }
.wb-items { margin-top: 14px; display: grid; gap: 8px; }
.wb-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2, #fafafa); }
.wb-item > .wb-grip { padding-top: 26px; }
.wb-item-f { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.wb-item-f .wide, .wb-item-f .wb-img { grid-column: 1 / -1; }
.wb-item-f .wb-imgbox { min-height: 70px; } .wb-item-f .wb-imgbox img { max-height: 120px; }
.wb-items-act { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-empty, .wb-dropend { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 26px; text-align: center; color: var(--text-3); font-size: 14px; }
.wb-dropend { padding: 10px; font-size: 12px; opacity: 0; transition: opacity .15s; }
.wb-dragging .wb-dropend { opacity: 1; }
.drop-before { box-shadow: 0 -3px 0 0 var(--accent) !important; }
.drop-after { box-shadow: 0 3px 0 0 var(--accent) !important; }
.wb-dropend.drop-before, .wb-empty.drop-before { border-color: var(--accent); color: var(--accent); box-shadow: none !important; }

.wb-form { display: grid; gap: 12px; }
.wb-2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.wb-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wb-sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c); cursor: pointer; }
.wb-sw.on { box-shadow: 0 0 0 2px var(--text); }
.wb-swatches input[type=color] { width: 34px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.wb-sub { display: flex; align-items: center; gap: 6px; } .wb-sub input { flex: 1; } .wb-sub b { color: var(--text-2); font-size: 14px; }
.wb-abo { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.wb-abo span { font-size: 20px; font-weight: 700; } .wb-abo small { color: var(--text-2); }
.wb-inv { display: grid; gap: 6px; }
.wb-invrow { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13px; }
.wb-invrow:hover { border-color: var(--accent); }
.wb-invrow .wb-pill { justify-self: start; }
.wb-op { padding-top: 12px; border-top: 1px solid var(--border); }
.wb-start { padding: 40px 0; max-width: 620px; }
.wb-start h1 { font-size: 28px; margin: 12px 0 8px; }
.wb-hero-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.wb-hero-ic .i { width: 30px; height: 30px; }
.wb-list { padding: 24px 0 60px; display: grid; gap: 16px; }
.wb-list h1 { display: flex; align-items: center; gap: 10px; font-size: 28px; margin: 0; }
.wb-lrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wb-issuer { grid-template-columns: 1fr 1fr; }
.wb-issuer .btn { justify-self: start; }

.wb-side .wb-imgbox img { object-fit: contain; background: #fff; padding: 8px; }
.wb-domain { border-top: 1px solid var(--border); margin-top: 18px; }
.wb-dstat { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.wb-dns { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2, #f7f7f9); }
.wb-dns b { font-size: 13px; } .wb-dns p { margin: 6px 0; }
.wb-dns table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 6px 0; }
.wb-dns th, .wb-dns td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.wb-dns code { font-size: 12px; background: var(--surface); padding: 1px 5px; border-radius: 5px; user-select: all; }
