/* Tóth IT — self-hosted Inter, no third-party requests. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

:root {
  --paper: #f7f7f6;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --soft: #3c3c3c;
  --muted: #595959;
  --line: #e6e6e4;
  --accent: #1d4e89;
  --accent-deep: #163e6e;
  --white: #ffffff;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --max: 70rem;
  --header: 4.25rem;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

a:visited {
  color: inherit;
}

p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--accent);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  font-weight: 500;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.4rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 160ms ease, background-color 160ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  flex: 1 0 100%;
  flex-direction: column;
  padding: 0.15rem 0 0.85rem;
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
}

.site-nav > a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
  font-weight: 500;
  border-top: 1px solid var(--line);
}

.site-nav > a:hover,
.site-nav > a:focus-visible {
  color: var(--accent);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  text-decoration: none;
  color: var(--muted);
}

.lang a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.lang a:hover,
.lang a:focus-visible {
  color: var(--accent);
}

.hero {
  padding-top: clamp(3.25rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin-bottom: 1.15rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.04;
}

.lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
}

.button:visited {
  color: inherit;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:visited {
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-primary:focus-visible {
  outline-color: var(--ink);
}

.button-secondary {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(26, 26, 26, 0.05);
}

.button-kicker {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.index-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.index a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.index li:last-child a {
  border-bottom: 1px solid var(--line);
}

.index-num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.index a:hover .index-name,
.index a:focus-visible .index-name {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lede {
  margin-top: 0.85rem;
  max-width: 36rem;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.5;
}

.services {
  display: grid;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 1.75rem 0 1.9rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.num {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.service h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.service p {
  margin-top: 0.75rem;
  max-width: 38rem;
  color: var(--soft);
}

.contact-channels {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.contact-label {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link {
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.impressum {
  color: var(--soft);
}

.impressum h1,
.impressum h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.impressum h1 {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.impressum address {
  margin-top: 1.25rem;
  font-style: normal;
  line-height: 1.55;
}

.impressum p {
  margin-top: 1rem;
  max-width: 40rem;
}

.impressum a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.impressum a:visited {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.missing {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(5rem, 14vw, 9rem);
}

.missing h1 {
  max-width: 16ch;
}

.missing p {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--soft);
}

.missing .actions a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

@media (max-width: 40rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
    padding: 0;
  }

  .site-nav > a {
    min-height: 0;
    border: 0;
  }

  .lang {
    min-height: 0;
    margin-left: 0.35rem;
    padding-left: 1.15rem;
    border-top: 0;
    border-left: 1px solid var(--line);
    gap: 0.15rem;
  }

  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }

  .service:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .contact-channels {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.62fr);
    align-items: start;
    padding-top: 0.35rem;
  }
}

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

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none;
  }
}

@media print {
  .skip,
  .nav-toggle,
  .site-nav,
  .actions,
  .index {
    display: none !important;
  }

  .site-header {
    position: static;
    border-top: 0;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
