/* SPÖ Fritzens und Parteifreie – Stylesheet
   Farbwelt nach SPÖ Tirol: Rot #ce1727, Schwarz, Weiß, warmes Grau. Open Sans selbst gehostet. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans.dcf31ebe1074.woff2") format("woff2");
}
:root {
  --red: #ce1727;
  --red-dark: #bb1524;
  --red-soft: #fbeaec;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #666666;
  --line: #d9d9d0;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --bg-panel: #ffffff;
  --dark: #1b1b1b;
  --dark-2: #2a2a2a;
  --ok: #1f7a3a;
  --warn: #9a6400;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 2px;
  --container: 1140px;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header: weiß, Logo in Rot, dunkle Navigation (wie spoe-tirol.at) */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-icon { width: 60px; height: 36px; flex: 0 0 auto; }
.brand-mark, .brand-text { align-self: center; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--red); font-weight: 800; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand-text { display: flex; align-items: baseline; gap: .4rem; line-height: 1; margin-top: .15rem; }
.brand-text span { font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand-text small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.nav { display: flex; gap: .1rem; align-items: center; }
.nav a { color: var(--ink-soft); padding: .5rem .75rem; font-weight: 700; font-size: .9rem; }
.nav a:hover { color: var(--red); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); }
.nav .nav-login { margin-left: .6rem; border: 2px solid var(--red); color: var(--red); padding: .4rem .9rem; }
.nav .nav-login:hover { background: var(--red); color: #fff; }
/* Facebook und Instagram im Kopf (wie auf spoe-tirol.at), ganz rechts */
.header-social { display: flex; gap: .15rem; align-items: center; order: 3; margin-left: .4rem; }
.nav { order: 2; margin-left: auto; }
.header-social a { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.header-social a:hover { color: var(--red); background: var(--red-soft); }
.header-social svg { width: 22px; height: 22px; fill: currentColor; }
.header-social svg.ig { fill: none; stroke: currentColor; stroke-width: 2; }
.header-social svg.ig .dot { fill: currentColor; stroke: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 40px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
@media (max-width: 820px) {
  .nav-toggle { display: block; order: 4; }
  .header-social { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav .nav-login { margin: .5rem 0 0; text-align: center; }
  .brand-text small { display: none; }
}

/* Hero: rotes Band, Überschrift in weißen Kästen (wie „Mach mit“ auf spoe-tirol.at) */
.hero { background: var(--red); color: #fff; }
.hero-inner { padding: 4rem var(--gutter) 3.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.marker { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; margin: 0 0 1.2rem; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 400; line-height: 1.15; }
.marker span { background: #fff; color: var(--red); padding: .15em .45em; }
.marker span:first-child { font-weight: 700; }
.hero .lead { color: #fff; font-size: 1.15rem; max-width: 640px; }
.team-band { background: var(--bg); border-bottom: 1px solid var(--line); }
.team-band-inner { display: flex; align-items: flex-end; justify-content: center; gap: 2rem; padding-top: 1.5rem; }
.team-band img { max-height: 280px; width: auto; }
.team-band p { align-self: center; margin: 0; max-width: 260px; color: var(--muted); }
@media (max-width: 820px) { .hero-inner { padding: 2.5rem var(--gutter); } .team-band-inner { flex-direction: column; align-items: center; text-align: center; } .team-band img { max-width: 100%; max-height: none; } }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: .95rem; line-height: 1.3; font-family: inherit; text-transform: uppercase; letter-spacing: .04em; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--red); border-color: var(--red); }
.btn-secondary:hover { background: var(--red); color: #fff; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-light { background: #fff; color: var(--red); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--bg-alt); }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--red); font: inherit; cursor: pointer; }
.linklike.danger { color: var(--red); font-size: .9rem; }
.linklike:hover { text-decoration: underline; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; gap: .5rem 1rem; }
.section-head h2 { margin: 0; padding-bottom: .5rem; position: relative; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--red); }
.more { font-weight: 600; white-space: nowrap; }
.page { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.page-narrow { max-width: 760px; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin-bottom: .4rem; }
.month-head { margin-top: 2rem; font-size: 1.2rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: .3rem; }

/* Tags */
.tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 3px; background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line); }
.tag-gemeinde { background: var(--red); color: #fff; border-color: var(--red); }
.tag-land { background: var(--ink-soft); color: #fff; border-color: var(--ink-soft); }
.tag-bund { background: transparent; color: var(--ink); border-color: var(--ink); }
.tag-source { font-weight: 600; text-transform: none; letter-spacing: 0; }
.tag-vacant { color: var(--warn); }
.status-published { background: #e3f3e8; color: var(--ok); border-color: transparent; }
.status-review { background: #fff4e0; color: var(--warn); border-color: transparent; }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.post-card h2, .post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card p { margin: 0; color: var(--ink-soft); }
.post-card-lead { grid-column: span 3; flex-direction: row; }
.post-card-media { display: block; background: var(--bg-alt); }
.post-card-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-lead > .post-card-media { flex: 0 0 50%; min-height: 320px; }
.post-card-lead > .post-card-media img { aspect-ratio: auto; }
.post-card-lead .post-card-body { padding: 2rem; justify-content: center; }
.post-card-lead h3 { font-size: 1.6rem; }
.post-card-lead { background: var(--bg-alt); border: 0; }
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } .post-card-lead { grid-column: span 1; flex-direction: column; } .post-card-lead > .post-card-media { flex: none; min-height: 0; } .post-card-lead > .post-card-media img { aspect-ratio: 16/9; } }
.filter { display: flex; gap: 1.75rem; margin-bottom: 1.75rem; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter a { padding: .55rem 0 .6rem; border-bottom: 3px solid transparent; color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: color .15s, border-color .15s; }
.filter a:hover { color: var(--ink); border-bottom-color: var(--line); }
.filter a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.filter a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--red); }
@media (max-width: 480px) { .filter { gap: 1.25rem; } }
.article { max-width: 800px; }
.article-image { margin: 0 0 1.5rem; }
.article-image figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8rem; font-size: 1.4rem; }
.related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.related h2 { font-size: 1.1rem; }
.related ul { padding-left: 1.2rem; }

/* Topics */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.topic { border-top: 4px solid var(--red); padding-top: 1rem; }
.topic h3 { margin-bottom: .4rem; }
.topic p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } }

/* Events */
.event-list { list-style: none; margin: 0; padding: 0; }
.event { display: flex; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-date { flex: 0 0 64px; text-align: center; border-radius: var(--radius); padding: .4rem 0; background: var(--red); color: #fff; align-self: flex-start; }
.event-date .day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.event-date .month { display: block; font-size: .8rem; text-transform: uppercase; color: #fff; opacity: .9; }
.event-body h3 { margin-bottom: .2rem; }
.event-body h3 a { color: var(--ink); }
.event-body p { margin: 0 0 .3rem; }

/* CTA */
.cta { background: var(--red); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; max-width: 560px; }
.cta .actions { margin: 0; }

/* Persons / about */
.team-photo { margin: 1.5rem 0 2.5rem; background: var(--bg-alt); border-radius: var(--radius); padding: 1rem; }
.team-photo img { margin: 0 auto; }
.person-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.person { display: flex; align-items: center; gap: .9rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.person img, .person-placeholder { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; }
.person-placeholder { background: var(--bg-alt); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Options */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.option p { flex: 1; color: var(--ink-soft); }
@media (max-width: 820px) { .option-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.form-wide { max-width: 820px; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field .req { color: var(--red); }
.input, .form input[type="text"], .form input[type="email"], .form input[type="password"], .form input[type="tel"], .form input[type="url"], .form input[type="date"], .form input[type="datetime-local"], .form select, .form textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--ink-soft); border-radius: var(--radius); font: inherit; background: var(--bg-panel); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form input[type="file"] { font: inherit; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: .3rem; }
.help { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.help ul { margin: .2rem 0 0; padding-left: 1.2rem; }
.error { color: var(--red); font-size: .9rem; margin: .3rem 0 0; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.contact-alt { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid var(--line); background: var(--bg-alt); }
.alert-success { border-color: var(--ok); background: #e3f3e8; color: #14502a; }
.alert-error, .alert-danger { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.alert-info { border-color: var(--ink-soft); background: var(--bg-alt); color: var(--ink); }
.alert-warning { border-color: #d49a00; background: #fff6dc; color: #5c4300; }
.auth .form { margin-bottom: 1.5rem; }

/* Footer */
.site-footer { background: var(--bg-alt); color: var(--ink-soft); margin-top: 2rem; font-size: .95rem; border-top: 4px solid var(--red); }
.site-footer a { color: var(--red); }
.site-footer .muted { color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.footer-brand { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.footer-title { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Intern */
.intern-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; align-items: start; }
.intern-nav { position: sticky; top: 80px; }
.intern-user { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.intern-nav nav { display: flex; flex-direction: column; }
.intern-nav nav a, .intern-nav nav .linklike { padding: .5rem .6rem; color: var(--ink); border-radius: var(--radius); text-align: left; width: 100%; }
.intern-nav nav a:hover { background: var(--bg-alt); text-decoration: none; }
.intern-content h1 { font-size: 1.8rem; }
.intern-content h2 { font-size: 1.2rem; }
.panel { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.5rem; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.panel-head h1, .panel-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.5rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--bg-panel); }
.stat-value { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-size: .9rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.inline { display: inline; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--bg-panel); }
.table th, .table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 820px) {
  .intern-layout { grid-template-columns: 1fr; }
  .intern-nav { position: static; }
  .intern-nav nav { flex-direction: row; flex-wrap: wrap; }
  .two-col, .stat-row { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}

/* Gemeinde-Links */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.link-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.2rem; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--red); color: var(--ink); }
.link-tile:hover { text-decoration: none; border-color: var(--red); }
.link-tile span { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }
.tag-source-gemeinde { border-color: var(--ink-soft); }

.search-row { display: flex; gap: .5rem; align-items: center; margin: 0 0 1rem; max-width: 520px; }
.search-row .input { flex: 1; }
details summary { cursor: pointer; }

/* Redaktion und Gemeinderat */
.subnav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.2rem; }
.subnav a { font-weight: 600; color: var(--ink-soft); }
.subnav-search { margin-left: auto; min-width: 220px; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.social-text { font-family: inherit; font-size: .9rem; resize: vertical; }
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.image-grid figure { margin: 0; }
.image-grid img { border: 1px solid var(--line); margin-bottom: .5rem; }
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-item { display: flex; gap: 1rem; align-items: flex-start; }
.topic-item img { width: 160px; aspect-ratio: 3/2; object-fit: cover; flex: 0 0 160px; }
.topic-item h2 { font-size: 1.05rem; margin: .4rem 0; }
.topic-item h2 a { color: var(--ink); }
.cal { border: 1px solid var(--line); }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head div { background: var(--bg-alt); font-weight: 700; font-size: .8rem; text-transform: uppercase; padding: .4rem; }
.cal-day { min-height: 110px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: .3rem; font-size: .8rem; overflow: hidden; }
.cal-day:first-child { border-left: 0; }
.cal-day.out { background: #fafafa; color: var(--muted); }
.cal-day.today .cal-num { background: var(--red); color: #fff; border-radius: 2px; padding: 0 .3rem; }
.cal-num { font-weight: 700; display: inline-block; margin-bottom: .2rem; }
.cal-entry { display: block; padding: .1rem .3rem; margin-bottom: 2px; border-left: 3px solid var(--muted); background: var(--bg-alt); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-entry.published { border-color: var(--ok); }
.cal-entry.scheduled { border-color: var(--red); }
.cal-entry.review { border-color: var(--warn); }
.cal-entry.event { border-color: var(--ink-soft); }
.cal-entry.meeting { border-color: var(--ink); background: #e9e9e4; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: .25rem; background: var(--muted); }
.dot.published { background: var(--ok); } .dot.scheduled { background: var(--red); } .dot.review { background: var(--warn); } .dot.event { background: var(--ink-soft); } .dot.meeting { background: var(--ink); }
.month-title { font-size: 1.3rem; }
.agenda-item { border-left: 4px solid var(--red); padding: .2rem 0 .2rem 1rem; margin-bottom: 1rem; }
.agenda-item h3 { margin-bottom: .3rem; }
.agenda-item h3 a { font-weight: 400; margin-left: .5rem; }
.wiki-layout { grid-template-columns: 3fr 1fr; }
.wiki-body h2 { font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.diff { background: var(--bg-alt); padding: 1rem; overflow-x: auto; font-size: .85rem; }
.diff .add { background: #e3f3e8; display: block; } .diff .del { background: var(--red-soft); display: block; }
tr.selected td { background: var(--bg-alt); }
.post-layout { grid-template-columns: 2fr 1fr; }
.status-scheduled { background: var(--red-soft); color: var(--red); border-color: transparent; }
.status-draft { background: var(--bg-alt); }
.form input[type="radio"] { margin-right: .4rem; }
.form ul { list-style: none; padding: 0; margin: 0; }
.form select[multiple] { min-height: 8rem; }
@media (max-width: 1000px) { .social-grid, .image-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .social-grid, .image-grid, .wiki-layout, .post-layout { grid-template-columns: 1fr; }
  .cal-day { min-height: 70px; font-size: .7rem; }
  .topic-item { flex-direction: column; } .topic-item img { width: 100%; flex: none; }
  .subnav-search { margin-left: 0; width: 100%; }
}

/* Handy: größerer Seitenrand, kompaktes internes Menü */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .intern-layout { gap: 1.2rem; padding-top: 1rem; }
  .intern-user { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding-bottom: .5rem; margin-bottom: .5rem; }
  .intern-user br { display: none; }
  .intern-nav nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .intern-nav nav a, .intern-nav nav .linklike { width: auto; white-space: nowrap; border: 1px solid var(--line); padding: .35rem .7rem; font-size: .9rem; }
  .intern-nav nav form { flex: 0 0 auto; }
  .intern-content h1 { font-size: 1.5rem; }
  .panel { padding: 1rem; }
  .panel-head .actions { width: 100%; }
  .page-head h1, .intern-content h1 { overflow-wrap: anywhere; hyphens: auto; }
  .post-card-lead .post-card-body { padding: 1.2rem; }
  .team-band-inner { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cta-inner { gap: 1.2rem; }
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Inhalte dürfen den internen Bereich nicht aufdehnen */
.intern-layout > *, .two-col > *, .post-layout > *, .wiki-layout > * { min-width: 0; }
.prose, .panel, .agenda-item { overflow-wrap: anywhere; }
.cal-label, .cal-none { display: none; }
@media (max-width: 820px) {
  .topic-item img { max-height: 180px; }
  .cal { border: 0; }
  .cal-row { display: block; }
  .cal-row.cal-head { display: none; }
  .cal-day { min-height: 0; border: 0; border-bottom: 1px solid var(--line); padding: .6rem 0; font-size: .9rem; }
  .cal-day.empty, .cal-day.out { display: none; }
  .cal-num { display: none; }
  .cal-label { display: block; font-weight: 700; margin-bottom: .3rem; }
  .cal-day.today .cal-label { color: var(--red); }
  .cal-entry { white-space: normal; padding: .3rem .5rem; }
  .cal:not(:has(.cal-day:not(.empty):not(.out))) .cal-none { display: block; }
}

.inline-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.inline-form .input { width: auto; min-width: 180px; }
.inline-form label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; }
.member-pick li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
@media (max-width: 520px) { .inline-form .input, .inline-form label { width: 100%; } }

.edit-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #fff; padding: .6rem 1rem; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.edit-fab:hover { background: var(--red); color: #fff; text-decoration: none; }
.content-field { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.content-image { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.content-image img { max-width: 260px; max-height: 160px; object-fit: contain; border: 1px solid var(--line); background: var(--bg-alt); }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; border-top: 1px solid var(--line); }

/* Chronik */
.avatar-lg, .avatar-md { border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-md { width: 64px; height: 64px; margin: 0 auto .4rem; display: block; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--muted); font-weight: 700; border: 1px solid var(--line); }
.avatar-md.avatar-initials { display: flex; }
.timeline-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--bg-panel); }
.timeline { min-width: 900px; padding: .5rem 1rem 1rem; }
.tl-axis, .tl-row { display: grid; grid-template-columns: 190px 1fr; align-items: stretch; }
.tl-row { border-top: 1px solid var(--line); }
.tl-label { padding: .5rem .5rem .5rem 0; font-size: .85rem; font-weight: 600; }
.tl-label a { color: var(--ink); }
.tl-track { position: relative; padding: .35rem 0; }
.tl-axis .tl-track { height: 1.6rem; }
.tl-tick { position: absolute; top: .3rem; font-size: .72rem; color: var(--muted); transform: translateX(-50%); }
.tl-grid { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #e6e6e0; }
.tl-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--red); z-index: 2; }
.tl-lane { position: relative; height: 30px; margin: 3px 0; }
.tl-bar { position: absolute; top: 0; height: 30px; background: #f0d4d7; border-left: 4px solid var(--red); display: flex; align-items: center; gap: .3rem; padding-right: .4rem; overflow: hidden; white-space: nowrap; font-size: .78rem; z-index: 1; }
.tl-bar.open { background: linear-gradient(90deg, #f0d4d7 80%, rgba(240,212,215,.2)); }
.tl-bar img, .tl-initials { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 26px; margin-left: 2px; }
.tl-initials { background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 700; color: var(--muted); }
.tl-name { overflow: hidden; text-overflow: ellipsis; }
.orgchart { text-align: center; }
.org-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; padding-top: 1.2rem; margin-bottom: 1.2rem; }
.org-level + .org-level::before, .org-top + .org-level::before { content: ""; position: absolute; top: 0; left: 50%; height: 1.2rem; border-left: 2px solid var(--red); }
.org-top .org-card { border-top-width: 6px; min-width: 220px; }
.org-card { background: var(--bg-panel); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: .9rem 1rem; width: 180px; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.org-role { font-size: .82rem; color: var(--red); font-weight: 700; }
.org-group { margin: 1.5rem 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.person-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.person-head h2 { margin: 0; font-size: 1.15rem; }
.career { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.career li { padding: .3rem 0; border-top: 1px solid var(--line); }
.career-years { display: inline-block; min-width: 92px; font-weight: 700; color: var(--red); }
@media (max-width: 520px) { .org-card { width: 46%; padding: .7rem .5rem; } .org-top .org-card { min-width: 0; width: 70%; } }

.member-pick-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }
.honors-list li { border-top: 0; }

.btn-whatsapp { background: #1f7a3a; color: #fff; border-color: #1f7a3a; }
.btn-whatsapp:hover { background: #17602d; }
.task-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.task-main { flex: 1 1 260px; }
.task-actions { display: flex; gap: .5rem; align-items: center; }
.helper { display: inline-block; background: var(--red-soft); color: var(--red); padding: .05rem .5rem; margin: .2rem .3rem 0 0; font-weight: 600; }
.comments li { padding: .7rem 0; }

.level-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 .8rem; max-width: 560px; }
.level-tabs a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; padding: .7rem 1rem; border: 2px solid var(--line); color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.level-tabs a span { font-weight: 400; font-size: .85rem; color: var(--muted); }
.level-tabs a b { margin-left: auto; font-size: .75rem; background: var(--red); color: #fff; padding: .1rem .45rem; }
.level-tabs a[aria-current="true"] { border-color: var(--red); background: var(--red-soft); text-decoration: none; }

.check-list { columns: 2 280px; column-gap: 2rem; }
.check-list li { break-inside: avoid; padding: .35rem 0; }

.inline-form label.check { flex-direction: row; align-items: center; font-weight: 400; }

.online-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.event-image { margin: 0; flex: 0 0 150px; }
.event-image img { width: 150px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }
.event-image figcaption { font-size: .7rem; color: var(--muted); margin-top: .2rem; }
@media (max-width: 600px) { .event { flex-wrap: wrap; } .event-image { order: 3; flex: 1 1 100%; } .event-image img { width: 100%; aspect-ratio: 16/9; } }

.intern-nav nav a.sub { padding-left: 1.4rem; font-size: .92rem; }
.menu-more { margin: .3rem 0; }
.menu-more > summary { display: flex; justify-content: space-between; align-items: center; padding: .5rem .6rem; color: var(--muted); cursor: pointer; font-size: .92rem; list-style: none; border-top: 1px solid var(--line); }
.menu-more > summary::-webkit-details-marker { display: none; }
.menu-more > summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.menu-more[open] > summary::after { transform: translateY(.05em) rotate(-135deg); }
.menu-more > a { display: block; font-size: .95rem; }
.menu-state { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.menu-state label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; white-space: nowrap; }
.menu-grid td.base { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) {
  .menu-more { display: flex; gap: .4rem; flex: 0 0 auto; margin: 0; }
  .menu-more > summary { border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .7rem; white-space: nowrap; flex: 0 0 auto; }
}
.speech-editor { font-size: 1.05rem; line-height: 1.7; }
.speech-meter { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.speech-meter .over { color: var(--red); font-weight: 700; }

.tag-intern { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Sitzungsmodus */
.live { padding: 1.2rem var(--gutter) 3rem; max-width: 1400px; margin: 0 auto; }
.live-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; border-bottom: 3px solid var(--red); padding-bottom: .8rem; margin-bottom: 1rem; }
.live-head h1 { font-size: 1.6rem; margin: .2rem 0; }
.live-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.live-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.live-nav { display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.live-tab { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .5rem; text-align: left; background: var(--bg-panel); border: 1px solid var(--line); border-left: 4px solid var(--line); padding: .7rem .8rem; font: inherit; cursor: pointer; min-height: 48px; }
.live-tab.active { border-left-color: var(--red); background: var(--red-soft); }
.top-no { font-weight: 800; color: var(--red); }
.top-title { font-weight: 600; }
.top-state { grid-column: 2; font-size: .78rem; color: var(--ok); font-weight: 700; }
.live-body { min-width: 0; }
.live-pane h2 { font-size: 1.6rem; }
.eyebrow-dark { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--red); margin: 0; }
.live-block { background: var(--bg-alt); padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: 1.08rem; }
.live-block h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .3rem; }
.live-position { border-left: 4px solid var(--red); }
.live-protocol { border: 1px solid var(--line); padding: 1rem 1.2rem; margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.live-protocol label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
.live-protocol textarea { font-size: 1.05rem; }
.vote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.outcome-row, .att-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
.btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.live-pager { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.live-agenda li { padding: .35rem 0; font-size: 1.05rem; }
.live-roles { flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
.live-roles label { flex: 1 1 220px; }
.attendance li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-nav { position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; max-height: none; background: var(--bg); padding: .4rem 0; }
  .live-tab { min-width: 160px; }
}

.ablage-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.ablage-filter input[type=search] { flex: 1 1 260px; }
.ablage-filter select { width: auto; }
.tag-doc { text-transform: none; letter-spacing: 0; font-weight: 600; }
.snippet { background: #fff8d6; padding: 0 .2rem; }
.doc-list li { padding: .4rem 0; }

.kassa-stats { grid-template-columns: repeat(4, 1fr); }
.stat-value.ok, td.ok, .num.ok { color: var(--ok); } .stat-value.neg, td.neg, .num.neg { color: var(--red); }
td.num, th.num { text-align: right; white-space: nowrap; font-weight: 600; }
tr.planned td { background: #fffaf0; }
.kassa-form .field ul { display: flex; gap: 1rem; }
@media (max-width: 820px) { .kassa-stats { grid-template-columns: 1fr 1fr; } }

.qr { width: 300px; max-width: 100%; height: auto; display: block; background: #fff; image-rendering: pixelated; border: 1px solid var(--line); }
.secret { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; max-width: 260px; }
.backup-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .6rem 2.5rem; font-family: ui-monospace, monospace; font-size: 1.3rem; }

.option-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .5rem; }
.poll-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.poll-option { border: 1px solid var(--line); border-top: 4px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.poll-option.best { border-top-color: var(--ok); }
.poll-option.chosen { border-color: var(--ok); background: #eef8f1; }
.poll-date strong { display: block; font-size: 1.15rem; } .poll-date span { color: var(--muted); }
.poll-count { font-weight: 700; color: var(--ok); }
.poll-answer { display: flex; flex-wrap: wrap; gap: .3rem; }
.pill { border: 1px solid var(--line); padding: .35rem .7rem; cursor: pointer; font-size: .9rem; user-select: none; }
.pill input { display: none; }
.pill.on { background: var(--red); color: #fff; border-color: var(--red); }
.table-scroll { overflow-x: auto; }
.poll-grid td.ans { text-align: center; font-size: .85rem; }
.ans-ja { background: #e3f3e8; color: var(--ok); font-weight: 700; } .ans-vielleicht { background: #fff4e0; color: var(--warn); } .ans-nein { color: var(--muted); }

.menu-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .6rem .6rem .2rem; font-weight: 700; }
.intern-nav nav a.quick { font-weight: 700; border-left: 3px solid var(--red); }
.intern-nav nav a.current { background: var(--red-soft); color: var(--red); }
.quick-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin: 1rem 0 1.5rem; }
.quick-tiles a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-top: 4px solid var(--red); color: var(--ink); font-weight: 700; background: var(--bg-panel); }
.quick-tiles a:hover { text-decoration: none; background: var(--red-soft); }
.menu-table td { vertical-align: middle; }
@media (max-width: 820px) { .menu-label { display: none; } }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem 1rem; }

.cal-subscribe { margin: .4rem 0 1.2rem; }
.cal-subscribe summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--red); font-weight: 600; font-size: .95rem; list-style: none; }
.cal-subscribe summary::-webkit-details-marker { display: none; }
.cal-subscribe summary::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-width: 4px; border-radius: 2px; }
.cal-subscribe[open] { border-left: 3px solid var(--red); padding: .2rem 0 .2rem .9rem; }

/* Gemeinde-Termine: nur das Datumsfeld grau, SPÖ-Termine rot */
.event-gemeinde .event-date { background: #d6d6d2; color: var(--ink-soft); }
.event-gemeinde .event-date .month { color: var(--ink-soft); }

/* Internes Menü mit Gruppen */
.intern-menu > summary { display: none; }
.menu-group > summary { display: flex; justify-content: space-between; align-items: center; padding: .5rem .6rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: var(--radius); }
.menu-group > summary:hover { background: var(--bg-alt); }
.menu-group > summary::-webkit-details-marker, .intern-menu > summary::-webkit-details-marker { display: none; }
.menu-group > summary::after, .intern-menu > summary::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); color: var(--muted); flex: 0 0 auto; }
.menu-group[open] > summary::after, .intern-menu[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.intern-nav nav .menu-group > a { display: block; padding-left: 1.4rem; font-size: .95rem; }
.intern-nav nav .menu-group[open] { margin-bottom: .3rem; }
.menu-sublabel { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .5rem .6rem .1rem 1.4rem; font-weight: 700; }
.intern-nav nav .menu-more > a { padding-left: 1.4rem; }
.intern-nav nav form { margin-top: .4rem; border-top: 1px solid var(--line); padding-top: .3rem; }
@media (max-width: 820px) {
  .intern-menu { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel); }
  .intern-menu > summary { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; font-weight: 700; cursor: pointer; list-style: none; }
  .intern-menu[open] > summary { border-bottom: 1px solid var(--line); }
  .intern-nav nav { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0; padding: .3rem; }
  .intern-nav nav a, .intern-nav nav .linklike { width: 100%; white-space: normal; border: 0; padding: .6rem .7rem; font-size: 1rem; }
  .intern-nav nav .menu-group > a, .intern-nav nav .menu-more > a { padding-left: 1.6rem; }
  .menu-more { display: block; margin: .3rem 0; }
  .menu-more > summary { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .6rem .7rem; }
}
.table tr.group-row th { background: var(--bg-alt); color: var(--ink); font-size: .8rem; padding-top: .8rem; }
/* Persönlicher Bereich: hellgrau hinterlegt, mit Schloss und Hinweis */
.menu-private { background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: var(--radius); margin-bottom: .6rem; }
.menu-private > summary:hover { background: transparent; }
.menu-private > summary > span { display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: center; }
.menu-private > summary small { grid-column: 2; font-weight: 400; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.menu-lock { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.intern-nav nav .menu-private > a:hover { background: var(--bg-panel); }
.intern-nav nav .menu-private > a.current { background: var(--bg-panel); }
.menu-badge { display: inline-block; min-width: 1.35em; padding: 0 .4em; margin-left: .3rem; border-radius: 1em; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: .1em; }
.menu-group > summary .menu-badge { margin-left: auto; margin-right: .5rem; }
.menu-group[open] > summary .menu-badge { display: none; }
/* Postfach */
.mail-layout { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; align-items: start; }
.mail-layout.mail-single { grid-template-columns: 1fr; }
.mail-folders { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: .8rem; }
.mail-folders a { padding: .45rem .5rem; color: var(--ink); border-radius: var(--radius); }
.mail-folders a.current { background: var(--red-soft); color: var(--red); }
.mail-search { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.mail-search .input { flex: 1; }
.mail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mail-list li a { display: grid; grid-template-columns: 11rem 1fr auto; gap: .8rem; padding: .6rem .5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.mail-list li a:hover { background: var(--bg-alt); text-decoration: none; }
.mail-list li.unread a { font-weight: 700; border-left: 3px solid var(--red); }
.mail-list .mail-from, .mail-list .mail-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list .mail-date { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.mail-empty { padding: 1rem .5rem; }
.mail-title { margin-bottom: .6rem; overflow-wrap: anywhere; }
.mail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; overflow-wrap: anywhere; }
.mail-log { background: var(--bg-alt); padding: .5rem .7rem; border-radius: var(--radius); margin: .8rem 0 0; }
.mail-actions form.inline { display: inline-flex; gap: .6rem; flex-wrap: wrap; }
.mail-move select { width: auto; padding: .35rem .5rem; }
.mail-attachments { list-style: none; padding: .6rem .8rem; margin: 1rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
.mail-attachments li { padding: .2rem 0; }
.mail-images { margin: 1rem 0 .4rem; }
.mail-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; background: #fff; }
.mail-text { white-space: pre-wrap; font-family: inherit; font-size: 1rem; line-height: 1.55; margin-top: 1rem; overflow-wrap: anywhere; }
.mail-body { font-family: inherit; }
@media (max-width: 820px) {
  .mail-layout { grid-template-columns: 1fr; gap: .8rem; }
  .mail-folders { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .4rem; }
  .mail-folders a { white-space: nowrap; }
  .mail-list li a { grid-template-columns: 1fr auto; }
  .mail-list .mail-subject { grid-column: 1 / -1; grid-row: 2; font-weight: inherit; }
}
.pw-row { display: flex; gap: .5rem; align-items: center; margin: .4rem 0; }
.pw-value { font-family: ui-monospace, "DejaVu Sans Mono", monospace; letter-spacing: .03em; }
details.pw summary, .small details summary { cursor: pointer; color: var(--red); }
.pw-gen { margin-top: .4rem; }
.party-table .input { min-width: 12rem; }
.mail-settings th { text-transform: none; letter-spacing: 0; font-size: .85rem; white-space: nowrap; }
.jitsi-frame { width: 100%; height: calc(100vh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #111; }
@media (max-width: 820px) { .jitsi-frame { height: 78vh; } }
.jitsi-frame.jitsi-pre-on { height: auto; min-height: 0; background: var(--bg-alt); }
.jitsi-pre { max-width: 560px; margin: 0 auto; padding: 2rem 1.25rem; }
.jitsi-pre h2 { margin-top: 0; }
.jitsi-pre ol { padding-left: 1.2rem; }
.jitsi-pre .linklike { margin-left: .75rem; }
/* Datum und Uhrzeit getrennt */
.dt-pair { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.dt-pair .dt-date { flex: 1 1 11rem; min-width: 10rem; }
.dt-pair .dt-time { flex: 0 0 7.5rem; width: 7.5rem; }
.option-inputs .dt-pair { margin-bottom: .4rem; }
/* Formularfelder aus DateTimePicker: Datum und Uhrzeit nebeneinander */
.input.dt-date:not(.dt-pair .dt-date) { display: inline-block; width: calc(100% - 8.5rem); min-width: 10rem; vertical-align: middle; }
.input.dt-time:not(.dt-pair .dt-time) { display: inline-block; width: 8rem; margin-left: .5rem; vertical-align: middle; }

/* Hinweis auf laufende Online-Sitzung */
.online-now { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 0; padding: .9rem 1.1rem; background: var(--red-soft); border: 1px solid #f3c2c7; border-left: 4px solid var(--red, #ce1727); border-radius: var(--radius); }
.online-now-text { flex: 1; }
.online-now .btn { white-space: nowrap; }
.online-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--red, #ce1727); box-shadow: 0 0 0 0 rgba(206, 23, 39, .5); animation: online-pulse 1.8s infinite; flex: none; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgba(206, 23, 39, .5); } 70% { box-shadow: 0 0 0 .5rem rgba(206, 23, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(206, 23, 39, 0); } }
@media (prefers-reduced-motion: reduce) { .online-dot { animation: none; } }
.menu-online { display: grid !important; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center; margin-bottom: .6rem; background: var(--red-soft); border-left: 3px solid var(--red, #ce1727); font-weight: 700; color: var(--red, #ce1727) !important; }
.menu-online small { grid-column: 2; font-weight: 400; color: var(--text, #111); }
@media (max-width: 640px) { .online-now { flex-wrap: wrap; } .online-now .btn { width: 100%; text-align: center; } }

/* Gäste einladen: Auswahl aus dem Gästeverzeichnis */
.guest-invite h3 { margin: .5rem 0; font-size: 1.05rem; }
.guest-filter { max-width: 420px; margin-bottom: .75rem; }
.guest-pick fieldset { border: 0; padding: 0; margin: 0 0 .75rem; }
.guest-pick legend { font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.guest-pick fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.guest-pick legend { grid-column: 1 / -1; }
.guest-card { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.guest-card:hover { border-color: var(--red); }
.guest-card:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.guest-card input { margin-top: .25rem; accent-color: var(--red); width: 1.1rem; height: 1.1rem; }
.guest-card.is-invited { opacity: .6; cursor: default; }
.guest-new { margin-top: .5rem; }
.guest-new summary { cursor: pointer; font-weight: 600; }

/* Mitglied: Funktionen und Website-Sichtbarkeit auf einen Blick */
.member-summary { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.member-summary form { margin-left: auto; }

/* Über uns: Partei-Ebene (rot) und Gemeinde-Ebene (blaugrau) klar getrennt */
:root { --council: #34566f; --council-soft: #eaf0f4; }
.org-section { margin: 2.5rem 0; padding: 1.5rem 1.5rem .75rem; border-radius: var(--radius); border-top: 5px solid var(--red); background: var(--red-soft); }
.org-gemeinde { border-top-color: var(--council); background: var(--council-soft); }
.org-head h2 { margin: .2rem 0 .3rem; }
.org-head h2 small { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); margin-top: .15rem; }
.org-head p { margin: 0 0 1rem; color: var(--ink-soft); }
.org-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); padding: .2rem .55rem; border-radius: 3px; }
.org-gemeinde .org-label { background: var(--council); }
.org-group { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--ink-soft); }
.org-section .person { background: var(--bg); border-left: 4px solid var(--red); }
.org-gemeinde .person { border-left-color: var(--council); }
.org-partei .person-placeholder { background: var(--red); color: #fff; }
.org-gemeinde .person-placeholder { background: var(--red); color: #fff; }  /* eure Vertreter: Kreis bleibt SPÖ-rot */
.person-function { color: var(--ink-soft); }
.org-section .person-grid { margin-bottom: 1rem; }

/* Reihenfolge ändern (Funktionen, Personen) */
.move { width: 1%; white-space: nowrap; }
.move-btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); width: 26px; height: 24px; font-size: .7rem; line-height: 1; cursor: pointer; padding: 0; }
.move-btn:hover { color: var(--red); border-color: var(--red); }
.move-btn + .move-btn { border-left: 0; }
.level-row th { text-align: left; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--red); padding: .35rem .6rem; }
.level-row.level-gemeinde th { background: var(--council); }

/* Personenkarte: langer Text bleibt in der Karte */
.person-text { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.person-text strong, .person-function { overflow-wrap: break-word; hyphens: auto; }
.org-section .person-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.org-section .person-mail { font-size: .78rem; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
@media (max-width: 480px) { .org-section .person-mail { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 400px) { .org-section .person-grid { grid-template-columns: 1fr; } }
.person-mail { font-size: .85rem; overflow-wrap: anywhere; word-break: break-word; margin-top: .15rem; }

/* Bild-Editor für Social Media */
.se-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .se-layout { grid-template-columns: 1fr; } }
.se-stage-wrap { display: flex; flex-direction: column; align-items: center; }
.se-stage { position: relative; width: 100%; max-height: 72vh; max-width: calc(72vh * var(--ar, 1)); background: var(--bg-alt); border: 1px solid var(--line); touch-action: none; cursor: grab; user-select: none; overflow: hidden; }
.se-stage.se-dragging { cursor: grabbing; }
.se-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.se-handle { position: absolute; border: 2px dashed rgba(255, 255, 255, .95); outline: 2px dashed rgba(0, 0, 0, .55); outline-offset: -4px; cursor: move; }
.se-logo { z-index: 2; }
.se-handle:hover, .se-dragging .se-handle { background: rgba(255, 255, 255, .12); }
.se-busy { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; padding: .25rem .6rem; border-radius: 3px; }
.se-panel h2 { font-size: 1rem; margin: 1rem 0 .4rem; }
.se-panel h2:first-child { margin-top: 0; }
.se-row { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; margin: .4rem 0; }
.se-row input[type=range] { width: 100%; accent-color: var(--red); }
.se-panel textarea { margin: .4rem 0; }
.social-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .5rem 0; }
.social-thumbs img { width: 100%; border: 1px solid var(--line); }
.se-styles { display: grid; gap: .25rem; margin: .4rem 0; }
.se-style { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
.se-style input { accent-color: var(--red); }
.se-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .5rem; }
.se-color { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .8rem; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius); }
.se-color.is-current { border-color: var(--red); font-weight: 700; }
.se-color input[type=color] { width: 100%; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }

/* Kampagnen: Übersicht, Storyboard, Karten */
.kp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.kp-tile { display: block; color: var(--ink); text-decoration: none; }
.kp-tile:hover { border-color: var(--red); text-decoration: none; }
.kp-tile h2 { margin: .5rem 0 .2rem; font-size: 1.2rem; }
.kp-progress { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin: .4rem 0; }
.kp-progress span { display: block; height: 100%; background: var(--red); }
.kp-countdown { text-align: center; border: 2px solid var(--red); border-radius: var(--radius); padding: .4rem .9rem; min-width: 110px; }
.kp-countdown strong { display: block; font-size: 1.8rem; line-height: 1.1; color: var(--red); }
.kp-countdown span { font-size: .75rem; color: var(--muted); }
.kp-goal { background: var(--bg-alt); border-left: 4px solid var(--red); padding: .6rem .9rem; margin: 1rem 0; }
.kp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 1rem 0; }
.kp-sum-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.kp-sum-warn { border-color: var(--red); background: var(--red-soft); }
.kp-sum-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.kp-sum-item { color: var(--ink); }
.kp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.kp-legend { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.kp-legend .kp-kind { border-left: 4px solid; padding: .1rem .5rem; background: var(--bg-alt); }
.kp-kind-beitrag { --kind: #ce1727; } .kp-kind-termin { --kind: #34566f; } .kp-kind-druck { --kind: #7a4b8c; }
.kp-kind-aktion { --kind: #2f7a4f; } .kp-kind-aufgabe { --kind: #6b6b6b; }
.kp-legend .kp-kind { border-left-color: var(--kind); }
.kp-hint { margin: .3rem 0 .6rem; }
.kp-board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.kp-col { flex: 0 0 280px; background: var(--bg-alt); border-radius: var(--radius); padding: .6rem; display: flex; flex-direction: column; max-height: 78vh; }
.kp-col-current { box-shadow: inset 0 3px 0 var(--red); }
.kp-col-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; margin-bottom: .5rem; }
.kp-col-head strong { flex: 1 1 100%; font-size: .95rem; }
.kp-count { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 0 .5rem; }
.kp-now { font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 3px; padding: 0 .4rem; }
.kp-cards { list-style: none; margin: 0; padding: 0; min-height: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; border-radius: var(--radius); }
.kp-cards.kp-over { outline: 2px dashed var(--red); outline-offset: 2px; }
.kp-card { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--kind, var(--line)); border-radius: var(--radius); padding: .5rem .6rem; cursor: grab; display: flex; flex-direction: column; gap: .25rem; }
.kp-card.kp-row { cursor: default; }
.kp-card.kp-dragging { opacity: .45; }
.kp-card.kp-saved { box-shadow: 0 0 0 2px var(--ok, #2f7a4f); }
.kp-card.kp-late { background: var(--red-soft); }
.kp-card.kp-done { opacity: .7; }
.kp-card-title { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.kp-meta { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; color: var(--ink-soft); }
.kp-kind-label { color: var(--kind); font-weight: 700; }
.kp-status { background: var(--bg-alt); border-radius: 3px; padding: 0 .35rem; }
.kp-owner { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700; align-items: center; justify-content: center; }
.kp-link { border: 1px solid var(--line); border-radius: 3px; padding: 0 .35rem; }
.kp-add { display: grid; gap: .3rem; margin-top: .5rem; }
.kp-add .input { font-size: .85rem; padding: .35rem .5rem; }
.kp-timeline section { margin-bottom: 1.2rem; }
.kp-timeline h3 { font-size: .95rem; border-bottom: 1px solid var(--line); padding-bottom: .2rem; }
.kp-timeline .kp-card { margin-bottom: .4rem; }
.kp-comment { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.kp-comment p { margin: .2rem 0 0; }
.kp-actions h2, #diskussion h2 { font-size: 1.05rem; }

/* Bilderpool */
.kp-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; text-align: center; background: var(--bg-alt); }
.kp-drop.is-over { border-color: var(--red); background: var(--red-soft); }
.kp-drop p { margin: .2rem 0; }
.kp-upl { max-width: 420px; margin: .6rem auto 0; }
.kp-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.kp-img { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.kp-img.is-star { border-color: #d49a00; box-shadow: 0 0 0 2px #f3d27a; }
.kp-img-view img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kp-star-form { position: absolute; top: .35rem; right: .35rem; margin: 0; }
.kp-star { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.1rem; cursor: pointer; }
.kp-img.is-star .kp-star { background: #f3b600; color: #fff; }
.kp-img-edit { padding: .4rem .5rem; }
.kp-img-edit summary { cursor: pointer; }
.kp-card-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.kp-card-image { display: flex; gap: .75rem; align-items: flex-start; }
.kp-card-image img { width: 160px; border-radius: var(--radius); border: 1px solid var(--line); }
.kp-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; margin: .4rem 0; }
.kp-pick { position: relative; cursor: pointer; }
.kp-pick input { position: absolute; opacity: 0; }
.kp-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; border: 3px solid transparent; }
.kp-pick input:checked + img { border-color: var(--red); }
.kp-pick input:focus-visible + img { outline: 2px solid var(--ink); }
.kp-picker summary { cursor: pointer; font-weight: 600; }
.kp-tile-wrap { display: flex; flex-direction: column; }
.kp-tile-wrap .kp-tile { flex: 1; }
.kp-tile-actions { padding: .3rem .2rem 0; text-align: right; }

/* Mitteilungen (eigener Kanal) */
.mt-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.mt-item { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: .7rem 1rem; background: var(--bg); }
.mt-item h2 { font-size: 1.1rem; margin: .2rem 0; }
.mt-item p { margin: .2rem 0; }
.mt-kind { font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.mt-termin, .mt-online { border-left-color: #34566f; } .mt-termin .mt-kind, .mt-online .mt-kind { color: #34566f; }
.mt-sitzung { border-left-color: #6b6b6b; } .mt-sitzung .mt-kind { color: #6b6b6b; }
.mt-aud { font-size: .7rem; }
.mt-replies { border-left: 2px solid var(--line); margin: .5rem 0 .3rem; padding-left: .8rem; }
.mt-reply { padding: .25rem 0; }
.mt-reply p { margin: .1rem 0 0; }
.mt-answer summary { cursor: pointer; color: var(--red); }
.mt-answer form { display: grid; gap: .4rem; margin-top: .4rem; }
tr.if-fail td { background: var(--red-soft); }
.kp-code { background: var(--bg-alt); padding: .5rem .7rem; border-radius: var(--radius); overflow-x: auto; white-space: pre; }

/* Einführung (Slideshow) Partner-Schnittstelle */
.tour { max-width: 820px; margin: 0 auto; }
.tour-slide { background: var(--bg); border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius); padding: 2rem 2.2rem; min-height: 360px; }
.tour-step { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); padding: .2rem .55rem; border-radius: 3px; }
.tour-slide h1, .tour-slide h2 { margin: .7rem 0 .6rem; }
.tour-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .tour-cols { grid-template-columns: 1fr; } .tour-slide { padding: 1.3rem; } }
.tour-box { background: var(--bg-alt); border-radius: var(--radius); padding: 1rem; }
.tour-box h3 { margin-top: 0; font-size: 1rem; }
.tour-code { display: inline-block; margin-top: .3rem; background: var(--bg-alt); padding: .2rem .45rem; border-radius: 3px; font-size: .85rem; word-break: break-all; }
.tour-flow { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.tour-flow li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: .8rem; font-weight: 600; }
.tour-flow li::before { content: counter(s); display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; margin-right: .4rem; font-size: .85rem; }
.tour-tags .tag { margin: 0 .3rem .3rem 0; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 .5rem; }
.tour-dots { display: flex; gap: .4rem; }
.tour-dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.tour-dot.is-on { background: var(--red); }
.log-fold > summary { cursor: pointer; padding: .2rem 0; }
.log-fold[open] > summary { margin-bottom: .6rem; }

/* Meldungen oben: schließen und sanft ausblenden */
.flash { position: relative; padding-right: 2.6rem; overflow: hidden; transition: opacity .35s ease, max-height .4s ease, margin .4s ease, padding .4s ease; }
.flash-close { position: absolute; top: .35rem; right: .45rem; width: 1.8rem; height: 1.8rem; border: 0; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .6; border-radius: 3px; }
.flash-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.flash-out { opacity: 0; max-height: 0 !important; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .flash { transition: none; } }

/* Partner-Schnittstelle: Schlüsselkarten und Protokoll */
.key-card { border: 1px solid var(--line); border-radius: 6px; padding: .7rem .8rem; margin-bottom: .7rem; background: var(--bg-panel); }
.key-card.is-off { background: var(--bg-alt); color: var(--muted); }
.key-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.key-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--muted); margin: .35rem 0 .55rem; }
.key-meta code { white-space: nowrap; }
.key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.key-new { margin-top: 1rem; }
.key-new .input[name=name] { flex: 1 1 14rem; }
.log-table .nw { white-space: nowrap; }
.log-table .num { text-align: right; }
.log-table td:nth-child(3) { min-width: 14rem; }

.tag-fail { background: var(--red-soft); color: var(--red, #ce1727); }
.danger-zone { border: 1px solid var(--red-soft); border-radius: 6px; padding: .7rem .9rem; }
.danger-zone > summary { cursor: pointer; color: var(--red); }
.danger-zone[open] > summary { margin-bottom: .5rem; }
/* Besucherstatistik */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg a { padding: .35rem .7rem; font-size: .85rem; color: var(--ink); text-decoration: none; border-left: 1px solid var(--line); }
.seg a:first-child { border-left: 0; }
.seg a.is-on { background: var(--red); color: #fff; }
.stats-kpi { grid-template-columns: repeat(4, 1fr); }
.stats-kpi .panel { display: flex; flex-direction: column; gap: .15rem; }
.stats-kpi strong { font-size: 1.8rem; line-height: 1.2; }
.stats-chart { display: flex; align-items: flex-end; gap: 2px; height: 180px; border-bottom: 1px solid var(--line); }
.stats-chart .bar { flex: 1; height: 100%; position: relative; min-width: 1px; }
.stats-chart .bar span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px 2px 0 0; }
.stats-chart .v { background: var(--red-soft); }
.stats-chart .u { background: var(--red); left: 20%; right: 20%; }
.stats-chart.is-dense { gap: 0; }
.stats-chart.is-dense .u { left: 0; right: 0; }
.stats-chart .bar:hover .v { background: #f3c7cc; }
.stats-axis { display: flex; justify-content: space-between; margin-top: .3rem; }
.stats-axis .key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; vertical-align: -1px; margin: 0 .2rem 0 .6rem; }
.stats-axis .key.u { background: var(--red); } .stats-axis .key.v { background: var(--red-soft); border: 1px solid #f3c7cc; }
.stats-list td { vertical-align: middle; }
.stats-list .num { text-align: right; white-space: nowrap; width: 4rem; font-variant-numeric: tabular-nums; }
.meter { height: 4px; background: var(--bg-alt); border-radius: 2px; margin-top: .3rem; }
.meter span { display: block; height: 100%; background: var(--red); border-radius: 2px; }
@media (max-width: 800px) { .stats-kpi { grid-template-columns: 1fr 1fr; } }
/* Postfach: Auswahl mehrerer Nachrichten */
.mail-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .5rem; border: 1px solid var(--line); border-bottom: 0; background: var(--bg-alt); }
.mail-check-all { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; cursor: pointer; }
.mail-actions { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mail-actions button:disabled { opacity: .45; cursor: default; }
.mail-move { display: inline-flex; gap: .3rem; }
.mail-move .input { width: auto; padding: .25rem .4rem; font-size: .85rem; }
.mail-empty-trash { margin-left: auto; }
.mail-all-hint { background: var(--red-soft); padding: .45rem .6rem; margin: 0; border: 1px solid var(--line); border-bottom: 0; }
.mail-list li { display: grid; grid-template-columns: 2.2rem 1fr; align-items: stretch; }
.mail-list li.mail-empty { display: block; padding: .8rem .5rem; }
.mail-list .mail-check { display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.mail-list li.unread .mail-check { border-left: 3px solid var(--red); }
.mail-list li.unread a { border-left: 0; }
.mail-list li.is-selected, .mail-list li.is-selected a { background: #fdf3f4; }
/* Beschnittene Vorschaubilder: Ausschnitt im oberen Bereich, damit Köpfe bei hohen/quadratischen Fotos nicht abgeschnitten werden */
.post-card img, .post-card-media img, .event-image img, .topic-item img, .kp-card-thumb, .kp-img-view img, .kp-pick img { object-position: 50% 15%; }
/* Knopf während des Absendens */
.spinner { display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
button.is-busy { cursor: progress; opacity: 1 !important; text-transform: none; }
button:disabled:not(.is-busy) { opacity: .5; }
/* Filterleiste über Listen */
.list-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: 0 0 1rem; }
.list-filter-select { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }
.list-filter-select .input { width: auto; min-width: 12rem; padding: .35rem .5rem; }

/* SPÖ eins */
.eins-head { max-width: 760px; margin-bottom: 1.6rem; }
.eins-kicker { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 4px; }
.eins-head h1 { margin: .6rem 0 .4rem; }
.eins-head .lead { margin: 0; }
.eins-sub { font-size: .95rem; font-weight: 400; margin-left: .4rem; }
.eins-stage { max-width: 1000px; margin-bottom: 2.5rem; }
.eins-player { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.eins-player > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .3s; filter: brightness(.82); }
.eins-player:hover > img { transform: scale(1.02); filter: brightness(.7); }
.eins-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eins-bigplay { position: absolute; left: 50%; top: 50%; width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s ease, background .2s; }
.eins-bigplay span { position: absolute; left: 2.2rem; top: 1.65rem; border-style: solid; border-width: 1.1rem 0 1.1rem 1.8rem; border-color: transparent transparent transparent #fff; }
.eins-bigplay:hover, .eins-bigplay:focus-visible { transform: scale(1.08); background: #b3111f; }
.eins-bigplay:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.eins-note { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.eins-now { margin: 1rem 0 .25rem; font-size: 1.5rem; line-height: 1.25; }
.eins-meta { color: var(--muted); margin: 0; }
.eins-more-title { margin-bottom: 1rem; }
.eins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1.2rem; margin-bottom: 2rem; }
.eins-card { display: flex; flex-direction: column; gap: .4rem; color: var(--ink); text-decoration: none; }
.eins-thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; border-radius: 10px; }
.eins-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.eins-card:hover .eins-thumb img, .eins-card:focus-visible .eins-thumb img { transform: scale(1.05); }
.eins-card:hover .eins-title { color: var(--red); }
.eins-play { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%; background: rgba(206, 23, 39, .92); opacity: .9; transition: opacity .2s, transform .2s; }
.eins-play::after { content: ""; position: absolute; left: 1.2rem; top: .9rem; border-style: solid; border-width: .6rem 0 .6rem 1rem; border-color: transparent transparent transparent #fff; }
.eins-card:hover .eins-play { opacity: 1; transform: scale(1.08); }
.eins-title { font-weight: 600; line-height: 1.3; }
.eins-age { color: var(--muted); font-size: .9rem; }
.eins-channel { margin-top: .5rem; }
@media (max-width: 820px) { .eins-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .eins-grid { grid-template-columns: 1fr; }
  .eins-player { border-radius: 8px; }
  .eins-bigplay { width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; }
  .eins-bigplay span { left: 1.8rem; top: 1.35rem; border-width: .9rem 0 .9rem 1.5rem; }
  .eins-now { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .eins-player > img, .eins-thumb img, .eins-bigplay, .eins-play { transition: none; } }
#player { scroll-margin-top: 1rem; }
/* Vorschau: was die Gesichtserkennung getan hat */
.social-thumb { margin: 0; }
.social-thumb a { position: relative; display: block; }
.social-thumb figcaption { font-size: .8rem; color: var(--muted); margin-top: .25rem; line-height: 1.3; }
.face-box { position: absolute; border: 2px dashed #ffd400; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); border-radius: 3px; display: none; pointer-events: none; }
.show-faces .face-box { display: block; }
.auto-badge { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .68rem; padding: .1rem .35rem; border-radius: 3px; }
.face-note { margin-top: .2rem; }
.check-note { color: var(--red); margin-top: .2rem; max-width: 18rem; }
.flash-float { position: fixed; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 50; width: min(640px, calc(100% - 2rem)); padding: 0; }
.flash-float .flash { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); margin: 0 0 .5rem; }
.mb-actions { margin-top: .4rem; }
.row-saved { color: var(--ok, #1f7a3a); margin-top: .25rem; }
.row-error { color: var(--red); }
tr.is-saving { opacity: .6; }
/* Funktion zuordnen: Auswahl direkt auf der Seite */
.fn-pick { border: 0; padding: 0; margin: 0 0 1rem; }
.fn-pick legend { font-weight: 600; margin-bottom: .4rem; }
.fn-group { margin-bottom: .6rem; }
.fn-group-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .3rem; }
.fn-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.fn-option { display: inline-flex; align-items: center; cursor: pointer; }
.fn-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fn-option span { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .9rem; background: var(--bg-panel, #fff); transition: background .15s, border-color .15s; }
.fn-option:hover span { border-color: var(--red); }
.fn-option input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.fn-option input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.fn-option.is-off { cursor: not-allowed; }
.fn-option.is-off > span { background: var(--bg-alt); border-style: dashed; color: var(--muted); }
.fn-option small { font-size: .78rem; color: var(--muted); margin-left: .2rem; }
.fn-option input:checked + span small { color: rgba(255, 255, 255, .85); }
.fn-option > span { display: inline-block; max-width: 100%; line-height: 1.35; }
.fa-edit { display: inline; }
.fa-edit > summary { display: inline; cursor: pointer; list-style: none; color: var(--red); font-size: .9rem; }
.fa-edit > summary::-webkit-details-marker { display: none; }
.fa-edit[open] > summary { font-weight: 600; }
.fa-edit-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .5rem .8rem; margin: .5rem 0 .9rem; padding: .7rem .8rem; background: var(--bg-alt); border-radius: 6px; }
.fa-edit-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.fa-edit-actions { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; }
.fa-edit-form .help { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) { .fa-edit-form { grid-template-columns: 1fr; } }
/* Chronik als Präsentation (Beamer): große Schrift, ohne Menü, Bedienleiste blendet sich aus */
html.present-root { font-size: clamp(17px, 1.15vw, 28px); }
body.present { background: #fff; font-size: 1rem; }
.present-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .6rem 2vw; background: rgba(255, 255, 255, .96); border-bottom: 3px solid var(--red); transition: opacity .4s, transform .4s; }
.present-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.05em; }
.present-brand strong { color: var(--red); margin-right: .3rem; }
.present-tabs { display: flex; gap: .3rem; }
.present-tabs a { padding: .35rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9em; border: 1px solid var(--line); }
.present-tabs a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.present-tools { margin-left: auto; display: flex; gap: .5rem; }
.present-tools .btn { font-size: .8em; }
.present-main { padding: 1.5rem 2.5vw 4rem; }
.present-hint { position: fixed; bottom: .6rem; left: 50%; transform: translateX(-50%); margin: 0; font-size: .6em; color: var(--muted); background: rgba(255, 255, 255, .9); padding: .3rem .8rem; border-radius: 999px; transition: opacity .4s; }
body.present.is-idle { cursor: none; }
body.present.is-idle .present-bar { opacity: 0; transform: translateY(-100%); pointer-events: none; }
body.present.is-idle .present-hint { opacity: 0; }
.present .timeline-wrap { overflow: visible; }
.present .timeline { min-width: 0; }
.present .tl-axis, .present .tl-row { grid-template-columns: minmax(12rem, 18vw) 1fr; }
.present .tl-label { font-size: .8em; }
.present .tl-tick { font-size: .6em; }
.present .tl-lane, .present .tl-bar { height: 2.2em; }
.present .tl-bar { font-size: .62em; }
.present .tl-bar img, .present .tl-initials { width: 1.7em; height: 1.7em; flex-basis: 1.7em; }
.present .orgchart, .present .people-grid { font-size: 1em; }
.present .people-grid { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); }
.present .month-title { font-size: 1.6em; }
a.tl-bar { color: var(--ink); text-decoration: none; cursor: pointer; }
a.tl-bar:hover { background: #e9bcc2; }
.edit-link { font-size: .8rem; color: var(--red); margin-left: .3rem; }
.org-card .edit-link { margin: .2rem 0 0; }
/* Geburtstage und Ehrungen */
.anniv-list { list-style: none; margin: 0; padding: 0; }
.anniv-list li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .8rem; align-items: center; padding: .55rem .4rem; border-bottom: 1px solid var(--line); }
.anniv-date { display: flex; flex-direction: column; line-height: 1.2; }
.anniv-date span { font-size: .8rem; color: var(--muted); }
.anniv-who { display: flex; flex-direction: column; }
.anniv-who a { color: var(--ink); font-weight: 600; }
.anniv-age { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.anniv-list li.is-rund { background: var(--red-soft); border-left: 4px solid var(--red); }
.anniv-list li.is-halbrund { background: #fdf6f7; border-left: 4px solid #e8a0a8; }
.anniv-list li.is-today .anniv-date strong { color: var(--red); }
.anniv-tag { background: var(--red); color: #fff; border-color: var(--red); }
.anniv-tag-half { border-color: #e8a0a8; color: #8c0f1c; }
.anniv-list li.is-due { border-left: 4px solid #d6a300; }
.anniv-list li.is-done { opacity: .75; }
.level-tabs a .src-state { flex-basis: 100%; display: flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 400; color: var(--muted); margin-top: .2rem; }
.src-state svg { width: 1rem; height: 1rem; flex: 0 0 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.src-ok svg { color: #1f7a3a; }
.src-fehler { color: var(--red) !important; }
.src-veraltet { color: #9a6b00 !important; }
/* Posting-Automatik */
.ap-modes { border: 1px solid var(--line); display: grid; gap: .5rem; }
.ap-modes legend { font-weight: 700; padding: 0 .3rem; }
.ap-mode { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.ap-mode:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.ap-mode span { display: flex; flex-direction: column; gap: .15rem; }
.ap-mode small { color: var(--muted); }
.ap-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.ap-day { display: flex; flex-direction: column; gap: .35rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 6px; }
.ap-count { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.ap-count .input { width: auto; }
.ap-times { display: flex; flex-direction: column; gap: .3rem; }
.ap-inline { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ap-inline .input { width: 5rem; }
.ap-list li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
/* Beschlüsse */
.decisions td { vertical-align: top; }
.decision-text { margin-top: .3rem; }
.outcome-beschlossen { background: #e3f3e8; border-color: #9fd3b0; color: #14502a; }
.outcome-abgelehnt { background: var(--red-soft); color: #8c0f1c; }
.outcome-vertagt { background: #fff4e0; color: #7a5200; }
.agenda-tpl { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin: .8rem 0; padding: .6rem .7rem; background: var(--bg-alt); border-radius: 6px; }
.agenda-tpl .input { width: auto; }
/* Schreiben: Vorschau neben dem Formular */
.letter-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.letter-preview { position: sticky; top: 1rem; }
.letter-preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.letter-frame { overflow: hidden; border: 1px solid var(--line); background: #e9e9e6; }
.letter-frame iframe { width: 820px; height: 1150px; border: 0; transform-origin: 0 0; display: block; }
@media (max-width: 1100px) { .letter-layout { grid-template-columns: 1fr; } .letter-preview { position: static; } }
.tpl-pick { flex: 1 1 100%; }
.tpl-preview { margin: .5rem 0 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; color: var(--muted); }
@media (max-width: 700px) { .tpl-preview { columns: 1; } }
.cal-entry.slot { border-left: 3px dashed #d9b3b8; background: transparent; color: var(--muted); font-size: .9em; }
.cal-entry.slot:hover { background: var(--red-soft); }
.dot.slot { background: transparent; border: 1px dashed #d9b3b8; box-sizing: border-box; }
.auto-badge-cal { display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem; border-radius: 3px; background: var(--ink); color: #fff; font-size: .65rem; font-weight: 700; vertical-align: .05rem; }
.cal-entry.is-auto { background: #fbeef0; }
/* Beitrag im Redaktionsplan anklicken */
.post-dialog { width: min(520px, calc(100% - 2rem)); border: 0; border-radius: 10px; padding: 1.2rem 1.4rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.post-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.pd-close { position: absolute; top: .4rem; right: .7rem; }
.pd-close button { font-size: 1.6rem; line-height: 1; color: var(--muted); }
.pd-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: 50% 15%; border-radius: 6px; }
.pd-meta { display: flex; align-items: center; gap: .4rem; margin: .6rem 0 .2rem; }
.post-dialog h2 { margin: .2rem 0 .3rem; font-size: 1.2rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.pd-actions form { margin: 0; }
.pd-actions form[hidden] { display: none; }
/* Nutzung des Portals */
.usage-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.4rem; }
.usage-summary .panel { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.usage-summary strong { font-size: 1.7rem; line-height: 1.2; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.usage-card { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.usage-card.is-never { opacity: .75; border-style: dashed; }
.usage-head { display: flex; gap: .7rem; align-items: center; }
.usage-head > div { display: flex; flex-direction: column; min-width: 0; }
.usage-name { font-weight: 700; color: var(--ink); }
.usage-last { margin: 0; font-size: .9rem; }
.usage-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; margin: 0; text-align: center; }
.usage-stats div { background: var(--bg-alt); border-radius: 6px; padding: .35rem .2rem; }
.usage-stats dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.usage-stats dd { margin: 0; font-weight: 700; font-size: .95rem; }
.usage-bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; border-bottom: 1px solid var(--line); }
.usage-bars span { flex: 1; background: var(--red); min-height: 1px; border-radius: 1px 1px 0 0; opacity: .85; }
.usage-tags { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: 0; }
.usage-events summary { cursor: pointer; color: var(--red); }
.usage-events li { padding: .15rem 0; }
.usage-ev { display: inline-block; min-width: 6.5rem; font-weight: 600; }
.usage-ev-logout { color: var(--muted); }
@media (max-width: 700px) { .usage-summary { grid-template-columns: 1fr; } }
/* Verknüpfte Konten */
.account-choice { display: grid; gap: .8rem; margin-top: 1rem; }
.account-card { display: flex; gap: 1rem; align-items: center; text-align: left; width: 100%; padding: 1rem 1.2rem; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-panel, #fff); cursor: pointer; font: inherit; color: var(--ink); }
.account-card:hover, .account-card:focus-visible { border-color: var(--red); background: var(--red-soft); }
.account-text { display: flex; flex-direction: column; gap: .1rem; }
.account-text strong { font-size: 1.1rem; }
.switch-account { margin: -.3rem 0 .6rem; }
.linked-box { margin: 1rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; }
.linked-box > summary { cursor: pointer; }
.linked-box fieldset { border: 0; padding: 0; margin: .5rem 0; }
/* Admins verwalten */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.admin-card { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.admin-card.is-admin { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.admin-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.admin-fns { margin: 0; min-height: 1.2em; }
.admin-action { margin-top: auto; }
.twofa-row { display: flex; flex-direction: column; gap: .2rem; padding: .45rem .55rem; background: var(--bg-alt); border-radius: 6px; }
.twofa-actions { display: flex; gap: .8rem; }
.ok-text { color: #1f7a3a; }
.warn-text { color: #9a6b00; }
/* Reiter: Verwaltung und Einstellungen */
.section-tabs, .tabs { display: flex; flex-wrap: wrap; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.section-tabs a, .tabs a { padding: .5rem .8rem; font-weight: 600; font-size: .92rem; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.section-tabs a:hover, .tabs a:hover { color: var(--ink); }
.section-tabs a.current, .tabs a.current { color: #ce1727; border-bottom-color: #ce1727; }
.section-tabs { gap: 0; }
.section-tabs a { padding: .45rem .55rem; font-size: .86rem; }
.settings-tabs { background: var(--bg-alt); border-radius: 8px 8px 0 0; padding: 0 .3rem; }
.settings-tabbed .pane-title { display: none; }
.settings-pane + .settings-pane { margin-top: 1.5rem; }
.settings-tabbed .settings-pane + .settings-pane { margin-top: 0; }
@media (max-width: 820px) {
  .section-tabs, .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-tabs::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
}
/* Zugang im Portal: Freigaben und Menü-Vorschau */
.access-form .check { align-items: flex-start; }
.grant-groups { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: .6rem 0; }
.grant-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: .8rem; }
.grant-groups.is-off { opacity: .45; pointer-events: none; }
.grant-group { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem .5rem; margin: 0; }
.grant-group legend { font-weight: 600; font-size: .85rem; padding: 0 .3rem; }
.grant-group .check { font-size: .88rem; margin: .15rem 0; }
.grant-group .is-implied { color: var(--ink-soft); }
.menu-preview-box { margin-top: 1rem; }
.menu-preview { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; background: #fff; max-width: 280px; font-size: .9rem; }
.menu-preview-head { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.menu-preview span, .menu-preview .mp-item { display: block; padding: .18rem 0 .18rem .6rem; color: var(--ink); }
.menu-preview .mp-item { padding-left: 0; font-weight: 600; }
.mp-group { margin: .35rem 0; }
.mp-title { margin: .3rem 0 .1rem; font-weight: 700; }
.mp-title small { font-weight: 400; color: var(--ink-soft); }
.mp-private { background: var(--bg-alt); border-left: 3px solid #777; padding: .3rem .5rem; border-radius: 4px; }
.mp-label { margin: .5rem 0 .1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.mp-more { color: var(--ink-soft); }
.mp-state { color: #9a6b00; }
.access-details { border: 1px solid var(--line); border-radius: 6px; padding: .35rem .55rem; margin: .4rem 0; }
.access-details > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; }
.access-details > summary::-webkit-details-marker { display: none; }
.access-details .access-open { margin-left: auto; color: #ce1727; font-weight: 600; }
.access-details[open] .access-open { color: var(--ink-soft); }
.access-details .access-block { margin-top: .6rem; }
.access-details .grant-group { grid-template-columns: 1fr; }
.access-state { margin: .4rem 0; }
/* geöffnete Zugangs-Karte: ganze Breite, Freigaben links, Vorschau rechts */
.admin-card:has(.access-details:not(.notify-details)[open]) { grid-column: 1 / -1; }
.access-details[open] .access-block { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.2rem; align-items: start; }
.access-details[open] .grant-groups { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.access-details[open] .menu-preview-box { margin-top: 0; }
@media (max-width: 820px) { .access-details[open] .access-block { grid-template-columns: 1fr; } }
.usage-head .avatar-md { margin: 0; }
.admin-card:has(.access-details[open]) .twofa-row { max-width: 32rem; }
.gr-hint { margin: 0 0 1.5rem; padding: .7rem 1rem; background: var(--bg-alt); border-left: 4px solid var(--red); }
/* Status Gemeinderats-Abgleich (Einstellungen) */
.gr-status { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .6rem; padding: .5rem .75rem; background: var(--bg-alt); border-left: 4px solid #1f7a3a; font-size: .88rem; color: var(--ink-soft); max-width: 52rem; }
.gr-status.src-fehler { border-left-color: var(--red); background: var(--red-soft); }
.gr-status.src-veraltet, .gr-status.src-unbekannt { border-left-color: #9a6b00; }
.gr-status svg { width: 1.1rem; height: 1.1rem; flex: 0 0 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gr-status.src-ok svg { color: #1f7a3a; }
.gr-status-note { font-size: .78rem; color: var(--muted); }
.ap-topics .check { align-items: flex-start; }
.ap-topics small { display: block; color: var(--muted); }
.ap-levels { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; margin: .6rem 0 .2rem; }
.ap-system td { vertical-align: top; }
.ap-sources { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .5rem 0 0; }
.ap-sources .src-state { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
.form-inline-upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.form-inline-upload .input { flex: 1 1 18rem; }
.notify-form { display: grid; gap: .3rem; margin-top: .5rem; }
.notify-form .btn { justify-self: start; }
/* Werbematerial */
.material-section { margin-bottom: 3rem; }
.material-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.25rem; }
.material-head h2 { margin: 0; }
.material-head .filter { margin-bottom: 0; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.material-grid-logos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.material-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.material-card h3 { font-size: 1.05rem; margin: .4rem 0 0; }
.material-preview { width: 100%; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: calc(var(--radius) / 2); }
.qr-preview svg { width: 150px; height: 150px; display: block; }
.logo-preview { height: 130px; padding: 1rem; background: #fff; border: 1px solid var(--line); }
.logo-preview img { max-width: 100%; max-height: 100%; }
.material-url { margin: 0; overflow-wrap: anywhere; }
.material-files { display: flex; gap: .9rem; margin: .2rem 0 .5rem; font-weight: 600; font-size: .9rem; }
.material-note { border-left: 3px solid var(--red); background: var(--bg-alt); padding: .9rem 1.2rem; }
.material-note-title { font-weight: 700; margin: 0 0 .3rem; }
.material-note ul { margin: 0; padding-left: 1.1rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.swatch { display: flex; gap: .8rem; align-items: center; }
.swatch-color { width: 56px; height: 56px; border-radius: var(--radius); flex: none; }
.swatch-white { background: #fff; border: 1px solid var(--line); }
.material-blurb { width: 100%; max-width: 560px; font-family: inherit; resize: vertical; display: block; margin-bottom: .75rem; }
/* Neuigkeiten abonnieren */
.abo-hint-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 2.5rem 0 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); background: var(--bg-panel); }
.abo-hint-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 .2rem; }
.abo-hint-text { margin: 0; color: var(--muted); }
.abo-hint-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.abo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.abo-card { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--bg-panel); }
.abo-card h2 { margin-top: 0; }
.abo-choice { border: 0; padding: 0; margin: 1rem 0; }
.abo-choice legend { font-weight: 700; margin-bottom: .35rem; padding: 0; }
.abo-choice label { display: flex; gap: .5rem; align-items: center; margin: .25rem 0; font-weight: 400; }
.abo-form .input { width: 100%; max-width: 420px; }
.abo-hint { margin-top: 1rem; }
.abo-state:empty { display: none; }
.abo-sent { background: var(--bg-alt); border-left: 3px solid var(--red); padding: .9rem 1.1rem; }
.abo-links { padding-left: 1.1rem; }
.abo-manage { max-width: 560px; }
.btn[hidden] { display: none; }
