*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #16161d;
  --ink-soft: #3a3a46;
  --muted:    #6b6b78;
  --bg:       #faf8f3;
  --paper:    #ffffff;
  --accent:   #ffcc00;
  --accent-2: #ff5a36;
  --blue:     #2f5bea;
  --line:     #e5e1d8;
  --radius:   14px;
  --font:     system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:     ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* theme hooks (assets/css/themes.css overrides them per html[data-theme]); defaults = the IfsMB look */
  --heading-font: var(--font);
  --shadow-color: var(--ink);
  --header-bg:    var(--paper);
  --header-ink:   var(--ink);
  --header-line:  3px solid var(--ink);
  --nav-radius:   8px;
  --btn-radius:   10px;
  --footer-bg:    var(--ink);
  --footer-ink:   #d8d6cf;
  --footer-strong: #fff;
  --footer-link:  var(--accent);
  --footer-link-hover: #fff;
  --footer-note:  #8f8d86;
  --footer-note-link: #cfcdc6;
}

h1, h2, h3 { font-family: var(--heading-font); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--blue); }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

.site-header {
  background: var(--header-bg);
  border-bottom: var(--header-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--header-ink); }
.brand:hover { color: var(--header-ink); }

.brand-mark {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: .25rem .5rem;
  box-shadow: 3px 3px 0 var(--shadow-color);
  transform: rotate(-3deg);
}

.brand-name { font-weight: 700; font-size: .85rem; line-height: 1.2; }

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }

.site-nav a {
  text-decoration: none;
  color: var(--header-ink);
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: var(--nav-radius);
}

.site-nav a:hover, .site-nav a.active { background: var(--accent); color: var(--ink); }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .nav-burger {
    display: block;
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: '';
    position: absolute;
    left: 6px;
    width: 24px;
    height: 3px;
    background: var(--header-ink);
    border-radius: 2px;
  }
  .nav-burger span { top: 16px; }
  .nav-burger span::before { top: -8px; left: 0; }
  .nav-burger span::after { top: 8px; left: 0; }
  .site-nav { display: none; width: 100%; flex-direction: column; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(22,22,29,.12) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg);
  border-bottom: 3px solid var(--ink);
}

.kicker {
  font-family: var(--mono);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.hl {
  background: linear-gradient(transparent 55%, var(--accent) 55%);
  padding: 0 .1em;
}

/* Wechselnder Slogan (assets/js/slogan.js) */
.slogan-word { white-space: nowrap; }
.slogan-char { white-space: pre; }
/* Highlight per character while scrambling; no padding so the text does not shift afterwards */
.slogan .hl { padding: 0; }
.slogan-char.hl-char { background: linear-gradient(transparent 55%, var(--accent) 55%); }
.slogan .slogan-char.scrambling { font-family: var(--mono); font-weight: 700; color: var(--accent-2); }

/* Slogan editor (_includes/slogan-editor.html) */
.slogan-editor { margin: 2rem 0; }
.slogan-editor h3 { margin-top: 0; }
.slogan-editor-werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1rem; }
.slogan-editor-vorschau { padding: 1.25rem 1rem; border: 2px solid var(--ink); border-radius: 8px; }
.slogan-editor-vorschau .kicker { margin-bottom: .4rem; }
.slogan-preview { font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.slogan-editor-hinweis { margin-top: .6rem; }
.slogan-editor-aktionen { margin-top: 1rem; }
.slogan-editor-fallback { white-space: pre-wrap; font-size: .8rem; max-height: 14rem; overflow: auto; }
.slogan-editor-liste mark.hl { color: inherit; }

.hero-text { max-width: 640px; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2rem; }

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: var(--btn-radius);
  padding: .7rem 1.2rem;
  box-shadow: 4px 4px 0 var(--shadow-color);
  transition: transform .1s, box-shadow .1s;
}

.btn:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow-color); }
.btn-ghost { background: var(--paper); }
.btn-small { padding: .4rem .8rem; font-size: .85rem; box-shadow: 3px 3px 0 var(--shadow-color); }
.btn-small:hover { box-shadow: 1px 1px 0 var(--shadow-color); }

.edit-page { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 3rem auto 2rem; }
/* edit button shows the source path; the "➕" buttons (_includes/neu-buttons.html) follow in the same row */
.edit-page code { font-family: var(--mono); font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }

.section { padding: 3rem 1.25rem 0; }
.section:last-of-type { padding-bottom: 4rem; }
.section h2, .page h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.25rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head a, .section-foot a { font-weight: 600; }
.section-foot { margin-top: 2rem; }

.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); }
.card-icon { font-size: 2rem; margin-bottom: .5rem; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .1s, box-shadow .1s;
}

.card-link:hover { color: inherit; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-color); }
/* card with a stretched title link, so inner links (activity icons) stay clickable */
.card-stretch { position: relative; }
.card-stretch .card-main-link { color: inherit; text-decoration: none; }
.card-stretch .card-main-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-stretch:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
/* activity icons with counts on project cards */
.activity { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.activity-item { display: inline-flex; align-items: flex-start; gap: .05rem; text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: .15rem .55rem .1rem; background: var(--bg); font-size: 1rem; line-height: 1.2; }
.activity-item sup { font-family: var(--mono); font-weight: 700; font-size: .7rem; margin-left: .1rem; top: -.4em; }
.activity-item:hover { background: var(--accent); color: var(--ink); }
.activity-hot { background: #fff3b0; border-color: #c9a400; }

.page { padding-top: 2.5rem; padding-bottom: 4rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: .5rem; }

.meta, .muted { color: var(--muted); font-size: .9rem; }
.meta { font-family: var(--mono); }
.small { font-size: .85rem; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .5rem;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
}

.badge-active { background: var(--accent); color: var(--ink); }
.badge-past { background: var(--line); color: var(--ink-soft); }

.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.25rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); border: 2px solid var(--ink); }
.prose code { font-family: var(--mono); background: var(--line); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose blockquote { border-left: 4px solid var(--accent); padding-left: 1rem; color: var(--ink-soft); }

.todo { background: #ffe8e1; color: #a12a0c; padding: 0 .3em; border-radius: 4px; font-family: var(--mono); font-size: .9em; }

/* Tote Links: Markierung im Text, Erklärung unten auf der Seite (_layouts/default.html) */
a.link-tot::after { content: "🪦"; content: "🪦" / "(Link tot)"; text-decoration: none; display: inline-block; margin-left: .2em; }
.link-tot-hinweis { color: var(--muted); font-size: .9em; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .8rem; }
.link-tot-hinweis p { margin: 0 0 .4rem; }
.link-tot-hinweis ul { margin: 0; padding-left: 1.2rem; }
.link-tot-hinweis code { font-size: .9em; overflow-wrap: anywhere; }

.back-link { display: inline-block; margin-top: 2.5rem; font-weight: 600; }

.post-list { list-style: none; }
.post-list li { padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.post-list li:first-child { border-top: 1px dashed var(--line); }
.post-list .meta { margin-right: .75rem; }
.post-list a { font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.post-list a:hover { color: var(--accent-2); }
.post-list-full p { color: var(--ink-soft); margin-top: .3rem; }

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
  display: block;
}

.avatar-lg { width: 160px; height: 160px; margin-bottom: 0; flex: 0 0 auto; }

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 2.2rem;
}

.avatar-lg.avatar-initials { font-size: 3rem; }

.member-card { text-align: center; }
.member-card .avatar { margin-left: auto; margin-right: auto; }

.member-head { display: flex; gap: 1.75rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.member-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.15; }

.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.link-list a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .2rem .8rem;
  background: var(--paper);
}
.link-list a:hover { background: var(--accent); }
.link-list-plain { display: inline-block; font-weight: 600; border: 1.5px dashed var(--muted); border-radius: 999px; padding: .2rem .8rem; color: var(--ink-soft); }
/* parent projects of a sub-project: bigger, filled buttons */
.link-list-parents a { background: var(--accent); border-width: 2px; padding: .45rem 1.1rem; font-size: 1.05rem; box-shadow: 3px 3px 0 var(--shadow-color); }
.link-list-parents a:hover { background: var(--paper); }
/* connections block (_includes/verbindungen.html): same buttons for every kind of link */
.connections { margin-top: 2rem; }
.connections h2 { margin-top: 1.6rem; }
.link-list-connections a { border-width: 2px; padding: .35rem .95rem; box-shadow: 3px 3px 0 var(--shadow-color); }
.link-meta { font-family: var(--mono); font-weight: 400; font-size: .8em; color: var(--muted); }
.link-private { font-weight: 400; font-size: .75em; border: 1px dashed #9b6bd1; color: #6b3fa0; border-radius: 999px; padding: 0 .4rem; }

.project-image { width: 100%; border-radius: var(--radius); border: 2px solid var(--ink); margin-bottom: 1.5rem; }

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}

.logo-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow-color); }
.logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-tile-dark { background: var(--ink); }

.logo-text {
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
}

.partner-list { display: grid; gap: 1.25rem; }
.partner-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.partner-card .logo-tile { height: 130px; }
.partner-card h3 a { color: var(--ink); text-decoration: none; }
.partner-card h3 a:hover { color: var(--accent-2); }

@media (max-width: 560px) {
  .partner-card { grid-template-columns: 1fr; }
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 2.5rem 0;
  font-size: .9rem;
}

.footer-inner > * + * { margin-top: .75rem; }
.site-footer strong { color: var(--footer-strong); }
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--footer-link-hover); }
.footer-note { color: var(--footer-note); font-size: .8rem; }

/* calendar button + dialog (_includes/kalender-abo.html) */
.termin-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.cal-subscribe { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 .75rem; }
.cal-heading { margin-top: 2.5rem; }
.cal-heading-abo { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 2.5rem 0 1.25rem; }
.cal-heading-abo h2 { margin: 0; }
.abo-open { white-space: nowrap; }
/* subscribe dialog on /calendar/ (native <dialog>) */
.abo-dialog {
  margin: auto;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 1.5rem 1.5rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--shadow-color);
  background: var(--bg);
  color: var(--ink);
}
.abo-dialog::backdrop { background: rgba(10, 10, 14, .55); }
.abo-dialog h2 { margin: 0 2rem .75rem 0; font-size: clamp(1.25rem, 4vw, 1.5rem); }
.abo-dialog code { overflow-wrap: anywhere; }
.abo-dialog .cal-subscribe { margin: 1.25rem 0 0; }
.abo-close-form { position: absolute; top: .6rem; right: .6rem; margin: 0; }
.abo-close { font: inherit; font-size: 1.6rem; line-height: 1; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.abo-close:hover { background: var(--accent); }
.abo-was { font-weight: 700; }
.abo-was .meta { font-weight: 400; }
.abo-dialog .cal-subscribe + .small { margin-top: 1rem; }
/* feed dialog (_includes/feed-abo.html) */
.feed-url { display: flex; gap: .5rem; margin: 1rem 0 0; }
.feed-url input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: .45rem .6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.feed-abo-zeile { margin: 0 0 1.5rem; }
.member-head .feed-abo-zeile { margin: 1rem 0 0; }

.event-list { list-style: none; display: grid; gap: 1rem; }
.event-list-past .event-card { opacity: .65; }
.event-card { display: flex; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; }
.event-date {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: .4rem 0;
  line-height: 1.1;
}
.event-day { display: block; font-size: 1.8rem; font-weight: 900; }
.event-day-month { font-size: 1.35rem; padding: .2rem 0; }
.event-month { display: block; font-family: var(--mono); font-size: .75rem; }
.event-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.event-title { font-size: 1.1rem; }
.team-faces { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.event-card .team-faces { flex: none; align-self: flex-start; margin-left: auto; max-width: 5.5rem; }
.team-face {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--line); box-shadow: 0 0 0 1px var(--line);
}
.team-face-initials {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--ink-soft);
}
.event-location { font-weight: 600; margin-bottom: 1.5rem; }

.original-note {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; border: 2px solid var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-single { grid-template-columns: 1fr; }
/* small thumbnails inside a list (e.g. ideas page) */
.gallery-small { grid-template-columns: repeat(auto-fill, 110px); margin: .5rem 0 .8rem; }
.gallery-single a { aspect-ratio: auto; }
.gallery-single img { height: auto; }
.prose .gallery img { border: 0; border-radius: 0; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 14, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox-overlay img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox-overlay figcaption { color: #d8d6cf; font-family: var(--mono); font-size: .85rem; margin-top: .5rem; }
.lb-btn {
  position: absolute;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.post-video { width: 100%; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); display: block; }

.video-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); }
.video-link img { width: 100%; display: block; border: 0; border-radius: 0; }
.prose .video-link img { border: 0; border-radius: 0; }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: .6rem 1rem;
  box-shadow: 4px 4px 0 var(--shadow-color);
  white-space: nowrap;
}

.press-section { margin-bottom: 2.5rem; }
.press-boilerplate { font-size: 1.1rem; max-width: 720px; margin-bottom: 1rem; }
.fact-list { list-style: none; display: grid; gap: .3rem; }
.press-contact { max-width: 480px; }
.press-contact h3 { margin-bottom: .5rem; }
.press-asset { display: flex; flex-direction: column; gap: .4rem; }
.press-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: .5rem;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
}
.press-preview img { max-height: 100%; max-width: 100%; object-fit: contain; }
.press-download { font-weight: 700; color: var(--blue); }
.divider { border: 0; border-top: 2px dashed var(--line); margin: 2.5rem 0 1.5rem; }

@media (max-width: 560px) {
  .event-card { gap: .9rem; padding: .9rem; }
  .event-date { width: 62px; }
  .event-day { font-size: 1.4rem; }
}

.more-link { font-weight: 700; }
.partner-page-logo img { max-width: 320px; width: 100%; border: 0; border-radius: 0; }
.prose .partner-page-logo img { border: 0; border-radius: 0; }
.partner-page-logo-dark { display: inline-block; background: var(--ink); padding: 1rem 1.5rem; border-radius: var(--radius); }
.event-gallery { margin-top: 2rem; }
.album-link { margin: 1.25rem 0; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag-list a { display: inline-block; font-family: var(--mono); font-size: .8rem; text-decoration: none; color: var(--ink); background: var(--line); border-radius: 999px; padding: .15rem .65rem; }
.tag-list a:hover { background: var(--accent); }
.tag-index { margin-bottom: 2rem; }
.tag-section { margin-bottom: 2rem; scroll-margin-top: 90px; }
.tag-section h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.tag-items { list-style: none; display: grid; gap: .35rem; }
.tag-items .badge { margin-right: .4rem; }

.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--line); }
.related h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem 1.5rem; }
.related-group h3 { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .4rem; }
.related-group ul { list-style: none; display: grid; gap: .3rem; }
.related-group a { font-weight: 600; }

.equipment-card { display: flex; flex-direction: column; gap: .3rem; }
.equipment-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; margin-bottom: .5rem; }
.equipment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.equipment-body { margin-top: 1.5rem; }
.note { margin-top: 1.5rem; padding: .8rem 1rem; background: var(--paper); border-left: 4px solid var(--accent); color: var(--ink-soft); }
.intro { margin-bottom: 2rem; max-width: 720px; }
.equipment-hero a { background: var(--paper); }
.equipment-hero img { max-height: 560px; width: auto; max-width: 100%; margin: 0 auto; display: block; }
.badge-inquiry { background: #dbe6ff; color: var(--ink); }

.badge-donate {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 90;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.25;
  text-decoration: none;
  isolation: isolate;
  transition: transform .15s;
  filter: drop-shadow(3px 3px 0 var(--shadow-color)) drop-shadow(0 4px 14px rgba(0,0,0,.25));
}
.badge-donate:hover { color: var(--ink); transform: scale(1.08); }
.badge-donate::before {
  content: '';
  position: absolute;
  inset: -16px;
  clip-path: polygon(
    39.6% 11.4%, 50% 0%, 60.4% 11.4%, 75% 6.7%, 78.3% 21.7%, 93.3% 25%,
    88.6% 39.6%, 100% 50%, 88.6% 60.4%, 93.3% 75%, 78.3% 78.3%, 75% 93.3%,
    60.4% 88.6%, 50% 100%, 39.6% 88.6%, 25% 93.3%, 21.7% 78.3%, 6.7% 75%,
    11.4% 60.4%, 0% 50%, 11.4% 39.6%, 6.7% 25%, 21.7% 21.7%, 25% 6.7%
  );
  animation: donate-spin 12s linear infinite, donate-colors 6s ease-in-out infinite;
  z-index: -1;
}
.badge-donate-text { position: relative; z-index: 1; }
.badge-donate-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  font-size: 24px;
  line-height: 30px;
  text-align: center;
  pointer-events: none;
  animation: donate-orbit 12s linear infinite;
  /* 6 Emoji gleichmäßig verteilt: --i = 0…5 */
  animation-delay: calc(var(--i, 0) * -2s);
}
@keyframes donate-orbit {
  from { transform: rotate(0deg) translateY(-70px) rotate(0deg); }
  to   { transform: rotate(360deg) translateY(-70px) rotate(-360deg); }
}
@keyframes donate-spin { to { transform: rotate(360deg); } }
@keyframes donate-colors {
  0%, 100% { background: var(--accent); }
  33%      { background: #ff9a3c; }
  66%      { background: #8fb3ff; }
}
@media (max-width: 560px) {
  .badge-donate { width: 80px; height: 80px; bottom: 1.9rem; right: 1.9rem; font-size: .75rem; }
  .badge-donate::before { inset: -12px; }
  .badge-donate-icon { font-size: 19px; }
  @keyframes donate-orbit {
    from { transform: rotate(0deg) translateY(-55px) rotate(0deg); }
    to   { transform: rotate(360deg) translateY(-55px) rotate(-360deg); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge-donate::before, .badge-donate-icon { animation: none; }
  .badge-donate::before { background: var(--accent); }
  .badge-donate-icon { display: none; }
}
@media print { .badge-donate { display: none; } }
.site-footer { padding-bottom: 7rem; }
.donate-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.donate ul { list-style: none; padding-left: 0; }
.donate li { font-size: 1.1rem; margin: .3rem 0; }
.equipment-location { margin-top: .6rem; font-weight: 600; }
.equipment-video { margin: 0 0 1.5rem; }
.equipment-video figcaption { margin-top: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 700; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,.55); }
.prose h2 + h3, .prose h3 { margin-top: 1.75rem; }
.badge-idea { background: #e3f6d8; color: var(--ink); }
.wip-box { background: #ffe8e1; border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.wip-box p { margin-top: .4rem; }
.transparency-box { background: #fff4c2; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.offer-grid { margin-bottom: 1.5rem; }
.offer-grid .small a { font-weight: 600; }
.site-footer .footer-note a { color: var(--footer-note-link); }
@media (max-width: 1080px) and (min-width: 721px) { .site-nav a, .nav-group-toggle { padding: .4rem .5rem; font-size: .92rem; } .brand-name { display: none; } }
.offer-contact { margin-bottom: 2.5rem; font-weight: 600; }
.equipment-jump { margin: .5rem 0 0; font-weight: 600; }
/* separators only between visible jump links (equipment-filter.js hides empty groups) */
.equipment-jump a[hidden] { display: none; }
.equipment-jump a:not([hidden]) ~ a:not([hidden])::before { content: "·"; display: inline-block; margin: 0 .4em 0 0; text-decoration: none; color: var(--ink); font-weight: 400; }
.equipment-filter { margin: .75rem 0 0; font-size: .95rem; }
.equipment-filter p { margin: .25rem 0; }
.equipment-filter-label { font-weight: 600; }
.equipment-filter a[aria-current] { font-weight: 700; text-decoration-thickness: 3px; }
.equipment-filter-status { padding: .4rem .6rem; border-left: 4px solid var(--ink); background: var(--paper); }
.equipment-thumb img[src$=".svg"] { object-fit: contain; background: #fff; }
.project-updates { margin-top: 2.5rem; }
.update-list { list-style: none; border-left: 3px solid var(--accent); padding-left: 1.2rem; display: grid; gap: 1.2rem; }
.update-item { position: relative; }
.update-item::before { content: ''; position: absolute; left: calc(-1.2rem - 8px); top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.update-date { display: block; font-weight: 700; margin-bottom: .2rem; }
.update-text p { margin: 0 0 .5rem; }
.project-updates { margin-bottom: 2.5rem; }
.update-post::before { background: var(--paper); }
.update-date a { font-weight: 700; }
.post-project { font-weight: 600; margin-bottom: 1.5rem; }

.nav-group { position: relative; }
.nav-group-toggle {
  font: inherit;
  font-weight: 600;
  color: var(--header-ink);
  background: none;
  border: 0;
  padding: .4rem .75rem;
  border-radius: var(--nav-radius);
  cursor: pointer;
}
.nav-group-toggle:hover, .nav-group-toggle.active, .nav-group:focus-within .nav-group-toggle { background: var(--accent); }
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 11rem;
  flex-direction: column;
  gap: .1rem;
  padding: .4rem;
  margin-top: .25rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--shadow-color);
}
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }
.nav-sub a { display: block; white-space: nowrap; }
@media (max-width: 720px) {
  .nav-group-toggle { display: block; width: 100%; text-align: left; cursor: default; }
  .nav-group-toggle span { display: none; }
  .nav-group-toggle:hover, .nav-group:focus-within .nav-group-toggle { background: none; }
  .nav-sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; margin: 0; background: none; }
}
.badge-personal { background: #f3e1ff; color: var(--ink); }
#teilprojekte { margin-top: 2.5rem; }
.event-byline { margin-top: .4rem; font-weight: 600; }
.subproject-of { margin-top: .4rem; font-weight: 600; }
.project-only-note { background: #fff8d6; border: 2px dashed #c9a400; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.5rem; }
.personal-note { background: #f7efff; border: 2px dashed #9b6bd1; border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.5rem; }
.member-profile > h2 { margin-top: 2.25rem; margin-bottom: .9rem; }
.ai-note { background: #eef3ff; border: 2px dashed var(--blue); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0 1.5rem; }
.ai-note p { margin: 0; }
.our-note { background: #fff4c2; border-left: 4px solid var(--accent); border-radius: 6px; padding: .6rem .9rem; margin: .8rem 0 1.2rem; }

/* Suche (Pagefind, /search/) – Inhalt bleibt Flex-Kind von body */
.search-body { display: contents; }
.search-ui {
  --pagefind-ui-scale: .9;
  --pagefind-ui-primary: var(--blue);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--paper);
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: var(--bg);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: var(--radius);
  --pagefind-ui-font: var(--font);
  margin-bottom: 3rem;
}
.search-ui .pagefind-ui__result-link { color: var(--blue); }
.search-ui .pagefind-ui__result-link:hover { color: var(--accent-2); }
.search-ui mark { background: var(--accent); color: var(--ink); }

/* network page (/network/, assets/js/netzwerk.js) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.netz-controls { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-bottom: .75rem; }
.netz-search input { font: inherit; padding: .4rem .8rem; border: 2px solid var(--ink); border-radius: 999px; min-width: 14rem; background: var(--paper); }
.netz-filter { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; padding: 0; margin: 0; min-inline-size: 0; min-width: 0; flex: 1 1 100%; }
.netz-chip, .netz-toggle { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; border: 1.5px solid var(--ink); border-radius: 999px; padding: .2rem .7rem; background: var(--paper); cursor: pointer; }
.netz-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: -1px; }
.netz-reset { padding: .3rem .9rem; }
/* federation: add a connected instance at runtime (assets/js/netzwerk.js) */
.netz-instanz { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.netz-instanz input { font: inherit; font-size: .9rem; padding: .3rem .7rem; border: 2px solid var(--ink); border-radius: 999px; min-width: 12rem; max-width: 100%; background: var(--paper); }
.search-federation { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-bottom: 1rem; }
.search-federation p { flex: 1 1 100%; margin: 0; }
.netz-stage { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; }
.netz-stage > * { min-width: 0; }
#netz-canvas { width: 100%; height: 72vh; min-height: 420px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); touch-action: none; cursor: grab; display: block; }
.netz-panel { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: 1rem; max-height: 72vh; overflow: auto; }
.netz-panel h2 { font-size: 1.25rem; margin: .3rem 0 .6rem; }
.netz-panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .2rem; }
.netz-panel .link-list { margin-top: .3rem; gap: .35rem; }
.netz-panel .link-list a { font-size: .9rem; padding: .2rem .7rem; box-shadow: 2px 2px 0 var(--shadow-color); }
@media (max-width: 860px) {
  .netz-stage { grid-template-columns: minmax(0, 1fr); }
  .netz-search, .netz-search input { width: 100%; min-width: 0; }
  #netz-canvas { height: 60vh; }
  .netz-panel { max-height: none; }
}
.netz-legend { flex: 1 1 100%; margin: 0; font-size: .85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.netz-line { display: inline-block; width: 1.8rem; height: 0; border-top: 2px solid var(--ink); vertical-align: middle; }
.netz-line-besitz { border-top: 3px solid #ff5a36; }
.netz-line-standort { border-top: 3px dashed #2f5bea; }
.netz-line-teil { border-top-width: 4px; }

/* timeline below the network graph (stacked bars per month) */
.netz-zeit { position: relative; margin-top: 2rem; }
.netz-zeit h2 { margin-bottom: .2rem; }
.netz-zeit-legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--ink-soft); margin: .5rem 0; }
.netz-zeit-key { display: inline-flex; align-items: center; gap: .35rem; }
.netz-zeit-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }
.netz-zeit-swatch-future { background: linear-gradient(90deg, #ffcc00 0 25%, #2bb673 25% 50%, #2f5bea 50% 75%, #13a3b5 75%); opacity: .45; }
.netz-zeit-frame { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); padding: .5rem 0 .25rem; overflow: hidden; }
.netz-zeit-achse { flex: none; display: block; }
.netz-zeit-achse text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.netz-zeit-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
#netz-zeit-svg { display: block; }
#netz-zeit-svg text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.tl-ytick { text-anchor: end; dominant-baseline: middle; }
#netz-zeit-svg .tl-xtick { text-anchor: middle; }
#netz-zeit-svg .tl-now { fill: var(--ink); font-weight: 700; }
#netz-zeit-svg .tl-year { fill: var(--ink-soft); font-weight: 700; }
#netz-zeit-svg .tl-today-label { fill: var(--ink); font-weight: 700; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-base { stroke: var(--ink); stroke-width: 1; }
.tl-today { stroke: var(--ink); stroke-width: 1; }
.tl-break { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.tl-seg.tl-future { fill-opacity: .45; }
.tl-seg.tl-dim { fill-opacity: .22; }
.tl-hit, .tl-hit-gap { fill: transparent; }
.tl-hit[tabindex] { cursor: pointer; }
.tl-hit[tabindex]:hover, .tl-hit:focus-visible { fill: rgba(22, 22, 29, .06); outline: none; }
.tl-hit.tl-active { fill: rgba(22, 22, 29, .1); stroke: var(--ink); stroke-width: 1.5; }
.netz-zeit-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: .4rem .6rem; font-size: .85rem; box-shadow: 3px 3px 0 var(--shadow-color); white-space: nowrap; }
.netz-zeit-tip p { margin: 0; }
.netz-zeit-tip-title { font-size: .8rem; color: var(--muted); margin-bottom: .15rem !important; }
.netz-zeit-tip-key { display: inline-block; width: .9rem; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: .4rem; }
.netz-zeit-tip-row strong { font-family: var(--mono); }
.netz-zeit-details { margin-top: .6rem; }
.netz-zeit-details summary { cursor: pointer; font-weight: 600; }
.netz-zeit-table { border-collapse: collapse; margin-top: .5rem; font-size: .9rem; }
.netz-zeit-table th, .netz-zeit-table td { padding: .2rem .7rem; border-bottom: 1px solid var(--line); text-align: right; }
.netz-zeit-table th:first-child { text-align: left; }
.netz-zeit-table td { font-family: var(--mono); }

/* Markdown task lists (- [ ] / - [x]), e.g. a project used as a task tracker */
.task-list { list-style: none; padding-left: 0; }
.task-list-item { position: relative; padding-left: 1.9rem; margin: .45rem 0; }
.task-list-item-checkbox { position: absolute; left: 0; top: .3rem; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ink); }

/* photo credit under a team member's name */
.photo-credit { font-size: .75rem; color: var(--muted); margin-top: .3rem; }

/* Map of the network (/map/), see assets/js/karte.js */
.karte-hinweis { margin: 0; font-size: .9rem; }
.karte-rahmen { position: relative; }
.karte-map { position: relative; width: 100%; height: 72vh; min-height: 420px; border: 2px solid var(--ink); border-radius: var(--radius); background: #e8e4da; overflow: hidden; outline-offset: 3px; }
.karte-map.is-geladen { touch-action: none; cursor: grab; }
.karte-map.is-ziehen { cursor: grabbing; }
.karte-kacheln, .karte-marker { position: absolute; inset: 0; }
.karte-marker { pointer-events: none; }
.karte-kacheln img { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; user-select: none; }
.karte-punkt { pointer-events: auto; position: absolute; top: 0; left: 0; margin: -15px 0 0 -15px; min-width: 30px; height: 30px; padding: 0 .35rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 .8rem/1 var(--font); cursor: pointer; box-shadow: 2px 2px 0 var(--shadow-color); }
.karte-punkt:hover, .karte-punkt:focus-visible { background: var(--accent-2); color: var(--paper); z-index: 2; }
.karte-punkt.is-aktiv { background: var(--blue); color: var(--paper); z-index: 3; }
.karte-punkt.is-leer { min-width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--paper); }
.karte-punkt.is-ungefaehr { border-style: dashed; }
.karte-zustimmung { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .6rem; max-width: 30rem; margin: 0 auto; padding: 1.5rem; text-align: center; }
.karte-zustimmung[hidden] { display: none; }
.karte-zoom { position: absolute; top: .75rem; left: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.karte-zoom[hidden] { display: none; }
.karte-zoom .btn { width: 2.4rem; height: 2.4rem; padding: 0; font-size: 1.2rem; box-shadow: 2px 2px 0 var(--shadow-color); }
.karte-attribution { position: absolute; right: 2px; bottom: 2px; margin: 0; padding: .1rem .5rem; font-size: .75rem; background: rgba(255, 255, 255, .85); border-radius: 0 0 calc(var(--radius) - 2px) 0; }
.karte-aus { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.karte-liste { list-style: none; display: grid; gap: .35rem; }
.karte-ort-knopf { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; font: inherit; font-size: .95rem; font-weight: 600; padding: .35rem .75rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer; }
.karte-ort-knopf:hover { background: var(--accent); }
.karte-zahl { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.karte-zurueck { padding: .25rem .8rem; font-size: .85rem; }
.karte-osm-link { font-size: .85rem; margin: .2rem 0 0; }
@media (max-width: 860px) {
  .karte-map { height: 60vh; }
}
.karte-kommt { color: var(--accent-2); font-weight: 700; }

/* Challenges (Herausforderungen) */
.badge-open { background: #ffe0c2; color: var(--ink); }
.badge-solved { background: #e3f6d8; color: var(--ink); }
.challenge-owners { margin-top: .4rem; font-weight: 600; }
.challenge-solved { opacity: .75; }
.challenge-card-line { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; }
.challenge-solution { margin-top: 2rem; padding: 1rem 1.2rem; background: #f0faea; border: 2px solid var(--ink); border-radius: var(--radius); }
.challenge-solution h2 { margin-top: 0; }
#herausforderungen { margin-top: 2.5rem; margin-bottom: .9rem; }
#herausforderungen .link-meta { font-size: .9rem; font-weight: 400; vertical-align: middle; }

/* Todo app /todos/ (assets/js/todos.js): Eisenhower matrix per person, pop-up editor */
.todos-personen { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.todos-person { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem .25rem .25rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.todos-person.leer { opacity: .6; border-style: dashed; }
button.todos-person { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.todos-dialog-links .todos-personen, .todos-dialog-links .todos-leiste { margin-bottom: .75rem; }
.todos-alle { margin-left: auto; font-weight: 700; font-size: .9rem; }
.todos-knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0 1.5rem; }
.todos-knopf[aria-busy="true"] { opacity: .6; cursor: progress; }
.todos-person.aktiv { background: var(--accent); opacity: 1; }
.todos-zahl { font-size: .7rem; }
.todos-punkt { color: var(--accent-2); font-size: .8rem; }
.person-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); background: var(--line); color: var(--ink); font-size: .6rem; font-weight: 800; flex: none; vertical-align: middle; }
.person-avatar-gross { width: 28px; height: 28px; border-color: var(--ink); border-width: 1px; }
.todos-leiste { margin-bottom: 1rem; padding: .75rem 1rem; background: #fff7d1; border: 2px solid var(--ink); border-radius: var(--radius); }
.todos-leiste-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.todos-leiste-zeile + .todos-leiste-zeile { margin-top: .5rem; }
.todos-leiste-knoepfe { display: flex; gap: .5rem; margin-left: auto; }
.todos-konflikt { margin: .6rem 0 0; font-size: .9rem; }
.todos-grid { display: grid; grid-template-columns: 1.6rem 1fr 1fr; gap: .5rem; }
.todos-achse { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.todos-achse-zeile { display: flex; align-items: center; justify-content: center; }
.todos-achse-zeile span { writing-mode: vertical-rl; transform: rotate(180deg); }
.todos-zelle { min-height: 9rem; padding: .6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; }
.todos-q1 { background: #ffe9e3; } .todos-q2 { background: #fff7d1; } .todos-q3 { background: #e8eefc; } .todos-q4 { background: #f1efe9; }
.todos-zelle-titel { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: 1rem; }
.todos-zelle-sub { margin: 0 0 .4rem; font-size: .75rem; color: var(--muted); }
.todos-neu { margin-left: auto; border: 0; background: none; font-size: .9rem; cursor: pointer; padding: .1rem .3rem; border-radius: 6px; }
.todos-neu:hover, .todos-neu:focus-visible { background: rgba(0,0,0,.08); }
.todos-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; min-height: 2.5rem; }
.todo-karte { display: flex; gap: .35rem; align-items: flex-start; padding: .4rem .5rem .4rem .3rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 9px; box-shadow: 2px 2px 0 var(--shadow-color); cursor: grab; font-size: .88rem; line-height: 1.3; user-select: none; }
.todo-karte:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow-color); }
.todo-karte:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.todo-karte.ausgewaehlt { background: var(--accent); }
.todo-griff { color: var(--muted); padding: .1rem .2rem; touch-action: none; cursor: grab; }
.todo-inhalt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.todo-titel { font-weight: 700; overflow-wrap: anywhere; }
.todo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .75rem; color: var(--ink-soft); }
.todo-meta .badge { font-size: .65rem; padding: .05rem .35rem; }
.todo-faellig.ueberfaellig { color: var(--accent-2); font-weight: 800; }
.todo-helfer { display: inline-flex; margin-left: auto; }
.todo-helfer .person-avatar + .person-avatar { margin-left: -6px; }
.todo-platzhalter { opacity: .35; border-style: dashed; box-shadow: none; }
.todo-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; list-style: none; transform: rotate(-2deg); box-shadow: 6px 6px 0 var(--shadow-color); }
body.todos-ziehen, body.todos-ziehen * { cursor: grabbing !important; user-select: none; }
.todos-erledigt { margin-top: .75rem; padding: .5rem .75rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.todos-erledigt summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.todos-erledigt .todos-liste { margin-top: .5rem; }
.todos-erledigt .todo-titel { text-decoration: line-through; opacity: .7; }
/* Pop-up forms (assets/js/formular.js): shared by the todo editor and the "➕ new" forms (assets/js/neu.js) */
.form-dialog { margin: auto; width: min(1200px, 96vw); max-height: 92vh; padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--shadow-color); background: var(--bg); color: var(--ink); }
.form-dialog::backdrop { background: rgba(10, 10, 14, .55); }
.form-dialog[open] { display: flex; flex-direction: column; }
.form-dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 2px solid var(--ink); background: var(--paper); }
.form-dialog-kopf h2 { margin: 0; font-size: 1.2rem; margin-right: auto; }
.form-feld { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 700; min-width: 0; }
.form-feld input, .form-feld select, .form-feld textarea, .form-ac-input { font: inherit; font-weight: 400; font-size: .95rem; padding: .4rem .55rem; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; box-sizing: border-box; }
.form-feld textarea { font-family: var(--mono); font-size: .85rem; resize: vertical; }
.form-field-code textarea { white-space: pre; overflow-wrap: normal; overflow-x: auto; tab-size: 2; min-height: 18rem; }
.form-feld-titel input { font-size: 1.15rem; font-weight: 800; }
.form-hilfe { font-weight: 400; font-size: .75rem; color: var(--muted); }
.form-pflicht { color: #cf222e; }
.form-check { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .45rem; font-size: .85rem; font-weight: 700; align-self: end; padding-bottom: .45rem; }
.form-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); margin: 0; }
.form-check .form-hilfe { grid-column: 2; }
.form-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.form-chips { display: flex; flex-direction: column; gap: .35rem; }
.form-chip-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.form-chip-liste:empty { display: none; }
.form-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .3rem .15rem .6rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); font-weight: 600; font-size: .82rem; }
.form-chip-person { padding-left: .15rem; }
.form-chip-person .person-avatar { width: 24px; height: 24px; border: 0; }
.form-chip a { color: var(--ink); }
.form-chip button { border: 0; background: none; cursor: pointer; font-size: .75rem; padding: .1rem .25rem; border-radius: 50%; color: var(--ink); }
.form-chip button:hover { background: rgba(0,0,0,.1); }
.form-ac { position: relative; }
.form-ac-liste { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 2px); max-height: 16rem; overflow: auto; margin: 0; padding: .25rem; list-style: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--shadow-color); }
.form-ac-liste [role=option] { display: flex; align-items: center; gap: .45rem; padding: .35rem .45rem; border-radius: 6px; cursor: pointer; font-weight: 400; }
.form-ac-liste [role=option][aria-selected=true], .form-ac-liste [role=option]:hover { background: var(--accent); }
.form-ac-name { flex: 1; }
.form-ac-typ { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.form-fuss { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: .5rem; flex-wrap: wrap; }
.form-fuss .muted { flex: 1; }

/* Todo pop-up: matrix left, editor right */
.todos-dialog-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.todos-dialog-links { overflow: auto; padding: 1rem; border-right: 2px solid var(--ink); }
.todos-dialog-links .todos-zelle { min-height: 6rem; }
.todos-editor { overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--paper); }
.todos-id { margin: -.5rem 0 0; font-family: var(--mono); }
.todos-diff-dialog { width: min(860px, 96vw); }
.todos-diff-body { padding: 1rem; overflow: auto; }
.todos-diff-pre { max-height: 50vh; overflow: auto; margin: .5rem 0 1rem; padding: .6rem; font-size: .8rem; line-height: 1.45; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; white-space: pre-wrap; }
.todos-diff-pre span { display: block; }
.d-plus { background: #dcf5d3; } .d-minus { background: #ffe0d9; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.d-gleich { color: var(--muted); } .d-mehr { color: var(--muted); font-style: italic; text-align: center; }
.d-zahl-plus { color: #1a7f37; font-weight: 800; } .d-zahl-minus { color: #cf222e; font-weight: 800; }
.todos-diff-schritte { font-size: .9rem; }
.todos-diff-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.todos-diff-text { width: 100%; font-family: var(--mono); font-size: .8rem; }

/* "➕ new" pop-up: fields left, live file preview right */
.neu-dialog { width: min(1100px, 96vw); }
.neu-vorlage { white-space: nowrap; }
.neu-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.neu-spalten { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.neu-links { overflow: auto; padding: 1rem; }
.neu-felder { display: flex; flex-direction: column; gap: .75rem; }
.neu-hinweis { margin: 0 0 .75rem; }
.neu-mehr { margin-top: .9rem; padding: .5rem .75rem; border: 2px dashed var(--line); border-radius: var(--radius); }
.neu-mehr summary { cursor: pointer; font-weight: 700; color: var(--ink-soft); }
.neu-mehr[open] summary { margin-bottom: .6rem; }
.neu-rechts { overflow: auto; padding: 1rem; border-left: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; gap: .6rem; }
.neu-pfad { display: flex; align-items: center; gap: .2rem; font-weight: 400; }
.neu-pfad code { font-size: .8rem; white-space: nowrap; }
.neu-pfad input { font-family: var(--mono); font-size: .85rem; }
.neu-vorschau { margin: 0; padding: .6rem; font-size: .78rem; line-height: 1.45; background: var(--bg); border: 2px solid var(--ink); border-radius: 8px; white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 8rem; overflow: auto; }
.neu-social { border: 2px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; background: var(--bg); }
.neu-social summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.neu-social[open] summary { margin-bottom: .45rem; }
.neu-social-karte { border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.neu-social-bild { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--bg-alt); border-bottom: 1.5px solid var(--ink); }
.neu-social-text { padding: .45rem .6rem; display: flex; flex-direction: column; gap: .12rem; font-size: .78rem; line-height: 1.3; }
.neu-social-domain { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.neu-social-titel { font-size: .85rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neu-social-beschr { color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.neu-schritte { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.neu-form > .form-fuss { margin: 0; padding: .6rem 1rem; border-top: 2px solid var(--ink); background: var(--paper); }
.neu-btn[aria-busy=true] { opacity: .6; cursor: progress; }

@media (max-width: 820px) {
  .form-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .todos-dialog-body { grid-template-columns: 1fr; overflow: auto; }
  .todos-dialog-links { order: 2; border-right: 0; border-top: 2px solid var(--ink); overflow: visible; }
  .todos-editor { overflow: visible; }
  .neu-spalten { grid-template-columns: 1fr; overflow: auto; }
  .neu-links, .neu-rechts { overflow: visible; }
  .neu-rechts { border-left: 0; border-top: 2px solid var(--ink); }
  .neu-vorlage { display: none; }
}
@media (max-width: 560px) {
  .todos-grid { grid-template-columns: 1fr; }
  .todos-achse { display: none; }
}
@media (prefers-reduced-motion: reduce) { .todo-ghost { transform: none; } .todo-karte:hover { transform: none; } }

/* "read" marker (assets/js/gelesen.js) */
.gelesen-haken {
  display: inline-block;
  margin-left: .35em;
  width: 1.15em;
  height: 1.15em;
  line-height: 1.15em;
  border-radius: 50%;
  background: var(--muted);
  color: var(--paper);
  font-size: .7em;
  font-weight: 700;
  text-align: center;
  vertical-align: .15em;
  text-decoration: none;
  opacity: .7;
}
.gelesen-fortschritt {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.gelesen-fortschritt[hidden] { display: none; }
.gelesen-fortschritt-balken {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.gelesen-fortschritt-balken span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .4s ease;
}
@media (prefers-reduced-motion: reduce) { .gelesen-fortschritt-balken span { transition: none; } }

/* Badge zum 3D-Drucken (_includes/badge-3d.html, assets/js/badge3d.js) */
.badge-3d {
  position: relative;
  margin: 0 0 .5rem;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #f1eee6 100%);
  overflow: hidden;
}
.badge-3d img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.badge-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.badge-3d canvas:active { cursor: grabbing; }
.badge-3d-active img { visibility: hidden; }
.badge-downloads { margin-bottom: 0; }
.badge-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.badge-intro ol { padding-left: 1.2rem; }
@media (max-width: 760px) { .badge-intro { grid-template-columns: 1fr; } }
.badge-karte h3 { margin-bottom: .5rem; }
.member-badge { max-width: 480px; }

/* Edit row: ✏️ (form) + GitHub logo with file path (_includes/edit-buttons.html) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.github-file { display: inline-flex; align-items: center; gap: .4rem; }
.github-logo { flex: none; }
.edit-btn[aria-busy=true] { opacity: .6; cursor: progress; }
.neu-vorschau mark.changed-line { background: #fff1a8; color: inherit; border-radius: 2px; box-shadow: -.3rem 0 0 #fff1a8, .3rem 0 0 #fff1a8; }
[data-submit]:disabled { opacity: .5; cursor: not-allowed; }

/* Eisenhower matrix of challenges (/challenges/): columns dringend / nicht dringend, rows wichtig / nicht wichtig.
   Own hm-* classes so the todo matrix (.todos-*) stays independent. */
.hm-matrix { display: grid; grid-template-columns: 2rem 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: .6rem; margin: 1rem 0 1.5rem; }
.hm-axis { font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.hm-axis-col { text-align: center; padding-bottom: .1rem; }
.hm-axis-row { display: flex; align-items: center; justify-content: center; }
.hm-axis-row span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.hm-cell { border: 2px solid var(--ink); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: 3px 3px 0 var(--shadow-color); min-height: 8rem; scroll-margin-top: 1rem; }
.hm-q1 { background: #ffd9d0; }
.hm-q2 { background: #fff4c2; }
.hm-q3 { background: #dbe6ff; }
.hm-q4 { background: #eeeae1; }
.hm-title { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .4rem; }
.hm-count { margin-left: auto; font-family: var(--mono); font-size: .8rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 .5rem; }
.neu-btn-klein { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; font-size: .8rem; text-decoration: none; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--shadow-color); transition: transform .1s, box-shadow .1s; }
.neu-btn-klein:hover, .neu-btn-klein:focus-visible { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow-color); }
.hm-sub { font-family: var(--mono); font-size: .75rem; color: var(--ink-soft); margin: .15rem 0 .6rem; }
.hm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hm-list li { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: .45rem .6rem; }
.hm-list a { font-weight: 700; }
.hm-summary { display: block; font-size: .9rem; margin-top: .1rem; }
.hm-meta { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .2rem; }
.hm-meta .badge { font-size: .65rem; padding: 0 .35rem; }
.hm-empty { color: var(--muted); margin: 0; }
.hm-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; border: 1.5px solid var(--ink); }
@media (max-width: 560px) {
  .hm-matrix { grid-template-columns: 1fr; grid-template-rows: none; }
  .hm-corner, .hm-axis { display: none; }
  .hm-cell { min-height: 0; }
}

/* Markdown-Editor in den Formularen (OverType, assets/js/third-party/overtype/; assets/js/neu.js) */
.form-md-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.form-md-toggle { padding: .15rem .55rem; font-size: .78rem; }
.form-md-toggle[aria-pressed=true] { background: var(--accent); }
.form-md-editor { border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.form-md-editor:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; }
.form-md.toolbar-hidden .overtype-toolbar { display: none !important; } /* OverType setzt display: flex !important */
/* Werkzeugleiste umbrechen statt seitlich scrollen (OverType: overflow-x auto !important) */
.form-md .overtype-toolbar { flex-wrap: wrap !important; overflow-x: visible !important; row-gap: 2px !important; }

/* Tastenkürzel in Beiträgen (<kbd>) */
kbd { display: inline-block; font-family: var(--mono); font-size: .8em; line-height: 1.3; padding: .05em .4em; border: 1.5px solid var(--ink); border-bottom-width: 3px; border-radius: 5px; background: var(--paper); color: var(--ink); white-space: nowrap; }
.prose td:has(kbd) { white-space: nowrap; } /* Tastenkombination nicht auseinanderreißen */

/* Direct pull requests (prototype): GitHub connect dialog, photo editor, new photos in the ➕/✏️ form */
.github-dialog { width: min(560px, 96vw); }
.github-body { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; overflow: auto; }
.github-body ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.github-who { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; }
.github-who img { border-radius: 50%; border: 1px solid var(--ink); }
.github-who > span { flex: 1 1 0; min-width: 0; }
.photo-dialog { width: min(1300px, 98vw); }
.photo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1rem; padding: 1rem; overflow: auto; min-height: 0; }
.photo-main { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.photo-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-tools [aria-pressed="true"] { background: var(--accent); }
.photo-canvas { display: flex; justify-content: center; background: #222; border: 2px solid var(--ink); border-radius: 8px; padding: .4rem; }
.photo-canvas canvas { max-width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.photo-tip { margin: 0; }
.photo-side { display: flex; flex-direction: column; gap: .75rem; }
.photo-check ul { margin: .3rem 0; padding-left: 1.1rem; }
.photo-check p { margin: .3rem 0 0; }
.photo-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.photo-areas li { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
@media (max-width: 760px) { .photo-body { grid-template-columns: 1fr; } }
/* media panel in the ➕/✏️ form: uses (slots) as drop targets, photo cards with a toggle per use */
.form-photos { margin: .5rem 0; display: grid; gap: .5rem; }
.form-photos:empty { display: none; }
.media-title { margin: 0; }
.media-slots, .media-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.media-slot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .5rem; padding: .35rem .5rem; border: 2px dashed var(--muted); border-radius: 8px; }
.media-slot .form-hilfe { grid-column: 1; }
.media-slot-name { font-weight: 700; font-size: .85rem; }
.media-slot-images { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.media-slot-images img { width: 44px; height: 33px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ink); }
.media-slot.media-drop { border-color: var(--ink); border-style: solid; background: var(--accent); }
.media-photo { display: grid; grid-template-columns: 72px 1fr auto; align-items: start; gap: .5rem; padding: .35rem; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); cursor: grab; }
.media-photo img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.media-unused { border-style: dashed; opacity: .85; }
.media-uses { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.media-chip { font: inherit; font-size: .75rem; padding: .1rem .45rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--bg); cursor: pointer; }
.media-chip[aria-pressed="true"] { background: var(--accent); font-weight: 700; }
.form-pr-notice { margin: .25rem 0 .5rem; }
.form-pr-notice ul { margin: .3rem 0; padding-left: 1.1rem; }
.form-pr-notice li { margin: .2rem 0; }
.edit-pr-warning { margin-top: 1rem; }
/* conflict box in the ➕/✏️ form: one fieldset per field/passage with both versions and the choices */
.form-conflicts { border: 2px solid #cf222e; border-radius: 8px; padding: .6rem .8rem; margin-bottom: .75rem; background: var(--paper); }
.form-conflicts h3 { margin: 0 0 .3rem; font-size: 1rem; }
.form-conflict { border: 1px solid var(--muted); border-radius: 6px; margin: .5rem 0; padding: .4rem .6rem; }
.form-conflict legend { font-weight: 700; padding: 0 .3rem; }
.form-conflict-versions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .3rem; font-size: .8rem; }
.form-conflict-versions pre { white-space: pre-wrap; word-break: break-word; margin: .2rem 0 0; padding: .3rem; background: var(--bg); border-radius: 4px; max-height: 10rem; overflow: auto; }
@media (max-width: 600px) { .form-conflict-versions { grid-template-columns: 1fr; } }

/* UI language (assets/js/i18n.js): switch in the footer; while English/French load, the German strings that get
   swapped are hidden so they don't flash (the inline script in _layouts/default.html lifts this after 3 s at the latest) */
.i18n-pending [data-i18n], .i18n-pending [data-i18n-date], .i18n-pending [data-i18n-event] { visibility: hidden; }
/* next to the theme picker (assets/css/themes.css), with the footer colours of the current theme */
.language-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .85rem; }
.language-switch-buttons { display: inline-flex; gap: .3rem; }
.language-switch button {
  font: inherit; font-weight: 700; min-width: 2.75rem; min-height: 2.25rem; padding: .25rem .6rem;
  color: var(--footer-ink); background: transparent; border: 2px solid var(--footer-note); border-radius: 999px; cursor: pointer;
}
.language-switch button:hover { border-color: var(--footer-link); color: var(--footer-link-hover); }
.language-switch button[aria-pressed="true"] { background: var(--footer-link); border-color: var(--footer-link); color: var(--footer-bg); }
.language-switch button:focus-visible { outline: 3px solid var(--footer-link-hover); outline-offset: 2px; }
.language-switch-note { color: var(--footer-note); font-size: .8rem; }
