/* Additions to the prototype design system (vr-design-06.css, copied unchanged). Only what the
   prototype does not have because it builds everything with JavaScript buttons (ADR 0024). */
.who-name { font-size: 13px; padding: 0 8px 0 2px; white-space: nowrap; }
.logout-form { margin: 0; }
/* Links that look like the prototype's buttons (navigation instead of a JavaScript action) */
a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--control-line); border-radius: 8px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600;
  line-height: 1.45; text-decoration: none; cursor: pointer; }
a.btn:hover { background: var(--grey-soft); border-color: var(--brand); color: var(--text); }
a.btn.primary { background: var(--action); color: #fff; border-color: var(--action); }
a.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
a.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.tabs a[aria-current="page"] { color: var(--action); border-bottom-color: var(--action); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre { white-space: pre-line; }
.danger, button.danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
details.confirm { display: inline-block; }
details.confirm summary { list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { display: none; }
form.inline { display: inline; margin: 0; }
a.task-link { color: inherit; text-decoration: none; }
a.task-link:hover { color: var(--action); }

/* V1 pages not yet ported 1:1 (to be removed page by page) */
a.button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--control-line); border-radius: 8px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
a.button.primary, .button.primary { background: var(--action); color: #fff; border-color: var(--action); }
a.button.small, .button.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; flex-wrap: wrap; }
.kicker { margin-bottom: 8px; color: var(--olive-text); font-size: 13px; font-weight: 600; }
.kicker::before { content: ''; display: inline-block; width: 20px; height: 3px; background: var(--action); margin: 0 9px 3px 0; vertical-align: middle; }
h1 { font-size: 30px; font-weight: 600; line-height: 1.25; margin: 0; }
.lead { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
/* Boards and tasks (from the prototype's task board) */
.task-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; text-decoration: none; color: var(--text); }
.task-card:hover { border-color: var(--action); color: var(--text); }
.task-card.unread { border-left: 4px solid var(--action); }
.task-title { font-weight: 600; }
.task-meta { font-size: 13px; color: var(--muted); }
.task-meta .chip { margin: 0 4px 0 0; }
.task-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--action); margin-right: 6px; vertical-align: middle; }
.pool-row { display: flex; gap: 8px; align-items: flex-start; }
.pool-row .task-card { flex: 1; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.check-box { width: 26px; height: 26px; padding: 0; justify-content: center; flex: 0 0 26px; }
.check-box.on { background: var(--ok-soft); border-color: var(--brand); }
details.panel summary { cursor: pointer; }



/* News intern (S-25, ADR 0021), look from the prototype */
.news-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.news-only { margin-left: auto; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.news-list .panel { margin-bottom: 0; }
.news-aside { display: flex; flex-direction: column; gap: 16px; }
.news-aside .panel { margin-bottom: 0; }
.news-aside h2 { font-size: 16px; margin: 0 0 8px; }
.news-aside p { margin: 4px 0; }
.news-big { font-size: 28px; color: var(--action); margin-right: 6px; }
.news-card.unread { border-left: 4px solid var(--action); }
.news-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-by { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.news-by .muted { font-size: 12px; }
.chip.news-new { background: var(--action-soft); color: var(--action-hover); border-color: #e7c3ab; }
.chip.news-planned, .chip.news-plan { background: var(--warn-soft); color: var(--warn); border-color: #e2b99c; }
.chip.news-draft { color: var(--muted); }
.news-topic { font-size: 12px; font-weight: 600; color: var(--olive-text); text-transform: uppercase; letter-spacing: .04em; }
.news-title { margin: 4px 0 6px; font-size: 21px; line-height: 1.3; }
.news-title a { color: var(--text); text-decoration: none; }
.news-title a:hover { color: var(--action); }
.news-teaser { margin: 0 0 14px; color: var(--muted); }
.news-att { font-size: 13px; margin: -6px 0 12px; }
.news-cover { display: block; border-radius: 12px; overflow: hidden; background: var(--grey-soft); margin: 0 0 14px; }
.news-card .news-cover { height: 240px; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cover.big { margin: 4px 0 16px; }
.news-cover.big img { height: auto; max-height: 420px; }
.news-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.news-react { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.news-react form { margin: 0; }
.news-emoji { min-width: 44px; }
.news-planrow { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.news-planrow:last-child { border-bottom: 0; }
.news-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.news-sumcard { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.news-sumcard b { font-size: 26px; line-height: 1.2; }
.news-sumcard:hover { border-color: var(--action); color: var(--text); }
.news-sumcard.active { border-color: var(--action); background: var(--action-soft); }
.news-actions { white-space: nowrap; }
.news-actions form { display: inline; }
.news-read { max-width: 780px; }
.news-lead { font-size: 17px; color: var(--muted); margin: 4px 0 12px; }
.news-body { font-size: 15px; }
.news-body h2 { font-size: 22px; margin: 18px 0 6px; }
.news-body h3 { font-size: 19px; margin: 16px 0 6px; }
.news-body h4 { font-size: 17px; margin: 16px 0 6px; }
.news-body ul, .news-body ol { padding-left: 22px; }
.news-body blockquote { margin: 12px 0; padding: 6px 16px; border-left: 3px solid var(--action); color: var(--muted); }
.news-body a { color: var(--action); }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.news-gallery figure { margin: 0; }
.news-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; }
.news-gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.news-files h2, .news-comments h2 { font-size: 16px; margin: 24px 0 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.news-file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-ext { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent-soft); color: var(--olive-text); font-size: 11px; font-weight: 700; }
.news-comment { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-comment .muted { font-size: 12px; }
.news-cform { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.news-rights td, .news-rights th { vertical-align: middle; }
.news-rights form { margin: 0; display: inline-block; }

/* News editor */
.nc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 24px; background: var(--grey-soft); border-radius: var(--radius); }
.nc-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.nc-side .panel { margin-bottom: 16px; }
.nc-side .panel h2 { font-size: 16px; }
.nc-side label:first-child { margin-top: 0; }
.nc-field { display: flex; flex-direction: column; gap: 6px; }
.nc-field > label { margin: 0; }
.nc-lab { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.nc-lab .muted { font-size: 12px; }
input.nc-title { font-size: 20px; font-weight: 600; padding: 12px 14px; }
.nc-editor { border: 1px solid var(--control-line); border-radius: 10px; background: #fff; overflow: hidden; }
.nc-editor:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.nc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--grey-soft); }
.nc-tools select { width: auto; padding: 4px 8px; font-size: 13px; }
.nc-tools button { padding: 4px 8px; border: 0; background: none; font-size: 14px; font-weight: 400; }
.nc-tools button:hover { background: #fff; }
.nc-tools .nc-swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin: 0 2px; }
.nc-tools input[type=color] { width: 30px; height: 28px; padding: 0; border: 0; background: none; }
.nc-div { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.nc-linkrow { display: flex; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); }
.nc-linkrow[hidden] { display: none; }
.nc-linkrow input { flex: 1; font: inherit; padding: 6px 10px; border: 1px solid var(--control-line); border-radius: 8px; }
.nc-body { min-height: 260px; padding: 16px 18px; outline: none; }
.nc-body:empty::before { content: attr(data-placeholder); color: var(--muted); }
.nc-drop { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px dashed var(--control-line); border-radius: 10px; background: #fff; font-weight: 600; margin: 0; }
.nc-drop .muted { font-weight: 400; font-size: 13px; }
.nc-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.nc-image { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.nc-image img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.nc-image input[type=text] { padding: 5px 8px; font-size: 13px; }
.nc-tips ul { padding-left: 18px; margin: 8px 0; font-size: 14px; }
.nc-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px 0; }
.nc-foot .spacer { flex: 1; }
.nc-preview { max-width: 780px; }
input[type=datetime-local] { font: inherit; padding: 7px 10px; border: 1px solid var(--control-line); border-radius: 8px; margin-top: 6px; }
@media (max-width: 1000px) { .news-layout, .nc-layout { grid-template-columns: 1fr; } .news-aside { order: -1; } }
@media (max-width: 600px) { .news-sum { grid-template-columns: 1fr; } .news-cform { flex-direction: column; align-items: stretch; } .nc-layout { padding: 12px; } }

/* Vorlagen (files, ADR 0022), look from the prototype */
.vor-intro { display: flex; align-items: center; gap: 24px; background: #eaece1; border: 1px solid #d9decf; border-radius: var(--radius); padding: 22px 28px; margin: 0 0 22px; }
.vor-intro h2 { margin: 0 0 4px; font-size: 20px; }
.vor-intro p { margin: 0; font-size: 14px; color: #66705a; max-width: 640px; }
.vor-badge { margin-left: auto; white-space: nowrap; background: #ffffff99; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--olive-text); }
.vor-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.vor-tools input { max-width: 460px; flex: 1; }
.vor-tools .muted { margin-left: auto; font-size: 13px; white-space: nowrap; }
.vor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.vor-tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.vor-tile:hover { border-color: #b8bea9; box-shadow: 0 10px 40px #2529210d; transform: translateY(-2px); }
.vor-tile form { margin: 0; }
.vor-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; padding: 0; justify-content: center; border: 1px solid #ffffff88; border-radius: 50%; background: #ffffffc0; font-size: 17px; color: var(--olive-text); }
.vor-fav.on { color: var(--action); }
.vor-main { display: block; color: var(--text); text-decoration: none; }
.vor-main:hover { color: var(--text); }
.vor-prev { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f0e7df; border-radius: 0; }
.vor-prev.olive { background: #e8ecdf; } .vor-prev.neutral { background: #e9ebe7; } .vor-prev.sand { background: #f0ecdf; } .vor-prev.plum { background: #eee7ec; } .vor-prev.charcoal { background: #43483e; }
.vor-types { position: absolute; bottom: 12px; left: 16px; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #6c5141; }
.vor-prev.charcoal .vor-types { color: #e2e8d7; }
.vor-art { position: relative; width: 150px; height: 104px; background: #fffefb; box-shadow: 0 7px 14px #393e2314; transform: rotate(-6deg); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: #465037; }
.vor-art::after { content: ''; position: absolute; width: 36%; height: 150%; right: -7px; top: -28px; background: #a56a4740; transform: rotate(25deg); }
.vor-brand { font-style: italic; font-size: 18px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.vor-title { font-size: 10px; line-height: 1.5; max-width: 100px; font-weight: 700; }
.vor-art.slide { transform: rotate(-5deg); border-bottom: 7px solid var(--action); }
.vor-art.company { background: #70775b; color: #fff; transform: rotate(5deg); }
.vor-art.company::after { background: #a9ae9170; width: 40%; }
.vor-art.portrait { width: 94px; height: 128px; transform: rotate(6deg); padding: 10px; box-shadow: 8px 5px 0 #ffffff60, 0 7px 16px #393e2317; }
.vor-art.portrait::after { display: none; }
.vor-art.fact { width: 98px; height: 130px; transform: rotate(-5deg); }
.vor-art.fact::after { width: 100%; height: 30px; background: #b3b7a4; bottom: 0; top: auto; transform: none; left: 0; }
.vor-lines { height: 40px; margin-top: 8px; background: repeating-linear-gradient(to bottom, #c5c9ba 0, #c5c9ba 2px, transparent 2px, transparent 7px); opacity: .8; }
.vor-art.brand { background: transparent; box-shadow: none; transform: none; color: #fff; font-style: italic; align-items: center; justify-content: center; font-size: 72px; letter-spacing: -8px; font-weight: 800; overflow: visible; }
.vor-art.brand::after { display: none; }
.vor-body { padding: 18px 20px 16px; }
.vor-body h2 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.vor-body p { margin: 0; font-size: 13px; color: var(--muted); min-height: 40px; }
.vor-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--olive-text); }
.vor-empty { grid-column: 1 / -1; }
.vor-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.vor-detail aside .vor-prev { border-radius: 12px; }
.vor-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.vor-file form { margin: 0; }
.vor-ext { display: flex; align-items: center; justify-content: center; width: 44px; height: 46px; flex: none; border-radius: 7px; background: var(--action-soft); border: 1px solid #e8d2c3; color: var(--action-hover); font-size: 10px; font-weight: 700; }
.vor-fcopy { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.vor-fcopy b { overflow-wrap: anywhere; }
.vor-replace summary { list-style: none; }
.vor-replace summary::-webkit-details-marker { display: none; }
.vor-replace[open] { flex-basis: 100%; }
.vor-replace[open] summary { display: none; }
.vor-replace form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vor-none { padding: 20px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; margin-bottom: 10px; }
.vor-none p { margin: 6px 0; }
.vor-upload { margin-top: 16px; }
.vor-danger { margin-top: 24px; }
.vor-danger h2 { font-size: 16px; }
.vor-form { max-width: 620px; }
.vor-tones { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 12px 0 0; }
.vor-tones legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.vor-tones label { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; font-weight: 400; cursor: pointer; position: relative; }
.vor-tones input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vor-tones span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.vor-tones input:checked + span { box-shadow: 0 0 0 2px var(--action); }
.vor-tones input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.vor-tones small { font-size: 11px; color: var(--muted); }
.vor-promo h2 { margin: 4px 0 10px; font-size: 17px; line-height: 1.35; }
@media (max-width: 1100px) { .vor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .vor-detail { grid-template-columns: 1fr; } .vor-detail aside { order: -1; } }
@media (max-width: 640px) { .vor-grid { grid-template-columns: 1fr; } .vor-intro, .vor-tools { flex-direction: column; align-items: stretch; } .vor-badge, .vor-tools .muted { margin-left: 0; } }

/* Backup status (ADR 0023) */
.backup-alert { padding: 10px 14px; border-radius: 8px; background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); margin: 0 0 20px; }
