/* Kapya UG - eine Datei fuer alle Seiten. Nur helle Fassung, keine Skripte, keine externen Ressourcen. */

@import url("/fonts/ibm-plex-sans.css");

:root {
  --bg: #ffffff;
  --surface: #f3f4f3;
  --ink: #1d2124;
  --head: #1b1f24;
  --muted: #5e666c;
  --line: #e2e5e4;
  --accent: #0d6470;
  --foot-bg: #1b1f24;
  --foot-ink: #c3c9cc;
  --foot-head: #ffffff;
  --foot-line: #31373b;
  --max: 70rem;
  --header-h: 4rem; /* Hoehe der festen Kopfzeile, damit Sprungziele nicht darunter verschwinden */
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* Kopfzeile */
/* Kopfzeile bleibt beim Scrollen oben, Milchglas: Inhalt schimmert verschwommen durch.
   Ohne backdrop-filter (alte Browser) bleibt sie einfach deckend weiss. */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top {
    background: rgb(255 255 255 / 0.68);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom-color: rgb(29 33 36 / 0.08);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7);
  }
}
/* sobald gescrollt wird, ein hauchzarter Schatten unter der Leiste (nur wo Browser das koennen) */
@supports (animation-timeline: scroll()) {
  @keyframes top-lift { to { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 6px 24px -12px rgb(29 33 36 / 0.18); } }
  .top { animation: top-lift linear both; animation-timeline: scroll(); animation-range: 0 120px; }
}
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { color: var(--head); display: block; }
.brand svg { display: block; height: 1.25rem; width: auto; }
.top .menu { margin-left: auto; }
/* eine einzige Groesse fuer alle Links der Kopfzeile, Menue und Sprache (--nav-size) */
.top { --nav-size: 0.9375rem; }
.top nav a { margin-left: 2rem; text-decoration: none; font-size: var(--nav-size); line-height: 1.6; }

/* Sprachwechsel: aktive Sprache dunkel und unterstrichen, die andere grau */
.top .lang { display: flex; gap: 0.875rem; margin-left: 2rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.top .lang a { margin: 0; color: var(--muted); }
.top .lang a:hover { color: var(--accent); }
.top .lang a[aria-current] { color: var(--head); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* Einstieg */
.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.kicker { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
h1 { font-size: 2.75rem; line-height: 1.12; margin: 0; font-weight: 500; color: var(--head); letter-spacing: -0.01em; max-width: 46rem; }
.lead { font-size: 1.125rem; color: var(--muted); margin: 1.5rem 0 0; }

/* Abschnitte */
section { padding: 5rem 0; scroll-margin-top: var(--header-h); }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 1.75rem; font-weight: 500; color: var(--head); margin: 0 0 2.5rem; }

/* Produkte */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product { border: 1px solid var(--line); padding: 2rem; display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 1rem); }
.product img { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: block; }
.product h3 { font-size: 1.375rem; margin: 1.25rem 0 0.25rem; font-weight: 500; color: var(--head); }
.product .sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.product p { margin: 0; }
.product dl { display: grid; grid-template-columns: 7.5rem 1fr; margin: 1.5rem 0 0; font-size: 0.875rem; border-top: 1px solid var(--line); }
.product dt, .product dd { margin: 0; padding: 0.625rem 0; border-bottom: 1px solid var(--line); }
.product dt { color: var(--muted); }
.product .links { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.9375rem; }
.product .links a { color: var(--accent); text-decoration: none; }
.product .links a:hover { text-decoration: underline; }
.product .soon { color: var(--muted); }
/* neutrale Kachel fuer eine App, die noch nicht gezeigt werden soll: leeres Feld statt Symbol */
.product .ph { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: var(--surface); border: 1px solid var(--line); }
.product-soon h3 { color: var(--muted); }
.product-soon p { color: var(--muted); }

/* Unternehmen */
.firm { background: var(--surface); }
.firm .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; }
.firm h2 { margin-bottom: 1rem; }
.firm p { margin: 0; }
.facts { width: 100%; border-collapse: collapse; font-size: 0.9375rem; align-self: end; }
.facts th, .facts td { padding: 0.75rem 0; border-bottom: 1px solid #d8dcdb; text-align: left; vertical-align: top; font-weight: 400; }
.facts th { color: var(--muted); width: 40%; }
.facts a { color: var(--accent); }

/* Kontakt */
.contact h2 { margin-bottom: 1rem; }
.contact p { margin: 0; }
.contact .mail { margin-top: 0.5rem; font-size: 1.125rem; }
.contact .mail a { color: var(--accent); }

/* Rechtstexte */
.legal { padding: 4.5rem 2rem 5rem; }
.legal > * { max-width: 46rem; }
.legal h1 { font-size: 2.25rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.1875rem; margin: 2.25rem 0 0.5rem; }
.legal p, .legal ul, .legal address { margin: 0 0 0.875rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.375rem; }
.legal a { color: var(--accent); }
.legal .stand { margin-top: 2.5rem; color: var(--muted); font-size: 0.875rem; }

/* Fusszeile */
.foot { background: var(--foot-bg); color: var(--foot-ink); font-size: 0.875rem; padding: 3rem 0 2.5rem; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot b { color: var(--foot-head); font-weight: 500; display: block; margin-bottom: 0.625rem; }
.foot a { display: block; text-decoration: none; margin: 0.25rem 0; width: max-content; }
.foot a:hover { color: var(--foot-head); }
.foot .copy { grid-column: 1 / -1; border-top: 1px solid var(--foot-line); margin-top: 1rem; padding-top: 1.25rem; }

@media (max-width: 760px) {
  .wrap { padding: 0 1rem; }
  /* Handy: alles in einer Zeile. Statt "DE EN" steht nur die jeweils andere Sprache,
     sonst passen die deutschen Menuewoerter nicht neben das Logo (nachgemessen). */
  :root { --header-h: 3.25rem; }
  .top .wrap { gap: 0.75rem; }
  .brand svg { height: 0.875rem; }
  .top .menu { display: flex; gap: 0.75rem; }
  .top { --nav-size: 0.8125rem; }
  .top .menu a { margin: 0; }
  .top .lang { margin-left: 0; padding-left: 0.75rem; }
  .top .lang a[aria-current] { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  h1 { font-size: 2rem; }
  section { padding: 3.5rem 0; }
  h2 { font-size: 1.5rem; margin-bottom: 1.75rem; }
  .products, .firm .wrap, .foot .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
  .product { padding: 1.5rem; }
  .product dl { grid-template-columns: 6.5rem 1fr; }
  .legal { padding: 3rem 1rem 3.5rem; }
  .legal h1 { font-size: 1.875rem; }
}

/* sehr schmale Handys (320 px): ohne Trennstrich und etwas enger, damit die Zeile noch passt */
@media (max-width: 360px) {
  .top .wrap { gap: 0.625rem; }
  .brand svg { height: 0.75rem; }
  .top .menu { gap: 0.625rem; }
  .top { --nav-size: 0.75rem; }
  .top .lang { padding-left: 0; border-left: 0; }
}

/* Fehlerseite 404: Deutsch oben, Englisch darunter durch eine Linie getrennt */
.notfound { min-height: 50vh; }
.notfound .other { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.notfound .other h2 { margin-top: 0; }

/* Hinweis auf den Vorrang der deutschen Fassung in den englischen Rechtstexten */
.legal .note { color: var(--muted); font-size: 0.875rem; border-left: 2px solid var(--line); padding-left: 0.875rem; margin-bottom: 2rem; }
