/* ============================================================
   breitenstein works — Custom Stylesheet
   Brand: #4A3F35 (dark brown) | #B8966A (gold) | #F8F6F3 (cream)
   Fonts: Cormorant Garamond (headings) | Source Sans 3 (body)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --c-primary:   #4A3F35;
  --c-accent:    #B8966A;
  --c-bg:        #F8F6F3;
  --c-white:     #FFFFFF;
  --c-border:    #E8E0D8;
  --c-text-muted:#7A6E64;
  --c-hover:     #9A7850;

  --f-heading:   'Varela Round', 'Source Sans 3', Arial, sans-serif;
  --f-body:      'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --max-width:   1380px;
  --header-h:    110px;
  --radius:      4px;
  --transition:  0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--c-primary);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-hover); }

ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-primary);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 4.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); margin-bottom: 0.875rem; }
h3 { font-size: clamp(1.35rem, 2.5vw, 2.1rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ---- Layout Wrapper ---- */
#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#container {
  flex: 1;
}

#main > .inside {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 5rem) clamp(1.5rem, 3.5vw, 4rem);
}

/* ---- Site Header ---- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 8px rgba(74,63,53,.06);
}

#header > .inside {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 72px;
  width: auto;
}

/* Navigation */
.mod_navigation { display: flex; align-items: center; }

.mod_navigation ul.level_1 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mod_navigation ul.level_1 > li > a,
.mod_navigation ul.level_1 > li > strong {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  display: block;
  white-space: nowrap;
}

.mod_navigation ul.level_1 > li > strong {
  color: var(--c-accent);
  background: transparent;
}

.mod_navigation ul.level_1 > li > a:hover,
.mod_navigation ul.level_1 > li.active > a {
  background: var(--c-bg);
  color: var(--c-accent);
}

/* CTA nav item */
.mod_navigation ul.level_1 > li.last > a {
  background: var(--c-accent);
  color: var(--c-white);
  padding: 0.5rem 1.25rem;
}

.mod_navigation ul.level_1 > li.last > a:hover {
  background: var(--c-hover);
  color: var(--c-white);
}

/* ---- Site Footer ---- */
#footer {
  background: var(--c-primary);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}

#footer > .inside { padding: 0; }

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem,5vw,5rem) 0 clamp(2rem,3vw,3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 3rem;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ft-brand img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(0) brightness(1.5);
  margin-bottom: 0.875rem;
}

.ft-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.ft-col-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
  display: block;
}

.ft-col a,
.ft-col address {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-style: normal;
  line-height: 1.9;
  transition: color var(--transition);
}

.ft-col a:hover { color: var(--c-accent); }

.ft-badge img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.ft-badge img:hover { opacity: 1; }

.footer-copy {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy p,
.footer-copy a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
}

.footer-copy a:hover { color: rgba(255,255,255,0.6); }

/* ---- Articles / Content area ---- */
.mod_article {
  padding: 0;
}

/* ---- Split layout ---- */
.inside:has(.split-layout) {
  padding: 0 !important;
}

.split-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 60vh;
}

/* Sidebar */
.split-sidebar {
  background: #EDE8E2;
  border-right: 1px solid var(--c-border);
  padding: 2.5rem 1.75rem;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.sidebar-title {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.sidebar-count {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  display: block;
}

.sidebar-section { margin-bottom: 1.75rem; }

.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
  display: block;
}

.sidebar-options { display: flex; flex-direction: column; gap: 0.4rem; }

.sidebar-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--c-primary);
  transition: color var(--transition);
}

.sidebar-option:hover { color: var(--c-accent); }

.sidebar-option input[type="checkbox"] {
  accent-color: var(--c-accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 1.5rem 0;
}

.sidebar-reset {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  cursor: pointer;
  width: 100%;
  transition: border-color var(--transition), color var(--transition);
  margin-top: 0.5rem;
}

.sidebar-reset:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Content area */
.split-content {
  padding: 2.5rem 2.5rem 4rem;
  min-width: 0;
}

.content-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0;
}

.job-filter-count {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

.job-filter-empty {
  padding: 2rem 0;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

/* ---- Stellenangebote — Card list ---- */
.mod_listing { display: block; }

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.job-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: var(--c-primary);
  text-decoration: none;
  background: var(--c-white);
  transition: box-shadow var(--transition), border-color var(--transition), border-left-color var(--transition);
}

.job-row:hover {
  box-shadow: 0 4px 16px rgba(74,63,53,.1);
  border-color: var(--c-accent);
  border-left-color: var(--c-accent);
}

.job-row-title {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.job-row-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.job-row-arrow {
  color: var(--c-accent);
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.55;
  transition: opacity var(--transition), transform var(--transition);
}

.job-row:hover .job-row-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Favorit highlight */
.job-row.is-favorit {
  border-left-color: var(--c-accent);
  background: linear-gradient(to right, rgba(184,150,106,.07) 0%, var(--c-white) 55%);
}

.job-row.is-favorit .job-row-title::before {
  content: '★ ';
  color: var(--c-accent);
  font-size: 0.85em;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
}

.badge-region {
  background: rgba(74,63,53,.12);
  color: var(--c-primary);
  border: 1px solid rgba(74,63,53,.28);
}

.badge-pensum {
  background: var(--c-accent);
  color: #fff;
  border: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  transition: all var(--transition);
}

.pagination a:hover { background: var(--c-bg); border-color: var(--c-accent); color: var(--c-accent); }

.pagination strong {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

/* ---- Stellenangebot Detail ---- */
.stellenangebot-detail {
  max-width: 800px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.detail-intro {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.detail-intro p { color: var(--c-text-muted); }

.detail-title {
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  margin-top: 2rem;
  margin-bottom: 0;
  line-height: 1.15;
}

@media (max-width: 640px) {
  .detail-title { font-size: 1.75rem; margin-top: 1.25rem; }
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section h2,
.detail-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
}

.detail-section ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.detail-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.detail-section p { margin-bottom: 0.75rem; }

.detail-cta {
  margin-top: 3rem;
  padding: 2.25rem 2.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}

.detail-cta h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}

.cta-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.cta-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 3%;
  flex-shrink: 0;
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.cta-body { flex: 1; }

.cta-body p {
  margin: 0;
  line-height: 1.55;
}

.cta-actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .detail-cta { padding: 1.5rem 1.25rem; }
  .cta-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }
  .cta-portrait { width: 110px; height: 110px; }
  .cta-body { width: 100%; }
  .cta-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cta-actions .btn-apply,
  .cta-actions .btn-apply-form,
  .cta-actions .btn-whatsapp {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.btn-apply {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-apply:hover { background: var(--c-hover); color: var(--c-white); }

.btn-apply-form {
  display: inline-block;
  background: transparent;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.68rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--c-accent);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-apply-form:hover { background: var(--c-accent); color: var(--c-white); }

/* ---- Bewerbungs-Lightbox ---- */
.bw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74,63,53,.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bw-modal-overlay.is-open { display: flex; }

.bw-modal {
  background: var(--c-white);
  border-radius: 8px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(74,63,53,.22);
}

.bw-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: color var(--transition);
}
.bw-modal-close:hover { color: var(--c-primary); }

.bw-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.bw-modal .bw-modal-subtitle {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 1.75rem;
}

/* Formular-Styling innerhalb Modal */
.bw-modal .formbody .widget { margin-bottom: 1.1rem; }
.bw-modal .formbody label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.bw-modal .formbody input[type="text"],
.bw-modal .formbody input[type="email"],
.bw-modal .formbody input[type="tel"],
.bw-modal .formbody input[type="date"],
.bw-modal .formbody textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--c-primary);
  background: var(--c-bg);
  transition: border-color var(--transition);
}
.bw-modal .formbody input:focus,
.bw-modal .formbody textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.bw-modal .formbody textarea { min-height: 110px; resize: vertical; }
.bw-modal .formbody input[type="file"] { font-size: 0.88rem; }
.bw-modal .formbody .submit {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background var(--transition);
}
.bw-modal .formbody .submit:hover { background: var(--c-hover); }
.bw-modal .formbody .error { color: #c0392b; font-size: 0.82rem; margin-top: 0.2rem; }
.bw-modal .confirm { color: #2d7a3a; font-weight: 600; padding: 1rem 0; }

@media (max-width: 640px) {
  .bw-modal { padding: 2rem 1.25rem 1.5rem; }
}

/* ---- Detail Topbar (back-link + share) ---- */
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  transition: color var(--transition);
}
.back-icon {
  width: 22px;
  height: 22px;
  opacity: 0.45;
  transition: opacity var(--transition);
}
.back-link:hover .back-icon { opacity: 0.75; }
.back-link:hover { color: var(--c-primary); }

/* ---- Share Bar ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.share-label {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
.share-wa:hover  { background: #25D366; border-color: #25D366; color: #fff; }
.share-li:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff; }

/* ---- WhatsApp Button ---- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-whatsapp svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-whatsapp:hover { background: #1ebe5c; color: #fff; }

/* ---- Sticky CTA (mobile only) ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: 0.75rem 1rem;
  gap: 0.6rem;
  box-shadow: 0 -4px 16px rgba(74,63,53,.1);
}
.sticky-cta.is-visible { display: flex; }
.sticky-cta-btn {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.sticky-cta-mail {
  background: var(--c-accent);
  color: var(--c-white);
  transition: background var(--transition);
}
.sticky-cta-mail:hover { background: var(--c-hover); color: var(--c-white); }
.sticky-cta-form {
  background: transparent;
  color: var(--c-accent);
  border: 2px solid var(--c-accent);
  transition: background var(--transition), color var(--transition);
}
.sticky-cta-form:hover { background: var(--c-accent); color: var(--c-white); }

@media (min-width: 641px) {
  .sticky-cta { display: none !important; }
}

/* ---- Keine passende Stelle / Spontanbewerbung ---- */
.no-job-cta {
  margin-top: 3rem;
  background: #E8E1D9;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 2.5rem 0;
}
.no-job-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.no-job-text h2 {
  font-size: 1.25rem;
  color: var(--c-primary);
  margin-bottom: 0.4rem;
}
.no-job-text p {
  color: var(--c-text-muted);
  font-size: 0.93rem;
  max-width: 480px;
  margin: 0;
}
.no-job-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .no-job-cta { padding: 1.75rem 0; }
  .no-job-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .no-job-actions { width: 100%; }
  .no-job-actions .btn-apply,
  .no-job-actions .btn-whatsapp { flex: 1; justify-content: center; }
}

/* ---- Generic Page Content ---- */
.ce_text, .ce_headline {
  margin-bottom: 1.5rem;
}

/* ---- Hamburger / Mobile Nav toggle ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Responsive ---- */
@media (max-width: 1430px) {
  #header > .inside,
  .footer-grid,
  .footer-copy,
  .no-job-inner {
    padding-left: clamp(1.5rem, 3.5vw, 4rem);
    padding-right: clamp(1.5rem, 3.5vw, 4rem);
  }
}

@media (max-width: 1140px) {
  :root { --header-h: 88px; }

  #header > .inside { flex-wrap: wrap; height: auto; min-height: var(--header-h); position: relative; }

  .nav-toggle { display: flex; }

  .mod_navigation {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mod_navigation.open { max-height: 400px; }

  .mod_navigation ul.level_1 {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
    gap: 0;
    width: 100%;
  }

  .mod_navigation ul.level_1 > li { width: 100%; }

  .mod_navigation ul.level_1 > li > a,
  .mod_navigation ul.level_1 > li > strong {
    width: 100%;
    padding: 0.625rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--c-border);
  }

  .mod_navigation ul.level_1 > li.last > a {
    margin-top: 0.5rem;
    border-radius: var(--radius);
    text-align: center;
    background: var(--c-accent);
    color: var(--c-white);
    border-bottom: none;
  }
}

@media (max-width: 960px) {
  .split-layout { grid-template-columns: 1fr; }
  .split-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 1.25rem 0.5rem;
  }
  .sidebar-title { font-size: 1.1rem; margin-bottom: 0.1rem; }
  .sidebar-count { margin-bottom: 0.5rem; display: block; }
  .sidebar-divider { display: none; }

  /* Accordion sections */
  .sidebar-section {
    margin-bottom: 0;
    border-top: 1px solid var(--c-border);
  }
  .sidebar-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    cursor: pointer;
    user-select: none;
  }
  .sidebar-section-title::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1;
  }
  .sidebar-section.is-open .sidebar-section-title::after { content: '−'; }
  .sidebar-options {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .sidebar-section.is-open .sidebar-options {
    max-height: 300px;
    padding-bottom: 0.75rem;
  }
  .sidebar-reset { margin-top: 0.75rem; margin-bottom: 1rem; }

  .split-content { padding: 1.75rem 1.5rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .site-logo img { height: 52px; }
  .job-row { flex-wrap: wrap; gap: 0.4rem 0.75rem; }
  .job-row-title { flex-basis: 100%; }
  .job-row-badges { order: 2; flex: 1; justify-content: flex-start; }
  .job-row-arrow { order: 3; margin-left: auto; }
}

@media (max-width: 640px) {
  #main > .inside { padding: 2rem 1rem; }
  #header > .inside { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-logo img { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-grid a, .footer-grid p, .footer-grid address { text-align: center; }
  .ft-brand { align-items: center; }
  .ft-brand img { display: block; margin: 0 auto; }
  .ft-badge { justify-content: center; }
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Accessibility — Skip Nav ---- */
.mod_navigation a.invisible {
  display: none;
}

/* ---- Detail page: links inside RTE content use text color ---- */
.detail-section ul li a,
.detail-section ol li a,
.detail-section p a,
.detail-intro a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(74,63,53,.3);
}

.detail-section ul li a:hover,
.detail-section ol li a:hover,
.detail-section p a:hover,
.detail-intro a:hover {
  color: var(--c-accent);
  text-decoration-color: var(--c-accent);
}
