/* Gemeinsamer Wiki-Bereich in Verwaltung und Mitarbeiter-App. */
.wk-kopf { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.wk-kopf h2 { margin: 0 0 .35rem; font-size: 1.65rem; }
.wk-hinweis { color: var(--text2); font-size: .9rem; line-height: 1.5; }
.wk-suche { display: grid; grid-template-columns: minmax(0,1fr) minmax(130px,220px); gap: .8rem; margin: 1rem 0; }
.wk-suche label { display: block; font-size: .85rem; margin: 0 0 .35rem; }
.wk-suche input, .wk-suche select { width: 100%; margin: 0; }
.wk-zahl { margin: .9rem 0; color: var(--text2); font-size: .88rem; }
.wk-liste { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(240px,100%),1fr)); gap: 1rem; }
.wk-liste:has(.wk-gruppe) { grid-template-columns: 1fr; }
.wk-gruppe { min-width: 0; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); overflow: hidden; }
.wk-gruppe summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; cursor: pointer; list-style: none; }
.wk-gruppe summary::-webkit-details-marker { display: none; }
.wk-gruppe summary:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; }
.wk-gruppen-text { display: flex; align-items: start; flex-direction: column; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.wk-aufklappen { flex-shrink: 0; color: var(--akzent); font-size: .85rem; }
.wk-pfeil { display: inline-block; font-size: 1.3rem; }
.wk-gruppe[open] .wk-pfeil { transform: rotate(180deg); }
.wk-offen, .wk-gruppe[open] .wk-zu { display: none; }
.wk-gruppe[open] .wk-offen { display: inline; }
.wk-varianten { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(220px,100%),1fr)); gap: .8rem; padding: 0 1rem 1rem; }
.wk-treffer { display: flex; flex-direction: column; padding: 0; text-align: start; border: 1px solid var(--linie); border-radius: 18px; background: var(--flaeche); color: var(--text); overflow: hidden; cursor: pointer; font: inherit; box-shadow: 0 2px 12px #00000008; }
.wk-treffer:hover { border-color: var(--akzent); }
.wk-treffer:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.wk-bild { width: 100%; height: 170px; object-fit: contain; padding: .7rem; background: #fff; }
.wk-platzhalter { display: grid; place-items: center; background: #eaf3fc; height: 100px; color: var(--akzent); font-size: 2rem; }
.wk-treffer-inhalt { padding: 1rem; overflow-wrap: anywhere; }
.wk-treffer h3 { margin: .4rem 0; font-size: 1.05rem; line-height: 1.4; }
.wk-vorschau { color: var(--text2); font-size: .88rem; line-height: 1.5; margin: .4rem 0 0; }
.wk-chip { display: inline-block; padding: .2rem .55rem; border-radius: 8px; background: #eaf3fc; color: #145b9d; font-size: .8rem; }
.wk-entwurf { background: #fff2da; color: #8b5100; }
.wk-leer { grid-column: 1/-1; padding: 2rem 1rem; text-align: center; color: var(--text2); background: var(--flaeche); border-radius: 18px; }
.wk-seiten { display: flex; gap: .8rem; align-items: center; justify-content: center; margin: 1.5rem 0; }
.wk-seiten.versteckt { display: none; }
.wk-detail { background: var(--flaeche); border: 1px solid var(--linie); padding: clamp(1rem,3vw,2rem); border-radius: 18px; margin-top: 1rem; }
.wk-detail h2 { margin: .6rem 0; overflow-wrap: anywhere; }
.wk-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; margin: 1.5rem 0; }
.wk-bilder { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: .8rem; margin: 1rem 0; }
.wk-bilder a { display: block; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; }
.wk-bilder img { width: 100%; height: 240px; display: block; object-fit: contain; background: #fff; }
.wk-anhaenge { display: grid; gap: .6rem; }
.wk-anhaenge a { overflow-wrap: anywhere; color: var(--akzent); }
.wk-dialog { border: 0; border-radius: 20px; width: min(720px,calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: clamp(1rem,3vw,1.7rem); color: var(--text); background: var(--flaeche); box-shadow: 0 12px 48px #0003; }
.wk-dialog::backdrop { background: #0006; }
.app-dialog { border: 0; border-radius: 20px; padding: 1.6rem 1.5rem; width: min(420px,calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; background: var(--flaeche); color: var(--text); box-shadow: 0 12px 48px #0003; }
.app-dialog::backdrop { background: #0006; }
.app-dialog .popup-kopf { margin: 0 0 .7rem; font-size: 1.2rem; }
.app-dialog .popup-text { display: block; white-space: pre-wrap; line-height: 1.5; margin-bottom: 1rem; }
.app-dialog textarea { width: 100%; }
.wk-dialog h2 { margin-top: 0; }
.wk-dialog label { display: block; margin: .9rem 0 .35rem; }
.wk-dialog input:not([type=checkbox]), .wk-dialog textarea { width: 100%; }
.wk-dialog textarea { resize: vertical; min-height: 160px; }
.wk-formzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wk-datei { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border-bottom: 1px solid var(--linie); padding: .55rem 0; }
.wk-datei span { overflow-wrap: anywhere; min-width: 0; }
.wk-dialog .knopfzeile, .wk-detail .knopfzeile { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.wk-status { white-space: pre-wrap; margin: .7rem 0; }
.wk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:520px) { .wk-suche, .wk-formzeile { grid-template-columns: 1fr; } .wk-liste { gap: .7rem; } }
