/* Verwaltung › Social Media (an #kvDialog gebunden, gegen globale Stile) */
#kvDialog .sm-tool { display: grid; gap: 16px; }
#kvDialog .sm-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#kvDialog .sm-kopf > div:first-child { flex: 1 1 160px; } #kvDialog .sm-kopf small { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: #b08447; } #kvDialog .sm-kopf h3 { margin: 0; font-size: 22px; }
#kvDialog .sm-tool button, #kvDialog .sm-overlay button { margin: 0; min-height: 0; box-shadow: none; font-family: inherit; cursor: pointer; }
#kvDialog .sm-segment { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: #14323a0d; flex-wrap: wrap; }
#kvDialog .sm-segment button { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: #45585e; font-weight: 800; font-size: 13px; }
#kvDialog .sm-segment button[aria-selected="true"] { background: #fff; color: #14323a; box-shadow: 0 6px 14px -10px #14323a; }
#kvDialog button.sm-primaer { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #2a9079, #1d6d5e); color: #fff; font-weight: 800; font-size: 13.5px; box-shadow: 0 10px 20px -12px #1d6d5e; transition: transform .2s; }
#kvDialog button.sm-primaer:hover { transform: translateY(-1px); } #kvDialog button.sm-primaer:disabled { opacity: .6; transform: none; }
#kvDialog button.sm-zweit { height: 40px; padding: 0 16px; border: 1.5px solid #cfdcd6; border-radius: 12px; background: #fff; color: #14323a; font-weight: 800; font-size: 13.5px; }
#kvDialog button.sm-rot { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: #b3392f; font-weight: 800; font-size: 13.5px; }
#kvDialog .sm-einl, #kvDialog .sm-tipp { margin: 0 0 12px; color: #5f7177; font-size: 13.5px; } #kvDialog .sm-tipp { font-size: 12px; margin: 10px 0 0; }

/* Planer */
#kvDialog .sm-planer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
#kvDialog .sm-kalender { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e1e7e4; }
#kvDialog .sm-kal-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
#kvDialog .sm-kal-kopf b { flex: 1; text-align: center; font-size: 16px; text-transform: capitalize; }
#kvDialog .sm-kal-kopf button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font-size: 18px; font-weight: 800; }
#kvDialog .sm-kal-kopf .sm-heute-knopf { width: auto; padding: 0 12px; font-size: 12.5px; }
#kvDialog .sm-wochentage, #kvDialog .sm-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
#kvDialog .sm-wochentage span { text-align: center; font-size: 11px; font-weight: 800; color: #8a9a9e; padding-bottom: 4px; }
#kvDialog .sm-tag { min-height: 86px; padding: 5px; border-radius: 10px; background: #f6faf8; border: 1px solid transparent; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .15s, border-color .15s; min-width: 0; }
#kvDialog .sm-tag:hover { border-color: #2a907966; background: #fff; }
#kvDialog .sm-tag > b { font-size: 12px; color: #45585e; } #kvDialog .sm-tag small { font-size: 10.5px; color: #66777d; }
#kvDialog .sm-leer { background: none; cursor: default; } #kvDialog .sm-leer:hover { border-color: transparent; background: none; }
#kvDialog .sm-vorbei { opacity: .62; }
#kvDialog .sm-heute { background: #e3f3ee; border-color: #2a9079; } #kvDialog .sm-heute > b { color: #fff; background: #1d6d5e; border-radius: 999px; padding: 0 6px; align-self: flex-start; }
#kvDialog button.sm-chip { display: flex; align-items: center; gap: 4px; width: 100%; padding: 3px 5px; border: 0; border-radius: 6px; font-size: 10.5px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; color: #24383e; box-shadow: inset 3px 0 0 #8a9a9e; }
#kvDialog .sm-chip.sm-st-geplant { box-shadow: inset 3px 0 0 #c99a5b; } #kvDialog .sm-chip.sm-st-veroeffentlicht { box-shadow: inset 3px 0 0 #2a9079; opacity: .8; } #kvDialog .sm-chip.sm-st-idee { box-shadow: inset 3px 0 0 #8fa3ff; }
#kvDialog .sm-chip-netze { display: flex; flex: none; } #kvDialog .sm-chip-netze i { width: 7px; height: 7px; border-radius: 50%; margin-right: -2px; border: 1px solid #fff; }
#kvDialog .sm-seite { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e1e7e4; }
#kvDialog .sm-seite h4 { margin: 4px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a9a9e; }
#kvDialog button.sm-zeile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid #e1e7e4; background: #fff; color: #14323a; text-align: left; transition: border-color .2s, transform .2s; }
#kvDialog button.sm-zeile:hover { border-color: #2a9079; transform: translateX(2px); }
#kvDialog .sm-zeile-netze { display: flex; flex: none; } #kvDialog .sm-zeile-netze i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-right: -6px; border: 2px solid #fff; font-style: normal; }
#kvDialog .sm-zeile-netze svg { width: 13px; height: 13px; } #kvDialog .sm-zeile-netze .sm-ohne { background: #cfdcd6; color: #fff; font-size: 12px; font-weight: 800; }
#kvDialog .sm-zeile-text { display: grid; min-width: 0; margin-left: 6px; } #kvDialog .sm-zeile-text b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #kvDialog .sm-zeile-text small { font-size: 11.5px; color: #66777d; }
#kvDialog .sm-leer-text { margin: 0; font-size: 12.5px; color: #8a9a9e; }

/* Vorlagen */
#kvDialog .sm-vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
#kvDialog .sm-vorlagen article { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #e1e7e4; transition: transform .2s, box-shadow .2s; animation: sm-auf-anim .4s calc(var(--n) * 50ms) ease both; }
#kvDialog .sm-vorlagen article:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -26px #14323a; }
#kvDialog .sm-vorlagen i { font-style: normal; font-size: 24px; } #kvDialog .sm-vorlagen b { font-size: 15px; } #kvDialog .sm-vorlagen p { margin: 0; flex: 1; font-size: 12.5px; color: #66777d; }
#kvDialog .sm-vorlagen button { align-self: flex-start; height: 34px; padding: 0 14px; border: 1.5px solid #cfdcd6; border-radius: 10px; background: #fff; color: #16564b; font-weight: 800; font-size: 13px; }
#kvDialog .sm-vorlagen button:hover { background: #1d6d5e; border-color: #1d6d5e; color: #fff; }
@keyframes sm-auf-anim { from { opacity: 0; transform: translateY(8px); } }

/* Profile */
#kvDialog .sm-profile { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
#kvDialog .sm-prof-liste { display: grid; gap: 6px; }
#kvDialog .sm-prof { display: grid; grid-template-columns: 34px 92px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid #e1e7e4; }
#kvDialog .sm-prof-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; } #kvDialog .sm-prof-icon svg { width: 18px; height: 18px; }
#kvDialog .sm-prof b { font-size: 13.5px; }
#kvDialog .sm-prof input[type="url"] { width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid #cfdcd6; font: 600 13px Manrope, "Segoe UI", system-ui, sans-serif; color: #14323a; background: #fbfcfc; margin: 0; }
#kvDialog .sm-prof input[type="url"]:focus { outline: none; border-color: #2a9079; box-shadow: 0 0 0 3px #2a907922; }
#kvDialog .sm-schalter { position: relative; display: inline-block; } #kvDialog .sm-schalter input { position: absolute; opacity: 0; }
#kvDialog .sm-schalter span { display: block; width: 40px; height: 24px; border-radius: 999px; background: #d5dcdc; position: relative; transition: background .2s; cursor: pointer; }
#kvDialog .sm-schalter span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0003; transition: transform .2s; }
#kvDialog .sm-schalter input:checked + span { background: #2a9079; } #kvDialog .sm-schalter input:checked + span::after { transform: translateX(16px); }
#kvDialog .sm-schalter input:focus-visible + span { outline: 3px solid #c99a5b; outline-offset: 2px; }
#kvDialog .sm-prof-knoepfe { display: flex; gap: 4px; align-items: center; }
#kvDialog .sm-prof-knoepfe button, #kvDialog .sm-prof-knoepfe a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #e1e7e4; background: #fff; color: #45585e; font-size: 13px; font-weight: 800; text-decoration: none; padding: 0; }
#kvDialog .sm-prof-knoepfe button:disabled { opacity: .3; cursor: default; }
#kvDialog .sm-prof-fuss { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; } #kvDialog .sm-prof-fuss small { color: #66777d; font-size: 12px; }
#kvDialog .sm-prof-vorschau { position: sticky; top: 0; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e1e7e4; display: grid; gap: 10px; }
#kvDialog .sm-prof-vorschau h4 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a9a9e; }
#kvDialog .sm-vs { padding: 16px; border-radius: 14px; min-height: 60px; display: grid; place-items: center; }
#kvDialog .sm-vs-hell { background: linear-gradient(135deg, #f3f7f8, #e8f2ef); } #kvDialog .sm-vs-dunkel { background: linear-gradient(135deg, #0e2a30, #14323a); color: #e9f1ee; }
#kvDialog .sm-vs small { color: inherit; opacity: .7; font-size: 12px; }

/* Editor */
#kvDialog .sm-overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: #0b1a1f8c; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
#kvDialog .sm-overlay.sm-auf { opacity: 1; }
#kvDialog .sm-ed { width: min(1060px, 100%); max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 22px; overflow: clip; background: #f6faf8; box-shadow: 0 40px 90px -30px #000c; transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
#kvDialog .sm-auf .sm-ed { transform: none; }
#kvDialog .sm-ed-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, #0e2a30, #14323a 55%, #1d5c55); color: #fff; }
#kvDialog .sm-ed-kopf small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: #f1d6a8; } #kvDialog .sm-ed-kopf b { font-size: 18px; }
#kvDialog button.sm-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff33; background: #ffffff14; color: #fff; font-size: 22px; line-height: 1; padding: 0; }
#kvDialog .sm-ed-inhalt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 16px 18px; overflow: auto; }
#kvDialog .sm-ed-form { display: grid; gap: 12px; align-content: start; min-width: 0; }
#kvDialog .sm-f { display: grid; gap: 5px; min-width: 0; } #kvDialog .sm-f > span { font-size: 12.5px; font-weight: 800; color: #14323a; } #kvDialog .sm-f > span small { font-weight: 600; color: #8a9a9e; }
#kvDialog .sm-f input:not([type="checkbox"]):not([type="radio"]), #kvDialog .sm-f textarea { width: 100%; margin: 0; height: 40px; padding: 0 12px; border-radius: 11px; border: 1.5px solid #cfdcd6; background: #fff; color: #14323a; font: 600 14px Manrope, "Segoe UI", system-ui, sans-serif; }
#kvDialog .sm-f textarea { height: auto; min-height: 150px; padding: 10px 12px; line-height: 1.55; resize: vertical; font-weight: 500; }
#kvDialog .sm-f input:focus, #kvDialog .sm-f textarea:focus { outline: none; border-color: #2a9079; box-shadow: 0 0 0 3px #2a907922; }
#kvDialog .sm-ed-reihe { display: grid; grid-template-columns: 1fr 120px; gap: 10px; } #kvDialog .sm-ed-reihe > div { grid-column: 1 / -1; }
#kvDialog .sm-netz-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
#kvDialog .sm-netz-wahl label, #kvDialog .sm-status label { position: relative; cursor: pointer; } #kvDialog .sm-netz-wahl input, #kvDialog .sm-status input { position: absolute; opacity: 0; }
#kvDialog .sm-netz-wahl span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1.5px solid #cfdcd6; background: #fff; font-size: 12.5px; font-weight: 700; color: #45585e; transition: all .15s; }
#kvDialog .sm-netz-wahl span svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #b9c4c6; transition: background .15s; }
#kvDialog .sm-netz-wahl em { font-style: normal; }
#kvDialog .sm-netz-wahl input:checked + span { border-color: var(--sm-farbe); color: #14323a; box-shadow: 0 0 0 1px var(--sm-farbe); } #kvDialog .sm-netz-wahl input:checked + span svg { background: var(--sm-farbe); }
#kvDialog .sm-netz-wahl input:focus-visible + span, #kvDialog .sm-status input:focus-visible + span { outline: 3px solid #c99a5b; outline-offset: 2px; }
#kvDialog .sm-status { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #14323a0d; flex-wrap: wrap; }
#kvDialog .sm-status span { display: block; padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: #45585e; }
#kvDialog .sm-status input:checked + span { background: #fff; color: #14323a; box-shadow: 0 4px 12px -8px #14323a; }
#kvDialog .sm-helfer { display: grid; gap: 6px; } #kvDialog .sm-emojis, #kvDialog .sm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
#kvDialog .sm-emojis button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid #e1e7e4; background: #fff; font-size: 16px; padding: 0; }
#kvDialog .sm-tags button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #cfe0f5; background: #eef5fd; color: #1d6fb8; font-size: 12px; font-weight: 700; }
#kvDialog .sm-emojis button:hover, #kvDialog .sm-tags button:hover { transform: translateY(-1px); border-color: #2a9079; }
#kvDialog .sm-zaehler { display: flex; flex-wrap: wrap; gap: 6px; }
#kvDialog .sm-zaehler span { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 6px 4px; border-radius: 999px; background: #fff; border: 1px solid #e1e7e4; font-size: 11.5px; font-weight: 800; color: #45585e; overflow: hidden; }
#kvDialog .sm-zaehler i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; } #kvDialog .sm-zaehler svg { width: 12px; height: 12px; }
#kvDialog .sm-zaehler b { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: #2a9079; transition: width .2s; }
#kvDialog .sm-zaehler .sm-knapp b { background: #c99a5b; } #kvDialog .sm-zaehler .sm-zu-lang { color: #b3392f; border-color: #f2b8b0; } #kvDialog .sm-zaehler .sm-zu-lang b { background: #c0392b; }
#kvDialog .sm-ed-vorschau { display: grid; gap: 12px; align-content: start; min-width: 0; }
#kvDialog .sm-ed-vorschau h4 { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a9a9e; }
#kvDialog .sm-post { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e1e7e4; box-shadow: 0 18px 36px -30px #14323a; }
#kvDialog .sm-post-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#kvDialog .sm-post-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1px solid #e1e7e4; background: #fff; flex: none; } #kvDialog .sm-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
#kvDialog .sm-post-kopf b { display: block; font-size: 14px; } #kvDialog .sm-post-kopf small { font-size: 11.5px; color: #66777d; }
#kvDialog .sm-post p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #24383e; overflow-wrap: anywhere; } #kvDialog .sm-ht { color: #1d6fb8; font-weight: 600; }
#kvDialog .sm-post-link { display: grid; padding: 10px 12px; border-radius: 12px; background: #f3f7f8; margin-bottom: 10px; } #kvDialog .sm-post-link b { font-size: 13px; } #kvDialog .sm-post-link small { font-size: 11.5px; color: #66777d; overflow-wrap: anywhere; }
#kvDialog .sm-post-aktionen { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #eef2f1; font-size: 12px; font-weight: 700; color: #8a9a9e; }
#kvDialog .sm-teilen { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e1e7e4; display: grid; gap: 8px; } #kvDialog .sm-teilen p { margin: 0; font-size: 12.5px; color: #66777d; }
#kvDialog .sm-teilen > div { display: flex; flex-wrap: wrap; gap: 6px; } #kvDialog .sm-teilen small { flex-basis: 100%; font-size: 11.5px; color: #8a9a9e; }
#kvDialog button.sm-kopieren { height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: #14323a; color: #fff; font-weight: 800; font-size: 12.5px; }
#kvDialog .sm-teilen-knopf { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 10px; background: var(--sm-farbe); color: #fff; font-weight: 800; font-size: 12.5px; text-decoration: none; }
#kvDialog .sm-teilen-knopf svg { width: 18px; height: 18px; } #kvDialog .sm-teilen-knopf.sm-aus { opacity: .35; cursor: not-allowed; }
#kvDialog .sm-ed-fuss { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #e1e7e4; background: #fff; } #kvDialog .sm-ed-fuss > span { flex: 1; }

@media (max-width: 900px) { #kvDialog .sm-planer, #kvDialog .sm-profile, #kvDialog .sm-ed-inhalt { grid-template-columns: minmax(0, 1fr); } #kvDialog .sm-prof-vorschau { position: static; } }
@media (max-width: 640px) {
  #kvDialog .sm-tag { min-height: 54px; } #kvDialog button.sm-chip { font-size: 0; padding: 0; height: 8px; } #kvDialog .sm-chip-netze { display: none; }
  #kvDialog .sm-prof { grid-template-columns: 34px minmax(0, 1fr) auto; } #kvDialog .sm-prof input[type="url"] { grid-column: 1 / -1; grid-row: 2; } #kvDialog .sm-prof-knoepfe { grid-column: 1 / -1; justify-content: flex-end; }
  #kvDialog .sm-overlay { padding: 0; } #kvDialog .sm-ed { border-radius: 0; height: 100%; }
}
