/**
 * g10code.com, Stylesheet für den Onepager
 * Heike Jurzik, Oktober 2026
 *
 * kein JavaScript, keine externen Requests,
 * Schriften liegen lokal in assets/css/fonts/.
 */

/*--------------------------------------------------------------
# Schriften (lokale Dateien)
# Überschriften: Martel Sans SemiBold
# Fließtext:     Noto Sans
# alle Fonts von: https://gwfh.mranftl.com/fonts
--------------------------------------------------------------*/

/* martel-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Martel Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/martel-sans-v14-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/noto-sans-v42-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/noto-sans-v42-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*--------------------------------------------------------------
# Variablen
--------------------------------------------------------------*/

:root {
  /* Markenfarben (fest vorgegeben) */
  --orange:      #e55f1d;
  --blue:        #008bd2;
  --ink:         #04121b;

  /* Farbschema */
  --bg:          oklch(97.5% 0.008 85);
  --text:        oklch(21% 0.02 250);
  --muted:       oklch(44% 0.02 250);
  --line:        oklch(21% 0.02 250 / 0.14);
  --link:        #00608f;
  --accent-text: #b8460f;

  /* Typografie */
  --font-head:   'Martel Sans', system-ui, sans-serif;
  --font-body:   'Noto Sans', system-ui, sans-serif;
  --font-mono:   ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;

  /* Abstände */
  --pad:         clamp(1rem, 4vw, 3rem);
  --max-width:   84rem;

  /* Bewegung */
  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*--------------------------------------------------------------
# Basis
--------------------------------------------------------------*/

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.7 var(--font-body);
  overflow-x: clip;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1,
h2,
h3,
.row-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

/* Kein Zeilenumbruch innerhalb von Begriffen wie VS-NfD */
.nb {
  white-space: nowrap;
}

/* Hochgestelltes ®, ohne den Zeilenabstand zu verändern */
sup {
  font-size: 0.6em;
  line-height: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Barrierefreiheit
--------------------------------------------------------------*/

/* Nur für Screenreader sichtbar */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip-Link: erscheint beim Tab-Fokus */
.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 30;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Logo: g10 in Orange, "code" klein und hochgestellt */
.brand {
  margin-right: auto;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
  text-decoration: none;
}

.brand-sup {
  position: relative;
  top: -1em;
  margin-left: 0.3em;
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text);
}

/* Menü: auf kleinen Bildschirmen ausgeblendet */
.nav ul {
  display: none;
  gap: 2.5rem;
}

.nav ul a {
  padding-bottom: 0.25rem;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: background-size 0.25s;
}

.nav ul a:hover {
  background-size: 100% 2px;
}

/* Sprachumschalter */
.lang {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.lang:hover {
  background: var(--text);
  color: var(--bg);
}

@media (min-width: 42rem) {
  .nav ul {
    display: flex;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.hero {
  position: relative;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(3.5rem, 11vw, 9rem) var(--pad) 3rem;
}

/* Weiche Farbwolken im Hintergrund */
.hero::before {
  content: '';
  position: absolute;
  inset: -6rem 0 auto;
  z-index: -1;
  height: 34rem;
  pointer-events: none;
  background:
    radial-gradient(40rem 22rem at 78% 20%, color-mix(in oklab, var(--blue) 28%, transparent), transparent 70%),
    radial-gradient(30rem 18rem at 8% 60%, color-mix(in oklab, var(--orange) 22%, transparent), transparent 70%);
}

.kicker {
  display: block;
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-text);
}

.kicker-sup {
  vertical-align: super;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 0;
}

h1 {
  font-size: clamp(2.9rem, 10.5vw, 8.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-left: -0.07em;
  text-wrap: balance;
}

/* Wort in Markenblau */
.blue {
  color: var(--blue);
}

.lead {
  max-width: 46rem;
  margin: 2.2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  hyphens: none;
  text-wrap: pretty;
}

/*--------------------------------------------------------------
# Fingerabdruck-Band (rein dekorativ, aria-hidden im HTML)
--------------------------------------------------------------*/

.cipher {
  margin-block: 1rem 0;
  padding: 0.9rem 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.cipher div {
  display: flex;
  width: max-content;
  font: 0.95rem/1.9 var(--font-mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0.75;
}

.cipher span {
  padding-right: 2rem;
}

/* Zweite Zeile in Orange */
.cipher div + div {
  color: var(--accent-text);
  opacity: 0.6;
}

/*--------------------------------------------------------------
# Projekte (2x2-Raster), wird einspaltig auf kleinen Displays
--------------------------------------------------------------*/

.index {
  max-width: var(--max-width);
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  padding-inline: var(--pad);
}

.label {
  display: block;
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* 2x2-Raster mit feinen Trennlinien (1 px Abstand auf Linienfarbe) */
.rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  background-clip: padding-box;
}

.row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 11rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

/* Farbfläche, die beim Hover von unten hochfährt (Markenblau, flach) */
.row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}

/* Variante mit Markenorange */
.row.o::before {
  background: var(--orange);
}

.row-title {
  display: block;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  hyphens: none;
  transition: transform 0.35s var(--ease);
}

.row-sub {
  display: block;
  max-width: 30rem;
  margin-top: 0.45rem;
  font-size: 0.98rem;
  color: var(--muted);
  transition: color 0.2s;
}

.arrow {
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 5vw, 3.6rem);
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.35s var(--ease);
}

.row:focus-visible {
  outline-offset: -4px;
}

/* Hover-Effekte nur auf Geräten mit Maus */
@media (hover: hover) {
  .row:hover::before {
    transform: scaleY(1);
  }

  .row:hover .row-sub {
    color: var(--text);
  }

  .row:hover .row-title {
    transform: translateX(0.75rem);
  }

  .row:hover .arrow {
    transform: rotate(45deg);
  }
}

/* Schmale Fenster: eine Spalte */
@media (max-width: 50rem) {
  .rows {
    grid-template-columns: 1fr;
  }

  .row {
    min-height: 0;
  }
}

/*--------------------------------------------------------------
# Was wir tun
--------------------------------------------------------------*/

.work {
  max-width: var(--max-width);
  margin: clamp(4rem, 10vw, 8rem) auto 0;
  padding-inline: var(--pad);
}

/* Sechs Kacheln, je mit kurzem orangefarbenem Balken */
.services {
  display: grid;
  gap: 2.5rem 2rem;
}

.services li::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1.1rem;
  background: var(--orange);
}

.services h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  hyphens: none;
}

.services p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  hyphens: none;
}

/* Tablet: 2x2 */
@media (min-width: 40rem) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: drei nebeneinander, also 3x2 */
@media (min-width: 66rem) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*--------------------------------------------------------------
# Impressum und Datenschutz (impressum.html)
# Überschrift links, Text rechts, einspaltig auf kleinen Displays
--------------------------------------------------------------*/

.legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 0;
}

.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal section + section {
  margin-top: 3.5rem;
}

.legal h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

.item {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.4fr);
  gap: 0.4rem 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.item h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.item > div {
  max-width: 46rem;
}

.item > div > :last-child {
  margin-bottom: 0;
}

.legal address {
  margin: 0 0 1rem;
  font-style: normal;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

@media (max-width: 48rem) {
  .item {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Footer mit Kontakt
--------------------------------------------------------------*/

.site-footer {
  margin-top: clamp(4rem, 10vw, 8rem);
  background: var(--ink);
  color: #fff;
}

.site-footer a {
  color: #fff;
}

/* Drei Spalten mit Icon, Bezeichnung und Inhalt */
.contact-grid {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.contact-item {
  padding: 1rem;
}

/* Trennlinien: untereinander waagerecht, nebeneinander senkrecht */
.contact-item + .contact-item {
  border-top: 1px solid rgb(255 255 255 / 0.18);
}

.contact-item dt {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--orange);
}

.contact-item dt svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.5rem;
}

.contact-item dd {
  margin: 0;
}

.contact-item address {
  font-style: normal;
}

/* Fingerabdruck: Festbreitenschrift, optisch so groß wie der Rest */
.contact-item .fpr {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Link zum Herunterladen des Schlüssels unter dem Fingerabdruck */
.contact-item .key-dl {
  margin-top: 0.4rem;
  font-size: 0.875rem;
}

/* Untere Zeile: Copyright, Impressum, Lizenz */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
  padding: 1rem var(--pad);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-item + .contact-item {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.18);
  }
}
/*--------------------------------------------------------------
# Bewegung
# Animationen laufen nur, wenn das Betriebssystem keine
# reduzierte Bewegung verlangt.
--------------------------------------------------------------*/

@media (prefers-reduced-motion: no-preference) {

  /* Fingerabdruck-Band läuft durch, die zweite Zeile gegenläufig */
  .cipher div {
    animation: slide 60s linear infinite;
  }

  .cipher div + div {
    animation-direction: reverse;
    animation-duration: 80s;
  }

  @keyframes slide {
    to {
      transform: translateX(-50%);
    }
  }

  /* Abschnitte blenden beim Scrollen ein (wo der Browser es kann) */
  @supports (animation-timeline: view()) {
    .row,
    .services li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
