/*
 * core-navigation/style.css
 * ──────────────────────────
 * Top-Contact-Bar, Site-Header, Logo, Main-Nav, Hamburger, Footer.
 * Erfordert: core-theme/style.css
 */

/* ── Top Contact Bar ── */
.top-contact-bar { background: var(--verdant); color: rgba(255,255,255,0.88); font-size: 0.875rem; font-weight: 500; }
.top-contact-inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 40px; }
.top-contact-inner a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.top-contact-inner a:hover, .top-contact-inner a:focus-visible { color: #fff; text-decoration: underline; }

/* ── Site Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(247,249,245,0.88); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line); transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { background: rgba(247,249,245,0.97); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

/* ── Brand ── */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { width: 200px; max-width: 100%; height: auto; filter: brightness(0) saturate(100%); transition: opacity 0.2s; }
.brand-logo:hover { opacity: 0.7; }
.brand-name { font-size: 0.8125rem; font-weight: 600; color: var(--stone); letter-spacing: 0.01em; }

/* ── Main Nav ── */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative; padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 500; color: var(--stone); transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 3px; left: 13px; right: 13px;
  height: 2px; background: var(--meadow); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--verdant); background: rgba(46,125,72,0.07); }
.main-nav a.active { color: var(--meadow); font-weight: 600; }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav .nav-cta { margin-left: 10px; padding: 8px 20px; background: var(--verdant); color: #fff; border-radius: var(--radius-pill); font-weight: 600; }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--meadow); transform: translateY(-1px); color: #fff; }

/* ── Hamburger ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 42px; height: 42px; padding: 0; background: transparent;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--fern); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--forest); border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ── */
.footer { background: var(--forest); color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 260px; }
.footer-brand img { width: 160px; filter: brightness(0) invert(1); opacity: 0.75; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin: 0; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; align-items: center; }
.footer-links a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: white; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,249,245,0.98); backdrop-filter: blur(20px);
    border-top: 1px solid var(--line); padding: 12px 0 20px; flex-direction: column; gap: 0;
    z-index: 200; box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-10px);
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), visibility 0.4s;
    visibility: hidden; pointer-events: none;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
  .main-nav a { font-size: 1.0625rem; padding: 12px 20px; width: 100%; border-radius: 0; }
  .main-nav .nav-cta { margin-left: 12px; margin-top: 6px; width: auto; display: inline-flex; }
  .site-header { position: relative; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 140px; }
  .brand-name { display: none; }
  .top-contact-inner { gap: 12px; justify-content: center; font-size: 0.8125rem; min-height: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
