/* arvut.ch: the one site header and footer of the static pages (station, stations, cycle,
   net, fiduciary, unix, automation, software-or-service). Same links as the React pages.
   Generated markup; see the build notes of the site for how it is stamped. Self-contained:
   own custom properties, so it renders the same on pages with a different palette. */

.sc-head,
.sc-foot {
  --sc-paper: #fcfaf4;
  --sc-ink: #303030;
  --sc-ink-2: #4f5d5a;
  --sc-ink-3: #8a948f;
  --sc-teal: #009b9f;
  --sc-teal-d: #00787c;
  --sc-teal-soft: #e3f2f0;
  --sc-line: #dcdcd8;
  --sc-line-2: #e9e1d1;
  --sc-f-display: "Archivo", Arial, sans-serif;
  --sc-f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sc-gut: clamp(20px, 4vw, 72px);
  --sc-maxw: 1560px;
  box-sizing: border-box;
  font-family: var(--sc-f-body);
  -webkit-font-smoothing: antialiased;
}
.sc-head *,
.sc-foot * {
  box-sizing: border-box;
}

/* ---- header (design Natalia 09.11.2026, the station header) ---- */
.sc-head.sh {
  display: block;
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--sc-paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--sc-line);
  margin: 0;
  padding: 0;
  max-width: none;
  color: var(--sc-ink);
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}
.sc-head .sh-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  padding: 14px var(--sc-gut);
  max-width: var(--sc-maxw);
  margin: 0 auto;
}
.sc-head .sh-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.sc-head .sh-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  margin-left: auto;
}
.sc-head .sh-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--sc-ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.sc-head .sh-nav a:hover {
  color: var(--sc-teal-d);
}
.sc-head .sh-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-head .langs {
  display: flex;
  gap: 4px;
  margin: 0;
}
.sc-head .langs a {
  font-family: var(--sc-f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--sc-ink-3);
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.sc-head .langs a.on {
  color: var(--sc-teal-d);
  border-color: var(--sc-line);
}
.sc-head .langs a:hover {
  color: var(--sc-teal-d);
}
.sc-head .sh-cta {
  display: inline-flex;
  align-items: center;
  background: var(--sc-teal);
  color: #fff !important;
  font-family: var(--sc-f-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.2em;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.sc-head .sh-cta:hover {
  background: var(--sc-teal-d);
}
.sc-head .sh-burger {
  display: none;
  position: relative;
}
.sc-head .sh-burger summary {
  list-style: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sc-paper);
}
.sc-head .sh-burger summary::-webkit-details-marker {
  display: none;
}
.sc-head .sh-burger summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sc-ink);
  box-shadow: 0 -6px 0 var(--sc-ink), 0 6px 0 var(--sc-ink);
}
.sc-head .sh-burger[open] summary span {
  background: transparent;
  box-shadow: none;
}
.sc-head .sh-burger[open] summary::after {
  content: "\00d7";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--sc-ink);
  margin-top: -3px;
}
.sc-head .sh-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(86vw, 320px);
  background: #fff;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(18, 38, 38, 0.14);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.sc-head .sh-panel a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--sc-ink);
  text-decoration: none;
  font-weight: 500;
}
.sc-head .sh-panel a:hover {
  background: var(--sc-teal-soft);
}
.sc-head .sh-panel a.sh-cta {
  justify-content: center;
  margin-top: 8px;
  color: #fff;
}
.sc-head .sh-panel .sh-plangs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sc-line-2);
}
.sc-head .sh-panel .sh-plangs a {
  padding: 8px 12px;
}
.sc-head .sh-panel .sh-plangs a:hover {
  background: transparent;
}
/* Seven menu items: the bar turns into the burger earlier than the old five-item station bar. */
@media (max-width: 1280px) {
  .sc-head .sh-nav {
    display: none;
  }
  .sc-head .sh-right {
    margin-left: auto;
  }
  .sc-head .sh-right > .sh-cta {
    display: none;
  }
  .sc-head .sh-burger {
    display: block;
  }
}
@media (max-width: 760px) {
  .sc-head .sh-right > .langs {
    display: none;
  }
}

/* ---- footer (same layout as the footer of the React pages) ---- */
footer.sc-foot {
  display: block;
  background: var(--sc-paper);
  border-top: 1px solid var(--sc-line);
  margin: 0;
  max-width: none;
  padding: clamp(48px, 5vw, 72px) 0 2rem;
  color: var(--sc-ink-2);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
}
.sc-foot .sc-wrap {
  width: 100%;
  max-width: var(--sc-maxw);
  margin-inline: auto;
  padding-inline: var(--sc-gut);
}
.sc-foot a {
  color: inherit;
  text-decoration: none;
}
.sc-foot .foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 3vw, 3rem);
}
.sc-foot .foot-word {
  font-family: var(--sc-f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  color: var(--sc-ink);
  line-height: 0.9;
}
.sc-foot .foot-tag {
  max-width: 34ch;
  font-size: 0.92rem;
  margin: 1rem 0 0;
  color: var(--sc-ink-2);
}
.sc-foot .sc-meta {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sc-f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-ink-3);
}
.sc-foot .sc-row {
  margin: 0.45rem 0 0;
  line-height: 1.4;
}
.sc-foot .sc-row.first {
  margin-top: 1.1rem;
}
.sc-foot .sc-row a {
  color: var(--sc-teal-d);
  font-size: 0.93rem;
  font-weight: 600;
}
.sc-foot .foot-m {
  display: none;
}
.sc-foot .foot-col h4 {
  font-family: var(--sc-f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-teal-d);
  margin: 0 0 1rem;
}
.sc-foot .foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.sc-foot .foot-col a {
  font-size: 0.93rem;
  color: var(--sc-ink-2);
  transition: color 0.2s;
}
.sc-foot .foot-col a:hover,
.sc-foot .sc-row a:hover {
  color: var(--sc-teal-d);
}
.sc-foot .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--sc-line);
  font-family: var(--sc-f-mono);
  font-size: 0.74rem;
  color: var(--sc-ink-3);
}
.sc-foot .foot-bottom a:hover {
  color: var(--sc-ink);
}
@media (max-width: 1024px) {
  .sc-foot .foot-col {
    display: none;
  }
  .sc-foot .foot-m {
    display: block;
  }
  .sc-foot .foot-top {
    grid-template-columns: 1fr;
  }
}

/* ---- multi-language A4 pages (/unix, /automation, /software-or-service): one header and
   footer per language, the one of the active language is shown (the A4 engine sets
   html[lang]; the hidden #ru view shows the German one); the engine's own language bar
   stays the language switch there. ---- */
.sc-head.sc-l,
.sc-foot.sc-l {
  display: none;
}
html[lang="de"] .sc-l[data-l="de"],
html[lang="fr"] .sc-l[data-l="fr"],
html[lang="it"] .sc-l[data-l="it"],
html[lang="en"] .sc-l[data-l="en"],
html[lang="ru"] .sc-l[data-l="de"] {
  display: block;
}

@media print {
  .sc-head,
  .sc-foot {
    display: none !important;
  }
}
