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

/* ---------- Tokens ---------- */
:root {
  --color-bg: #fafafa;
  --color-white: #ffffff;
  --color-text: #00051d;
  --color-btn-text: #010538;
  --color-accent-blue: #0038a6;
  --color-green-start: #c8f26f;
  --color-green-end: #90c325;
  --color-green-hover: #6c921c;
  --color-border: #d9d9d9;

  --max-width: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.375rem);
  --radius-lg: 10px;
  --radius-btn: 6px;

  --font-body: "Space Grotesk", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3rem, 6vw, 5.5rem); }

.eyebrow-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--color-green-start), var(--color-green-end));
  color: var(--color-btn-text);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn .arrow-icon { width: 14px; height: 14px; }
.btn:hover {
  background: var(--color-green-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(250, 250, 250, 0.4);
  color: var(--color-white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: relative;
  color: var(--color-white);
  background: #04070f url("../assets/images/hero-header-bg.webp") center / cover no-repeat;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(180deg, rgba(0, 3, 15, 0.55) 0%, rgba(0, 3, 15, 0.75) 100%);*/
}
.site-header > * { position: relative; z-index: 1; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-block: 2.5rem;
}
.navbar__logo img { height: 50px; width: auto; }
.navbar__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 1.45rem;
}
.navbar__links a:hover { color: var(--color-green-end); }
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.75rem;
  cursor: pointer;
}

.hero {
  padding-block: clamp(3rem, 10vw, 7rem) clamp(4rem, 12vw, 8rem);
  max-width: 46rem;
}
.hero h1 {
  font-size: clamp(2.025rem, 4.95vw, 5.0625rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 38rem;
}
.hero .btn { margin-top: 2.5rem; }

/* ---------- Team ---------- */
.section-intro {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.section-intro p { margin-top: 1rem; font-size: 1.125rem; font-weight: 300; }
.industries .section-intro { max-width: 58rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
  margin-top: 1.25rem;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.375rem; font-weight: 500; }
.team-card__email {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-green-end);
}
.team-card__tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.team-card__tags li {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* ---------- Schwerpunkte / Branchenexpertise ---------- */
.industries {
  background: linear-gradient(225deg, #e0f3b7 12%, #c8f26f 40%, #90c325 100%);
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
}

.industry-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.industry-card:hover,
.industry-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-green-end);
  box-shadow: 0 12px 24px -16px rgba(0, 5, 29, 0.35);
  outline: none;
}
.industry-card img { height: 48px; width: auto; }
.industry-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 500; }
.industry-card p { margin-top: 0.75rem; font-size: 0.95rem; font-weight: 300; }
.industry-card__more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent-blue);
}

/* ---------- Industry dialog (Kachel-Overlay) ---------- */
.industry-dialog {
  max-width: 34rem;
  width: calc(100% - 2.5rem);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  color: var(--color-text);
}
.industry-dialog::backdrop {
  background: rgba(0, 5, 29, 0.55);
}
.industry-dialog__panel {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
}
.industry-dialog__panel img { height: 48px; width: auto; }
.industry-dialog__panel h3 { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 500; }
.industry-dialog__panel p { margin-top: 1rem; font-size: 1rem; font-weight: 300; line-height: 1.65; }
.industry-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}
.industry-dialog__close:hover { background: var(--color-bg); }

/* ---------- Partners ---------- */
.partners__title { text-align: center; margin-bottom: 2.5rem; }
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.partner-logos img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ---------- Lösungen ---------- */
.solutions { background: var(--color-bg); }
.solutions-card {
  color: var(--color-white);
  background: url("../assets/images/loesungen-bg.webp") center / 100% 100% no-repeat;
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.solutions-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
}
.solutions-group h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.solutions-group ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  font-weight: 300;
}
.solutions-group ul li + li { margin-top: 0.5rem; }
.solutions-group ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 10px;
  background: url("../assets/icons/check.svg") no-repeat center / contain;
}

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

.site-footer { background: var(--color-white); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.footer-grid h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-grid p, .footer-grid a { display: block; font-size: 0.95rem; margin-bottom: 0.4rem; }
.footer-grid a:hover { color: var(--color-accent-blue); }
.footer-brand__logo { height: 25px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 20rem; margin-bottom: 1.5rem; }
.footer-grid .btn { display: inline-flex; margin-bottom: 0; }
.footer-grid .btn:hover { color: var(--color-white); }

.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Legal pages ---------- */
.page-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.page-header .navbar__logo img { height: 29px; }
.page-header .navbar__links a,
.page-header .navbar__toggle { color: var(--color-text); }
.page-header .navbar__cta { background: var(--color-text); color: var(--color-white); }

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal p, .legal address, .legal li { font-size: 0.98rem; font-weight: 300; margin-bottom: 0.6rem; }
.legal address { font-style: normal; }
.legal a { color: var(--color-accent-blue); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal ul li { margin-bottom: 0.35rem; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__toggle { display: block; }
  body.nav-open .navbar__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #04070f;
    padding: 1.5rem var(--gutter);
    z-index: 5;
  }
  body.nav-open .navbar__cta { display: block; }
}
