/* Hausschrift des Kongresses (nur für Überschriften – sehr fetter Display-Schnitt) */
@font-face {
  font-family: "Puffin Display Soft";
  src: url("fonts/puffin-display-soft-black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Offizielle Marken-Farben „Musik in der Kita" */
  --bg: #faf6f8;            /* sehr helles Rosé-Weiß */
  --surface: #ffffff;
  --ink: #351a30;           /* Aubergine (Marken-Dunkel) */
  --muted: #8b7f87;         /* gedämpftes Aubergine-Grau */
  --primary: #e6007e;       /* Magenta/Pink – Leitfarbe */
  --primary-dark: #c1006a;
  --accent: #00abb1;        /* Türkis */
  --accent-soft: #e2f5f6;
  --gold: #f08300;          /* Orange */
  --lime: #b2cb07;          /* Limette */
  --line: #ece4ea;
  --shadow: 0 2px 10px rgba(53, 26, 48, 0.06);
  --shadow-lg: 0 8px 28px rgba(53, 26, 48, 0.13);
  --radius: 14px;
  --font-display: "Puffin Display Soft", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, .brand-text strong { font-family: var(--font-display); font-weight: 900; letter-spacing: .005em; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

a { color: var(--primary-dark); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 78px; width: auto; display: block; }
.is-admin .brand-logo { height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: .8rem; max-width: 18ch; }

/* ---- Admin: globale Top-Nav ---- */
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 100%; }
.admin-top-nav { display: flex; align-items: center; gap: .25rem; }
.admin-top-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; padding: .35rem .75rem; border-radius: 6px; transition: background .15s; }
.admin-top-nav a:hover { background: var(--line); }
.admin-top-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.admin-top-nav .nav-logout { color: var(--muted); font-weight: 400; margin-left: .75rem; }
.admin-top-nav .nav-logout:hover { background: var(--line); color: var(--ink); }

/* ---- Admin: Sidebar-Layout ---- */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }

.admin-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-event { padding: 1.1rem 1.2rem .85rem; border-bottom: 1px solid var(--line); }
.sidebar-event strong { display: block; font-size: .85rem; color: var(--ink); line-height: 1.3; }
.sidebar-event small  { font-size: .75rem; color: var(--muted); margin-top: .2rem; display: block; }
.sidebar-nav { padding: .6rem 0; flex: 1; }
.sidebar-nav a { display: block; padding: .5rem 1.2rem; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: background .12s; }
.sidebar-nav a:hover { background: var(--line); }
.sidebar-nav a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary-dark); font-weight: 700; border-right: 3px solid var(--primary); }
.sidebar-divider { height: 1px; background: var(--line); margin: .4rem 1.2rem; }
.sidebar-external { color: var(--muted) !important; font-size: .82rem !important; }
.admin-main { flex: 1; min-width: 0; padding: 2rem 2.5rem 6rem; }

/* ---- Participant nav ---- */
.user-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.user-nav a { text-decoration: none; color: #000; font-weight: 600; font-size: .92rem; }
.user-nav .hi { color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }

/* ---------- Layout pieces ---------- */
main.wrap { padding: 2rem 0 6rem; }
.hero { text-align: left; padding: 1rem 0 .5rem; }
.hero.center, .center { text-align: center; }
h1 { font-size: 2rem; margin: .2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.lead { font-size: 1.08rem; color: #4a443d; max-width: 60ch; }
.hero.center .lead { margin-inline: auto; }
.page-intro { margin-bottom: 1.4rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.form-card { max-width: 540px; }
.form-card h2 { margin-top: 0; }

/* ---------- Forms ---------- */
.stack-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.stack-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.stack-form input, .stack-form select, .stack-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fcfbf9; width: 100%; resize: vertical;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.link-copy { display: flex; gap: .5rem; align-items: stretch; }
.link-copy input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.link-copy .btn { white-space: nowrap; }
.brand-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: .2rem 0; }
.brand-fieldset legend { font-weight: 800; font-family: var(--font-display); padding: 0 .4rem; color: var(--ink); }
.color-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.color-field { flex: 1; min-width: 140px; font-weight: 600; font-size: .9rem; }
.color-field input[type="color"] { width: 100%; height: 42px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.stack-form input[type="file"] { background: #fff; }
.logo-preview { margin-top: .6rem; }
.logo-preview img { max-height: 64px; max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: block; margin-bottom: .4rem; }
.field-row { display: flex; gap: 1rem; }
.field-row label { flex: 1; }
@media (max-width: 460px) { .field-row { flex-direction: column; gap: 1rem; } }

.btn {
  display: inline-block; cursor: pointer; font: inherit; font-weight: 700;
  border: none; border-radius: 999px; padding: .7rem 1.4rem; text-decoration: none;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-small { padding: .4rem .9rem; font-size: .85rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
#fav-hint { font-weight: 600; margin-left: .3rem; }
.btn-danger { color: var(--primary-dark); border-color: #f0c4da; }
.btn-danger:hover { background: #fdecf4; }
.actions-cell { white-space: nowrap; vertical-align: middle; }
.actions-cell .btn { margin-left: .35rem; }
.icon-btn-row { display: flex; gap: .3rem; align-items: center; justify-content: flex-end; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
  padding: 0;
}
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-icon-accent { border-color: var(--accent); color: var(--accent); }
.btn-icon-accent:hover { background: var(--accent); color: #fff; }
.btn-icon-danger:hover { background: #fef0f0; border-color: #c00; color: #c00; }

/* ---------- Toolbar / search ---------- */
.toolbar { margin: 1.2rem 0 .5rem; }
#search {
  width: 100%; font: inherit; padding: .75rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
#search:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* ---------- Workshop grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.grid .card { display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s, transform .1s; }
.grid .card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset, var(--shadow); }
.card-badge {
  position: absolute; top: -10px; right: 14px; background: var(--primary); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
}
.card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.card-avatar {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top center;
  flex: 0 0 60px; background: var(--accent-soft); border: 2px solid #fff; box-shadow: var(--shadow);
}
.card-avatar--initials { display: grid; place-items: center; color: var(--accent); font-weight: 800; font-size: 1.1rem; }
.card-head-text { min-width: 0; }
.card-title { font-size: 1.02rem; margin: 0 0 .15rem; line-height: 1.3; }
.card-referent { color: var(--accent); font-weight: 600; margin: 0; font-size: .9rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
/* rotierende Kachelfarben passend zum Logo */
.tag--orange { background: #fcebd7; color: #b9610a; }
.tag--teal   { background: #d8f1f2; color: #06868b; }
.tag--lime   { background: #eef3cf; color: #6c7a00; }
.tag--pink   { background: #fcdcec; color: #c1006a; }

.card-details { margin-bottom: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.card-details > summary {
  cursor: pointer; color: var(--accent); font-weight: 600; font-size: .88rem;
  list-style: none; display: inline-flex; align-items: center; gap: .35rem; user-select: none;
}
.card-details > summary::-webkit-details-marker { display: none; }
.card-details > summary::before { content: "▸"; transition: transform .15s ease; display: inline-block; }
.card-details[open] > summary::before { transform: rotate(90deg); }
.card-desc { color: #514a42; font-size: .92rem; margin: .5rem 0 0; }

.grid .card .fav-btn { margin-top: auto; }

.fav-btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px;
  padding: .55rem 1rem; border: 1.5px solid var(--primary); color: var(--primary);
  background: #fff; width: 100%;
}
.fav-btn:hover:not(:disabled) { background: #fdeee8; }
.fav-btn:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line); color: var(--muted); }
.fav-btn .fav-remove { display: none; }
.card.is-selected .fav-btn { background: var(--primary); color: #fff; }
.card.is-selected .fav-btn .fav-add { display: none; }
.card.is-selected .fav-btn .fav-remove { display: inline; }

/* ---------- Selection bar (sticky bottom) ---------- */
.selection-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(40,30,20,.08);
  padding: .7rem 0; z-index: 40;
}
.selection-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.selection-count { font-size: 1rem; }
.selection-count strong { color: var(--primary); font-size: 1.25rem; }

/* ---------- Notices & flash ---------- */
.notice { padding: .9rem 1.1rem; border-radius: 10px; margin: 1rem 0; }
.notice-warn { background: #fdf3e2; border: 1px solid #f0d9a8; color: #8a5a12; }
.notice-error { background: #fdecea; border: 1px solid #f3c4bd; color: #a8331f; }
.notice-ok { background: var(--accent-soft); border: 1px solid #b8e6e8; color: #06868b; }
.notice .tight { margin: .4rem 0 0; padding-left: 1.1rem; }
.notice .tight li { font-size: .9rem; }
.flash {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; font-size: .9rem;
}
.flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Summary lists ---------- */
.summary-list { list-style: none; counter-reset: item; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.summary-list.plain { counter-reset: none; }
.summary-item {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem;
}
.summary-list:not(.plain) .summary-item { counter-increment: item; }
.summary-list:not(.plain) .summary-item::before {
  content: counter(item); flex: 0 0 28px; height: 28px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-weight: 700; font-size: .85rem;
}
.summary-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
/* Wunsch-Reihenfolge sortieren */
.rank-list { list-style: none; counter-reset: rank; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.rank-item {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem;
  cursor: grab;
}
.rank-item.dragging { opacity: .5; border-color: var(--primary); }
.rank-num { flex: 0 0 30px; height: 30px; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 800; font-size: .9rem; }
.rank-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-moves { display: flex; flex-direction: column; gap: .2rem; }
.rank-moves button {
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--accent);
  border-radius: 6px; width: 30px; height: 22px; line-height: 1; font-size: .7rem; padding: 0;
}
.rank-moves button:hover:not(:disabled) { background: var(--accent-soft); }
.rank-moves button:disabled { opacity: .3; cursor: default; }

.actions { display: flex; gap: .8rem; justify-content: space-between; margin: 1.5rem 0; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.big-check { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.2rem; display: grid; place-items: center; }

/* ---------- Teilnehmer-App: Hero, Sektions-Navigation, Infos ---------- */
.app-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; margin: .5rem 0 1.2rem;
  box-shadow: var(--shadow-lg);
}
.app-hero-eyebrow { margin: 0 0 .3rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.app-hero h1 { margin: 0; color: #fff; font-size: 1.9rem; line-height: 1.1; }
.app-hero-meta { margin: .5rem 0 0; font-weight: 700; opacity: .95; }
.app-hero-welcome { margin: .7rem 0 0; opacity: .95; max-width: 60ch; }

.section-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; position: sticky; top: 86px; z-index: 20; }
.section-nav a {
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  text-decoration: none; font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px;
}
.section-nav a:hover { background: var(--accent-soft); }

.app-section { scroll-margin-top: 150px; margin-bottom: 1.8rem; }
.app-section > h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.info-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.info-body { color: #423b40; line-height: 1.6; }
.info-body a { color: var(--primary-dark); font-weight: 600; word-break: break-word; }

@media (max-width: 560px) { .app-hero h1 { font-size: 1.5rem; } .section-nav { top: 70px; } }

/* ---------- Mein Plan (Teilnehmer-App) ---------- */
.plan { display: flex; flex-direction: column; gap: .9rem; margin: 1rem 0 1.5rem; }
.plan-slot {
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.plan-time {
  flex: 0 0 104px; background: var(--accent-soft); color: var(--accent);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 1rem .6rem; text-align: center; gap: .15rem;
}
.plan-day { font-size: .8rem; font-weight: 700; }
.plan-clock { font-size: .92rem; font-weight: 800; white-space: nowrap; }
.plan-body { padding: .9rem 1rem; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.plan-workshop { margin: 0 0 .15rem; font-size: 1.05rem; line-height: 1.25; }
.plan-referent { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.plan-room { display: flex; align-items: flex-start; gap: .45rem; background: #fdeef6; border-radius: 10px; padding: .5rem .7rem; }
.plan-room-icon { line-height: 1.3; }
.plan-room-text { display: flex; flex-direction: column; line-height: 1.3; }
.plan-room-text strong { color: var(--primary-dark); font-size: 1rem; }
.plan-room-text small { color: var(--muted); font-size: .82rem; }
.plan-slot.is-free { box-shadow: none; background: #faf7f9; }
.plan-slot.is-free .plan-time { background: #efe9ed; color: var(--muted); }
.plan-empty { margin: 0; color: var(--muted); }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; text-align: center; box-shadow: var(--shadow); }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--muted); font-size: .85rem; }
.reg-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.reg-toggle .ok { color: var(--accent); }
.reg-toggle .closed { color: var(--primary-dark); }

/* Phase panel */
.phase-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.phase-panel-status { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.phase-panel-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.phase-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.phase-open    { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.phase-closed  { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
.phase-published { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, white); }
.phase-desc { font-size: .88rem; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.demand-table th, .demand-table td, .people-table th, .people-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.num { text-align: right; white-space: nowrap; }
.bar-col { width: 32%; }
.bar { display: block; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--primary)); min-width: 2px; }
.small { font-size: .85rem; }
.pill { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #eee6da; color: #7a6b53; }
.pill-ok { background: var(--accent-soft); color: var(--accent); }

/* Aufklappbare Workshop-Liste in der Teilnehmertabelle */
.fav-dropdown > summary {
  cursor: pointer; color: var(--accent); font-weight: 600; list-style: none;
  display: inline-flex; align-items: center; gap: .3rem; user-select: none; white-space: nowrap;
}
.fav-dropdown > summary::-webkit-details-marker { display: none; }
.fav-dropdown > summary::before { content: "▸"; transition: transform .15s ease; display: inline-block; }
.fav-dropdown[open] > summary::before { transform: rotate(90deg); }
.fav-dropdown-list { margin: .5rem 0 0; padding-left: 1.2rem; }
.fav-dropdown-list li { margin-bottom: .2rem; }

/* Workshop-Zuweisung im Admin */
.assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem; margin: 1rem 0; }
.assign-item {
  display: flex; align-items: flex-start; gap: .6rem; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fcfbfc;
  transition: border-color .12s, background .12s;
}
.assign-item:hover { border-color: var(--accent); }
.assign-item.is-on { border-color: var(--primary); background: #fdeef6; }
.assign-item.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.assign-item input { margin-top: .25rem; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--primary); }
.assign-text { display: flex; flex-direction: column; line-height: 1.3; }
.assign-text strong { font-size: .92rem; }
.assign-text .muted { font-size: .82rem; }
.check-line, .stack-form label.check-line { display: flex; flex-direction: row; align-items: center; gap: .55rem; margin: .3rem 0 1rem; font-size: .95rem; }
.check-line input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.check-line strong { font-weight: 700; }

.event-link-url {
  display: block; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .72rem; color: #888;
}

.export-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.export-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .15s, transform .1s; }
.export-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.export-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Sessions-Wahl (Selbsteintrag TN) ---------- */
.slot-section { margin-bottom: 2.2rem; }
.slot-heading {
  font-size: 1.15rem; margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
  border-left: 4px solid var(--accent); padding-left: .7rem;
}
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.session-card {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.1rem .9rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .15s, box-shadow .15s;
}
.session-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.session-card.is-mine { border-color: var(--primary); background: #fdeef6; }
.session-card.is-full { opacity: .6; }
.session-card-head { display: flex; flex-direction: column; gap: .15rem; }
.session-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.session-referent { margin: 0; font-size: .87rem; }
.session-meta { display: flex; justify-content: space-between; font-size: .82rem; gap: .4rem; flex-wrap: wrap; }
.session-room { color: var(--muted); }
.session-cap { font-weight: 600; }
.cap-full { color: #c00; }
.session-details { font-size: .85rem; }
.session-details summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.session-details summary::-webkit-details-marker { display: none; }
.session-actions { margin-top: auto; padding-top: .4rem; }
.btn-sm { font-size: .82rem; padding: .35rem .85rem; }

/* ---------- Manuelle Zuteilung (Admin) ---------- */
.manual-session-box {
  border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1rem; margin-bottom: 1rem;
  background: #fdfbfc;
}
.manual-session-box:last-child { margin-bottom: 0; }
.manual-session-head {
  display: flex; align-items: center; gap: .7rem;
  flex-wrap: wrap; margin-bottom: .6rem;
}
.manual-session-head strong { font-size: .95rem; }
.manual-enrolled-list {
  list-style: none; margin: .4rem 0 .7rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.manual-enrolled-list li {
  display: flex; align-items: center; gap: .3rem;
  background: var(--accent-soft); color: var(--ink);
  border-radius: 999px; padding: .2rem .5rem .2rem .75rem;
  font-size: .82rem;
}
.btn-inline-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1rem; line-height: 1;
  padding: 0; transition: color .1s;
}
.btn-inline-remove:hover { color: #c00; }
.manual-add-form {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.manual-add-form select {
  flex: 1; min-width: 180px; padding: .35rem .5rem;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: .85rem; background: #fff;
}

/* ---------- Workshopplan-Raster ---------- */
.plan-scroll-wrap { overflow-x: auto; margin-bottom: 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.plan-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .85rem; }
.plan-table th, .plan-table td { border: 1px solid var(--line); padding: .45rem .55rem; vertical-align: top; }
.plan-table thead th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.plan-col-time { width: 100px; min-width: 80px; }
.plan-col-room { min-width: 180px; }
.plan-room-cap { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.plan-day-row td { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; padding: .3rem .55rem; }
.plan-time-cell { white-space: nowrap; vertical-align: middle; }
.plan-time-cell strong { display: block; font-size: .88rem; }
.plan-time-cell span { font-size: .78rem; }
.plan-cell { padding: .35rem .4rem !important; }
.plan-cell-set { background: #f0fbfb; }
.plan-select {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: .3rem .4rem; font-size: .82rem; background: #fff;
  color: var(--ink); cursor: pointer;
  transition: border-color .12s;
}
.plan-select:focus { outline: none; border-color: var(--accent); }
.plan-cell-set .plan-select { border-color: var(--accent); background: #e8f8f8; }
.plan-enrolled { display: block; font-size: .72rem; text-align: right; margin-top: .2rem; color: var(--muted); }
.plan-enrolled.cap-full { color: #c00; font-weight: 700; }
.plan-status {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 200;
  background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: opacity .2s;
}
.plan-status-error { background: #c00; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; color: var(--muted); font-size: .85rem; text-align: center; }
.footer-legal { margin-top: .3rem; }
.footer-legal a { color: var(--muted); text-decoration: underline; }
.privacy-hint { font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.privacy-hint a { color: var(--muted); text-decoration: underline; }
.privacy-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .85rem 1.5rem; font-size: .85rem; flex-wrap: wrap; }
.privacy-banner p { margin: 0; line-height: 1.5; }
.privacy-banner a { color: #fff; text-decoration: underline; }
.privacy-banner[hidden] { display: none; }

@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .people-table .small { display: none; }
  .header-inner { flex-wrap: wrap; }
  .brand-logo { height: 56px; }
  .brand-text small { display: none; }
}
