/* Pynex LLC – Stylesheet
   Farben und Abstände zentral als Variablen; mobile first. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e3a5f;
  --navy-ink: #0f1f33;   /* Text auf Coral (Kontrast 5.9:1) */
  --coral: #ff6b4a;
  --white: #ffffff;
  --mist: #f3f6f9;
  --gray: #5b6270;
  --line: #dde3ea;
  --tint: #e3eaf2;
  --on-navy: #c9d3e0;

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: 1.25rem;
  --radius: 0.75rem;
  --section: 4.5rem;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 6vw + 0.5rem, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 128px; height: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.lang a,
.lang span[aria-current] {
  display: inline-block;
  padding: 0.35rem 0.1rem;
}
.lang a { color: var(--gray); text-decoration: none; }
.lang a:hover { color: var(--navy); text-decoration: underline; }
.lang span[aria-current] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--coral);
}
.lang .sep { color: var(--line); }

/* Ohne JS bleibt die Navigation sichtbar; mit JS wird sie mobil eingeklappt. */
.site-nav {
  flex-basis: 100%;
  order: 3;
  padding-bottom: 0.75rem;
}
.header-inner { flex-wrap: wrap; }

.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav .lang { padding-top: 0.5rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }

@media (min-width: 48rem) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-basis: auto;
    order: 0;
    padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: 1.75rem; }
  .site-nav a { padding: 0.35rem 0; }
  .js .site-nav .lang {
    padding: 0 0 0 1.75rem;
    margin: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .brand img { width: 140px; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--navy-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: #ff825f; text-decoration: none; }
.button svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin: -0.15em 0.6rem 0 0;
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}

.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--gray); font-size: 1.125rem; }

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

.hero { padding: 4rem 0 4.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 1.25rem; }
.hero .lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.3rem);
}
.hero-art { display: none; }

@media (min-width: 60rem) {
  .hero { padding: 6.5rem 0 7rem; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; }
  .hero-art { display: block; width: 100%; max-width: 20rem; justify-self: end; }
}

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card p { margin: 0; color: var(--gray); }
.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: var(--tint);
}
.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon .accent { stroke: var(--coral); }
.card-icon .accent-fill { fill: var(--coral); stroke: none; }

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

/* ---------- Arbeitsweise ---------- */

.steps {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--gray); }

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

/* ---------- Über uns ---------- */

.about p { max-width: 42rem; color: var(--gray); font-size: 1.125rem; }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-photo {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
  border-radius: 1.25rem;
}

@media (min-width: 48rem) {
  .about-grid { grid-template-columns: minmax(0, 1fr) 16rem; gap: 4rem; }
  .about-photo { justify-self: end; }
}

/* ---------- Kontakt ---------- */

.contact-panel {
  padding: 3rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--navy);
  color: var(--white);
}
.contact-panel .eyebrow { color: var(--on-navy); }
.contact-panel h2 { color: var(--white); }
.contact-panel p { max-width: 36rem; color: var(--on-navy); font-size: 1.125rem; }
.contact-panel :focus-visible { outline-color: var(--coral); }

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.contact-mail .address {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .contact-panel { padding: 4rem; }
}

/* ---------- Rechtstexte ---------- */

.legal { padding: 3.5rem 0 5rem; }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 4vw + 0.75rem, 3rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.legal p,
.legal li { color: #3f4654; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.35rem; }
.legal address { font-style: normal; margin-bottom: 1rem; color: #3f4654; }
.legal .note {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--coral);
  background: var(--mist);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--navy);
}
.legal .meta { margin-top: 3rem; color: var(--gray); font-size: 0.9375rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.9375rem;
}
.site-footer :focus-visible { outline-color: var(--coral); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-brand img { width: 120px; height: auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer .lang a { color: var(--on-navy); }
.site-footer .lang a:hover { color: var(--white); }
.site-footer .lang span[aria-current] { color: var(--white); }
.site-footer .lang .sep { color: #4a6385; }
.copyright { margin: 0; flex-basis: 100%; }

@media (min-width: 48rem) {
  .copyright { flex-basis: auto; }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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