:root {
  --navy: #12233f;
  --navy-light: #1b3358;
  --accent-pink: #e94868;
  --accent-pink-dark: #d13157;
  --accent-green: #3fae5a;
  --accent-blue: #2f8fd6;
  --accent-yellow: #f2b632;
  --ink: #1a2233;
  --ink-soft: #5b6472;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e5e8ee;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 2px 8px rgba(18, 35, 63, 0.06), 0 1px 2px rgba(18, 35, 63, 0.04);
  --shadow-hover: 0 8px 24px rgba(18, 35, 63, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent-pink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand img { width: 36px; height: 36px; }

.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand-name span { display: block; }

.brand:hover { text-decoration: none; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 36px;
}

.session-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  white-space: nowrap;
}

.session-timer-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  line-height: 1.2;
}

#session-timer-value {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.main-nav a.cta {
  background: var(--accent-pink);
  color: #fff;
  margin-left: 6px;
}

.main-nav a.cta:hover { background: var(--accent-pink-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 2px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0 96px;
  text-align: center;
}

.hero h1 { color: #fff; max-width: 760px; margin-inline: auto; }
.hero p.lead {
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.search-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 28px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.search-panel form {
  display: flex;
  gap: 10px;
}

.search-panel input[type="text"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
}

.search-panel input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.chip.selected { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent-pink); color: #fff; }
.btn-primary:hover { background: var(--accent-pink-dark); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }

.btn-success { background: var(--accent-green); color: #fff; }
.btn-success:hover { background: #338f49; }

.btn-danger { background: rgba(233, 72, 104, 0.12); color: #a3203f; border: 1.5px solid rgba(233, 72, 104, 0.4); }
.btn-danger:hover { background: rgba(233, 72, 104, 0.22); }

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-alt { background: var(--surface); }


/* Aktivitäten (Projekt-Seite) */

.activities-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.activities-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 92px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px;
}

.activities-nav a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

.activities-nav a::before { content: "#"; color: var(--accent-pink); margin-right: 6px; }
.activities-nav a:hover { background: var(--bg); color: var(--accent-pink); text-decoration: none; }

.activities-content .activity {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 92px;
}

.activities-content .activity:first-child { padding-top: 0; }
.activities-content .activity:last-child { border-bottom: none; }

.activity h3 { color: var(--accent-pink); }

.activity-tag {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 14px;
}

.activity .benefit-list { margin-top: 8px; margin-bottom: 0; }
.activity p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .activities-layout { grid-template-columns: 1fr; }
  .activities-nav { position: static; }
}

/* Stat / trust bar */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}

.trust-bar .num {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.trust-bar .label { color: var(--ink-soft); font-size: 0.9rem; }

.hero .trust-bar {
  max-width: 640px;
  margin: 28px auto 36px;
}

.hero .trust-bar .label { color: rgba(255, 255, 255, 0.75); }

/* Partner logos */

.partner-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  opacity: 0.85;
  animation: partner-scroll 38s linear infinite;
}

.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}

.partner-track img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  -webkit-user-drag: none;
}

.partner-track a {
  display: flex;
  align-items: center;
}

@keyframes partner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    overflow-x: auto;
  }
}

/* CTA band (z.B. "Partner werden") */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  padding: 40px 48px;
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
  margin: 0;
}

.cta-band .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
}

/* Testimonials */

.testimonial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.testimonial .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ---------- Job board / Stellenboerse ---------- */

.job-board {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .job-board { grid-template-columns: 1fr; }
}

.filters {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}

.filters h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 20px 0 10px;
}

.facet-group {
  border-top: 1px solid var(--border);
}

.facet-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 14px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.facet-group summary::-webkit-details-marker { display: none; }

.facet-group summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.facet-group[open] summary::after { transform: rotate(-135deg); }
.facet-group summary:hover { color: var(--navy); }
.facet-group summary:hover::after { border-color: var(--navy); }

.facet-scroll {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  /* Platz für die Scrollleiste dauerhaft reservieren, sonst legt sie sich über die
     rechtsbündige Trefferzahl (.count), sobald die Liste länger als max-height wird.
     "stable" hält den Abstand auch bei kurzen Listen, damit die Spalte beim Auf-
     und Zuklappen der Filter nicht springt. Der rechte Innenabstand ist der
     Rückfall für Browser ohne scrollbar-gutter. */
  scrollbar-gutter: stable;
  padding: 2px 10px 14px 0;
}

.filters h3:first-child { margin-top: 0; }

.filter-search {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.filter-option .count { color: var(--ink-soft); font-size: 0.8rem; margin-left: auto; flex-shrink: 0; }
.filter-option span:not(.count) { min-width: 0; flex: 1; }

.filter-option input { accent-color: var(--accent-pink); }

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.results-count { color: var(--ink-soft); font-size: 0.92rem; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.active-filters .tag {
  background: rgba(233, 72, 104, 0.1);
  color: var(--accent-pink-dark);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-filters .tag button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.job-list { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  transition: box-shadow 0.15s, transform 0.15s;
}

.job-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.job-card .logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: var(--accent-blue);
  font-size: 1.1rem;
  overflow: hidden;
}

.job-card .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.job-card .title {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 3px;
  font-size: 1.02rem;
}

.job-card .company { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* Pill-Zeile unter dem Jobtitel. Gilt für die Trefferliste (.job-card .meta) und
   die Detailseite (.job-meta) -- vorher war die Regel nur auf .job-card
   geschachtelt, weshalb die Pills auf stellenangebot.php unformatiert und ohne
   Abstand direkt aneinanderklebten. */
.job-card .meta,
.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.job-card .meta span,
.job-meta span {
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.job-card .apply {
  white-space: nowrap;
}

.job-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 150px;
  flex-shrink: 0;
}

.job-actions form { margin: 0; }
.job-actions form .btn { width: 100%; }

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
}

@media (max-width: 560px) {
  .job-card { grid-template-columns: 1fr; }
  .job-card .apply { justify-self: start; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

/* ---------- Forms (Login) ---------- */

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 440px;
  margin: 0 auto;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus { outline: none; border-color: var(--accent-blue); }

.form-card .btn { width: 100%; margin-top: 6px; }

.form-note {
  font-size: 0.85rem;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.login-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 26px;
}

.login-tabs button {
  flex: 1;
  border: none;
  background: none;
  padding: 10px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.login-tabs button.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* ---------- Project page ---------- */

.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink); font-size: 1.02rem; margin-bottom: 16px; }
.prose strong { color: var(--navy); }
.prose h3 { margin-top: 36px; }

.prose ul {
  color: var(--ink);
  font-size: 1.02rem;
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose li { margin-bottom: 6px; }

.prose code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  color: var(--ink-soft);
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-soft); font-size: 0.88rem; }
.footer-links a:hover { color: var(--navy); }

.footer-funding {
  padding: 28px 0;
  text-align: center;
}

.footer-funding p { color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 16px; }

.funding-logos {
  display: flex;
  justify-content: center;
}

.funding-logos img {
  height: 56px;
  width: auto;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-pink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Registration page ---------- */

.register-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .register-layout { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  position: sticky;
  top: 92px;
}

.contact-card .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

.contact-card .name { font-weight: 600; color: var(--navy); }
.contact-card .role { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.contact-card .contact-line {
  font-size: 0.87rem;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.contact-card .contact-line a { color: var(--ink); }

.form-card.form-card-wide { max-width: none; padding: 36px; }

.form-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.benefit-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--ink);
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.form-grid .span-2 { grid-column: 1 / -1; }

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

.form-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}

.form-field select:focus { outline: none; border-color: var(--accent-blue); }

.form-field .optional-tag {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

/* Hilfshinweis unter einem Eingabefeld. Wird per aria-describedby mit dem Feld
   verknüpft, damit Screenreader den Hinweis beim Fokus mit vorlesen. */
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.field-hint strong { color: var(--ink); font-weight: 600; }

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  cursor: pointer;
}

.radio-option input { accent-color: var(--accent-pink); }

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 8px 0 24px;
}

.consent-row input { margin-top: 3px; accent-color: var(--accent-pink); flex-shrink: 0; }
.consent-row label { font-size: 0.86rem; color: var(--ink-soft); }
.consent-row label a { color: var(--accent-pink); }

.form-card form h3 {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--navy);
}
.form-card form h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-success {
  background: rgba(63, 174, 90, 0.1);
  border: 1.5px solid var(--accent-green);
  color: #1f6b34;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   Anhänge einer Stellenanzeige (Bilder & Flyer)
   Die Vorschaubilder werden serverseitig auf exakt 480x360 zugeschnitten, das
   Raster hält mit aspect-ratio dieselbe Form -- so bleiben alle Kacheln gleich
   groß, egal welches Seitenverhältnis die Originaldatei hatte.
   --------------------------------------------------------------------------- */
.attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 4px 0 28px;
}

.attachment-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.attachment-tile:hover,
.attachment-tile:focus-visible {
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.attachment-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lupensymbol nur als Hinweis -- der Klick liegt auf der ganzen Kachel. */
.attachment-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.attachment-tile:hover .attachment-zoom,
.attachment-tile:focus-visible .attachment-zoom { opacity: 1; }

.attachment-tile-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px;
  text-align: center;
}

.attachment-badge {
  background: var(--accent-pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.attachment-pdf-name {
  font-size: 0.82rem;
  color: var(--ink-soft);
  word-break: break-word;
  line-height: 1.35;
}

/* --- Modal (Lightbox) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 22, 44, 0.88);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  /* Platz für die Bildunterschrift lassen, damit sie nie abgeschnitten wird. */
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
}

.lightbox-figure figcaption {
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  word-break: break-word;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* --- Anhang-Verwaltung im Firmenbereich --- */
.attachment-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.attachment-admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.attachment-admin-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.attachment-admin-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.attachment-name {
  font-size: 0.9rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
   Kontaktblock am Ende einer Stellenanzeige. Ersetzt den früheren
   "Jetzt bewerben"-Button: Bewerbungen laufen nicht über das Portal, sondern
   direkt beim Unternehmen.
   --------------------------------------------------------------------------- */
.apply-box {
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}

.apply-box h3 { margin-top: 0; margin-bottom: 10px; }

.apply-hint {
  margin: 0 0 16px;
  /* Zeilenumbrüche aus dem Freitextfeld der Firma erhalten. */
  white-space: pre-line;
}

.apply-box .apply-hint:last-child { margin-bottom: 0; }

/* Zweispaltig auf breiten Schirmen, gestapelt auf schmalen. */
.apply-contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0;
  align-items: baseline;
}

.apply-contact dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.apply-contact dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

@media (max-width: 560px) {
  .apply-contact { grid-template-columns: 1fr; gap: 2px; }
  .apply-contact dd { margin-bottom: 10px; }
}

/* ---------------------------------------------------------------------------
   Werkzeugleiste einer Stellenanzeige (Teilen / Als PDF speichern)
   --------------------------------------------------------------------------- */
.job-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}

/* .form-card .btn ist projektweit auf width:100% gesetzt -- hier sollen die
   beiden Knöpfe aber nebeneinander stehen und nur so breit sein wie ihr Text. */
.job-tools .btn {
  width: auto;
  margin-top: 0;
  padding: 9px 16px;
}

.job-tools-hint {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Druckansicht -- ersetzt eine PDF-Bibliothek
   Der Browser erzeugt das PDF selbst ("Drucken -> Als PDF sichern"). Das spart
   eine externe Abhängigkeit in einem Projekt, das bewusst ohne Composer läuft,
   und der Ausdruck zeigt immer den aktuellen Stand der Anzeige.
   --------------------------------------------------------------------------- */
@media print {
  /* Bedienelemente und Navigation haben auf Papier nichts verloren. */
  .site-header,
  .site-footer,
  .job-tools,
  .skip-link,
  .filters,
  .results-head .btn,
  .lightbox,
  .apply-box .btn,
  .btn {
    display: none !important;
  }

  /* Farbflächen kosten Toner und bringen auf Papier nichts. */
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  .form-card,
  .form-card-wide,
  .apply-box {
    box-shadow: none;
    border: none;
    background: #fff;
    padding: 0;
    max-width: none;
    margin: 0;
  }

  .container { padding: 0; max-width: none; }

  h1 { font-size: 20pt; }
  h3 { font-size: 12pt; margin-top: 14pt; }

  /* Die Pillen als schlichte Aufzählung -- gefüllte Kreise drucken schlecht. */
  .job-meta span {
    background: none;
    border: 1px solid #999;
    color: #000;
  }

  /* Der Kontaktblock ist auf einem ausgedruckten Aushang das Wichtigste --
     er bleibt, nur ohne Hintergrundfläche. */
  .apply-box {
    border: 1px solid #999;
    padding: 10pt 12pt;
    margin-top: 12pt;
  }

  /* Anhänge lassen sich auf Papier nicht anklicken. Die Kacheln würden nur
     Platz fressen, deshalb raus. */
  .attachment-gallery { display: none; }

  /* Umbrüche vermeiden, wo sie stören. */
  h1, h3 { break-after: avoid; page-break-after: avoid; }
  .apply-box, .benefit-list { break-inside: avoid; page-break-inside: avoid; }

  /* Zielangabe bei Links, damit der Ausdruck die Adresse mitführt. */
  .apply-contact a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  a { color: #000; text-decoration: none; }
}

/* ---------------------------------------------------------------------------
   Hinweis-Modal (z.B. "Sicherheitsrichtlinien überarbeitet" auf der Anmeldeseite)
   --------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 22, 44, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 32px 34px;
  max-width: 520px;
  width: 100%;
}

.modal-box h2 { margin-top: 0; font-size: 1.35rem; }
.modal-box p { margin-bottom: 12px; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* .form-card .btn ist projektweit auf volle Breite gesetzt -- hier sollen die
   beiden Schaltflächen nebeneinander stehen. */
.modal-actions .btn { width: auto; margin-top: 0; }

@media (max-width: 460px) {
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Passwort-Anforderungen mit lebendiger Rückmeldung
   --------------------------------------------------------------------------- */
.pw-regeln {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.pw-regeln li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  /* Vor der ersten Eingabe neutral: ein sofort rotes Feld wirkt wie ein Vorwurf,
     bevor überhaupt jemand getippt hat. */
  color: var(--ink-soft);
  transition: color 0.15s;
}

/* Muss nach der display:flex-Regel stehen und ausdruecklich sein: Ein eigenes
   display ueberschreibt sonst die Wirkung des hidden-Attributs, und die Zeile
   "beide Eingaben stimmen ueberein" waere schon sichtbar, bevor ueberhaupt etwas
   in der Wiederholung steht. */
.pw-regeln li[hidden] { display: none; }

.pw-regeln li.ok    { color: var(--accent-green); }
.pw-regeln li.fehlt { color: #c8324f; }

.pw-zeichen {
  width: 1.1em;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Das Eingabefeld selbst spiegelt den Gesamtzustand. */
.form-field input.pw-gut     { border-color: var(--accent-green); }
.form-field input.pw-schlecht { border-color: #e0879a; }
.form-field input.pw-gut:focus,
.form-field input.pw-schlecht:focus { outline: none; }

/* ---------------------------------------------------------------------------
   Projekte: Gruppen im Reiter, Detailseite, Videos erst nach Klick
   --------------------------------------------------------------------------- */
.activities-nav-gruppe {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 16px 12px 4px;
}

.activities-nav-gruppe:first-child { padding-top: 2px; }

.activities-gruppe {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 40px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.activities-content > .activities-gruppe:first-child { margin-top: 0; }
.activities-content .activities-gruppe + .activity { padding-top: 20px; }

.activity-mehr { margin-top: 12px; font-weight: 600; }

.projekt-zurueck { margin: 0 0 16px; font-weight: 600; }

.projekt-gruppe {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.projekt-inhalt { margin-top: 20px; }
.projekt-inhalt h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.projekt-inhalt h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.projekt-inhalt h4 { font-size: 1rem; margin: 18px 0 6px; }
.projekt-inhalt > :first-child { margin-top: 0; }
.projekt-inhalt ul,
.projekt-inhalt ol { padding-left: 1.3em; margin: 0 0 1em; color: var(--ink-soft); }
.projekt-inhalt li { margin-bottom: 4px; }
.projekt-inhalt figure { margin: 20px 0; }
.projekt-inhalt img { border-radius: var(--radius-sm); height: auto; }
.projekt-inhalt figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.projekt-inhalt blockquote { margin: 20px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent-pink); }

.projekt-inhalt details {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 10px 0;
}
.projekt-inhalt summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.projekt-inhalt details[open] summary { margin-bottom: 8px; }

/* Buttons im Fliesstext nicht auf volle Breite ziehen (.form-card .btn setzt 100 %). */
.projekt-inhalt .btn { width: auto; }

/* Video: erst nach Klick laden, vorher keine Verbindung zu YouTube. */
.video-klick {
  margin: 22px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy);
}

.video-klick-knopf {
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-family: inherit;
  text-align: center;
}

.video-klick-symbol {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent-pink);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  padding-left: 4px;
  transition: background 0.15s, transform 0.15s;
}

.video-klick-knopf:hover .video-klick-symbol,
.video-klick-knopf:focus-visible .video-klick-symbol { background: var(--accent-pink-dark); transform: scale(1.06); }

.video-klick-text { font-weight: 600; font-size: 1rem; }
.video-klick-hinweis { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); max-width: 36ch; }
.video-klick iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Bildergalerie der Projektseiten: alle Bilder gleich groß, Klick öffnet das Modal. */
.projekt-galerie {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.projekt-galerie li { margin: 0; }
.projekt-galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.projekt-inhalt img.ist-vergroesserbar { cursor: zoom-in; }
.projekt-inhalt img.ist-vergroesserbar:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; }

/* Kachelraster für Jobstories und Unternehmensdarstellungen. */
.kachel-block { margin-top: 40px; }
.kachel-block h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.projekt-kacheln {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.projekt-kacheln > li { margin: 0; }

.projekt-kacheln a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--ink);
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
}

.projekt-kacheln a:hover,
.projekt-kacheln a:focus-visible {
  text-decoration: none;
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Einheitliche Bildfläche: Logos werden eingepasst, nicht beschnitten. */
.kachel-bild {
  display: block;
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

/* Absolut positioniert, damit die Bildhoehe wirklich vom Seitenverhaeltnis
   kommt und nicht von der natuerlichen Groesse des Logos. */
.kachel-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.kachel-titel {
  display: block;
  padding: 14px 16px 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.kachel-firma {
  display: block;
  padding: 4px 16px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Kachel ohne Bild: gleiche Flaeche wie die anderen, damit die Titel in einer
   Zeile stehen. Zeigt den Anfangsbuchstaben statt eines leeren Kastens. */
.kachel-bild-leer {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef1f6 0%, #e3e8f0 100%);
  color: var(--navy);
  opacity: 0.55;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
}

/* Zweiter Durchlauf des Logo-Laufbands: zählt fürs Layout nicht als eigener
   Block, sondern reiht sich nahtlos in die Logo-Reihe ein. */
.partner-wiederholung { display: contents; }

/* Hervorgehobener Kasten im Fließtext, z. B. Kontaktangaben. */
.projekt-inhalt .info-kasten {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}
.projekt-inhalt .info-kasten h2,
.projekt-inhalt .info-kasten h3 { color: #fff; margin-top: 0; }
.projekt-inhalt .info-kasten p { color: rgba(255, 255, 255, 0.88); }
.projekt-inhalt .info-kasten p:last-child { margin-bottom: 0; }
.projekt-inhalt .info-kasten a { color: #fff; text-decoration: underline; }

/* Partnerseite: Der Kontaktkasten steht rechts neben dem Text, wie auf der
   alten Seite. Er bleibt Teil des Textes und damit über die Verwaltung
   bearbeitbar -- nur die Anordnung kommt von hier.
   Ohne Kasten (oder in älteren Browsern ohne :has) bleibt es einspaltig. */
.partner-inhalt:has(> .info-kasten) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 36px;
  align-items: start;
}

.partner-inhalt:has(> .info-kasten) > *:not(.info-kasten) { grid-column: 1; }

.partner-inhalt:has(> .info-kasten) > .info-kasten {
  grid-column: 2;
  grid-row: 1 / span 99;
  margin-top: 0;
}

@media (max-width: 900px) {
  .partner-inhalt:has(> .info-kasten) { grid-template-columns: 1fr; }
  .partner-inhalt:has(> .info-kasten) > .info-kasten {
    grid-column: 1;
    grid-row: auto;
    margin-top: 28px;
  }
}

/* Fehlermeldung in Formularen (Gegenstück zu .form-success). */
.form-error {
  background: rgba(233, 72, 104, 0.1);
  border: 1.5px solid rgba(233, 72, 104, 0.5);
  color: #a3203f;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Ankreuzfeld mit langem Text daneben, z. B. Datenschutzhinweis. */
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.form-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }

/* Honigtopf gegen automatische Eintragungen: unsichtbar, aber im Formular vorhanden. */
.hp-feld {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.anfrage-formular { margin-top: 28px; }
.anfrage-formular textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.anfrage-formular textarea:focus { outline: none; border-color: var(--accent-blue); }
.anfrage-formular .btn { width: auto; }

/* ---------------------------------------------------------------------------
   Standbild auf dem Video-Knopf

   Das Bild liegt in unserem eigenen Ordner; der Server holt es einmal beim
   Speichern (inc/video_vorschau.php). Ohne Bild bleibt der Knopf wie bisher eine
   Farbfläche -- beides sieht ordentlich aus.
   --------------------------------------------------------------------------- */
.video-klick-knopf.hat-bild { position: relative; }
.video-klick-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Abdunkeln, damit Beschriftung und Hinweis auf jedem Standbild lesbar bleiben --
   Standbilder sind oft hell und bunt, weiße Schrift allein reicht dann nicht. */
.video-klick-knopf.hat-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 35, 63, 0.45) 0%, rgba(18, 35, 63, 0.88) 100%);
}
.video-klick-knopf.hat-bild > .video-klick-symbol,
.video-klick-knopf.hat-bild > .video-klick-text,
.video-klick-knopf.hat-bild > .video-klick-hinweis { position: relative; z-index: 1; }
.video-klick-knopf.hat-bild > .video-klick-text,
.video-klick-knopf.hat-bild > .video-klick-hinweis { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.video-klick-knopf.hat-bild > .video-klick-hinweis { color: rgba(255, 255, 255, 0.88); }

/* ---------------------------------------------------------------------------
   Texte, die Firmen selbst schreiben: Stellenbeschreibung und
   Unternehmensbeschreibung (inc/beschreibung.php).

   Absichtlich schlichter als .projekt-inhalt -- mehr lässt die Positivliste im
   Profil 'portal' ohnehin nicht durch: kein Bild, kein Kasten, keine Klassen.
   --------------------------------------------------------------------------- */
.beschreibung { margin: 0 0 20px; }
.beschreibung > :first-child { margin-top: 0; }
.beschreibung > :last-child { margin-bottom: 0; }
.beschreibung h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.beschreibung h4 { font-size: 1rem; margin: 18px 0 6px; }
.beschreibung ul,
.beschreibung ol { padding-left: 1.3em; margin: 0 0 1em; color: var(--ink-soft); }
.beschreibung li { margin-bottom: 4px; }
.beschreibung a { text-decoration: underline; }
.beschreibung .video-klick { max-width: 560px; }

/* ---------------------------------------------------------------------------
   Öffentliche Firmenseite (firma.php): Kopf mit Logo, Kontakt, eigene Angebote.
   --------------------------------------------------------------------------- */
.firma-kopf { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.firma-kopf h1 { margin-bottom: 4px; }
.firma-logo {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--navy);
}
.firma-logo img { max-width: 76px; max-height: 76px; object-fit: contain; }
.firma-anschrift { color: var(--ink-soft); margin-bottom: 4px; }
.firma-kontakt { margin-bottom: 28px; }

/* ---------------------------------------------------------------------------
   Ort einer Veranstaltung (Migration 014). Steht auf der Detailseite unter dem
   Titel, auf der Kachel nur als Kurzform.
   --------------------------------------------------------------------------- */
.projekt-ort {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.projekt-ort-symbol { line-height: 1.5; }

.kachel-ort {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   Beiträge auf der Startseite (Migration 016): untereinander, neuester oben.
   Ältere hängen hinter einem Aufklapper.
   --------------------------------------------------------------------------- */
.beitraege { display: flex; flex-direction: column; gap: 28px; }

.beitrag {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 30px 30px;
}
.beitrag h3 { font-size: 1.3rem; margin: 0 0 12px; color: var(--navy); }
.beitrag-datum {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-pink);
}
.beitrag-text { margin-top: 0; }
.beitrag-text > :last-child { margin-bottom: 0; }
.beitrag .projekt-kacheln { margin-top: 20px; }

/* Aufklapper für die älteren Beiträge. */
.beitraege-aeltere { margin-top: 28px; }
.beitraege-aeltere > summary {
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 11px 22px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.beitraege-aeltere > summary::-webkit-details-marker { display: none; }
.beitraege-aeltere > summary:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.beitraege-aeltere > summary:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; }
.beitraege-anzahl { color: var(--ink-soft); font-weight: 400; }
.beitraege-aeltere .beitraege { margin-top: 24px; }

/* Beschriftung umschalten, je nachdem ob offen oder zu. */
.beitraege-zuklappen { display: none; }
.beitraege-aeltere[open] .beitraege-aufklappen { display: none; }
.beitraege-aeltere[open] .beitraege-zuklappen { display: inline; }

@media (max-width: 640px) {
  .beitrag { padding: 20px 18px 24px; }
}

/* ---------------------------------------------------------------------------
   Sprungknöpfe unten rechts (js/sprungknoepfe.js): ganz nach oben, ganz nach
   unten. Erscheinen nur auf langen Seiten und jeweils nur, wenn sie etwas
   bewirken.
   --------------------------------------------------------------------------- */
.sprungknoepfe {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sprungknopf {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.sprungknopf:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-1px); }
.sprungknopf:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 2px; }
.sprungknopf[hidden] { display: none; }

/* Auf dem Druckbogen haben Bedienelemente nichts verloren. */
@media print { .sprungknoepfe { display: none; } }
