/* Secure Society, page stylesheet for the Kontakt page and the legal pages of the public preview.
   Trimmed from site/shared/site.css (the full template for the sub-pages stays there): tokens, fonts, base type, header,
   buttons, glass, the brand ring, the placeholder tag, the legal layout, the Kontakt layout, the footer and the glass
   pop-up. The contact form is in form.css. Font URLs are relative to this file, so pages in / and in /en/ share it. */

@font-face { font-family: "Wix Madefor Display"; src: url("../assets/fonts/WixMadeforDisplay-VF.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- tokens (same values as the home page) ---------- */
:root {
  --navy: #000E21; --n1: #031427; --n2: #0B1D2F; --n3: #17283A; --n4: #2A394B;
  --white: #FFFFFF; --g1: #C9CED4; --g2: #A7AFB7; --g3: #808A96;
  --hb: #28BCFF; --hb-edge: #0A79A8; --link: #086289; --t1: #F0F9FE; --t2: #DDF0FC; --t3: #C6E5F8;
  --paper: #F8F8F8; --grey1: #F1F1F1; --grey2: #E9ECEF; --grey3: #D5DAE0; --meta: #626569;
  --pos: #1DA949; --pos-text: #00732B; --high: #C22826;
  --f-display: "Wix Madefor Display", "Barlow", system-ui, sans-serif;
  --f-text: "Barlow", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --s-h1: clamp(34px, 4.2vw, 60px);
  --s-lead: clamp(20px, 1.75vw, 25px);
  --s-body: clamp(17px, 1.25vw, 18px);
  --s-small: 14px;
  --s-intro: clamp(19px, 1.6vw, 22px);
  --gut: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  /* the grain, pre-faded for the page background (alpha .55 × .05), so full-page renders show no seam */
  --noise-paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0.05  0 0 0 0 0.13  0 0 0 .0275 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--f-text); font-size: var(--s-body); line-height: 1.6; color: var(--n3); background: var(--noise-paper), var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.012em; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--hb-edge); outline-offset: 3px; border-radius: 6px; }
.nav :focus-visible { outline-color: var(--hb); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--hb); color: var(--navy); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); position: relative; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nw { white-space: nowrap; }

/* open questions ([ZU PRÜFEN: …]) stay visible until they are answered: a dashed box as wide as its text, wrapping
   inside the box. As a <p> it stands on its own line; as a <span> it follows a sentence in running text (legal pages). */
.ptag-block { font-family: var(--f-mono); font-size: 13px; font-weight: 400; letter-spacing: .01em; color: var(--link); background: var(--t1); border: 1px dashed var(--hb-edge); border-radius: 6px; text-align: left; text-transform: none; }
.ptag-block { display: inline-block; width: fit-content; max-width: min(100%, 60ch); margin: 0; padding: 5px 9px; line-height: 1.5; vertical-align: baseline; overflow-wrap: anywhere; }
p.ptag-block, div.ptag-block { display: block; margin-top: 16px; }

/* ---------- header: navy, the same all the way down ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(0,14,33,.97); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(201,206,212,.08); }
.nav .wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.nav .logo img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { position: relative; color: var(--g1); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav ul a:hover { color: var(--white); }
.nav ul a[aria-current="page"] { color: var(--white); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 1px; background: var(--hb); box-shadow: 0 0 8px rgba(40,188,255,.6); }
.lang { color: var(--g3); font-family: var(--f-mono); font-size: 13px; }
.lang b { color: var(--white); font-weight: 500; }
.lang a { text-decoration: none; transition: color .2s; }
.lang a:hover { color: var(--white); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-family: var(--f-text); font-weight: 600; font-size: 17px; text-decoration: none; border: 0; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn svg.i { transition: transform .3s var(--ease); }
.btn.primary { background: var(--hb); color: var(--navy); box-shadow: 0 0 0 0 rgba(40,188,255,.0); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(40,188,255,.7); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.primary:hover svg.i { transform: translateX(3px); }
.btn.sm { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- the ring: one object, one language ---------- */
.ring { position: absolute; width: var(--d); aspect-ratio: 1; pointer-events: none; }
.ring > .drift { position: absolute; inset: 0; animation: drift 18s ease-in-out infinite; }
.ring svg.rg { position: absolute; inset: -30%; width: 160%; height: 160%; overflow: visible; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-8px); } }

/* ---------- glass (light, front-facing; few of them) ---------- */
.glass { position: relative; border-radius: 26px; background: linear-gradient(140deg, rgba(255,255,255,.66), rgba(255,255,255,.4) 55%, rgba(255,255,255,.52)); backdrop-filter: blur(28px) saturate(125%); -webkit-backdrop-filter: blur(28px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55), inset 0 -24px 48px -24px rgba(255,255,255,.5), inset 0 18px 40px -30px rgba(40,188,255,.25), 0 40px 80px -36px rgba(0,14,33,.35), 0 2px 8px rgba(0,14,33,.05); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.1) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---------- legal pages: one readable column ---------- */
.legal { padding: clamp(130px, 12vw, 170px) 0 clamp(80px, 9vw, 130px); }
.legal .col { max-width: 68ch; }
.legal h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; hyphens: manual; overflow-wrap: break-word; }
.legal h2 { margin-top: 44px; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3; }
.legal h1 + h2 { margin-top: 48px; }
.legal p { margin-top: 12px; color: var(--n4); line-height: 1.68; }
.legal p.lede { margin-top: 24px; font-size: var(--s-intro); line-height: 1.5; color: var(--n4); }
.legal .lede + h2 { margin-top: 48px; }
.legal p.stand { margin-top: 44px; }
.legal a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(40,188,255,.55); text-underline-offset: 3px; }
.legal a:hover { color: var(--navy); text-decoration-color: var(--hb-edge); }
.legal p .ptag-block { margin: 4px 0; }
.legal strong { color: var(--n3); font-weight: 600; }

/* ---------- Kontakt: H1 and lede, then the form in glass beside the contact card (below it on phones) ---------- */
.kontakt { padding: clamp(130px, 12vw, 170px) 0 clamp(80px, 9vw, 130px); overflow-x: clip; }
.kontakt h1 { font-size: var(--s-h1); line-height: 1.06; letter-spacing: -0.02em; }
.kontakt .lede { margin-top: 24px; font-size: var(--s-lead); line-height: 1.45; max-width: 38ch; color: var(--n4); }
.k-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.k-form { padding: clamp(24px, 3.2vw, 44px); border-radius: 28px; scroll-margin-top: 96px;
  background: linear-gradient(168deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.86) 45%, rgba(242,250,254,.86) 100%); }
.k-form .cf { gap: 16px; }
.k-form .cf .btn.primary, .k-form .cf-fail .btn.primary { justify-self: start; min-width: 200px; }
.k-form .cf .fnote { text-align: left; }
.k-form .thanks { padding: 8px 0; font-size: var(--s-intro); line-height: 1.5; }
.k-form .cf-fail p { font-size: var(--s-intro); }
.k-side { position: sticky; top: 112px; isolation: isolate; padding-top: clamp(28px, 4vw, 60px); }
.k-side .ring { --d: clamp(200px, 19vw, 260px); right: calc(-0.22 * var(--d)); top: calc(-0.12 * var(--d)); z-index: -1; }
.k-card { padding: 24px; color: var(--navy); background: linear-gradient(140deg, rgba(255,255,255,.8), rgba(255,255,255,.6) 55%, rgba(255,255,255,.72)); }
.k-card .p { display: flex; gap: 14px; align-items: center; }
.k-card .face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 5px rgba(40,188,255,.22); }
.k-card .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.k-card b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.k-card small { display: block; font-size: 14px; color: var(--n4); }
.k-facts { margin: 22px 0 0; display: grid; gap: 0; }
.k-facts > div { padding: 14px 0; border-top: 1px solid rgba(0,14,33,.09); display: grid; gap: 2px; }
.k-facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--meta); }
.k-facts dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--navy); }
.k-facts a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(40,188,255,.55); text-underline-offset: 3px; overflow-wrap: anywhere; }
.k-facts a:hover { text-decoration-color: var(--hb-edge); }

/* ---------- footer: its own closed white block ---------- */
footer { background: var(--white); color: var(--meta); font-size: 15px; position: relative; z-index: 2; border-top: 1px solid var(--grey2); }
footer .wrap { padding-top: 34px; padding-bottom: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
footer .logo img { height: 32px; width: auto; }
footer .fgroup { display: grid; gap: 6px; justify-items: end; text-align: right; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; justify-content: flex-end; }
footer a { text-decoration: none; color: var(--n4); }
footer a:hover, footer a[aria-current="page"] { color: var(--navy); text-decoration: underline; }
footer .lang { color: var(--g2); font-size: 13px; }
footer .lang b { color: var(--navy); }
footer .lang a:hover { color: var(--navy); }
footer .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; font-size: 13px; color: var(--meta); }

/* ---------- pop-ups in glass ----------
   The dialog is a transparent full-viewport layer: a navy veil behind, the glass frame in front (a bottom sheet on phones).
   Their motion is scripted (site.js, pop-up controller); the CSS here is the open, settled state. */
dialog.pop { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 24px 16px; border: 0; background: transparent; overflow: hidden; color: var(--navy); }
dialog.pop[open] { display: flex; align-items: center; justify-content: center; }
dialog.pop::backdrop { background: transparent; }
dialog.pop:focus, .pop-panel:focus { outline: none; }
dialog.pop :focus-visible { outline: 2px solid var(--hb-edge); outline-offset: 3px; }
dialog.pop button { -webkit-tap-highlight-color: transparent; }
.pop-veil { position: absolute; inset: 0; background: rgba(0,14,33,.34); }
.pop-frame { position: relative; z-index: 1; width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 28px; }
.pop-frame.pf { width: min(520px, 100%); }
.pop-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(168deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.88) 45%, rgba(242,250,254,.88) 100%);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.7), inset 0 -26px 40px -30px rgba(40,188,255,.22), 0 40px 90px -30px rgba(0,14,33,.5), 0 12px 30px -16px rgba(10,121,168,.35); }
.pop-body { position: relative; flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }
.pop-body > .x { z-index: 3; right: 16px; top: 16px; background: rgba(255,255,255,.88); }
.pop-frame.pf .x { right: 14px; top: 14px; }
.pop-panel { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 34px 36px 30px; scrollbar-width: thin; scrollbar-color: rgba(0,14,33,.28) transparent; }
.pop-panel.pf { padding: 0; }
.pop-panel.scrolls { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 18px), transparent 100%); }
.pf h2 { font-size: 28px; color: var(--navy); padding-right: 44px; }
dialog .x { position: absolute; z-index: 2; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 1px rgba(0,14,33,.1); display: grid; place-items: center; color: var(--navy); }
dialog .x:hover { background: var(--white); }
@media (max-width: 600px) {
  dialog.pop { padding: 0; }
  dialog.pop[open] { align-items: flex-end; }
  .pop-frame, .pop-frame.pf { width: 100%; max-height: calc(100% - 48px); border-radius: 24px 24px 0 0; }
  .pop-panel { padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
  .pop-panel.pf { padding: 0 0 env(safe-area-inset-bottom); }
  .pop-body > .x { right: 12px; top: 12px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav ul { gap: 18px; } .nav ul a { font-size: 14px; }
}
@media (max-width: 1040px) {
  .nav .wrap { height: 64px; }
}
@media (max-width: 860px) {
  .k-grid { grid-template-columns: minmax(0, 1fr); }
  .k-side { position: relative; top: auto; padding-top: 12px; max-width: 520px; }
  .k-side .ring { --d: 190px; right: -70px; top: -40px; }
}
@media (max-width: 760px) {
  :root { --gut: 20px; }
  html { scroll-padding-top: 84px; }
  .nav .wrap { gap: 20px; }
  .nav .logo img { height: 30px; }
  .nav ul a { font-size: 15px; }
  .legal, .kontakt { padding-top: 112px; }
  .legal h2 { margin-top: 36px; }
  .kontakt .lede { font-size: 19px; margin-top: 20px; }
  .k-form { padding: 22px 18px; border-radius: 22px; }
  .k-form .cf .btn.primary, .k-form .cf-fail .btn.primary { justify-self: stretch; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 30px; padding-bottom: 30px; }
  footer .fgroup { justify-items: start; text-align: left; gap: 10px; }
  footer ul, footer .meta { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .k-form { padding: 22px 16px; }
}
/* phones: logo, Kontakt and the language switch; the contact form is one tap away on the Kontakt page */
@media (max-width: 600px) {
  .nav .btn { display: none; }
}

/* without motion (reduced motion, webdriver; site.js sets .still): final states, no transitions, no loops */
.still *, .still *::before, .still *::after { transition: none !important; }
.still .ring > .drift { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring > .drift { animation: none; }
}
