/* GKM Global — Design System
   Richtung "Modern & International", abgeleitet aus dem Logo:
   Anthrazit (aus dem "Global"-Schriftzug) als Vertrauensfarbe,
   Bordeaux (aus dem "GKM"-Zeichen, #731F35) als Markenakzent,
   warmes Gold nur für Handlungsaufforderungen.
   Schrift: System-Font-Stack (keine externen Font-Requests, keine Lizenzfragen). */

:root {
  --color-ink-900: #1c1c1e;
  --color-ink-800: #2a2a2c;
  --color-ink-700: #3a3a3c;
  --color-ink-600: #4a4a4d;
  --color-burgundy-600: #731f35;
  --color-burgundy-500: #8a2941;
  --color-gold-500: #c17d2e;
  --color-gold-600: #a76a24;
  --color-ink: #1e1e20;
  --color-body: #3f3f42;
  --color-muted: #6b6b6f;
  --color-line: #e3e1df;
  --color-surface: #ffffff;
  --color-surface-alt: #f6f5f4;
  --color-surface-ink: var(--color-ink-900);

  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.06), 0 1px 1px rgba(28, 28, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 28, 30, 0.10);

  --container-w: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
html:focus-within { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Only body clips horizontal overflow. Setting overflow on html as well
   turns body into its own scroll container and the sticky header stops
   working. "clip" does not create a scroll container; older browsers
   fall back to "hidden". */
body {
  overflow-x: hidden;
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--color-burgundy-600); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-ink-700); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

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

/* Visible focus state everywhere, including keyboard nav */
:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink-900);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(2.5rem, 2rem + 2vw, 5rem) 0;
}
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-ink-900); color: #d6d4d2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #e3aebc; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-burgundy-600);
  margin-bottom: 0.75em;
}
.section--dark .eyebrow { color: #dd97a9; }
.hero .eyebrow {
  background: var(--color-burgundy-600);
  color: #fff;
  font-weight: 800;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-md);
}

.lead {
  font-size: 1.15rem;
  color: var(--color-body);
  max-width: 62ch;
}
.section--dark .lead { color: #d6d4d2; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}
.logo--footer .logo-img { height: 40px; }
/* The logo file only ships in full colour on a light/transparent ground.
   On dark sections (footer, hero) we render it as a plain white mark
   instead, since the charcoal "Global" wordmark would otherwise disappear
   into the dark background. Swap in a dedicated white logo file here if
   one becomes available. */
.logo-img--on-dark {
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.7rem;
  color: var(--color-ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { display: block; overflow: visible; }
.nav-toggle svg line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav__list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.main-nav__list a:not(.btn) {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}
.main-nav__list a.btn { font-size: 0.94rem; white-space: nowrap; }
.main-nav__list a:not(.btn):hover,
.main-nav__list a[aria-current="page"]:not(.btn) {
  color: var(--color-burgundy-600);
}

.main-nav__list a.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav__list a.header-phone:hover { color: var(--color-burgundy-600); }
.header-phone svg { flex-shrink: 0; }
.header-phone__label { display: none; }

.main-nav__list a.lang-switch {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.main-nav__list a.lang-switch:hover {
  color: var(--color-burgundy-600);
  border-color: var(--color-burgundy-600);
}

/* The full menu needs about 1180px; below that the burger menu is used,
   otherwise the logo gets squeezed. */
@media (max-width: 1179px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-phone__label { display: inline; }
  .main-nav {
    position: fixed;
    inset: 74px 0 0 0;
    z-index: 99;
    background: #fff;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    overflow-y: auto;
    border-top: 1px solid var(--color-line);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 2rem;
  }
  .main-nav__list li { border-bottom: 1px solid var(--color-line); margin: 0; }
  .main-nav__list li:last-child { border-bottom: 0; }
  .main-nav__list a { display: block; padding: 0.9rem 0; }
  .main-nav__list a.lang-switch {
    display: inline-block;
    margin: 0.75rem 0;
    padding: 0.35rem 0.75rem;
  }
  .main-nav__list a.btn {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1.25rem;
    padding: 0.85em 1.5em;
    white-space: normal;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-burgundy-600);
  color: #fff;
}
.btn-primary:hover { background: var(--color-burgundy-500); color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--color-ink-900);
  color: var(--color-ink-900);
}
.btn-secondary:hover { background: var(--color-ink-900); color: #fff; }
.section--dark .btn-secondary,
.hero .btn-secondary { border-color: #fff; color: #fff; }
.section--dark .btn-secondary:hover,
.hero .btn-secondary:hover { background: #fff; color: var(--color-ink-900); }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* Hero */
.hero {
  padding: clamp(3rem, 2.5rem + 3vw, 6rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  background: linear-gradient(160deg, var(--color-ink-900) 0%, var(--color-ink-800) 55%, var(--color-ink-700) 100%);
  color: #fff;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #d6d4d2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li {
  display: flex;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: #e8e6e4;
  font-size: 0.96rem;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li svg { flex-shrink: 0; margin-top: 0.15em; color: #dd97a9; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-top: 1rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-burgundy-600); text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--color-line); }

/* Page header (non-hero pages) */
.page-header { padding-block: 2.5rem 1.5rem; border-bottom: 1px solid var(--color-line); }

/* Legal pages (Impressum, Datenschutz): section headings are just labels
   for short reference entries, so the default marketing-page h2/h3 sizes
   read as oversized here. */
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal-content h2:first-child { margin-top: 0; }

/* Cards / Grids */
.grid {
  display: grid;
  gap: 1.75rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-surface-alt);
  color: var(--color-burgundy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0.75em 0 0; padding-left: 1.1em; font-size: 0.96rem; }

/* Numbered process steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  min-height: 2.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-ink-900);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--color-body); font-size: 0.96rem; }

/* Placeholder / trust notice box */
.notice {
  border: 1px dashed var(--color-line);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}
.notice strong { color: var(--color-body); }

/* Table (comparison of collaboration models) */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85em 1em; border-bottom: 1px solid var(--color-line); vertical-align: top; }
th { color: var(--color-ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 2.2rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  position: relative;
}
.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-size: 1.4rem;
  color: var(--color-burgundy-600);
  transition: transform 0.15s ease;
}
.faq-item__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}
.faq-item__a[data-open] { max-height: 800px; }
.faq-item__a-inner { padding: 0 0 1.25rem; color: var(--color-body); }

/* Forms */
.form-grid { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--color-muted); font-size: 0.85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid #cac8c5;
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--color-ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-burgundy-600);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error {
  color: #a02b2b;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #a02b2b;
}
.field.has-error .field-error { display: block; }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; }
.checkbox-field input { width: auto; margin-top: 0.3em; }
.checkbox-field label { font-weight: 400; font-size: 0.92rem; }

/* Honeypot — hidden from real users, visible to bots/scripts */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  display: none;
}
.form-status[data-state="success"] { display: block; background: #e6f4ea; color: #1e6b34; }
.form-status[data-state="error"] { display: block; background: #fbe9e7; color: #9c3b2e; }

/* Footer */
.site-footer {
  background: var(--color-ink-900);
  color: #c9c7c4;
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.94rem; }
.site-footer a { color: #c9c7c4; text-decoration: none; font-size: inherit; overflow-wrap: anywhere; }
.footer-grid > div { min-width: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9a9793;
}
.footer-bottom a { color: #9a9793; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.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;
}
