/* ======================================================================
   HoMe-Campus – moderne Seitenbausteine (Oktober 2026)
   Ergänzt style.css; gleiche Farben, Schrift (DM Sans) und Rundungen wie
   die Startseite. Alle Klassen beginnen mit .hc-, damit nichts anderes
   auf der Website verändert wird.
   ====================================================================== */

.hc-page {
  --hc-lime: #dce27a;
  --hc-radius: var(--radius-md, 16px);
  --hc-gradient: linear-gradient(135deg, #0e558c 0%, #0b6db7 62%, #1679c2 100%);
  width: min(1240px, calc(100% - 24px));
  margin: 22px auto 42px;
}

/* Globale Formular-Rahmen aus style.css innerhalb der neuen Seiten neutralisieren */
.hc-page form { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; box-shadow: none; }
html.darkmode .hc-page form { background: none; }
.hc-page label { margin-top: 0; }
.hc-page input[type="checkbox"],
.hc-page input[type="radio"] { width: auto; margin: 0; padding: 0; accent-color: var(--brand); }
.hc-page :focus-visible { outline: 3px solid var(--hc-lime); outline-offset: 2px; }

.hc-icon { flex: 0 0 auto; display: block; }

/* ---------- Kopfbereich ---------- */
.hc-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl, 28px);
  background: var(--hc-gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}
.hc-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px; height: 360px;
  right: -110px; top: -190px;
  border-radius: 50%;
  background: rgba(220, 226, 122, .22);
}
.hc-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 220px; height: 220px;
  left: -90px; bottom: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hc-banner-text { max-width: 720px; }
.hc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hc-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hc-lime); }
.hc-banner h1 { margin: 0; color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.hc-banner p { margin: 10px 0 0; color: rgba(255, 255, 255, .88); font-size: 1.04rem; }
.hc-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-back { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 0 0 14px; color: rgba(255, 255, 255, .9); font-size: .95rem; font-weight: 700; text-decoration: none; }
.hc-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hc-back .hc-icon { width: 18px; height: 18px; }
.hc-banner .hc-btn--light { background: #fff; color: #0e558c; }
.hc-banner .hc-btn--light:hover { background: var(--hc-lime); color: #14283c; }
.hc-banner .hc-btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.hc-banner .hc-btn--outline:hover { background: rgba(255, 255, 255, .14); }

.hc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hc-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .9rem;
}
.hc-stat b { font-size: 1.35rem; line-height: 1; }

/* ---------- Abschnitte & Karten ---------- */
.hc-section { margin-top: 28px; }
.hc-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.hc-section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.01em; }
.hc-section-head h2 .hc-icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--brand-light); color: var(--brand); }
.hc-section-head p { margin: 4px 0 0; color: var(--text-soft); }
.hc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand); font-size: .9rem; font-weight: 700; }

.hc-card {
  border: 1px solid var(--border);
  border-radius: var(--hc-radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.hc-panel { padding: clamp(18px, 2.6vw, 26px); }
a.hc-card { text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.hc-card:hover { border-color: #9db4cc; box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }

/* ---------- Buttons ---------- */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hc-btn:hover { background: #0b4775; color: #fff; text-decoration: none; }
.hc-btn .hc-icon { width: 18px; height: 18px; }
.hc-btn--soft { background: var(--brand-light); color: var(--brand); }
.hc-btn--soft:hover { background: var(--brand); color: #fff; }
.hc-btn--ghost { background: transparent; color: var(--text-color-secondary); border: 1px solid var(--border); }
.hc-btn--ghost:hover { background: var(--bg); color: var(--brand-dark); border-color: #9db4cc; }
.hc-btn--danger { background: #fff1f2; color: #b91c1c; border: 1px solid #fecdd3; }
.hc-btn--danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.hc-btn--ok { background: #e8fff0; color: #166534; border: 1px solid #b7efc5; }
.hc-btn--ok:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.hc-btn--sm { min-height: 34px; padding: 6px 13px; font-size: .86rem; }

/* ---------- Chips ---------- */
.hc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--brand-light); color: var(--brand); font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.hc-chip--lime { background: #dce27a; color: #3d4300; }
.hc-chip--warn { background: #fde8df; color: #a13c16; }
.hc-chip--ok { background: #dcfce7; color: #166534; }
.hc-chip--muted { background: var(--bg); color: var(--text-soft); }
.hc-chip--plain { text-transform: none; letter-spacing: 0; font-weight: 700; }

/* ---------- Formulare ---------- */
.hc-form { display: grid; gap: 16px; }
.hc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-span-2 { grid-column: 1 / -1; }
.hc-field { display: grid; gap: 6px; min-width: 0; }
.hc-field > label,
.hc-label { color: var(--brand-dark); font-size: .88rem; font-weight: 700; }
.hc-label small, .hc-field > label small { color: var(--text-soft); font-weight: 500; }
.hc-page .hc-input,
.hc-page .hc-field input:not([type="checkbox"]):not([type="radio"]),
.hc-page .hc-field select,
.hc-page .hc-field textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c9d6e4;
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hc-page .hc-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.hc-page .hc-field input:focus,
.hc-page .hc-field select:focus,
.hc-page .hc-field textarea:focus,
.hc-page .hc-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 85, 140, .12); }
.hc-page .hc-field input:disabled { background: var(--bg); color: var(--text-soft); }
.hc-hint { margin: 0; color: var(--text-soft); font-size: .84rem; }

.hc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.hc-check:hover { border-color: #9db4cc; }
.hc-check:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.hc-check input { margin-top: 3px !important; width: 18px !important; height: 18px; flex: 0 0 18px; }
.hc-check strong { display: block; color: var(--brand-dark); }
.hc-check span small { display: block; color: var(--text-soft); font-weight: 400; }

.hc-fieldset { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--hc-radius); background: var(--bg); }
.hc-fieldset > legend { padding: 0 8px; color: var(--brand-dark); font-weight: 700; }
.hc-subhead { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--brand-dark); font-size: 1.05rem; }
.hc-subhead .hc-icon { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--brand-light); color: var(--brand); }

.hc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hc-actions--end { justify-content: flex-end; }

/* ---------- Meldungen ---------- */
.hc-alert { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 13px 16px; border-radius: 14px; border: 1px solid #b7efc5; background: #e8fff0; color: #166534; font-weight: 500; }
.hc-alert--error { border-color: #fecdd3; background: #fff1f2; color: #b91c1c; }
.hc-alert--info { border-color: #c9dcf0; background: #eef4fb; color: #14283c; }
.hc-empty { padding: 34px 20px; border: 1px dashed var(--border); border-radius: var(--hc-radius); background: var(--card-bg); color: var(--text-soft); text-align: center; }
.hc-empty strong { display: block; margin-bottom: 6px; color: var(--brand-dark); font-size: 1.05rem; }

/* ---------- Dunkelmodus ---------- */
html.darkmode .hc-banner { background: linear-gradient(135deg, #0b3a61 0%, #0d4f86 60%, #125a96 100%); }
html.darkmode .hc-card,
html.darkmode .hc-check,
html.darkmode .hc-empty { background: #111827; border-color: #334155; }
html.darkmode .hc-fieldset { background: #0f172a; border-color: #334155; }
html.darkmode .hc-section-head h2 .hc-icon,
html.darkmode .hc-subhead .hc-icon,
html.darkmode .hc-count,
html.darkmode .hc-btn--soft,
html.darkmode .hc-chip { background: #1e293b; color: #93c5fd; }
html.darkmode .hc-chip--lime { background: #dce27a; color: #3d4300; }
html.darkmode .hc-chip--warn { background: #3b1d12; color: #fdba8c; }
html.darkmode .hc-chip--ok { background: #0f2e1d; color: #86efac; }
html.darkmode .hc-chip--muted { background: #1e293b; color: #94a3b8; }
html.darkmode .hc-btn { background: #3b82f6; }
html.darkmode .hc-btn:hover { background: #2563eb; }
html.darkmode .hc-btn--soft { background: #1e293b; color: #93c5fd; }
html.darkmode .hc-btn--soft:hover { background: #3b82f6; color: #fff; }
html.darkmode .hc-btn--ghost { background: transparent; color: #cbd5e1; border-color: #334155; }
html.darkmode .hc-btn--ghost:hover { background: #1e293b; color: #fff; }
html.darkmode .hc-btn--danger { background: #3a1418; color: #fca5a5; border-color: #7f1d1d; }
html.darkmode .hc-btn--danger:hover { background: #dc2626; color: #fff; }
html.darkmode .hc-btn--ok { background: #0f2e1d; color: #86efac; border-color: #166534; }
html.darkmode .hc-btn--ok:hover { background: #16a34a; color: #fff; }
html.darkmode .hc-banner .hc-btn--light { background: #fff; color: #0e558c; }
html.darkmode .hc-banner .hc-btn--outline { background: transparent; }
html.darkmode .hc-check:has(input:checked) { background: #172554; border-color: #3b82f6; }
html.darkmode .hc-page .hc-field input:not([type="checkbox"]):not([type="radio"]),
html.darkmode .hc-page .hc-field select,
html.darkmode .hc-page .hc-field textarea,
html.darkmode .hc-page .hc-input { background: #0f172a; border-color: #334155; color: #e5e7eb; }
html.darkmode .hc-page .hc-field input:disabled { background: #1e293b; }
html.darkmode .hc-alert { background: #0f2e1d; border-color: #166534; color: #bbf7d0; }
html.darkmode .hc-alert--error { background: #3a1418; border-color: #7f1d1d; color: #fecaca; }
html.darkmode .hc-alert--info { background: #1e293b; border-color: #334155; color: #e5e7eb; }

@media (prefers-reduced-motion: reduce) {
  a.hc-card, .hc-btn { transition: none; }
  a.hc-card:hover { transform: none; }
}

@media (max-width: 760px) {
  .hc-grid, .hc-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hc-page { width: 100%; margin-top: 12px; }
  .hc-banner { border-radius: var(--radius-lg, 22px); padding: 24px 18px; }
  .hc-banner-actions, .hc-banner-actions .hc-btn { width: 100%; }
  .hc-fieldset { padding: 16px; }
}

/* Hilfsklassen */
.hc-page [hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hc-hint .hc-icon { display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* ---------- Social Media (Editor + Anzeige) ---------- */
.hc-social-editor { display: grid; gap: 10px; }
.hc-social-rows { display: grid; gap: 8px; }
.hc-social-row { display: grid; grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) 42px; gap: 8px; align-items: center; }
.hc-social-row select,
.hc-social-row input {
  width: 100%; min-height: 44px; margin: 0; padding: 9px 12px;
  border: 1px solid #c9d6e4; border-radius: 12px; background: var(--card-bg); color: var(--text);
  font: inherit; font-size: .93rem;
}
.hc-social-row select:focus,
.hc-social-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(14, 85, 140, .12); }
.hc-social-remove {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text-soft); cursor: pointer;
}
.hc-social-remove:hover { border-color: #fecdd3; background: #fff1f2; color: #b91c1c; }
.hc-social-add { justify-self: start; }
.hc-social-editor [hidden] { display: none !important; }
.hc-social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hc-social-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg);
  color: var(--brand-dark); font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hc-social-link:hover { border-color: var(--brand); background: var(--brand-light); color: var(--brand); text-decoration: none; }
.hc-social-link .hc-icon:first-child { color: var(--brand); }
.hc-social-link .hc-icon:last-child { width: 14px; height: 14px; opacity: .6; }
html.darkmode .hc-social-row select,
html.darkmode .hc-social-row input { background: #0f172a; border-color: #334155; color: #e5e7eb; }
html.darkmode .hc-social-remove { border-color: #334155; color: #94a3b8; }
html.darkmode .hc-social-remove:hover { background: #3a1418; border-color: #7f1d1d; color: #fca5a5; }
html.darkmode .hc-social-link { background: #111827; border-color: #334155; color: #e5e7eb; }
html.darkmode .hc-social-link:hover { background: #1e293b; border-color: #3b82f6; color: #fff; }
html.darkmode .hc-social-link .hc-icon:first-child { color: #93c5fd; }
@media (max-width: 560px) {
  .hc-social-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .hc-social-row select { grid-column: 1 / -1; }
  .hc-social-row input { grid-column: 1; }
}

/* Zuschneiden-Knopf neben Bildvorschauen */
.hc-crop-btn[hidden] { display: none !important; }

/* ---------- Tabellen, Textseiten, Kennzahlen (Oktober 2026, v7) ---------- */
.hc-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--hc-radius); background: var(--card-bg); -webkit-overflow-scrolling: touch; }
.hc-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hc-table th, .hc-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: break-word; }
/* style.css macht die erste Tabellenspalte global 36 px schmal und zentriert – für hc-table aufheben */
.hc-table thead th:first-child, .hc-table tbody td:first-child { width: auto; text-align: left; }
.hc-table thead th { position: sticky; top: 0; background: var(--bg); color: var(--brand-dark); font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.hc-table tbody tr:last-child td { border-bottom: 0; }
.hc-table tbody tr:hover td { background: rgba(14, 85, 140, .03); }
.hc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hc-prose { color: var(--text-color-secondary); line-height: 1.65; overflow-wrap: anywhere; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose h2 { margin: 1.6em 0 .5em; color: var(--brand-dark); font-size: 1.25rem; letter-spacing: -.01em; }
.hc-prose h3 { margin: 1.3em 0 .4em; color: var(--brand-dark); font-size: 1.05rem; }
.hc-prose p, .hc-prose ul, .hc-prose ol { margin: 0 0 1em; }
.hc-prose ul, .hc-prose ol { padding-left: 1.3em; }
.hc-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.hc-prose strong { color: var(--brand-dark); }

.hc-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.hc-kv-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.hc-kv-item > .hc-icon { flex: 0 0 auto; width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--brand-light); color: var(--brand); }
.hc-kv-item small { display: block; color: var(--text-soft); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hc-kv-item strong, .hc-kv-item span { color: var(--brand-dark); font-weight: 600; overflow-wrap: anywhere; }

.hc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-tabs a, .hc-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--text-color-secondary); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.hc-tabs a:hover, .hc-tabs button:hover { border-color: #9db4cc; color: var(--brand-dark); text-decoration: none; }
.hc-tabs [aria-current="page"], .hc-tabs [aria-pressed="true"], .hc-tabs .is-active { border-color: var(--brand); background: var(--brand); color: #fff; }

html.darkmode .hc-table-wrap, html.darkmode .hc-kv-item, html.darkmode .hc-tabs a, html.darkmode .hc-tabs button { background: #111827; border-color: #334155; }
html.darkmode .hc-table th, html.darkmode .hc-table td { border-color: #334155; }
html.darkmode .hc-table thead th { background: #0f172a; color: #e5e7eb; }
html.darkmode .hc-table tbody tr:hover td { background: rgba(147, 197, 253, .05); }
html.darkmode .hc-prose strong, html.darkmode .hc-prose h2, html.darkmode .hc-prose h3, html.darkmode .hc-kv-item strong, html.darkmode .hc-kv-item span { color: #e5e7eb; }
html.darkmode .hc-prose a { color: #93c5fd; }
html.darkmode .hc-kv-item > .hc-icon { background: #1e293b; color: #93c5fd; }
html.darkmode .hc-tabs [aria-current="page"], html.darkmode .hc-tabs [aria-pressed="true"], html.darkmode .hc-tabs .is-active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* Lange Wörter in Überschriften umbrechen (Kopfbereich schneidet sonst ab) und Felder oben ausrichten */
.hc-banner h1 { overflow-wrap: break-word; hyphens: auto; }
.hc-field { align-content: start; }
