/* Shared header (fixed, with mobile menu) and footer of every page. */
#nav.pv-nav {
  --nav-bg: #f6f4f0; --nav-line: #dcd8d0; --nav-ink: #14161c; --nav-muted: #63687a; --nav-accent: #2c6aab;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: rgba(246,244,240,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.pv-nav-in {
  max-width: 1280px; height: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}
.pv-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--nav-ink); }
.pv-logo img { height: 30px; width: auto; display: block; }
.pv-logo span { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: .14em; font-size: .82rem; text-transform: uppercase; white-space: nowrap; }
.pv-links { display: flex; gap: 2.2rem; margin: 0 auto; list-style: none; padding: 0; }
.pv-links a { font-family: 'Karla', sans-serif; font-size: .9rem; color: var(--nav-muted); text-decoration: none; transition: color .2s; }
.pv-links a:hover, .pv-links a[aria-current="page"] { color: var(--nav-ink); }
.pv-cta {
  display: inline-flex; align-items: center; padding: .6rem 1.15rem; border-radius: 999px;
  background: var(--nav-ink); color: var(--nav-bg); text-decoration: none;
  font-family: 'Karla', sans-serif; font-size: .82rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--nav-ink); transition: transform .2s, background .2s;
}
.pv-cta:hover { transform: translateY(-1px); background: #000; }
#nav.pv-nav .hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  min-width: 44px; min-height: 44px; margin-right: -11px; padding: 4px;
  background: none; border: 0; cursor: pointer;
}
#nav.pv-nav .hamburger span { display: block; width: 24px; height: 2px; background: var(--nav-ink); border-radius: 1px; transition: transform .3s, opacity .3s, width .3s, margin .3s; }
/* shorter last bar, flush left under the others; it grows back so the open state is a clean X */
#nav.pv-nav .hamburger span:nth-child(3) { width: 16px; margin-right: 8px; }
#nav.pv-nav .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.pv-nav .hamburger.open span:nth-child(2) { opacity: 0; }
#nav.pv-nav .hamburger.open span:nth-child(3) { width: 24px; margin-right: 0; transform: translateY(-7px) rotate(-45deg); }
.pv-menu {
  display: none; position: fixed; top: calc(68px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 99;
  background: #f6f4f0; border-bottom: 1px solid #dcd8d0;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem); flex-direction: column; gap: .25rem;
}
.pv-menu.open { display: flex; }
.pv-menu a { padding: .6rem 0; color: #63687a; text-decoration: none; font-family: 'Karla', sans-serif; font-size: 1rem; font-weight: 500; }
.pv-menu a:hover { color: #14161c; }
:where(.pv-nav, .pv-menu) a:focus-visible { outline: 2px solid #2c6aab; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 1000px) {
  .pv-nav-in { gap: .75rem; }
  .pv-links { display: none; }
  /* margin set here: the legacy .hamburger rule in styles.css would push it (and the button) 1rem left on subpages */
  #nav.pv-nav .hamburger { display: flex; margin-left: 0; }
  .pv-logo { margin-right: auto; }
}
/* phones: the quote button stays one tap away; the wordmark gives way (the logo's alt text keeps the name) */
@media (max-width: 440px) {
  .pv-logo span { display: none; }
  .pv-cta { padding: .6rem 1rem; font-size: .8rem; }
}

/* ───── Gemeinsame Fußzeile ───── */
.pv-foot {
  background: #eceae4; border-top: 1px solid #dcd8d0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem;
  color: #14161c; font-family: 'Karla', sans-serif;
}
.pv-foot-in { max-width: 1280px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 4rem); }
.pv-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
.pv-foot h2 { font-family: 'JetBrains Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #63687a; margin-bottom: 1rem; font-weight: 400; }
.pv-foot ul { list-style: none; display: grid; gap: .6rem; padding: 0; margin: 0; }
.pv-foot a { color: #3a3f4b; text-decoration: none; font-size: .92rem; }
.pv-foot a:hover { color: #2c6aab; }
.pv-foot-brand p { color: #63687a; font-size: .92rem; max-width: 32ch; margin-top: 1rem; line-height: 1.6; }
.pv-foot-brand .pv-logo { color: #14161c; }
.pv-foot-region { margin-top: 3rem; color: #63687a; font-size: .78rem; line-height: 1.7; }
.pv-foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #dcd8d0;
  font-size: .8rem; color: #63687a;
}
.pv-foot-bottom div a { margin-left: 1.5rem; font-size: .8rem; color: #63687a; }
@media (max-width: 900px) { .pv-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pv-foot-grid { grid-template-columns: 1fr; gap: 2rem; } .pv-foot-bottom div a { margin: 0 1.25rem 0 0; } }
