/* Kopf- und Fusszeile, gleich auf allen Seiten. Setzt glas.css voraus.
   Markup: Navbar.tsx/Footer.tsx (Startseite) und die Flask-Templates. */

/* ---------- Kopfleiste: schwebende Glaspille ---------- */
.kopfleiste {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  pointer-events: none;
}
.kopfleiste-pille {
  pointer-events: auto;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 60px;
  padding: 0.45rem 0.5rem 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  --glas-radius: 999px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.kopfleiste.gescrollt .kopfleiste-pille {
  --glas-scheibe: linear-gradient(140deg, rgba(40, 72, 110, 0.5), rgba(8, 22, 40, 0.55));
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding-right: 0.5rem;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
}
.marke img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.marke span { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.005em; }
.kopf-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.kopf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.kopf-links a:hover, .kopf-links a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.1); }

.menue-knopf {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.menue-knopf span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.45s var(--ease-glas), top 0.45s var(--ease-glas);
}
.menue-knopf span:first-child { top: 17px; }
.menue-knopf span:last-child { top: 25px; }
.kopfleiste.offen .menue-knopf span:first-child { top: 21px; transform: rotate(45deg); }
.kopfleiste.offen .menue-knopf span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menue-knopf { display: inline-block; }
  .marke span { font-size: 1.1rem; }
  .kopf-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    border-radius: 22px;
    /* echtes Glas: die Pille traegt ihre Unschaerfe auf ::before und ist
       deshalb kein Backdrop-Root — das Blatt verwischt die Seite selbst */
    background: linear-gradient(160deg, rgba(34, 66, 104, 0.66), rgba(8, 22, 40, 0.74));
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -20px rgba(0, 6, 20, 0.9);
  }
  .kopfleiste.offen .kopf-links { display: flex; animation: blatt-auf 0.35s var(--ease-glas); }
  .kopf-links a { min-height: 52px; padding: 0 1rem; border-radius: 14px; font-size: 1.05rem; color: #fff; }
}

@keyframes blatt-auf {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Fusszeile ---------- */
.fusszeile { padding: 0 clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem); }
.fusszeile-innen { max-width: 1160px; margin: 0 auto; }
.fusszeile-kern { padding: clamp(1.75rem, 4vw, 2.75rem); }
.fuss-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--linie);
}
.fuss-titel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
  text-shadow: none;
}
.fusszeile p, .fusszeile li { font-family: var(--font-body); font-size: 0.94rem; line-height: 1.75; color: var(--text-secondary); margin: 0; }
.fusszeile ul { list-style: none; margin: 0; padding: 0; }
.fusszeile a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
/* Tippflaeche: Zeile allein waere ~26 px hoch */
.fusszeile li a, .fuss-mail { display: inline-flex; align-items: center; min-height: 40px; }
.fusszeile a:hover { color: #fff; }
.fuss-mail { display: inline-block; margin-top: 0.5rem; color: var(--hellblau) !important; }
.fuss-leiste {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
}
.fuss-leiste p { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .fuss-raster { grid-template-columns: 1fr; gap: 1.5rem; }
}
