/* ============================================================
   Globale Basis-Styles für Kartensortiment.de
   Wird von allen Seiten eingebunden (index, impressum, datenschutz).
   Enthält außerdem die Styles für den per template.js eingefügten
   Header- und Footer-Bereich, der auf allen Seiten identisch ist.
   ============================================================ */

:root {
  --orange: #F28C28;
  --orange-deep: #D97816;
  --black: #121114;
  --white: #ffffff;
  --grey-200: #e5e5e2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; width: 100%; }
@media (max-width: 700px) { .container { padding: 0 20px; } }

/* ---------- Shared header (Markup via template.js) ---------- */
header.top {
  background: var(--white);
  color: var(--black);
  border-bottom: 1px solid var(--grey-200);
  position: relative; z-index: 5;
}
.top-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}
.logo-link { display: inline-flex; line-height: 0; }
.logo { height: 36px; width: auto; display: block; }
.top-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  display: inline-flex; align-items: center; gap: 10px;
}
.top-meta::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(242,140,40,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,140,40,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(242,140,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,140,40,0); }
}
@media (max-width: 600px) {
  .top-inner { padding: 14px 0; }
  .logo { height: 30px; }
  .top-meta { font-size: 10px; letter-spacing: 0.15em; }
  .top-meta::before { width: 6px; height: 6px; }
}

/* ---------- Shared footer (Markup via template.js) ---------- */
footer {
  position: relative; z-index: 3;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.socials { display: flex; gap: 10px; }
.socials a {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--white);
  transition: all .2s;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--orange); }
.footer-legal a.current { color: var(--orange); }
@media (max-width: 700px) {
  .footer-inner { justify-content: center; text-align: center; gap: 16px; }
  .footer-inner > * { flex-basis: 100%; display: flex; justify-content: center; }
}
