/* BRUCHMANN [TEC] — gemeinsame Kopfnavigation und Fußzeile.
   Eingesetzt von _build/nav.py. Farben mit Rückfallwerten, damit jede Seite gleich aussieht. */

.bt-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bt-header.scrolled { border-color: var(--line, #E5E7E1); background: rgba(250, 250, 247, 0.96); }
.bt-bar { max-width: 1180px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bt-wordmark { font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--green-900, #0D2620); white-space: nowrap; text-decoration: none; }
.bt-wordmark:hover { text-decoration: none; }
.bt-accent { color: var(--accent, #C2410C); }

.bt-menu { display: flex; align-items: center; gap: 24px; }
.bt-main { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.bt-main > li { position: relative; }
.bt-main > li > a, .bt-sub-toggle {
  color: var(--text, #1A2622); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.bt-main > li > a:hover, .bt-sub-toggle:hover { color: var(--green-700, #0D5C4A); text-decoration: none; }
.bt-main a[aria-current="page"], .bt-has-sub.bt-active > .bt-sub-toggle { color: var(--green-700, #0D5C4A); }
.bt-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.bt-sub-toggle[aria-expanded="true"] .bt-caret { transform: rotate(225deg) translateY(-1px); }

.bt-sub {
  display: none; list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 10px); left: -18px; min-width: 300px;
  background: #fff; border: 1px solid var(--line, #E5E7E1); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(13, 38, 32, .35);
}
.bt-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* Brücke für Hover */
.bt-has-sub.bt-open > .bt-sub { display: block; }
@media (hover: hover) and (min-width: 961px) { .bt-has-sub:hover > .bt-sub { display: block; } }
.bt-sub a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text, #1A2622); }
.bt-sub a:hover, .bt-sub a:focus-visible { background: var(--green-50, #ECFDF5); text-decoration: none; }
.bt-sub a strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--green-900, #0D2620); }
.bt-sub a span { display: block; font-size: 13px; color: var(--muted, #6B7570); margin-top: 1px; }
.bt-sub a[aria-current="page"] strong { color: var(--green-700, #0D5C4A); }
.bt-sub .bt-ext { display: inline; font-size: 12px; color: var(--muted, #6B7570); }
.bt-sep { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #6B7570); padding: 12px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line, #E5E7E1); }

.bt-cta { background: var(--green-900, #0D2620); color: #fff; font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.bt-cta:hover { background: var(--green-700, #0D5C4A); color: #fff; text-decoration: none; }
.bt-lang { font-size: 12px; color: var(--muted, #6B7570); font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.bt-lang a { color: var(--muted, #6B7570); text-decoration: none; }
.bt-lang a:hover { color: var(--green-700, #0D5C4A); }

.bt-burger { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line, #E5E7E1); border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; color: var(--green-900, #0D2620); cursor: pointer; }
.bt-burger-icon, .bt-burger-icon::before, .bt-burger-icon::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.bt-burger-icon::before, .bt-burger-icon::after { content: ''; position: absolute; left: 0; }
.bt-burger-icon::before { top: -5px; } .bt-burger-icon::after { top: 5px; }
.bt-burger[aria-expanded="true"] .bt-burger-icon { background: transparent; }
.bt-burger[aria-expanded="true"] .bt-burger-icon::before { transform: translateY(5px) rotate(45deg); }
.bt-burger[aria-expanded="true"] .bt-burger-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .bt-bar { padding: 14px 20px; flex-wrap: wrap; }
  .bt-burger { display: inline-flex; }
  .bt-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 18px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .bt-header.bt-menu-open .bt-menu { display: flex; }
  .bt-header.bt-menu-open { background: rgba(250, 250, 247, 0.99); border-color: var(--line, #E5E7E1); }
  .bt-main { flex-direction: column; align-items: stretch; gap: 0; }
  .bt-main > li { border-bottom: 1px solid var(--line, #E5E7E1); }
  .bt-main > li > a, .bt-sub-toggle { width: 100%; justify-content: space-between; padding: 14px 2px; font-size: 16px; }
  .bt-sub { position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px; background: transparent; }
  .bt-sub::before { display: none; }
  .bt-sub a { padding: 9px 10px; }
  .bt-cta { margin-top: 18px; text-align: center; padding: 13px 18px; font-size: 15px; }
  .bt-lang { margin-top: 14px; text-align: center; font-size: 13px; }
}

/* Fußzeile */
.bt-footer { padding: 64px 0 44px; color: var(--muted, #6B7570); font-size: 13px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.bt-foot-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .bt-foot-wrap { padding: 0 20px; } }
.bt-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; padding-top: 48px; margin-bottom: 40px; border-top: 1px solid var(--line, #E5E7E1); }
@media (max-width: 720px) { .bt-foot-grid { grid-template-columns: 1fr; gap: 32px; } }
.bt-tagline { margin: 14px 0 0; max-width: 38ch; color: var(--muted, #6B7570); font-size: 13px; line-height: 1.55; }
.bt-foot-h { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-900, #0D2620); margin: 0 0 16px; font-weight: 600; font-family: inherit; }
.bt-footer ul { list-style: none; padding: 0; margin: 0; }
.bt-footer li { padding: 5px 0; }
.bt-footer li a { color: var(--text, #1A2622); text-decoration: none; }
.bt-footer li a:hover { color: var(--green-700, #0D5C4A); }
.bt-legal { border-top: 1px solid var(--line, #E5E7E1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.bt-legal a { color: var(--muted, #6B7570); }
