/* 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; }
.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; }
  .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-lead img { width: 50%; 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 img { width: 100%; aspect-ratio: 16/9; } }
.filter { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .95rem; }
.filter a[aria-current="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.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); }
.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; }
.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(230px, 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); }
