/*
 * www.pipedesk.de — base layer (ADR 0026, TASK-1180).
 * Brand colours are the dark values of the GJS design tokens (`--c-*`, design handoff
 * 2026-09-10); the layout is the site's own and deliberately not the app's.
 * No inline styles anywhere (CSP style-src 'self'); fonts are served from /fonts.
 */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/open-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/open-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/open-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --c-bg: #0e2a47;
  --c-elev: #163759;
  --c-rail: #12314f;
  --c-deep: #0b2239;
  --c-chrome: #081c30;
  --c-border: #1f4774;
  --c-border-soft: rgba(31, 71, 116, 0.45);
  --c-hover: #1b4066;
  --c-sec: #2c4666;
  --c-sec-hover: #3b5879;
  --c-text: #ffffff;
  --c-text-soft: #e6f1f9;
  --c-muted: #8fb3d1;
  --c-muted-a: rgba(143, 179, 209, 0.55);
  --c-primary: #1fa2e0;
  --c-primary-hover: #3fb0e6;
  --c-primary-active: #0e80b8;
  --c-on-primary: #0e2a47;
  --c-info-text: #9fd3f0;
  --c-ok-text: #7fd6a4;
  --c-err-text: #f0a3a3;
  --c-warn: #eab308;
  --c-shadow: rgba(0, 0, 0, 0.6);
  --c-shadow-btn: rgba(0, 0, 0, 0.35);

  --font: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius-sm: 3px;
  --radius-md: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --content: 1120px;
  --section-y: clamp(72px, 11vw, 136px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text-soft);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--c-text);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-info-text);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-text);
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

svg {
  display: block;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--c-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- header ------------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 42, 71, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.brand-ring {
  fill: none;
  stroke: var(--c-primary);
  stroke-width: 2.5;
}

.brand-water {
  fill: none;
  stroke: var(--c-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-core {
  fill: var(--c-primary);
}

.brand small {
  color: var(--c-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Manufacturer mark next to the product brand, links to kanalkamera.de (fw 2026-10-02). */
.brand-partner {
  margin-left: -10px;
  color: var(--c-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand-partner:hover,
.brand-partner:focus-visible {
  color: var(--c-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--c-muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--c-text);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* Language switch (TASK-1185): plain links, no script; the current language is underlined. */
.lang-switch ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 6px;
  border-bottom: 2px solid transparent;
  color: var(--c-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--c-text);
}

.lang-switch a[aria-current='page'] {
  border-bottom-color: var(--c-primary);
  color: var(--c-text);
}

/* Pages without a main navigation: the switch takes the right edge itself. */
.brand-partner + .lang-switch {
  margin-left: auto;
}

/* Phones: brand, sign-in and language switch do not fit one row (the sign-in button was cut
   off before TASK-1185 already) — what does not fit wraps into a second, right-aligned row. */
@media (max-width: 560px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* ---- buttons ----------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 100ms ease,
    border-color 100ms ease,
    color 100ms ease;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
  box-shadow: 0 4px 14px var(--c-shadow-btn);
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  color: var(--c-on-primary);
}

.btn-primary:active {
  background: var(--c-primary-active);
}

.btn-primary:disabled {
  background: var(--c-sec);
  color: var(--c-muted);
  box-shadow: none;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-text-soft);
}

.btn-ghost:hover {
  background: var(--c-hover);
  border-color: var(--c-primary);
  color: var(--c-text);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* ---- footer ------------------------------------------------------------------------------ */

.site-footer {
  background: var(--c-chrome);
  border-top: 1px solid var(--c-border-soft);
  color: var(--c-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--c-text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  flex-basis: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
