:root {
  --bg: #ffffff;
  --text: #102133;
  --muted: #5f6772;
  --dark: #233652;
  --dark-soft: #31506f;
  --light-line: rgba(16, 33, 51, 0.12);
  --surface: #fbf8f1;
  --footer-bg: #f7f1e6;
  --button: rgba(255, 255, 255, 0.12);
  --button-line: rgba(255, 255, 255, 0.45);
  --accent: #e58a2b;
  --accent-gold: #f2b134;
  --accent-soft: #fff4d6;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 60px rgba(16, 33, 51, 0.08);
}

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h2,
h3 {
  font-weight: 500;
}

.container,
.l-container {
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
}

.section,
.c-section {
  padding: 5.5rem 0;
}

.l-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.l-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.l-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.l-split > * {
  flex: 1 1 320px;
  min-width: 0;
}

.l-columns {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.l-columns > * {
  flex: 1 1 280px;
  min-width: 0;
}

.l-grid-auto {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.l-grid-auto > * {
  flex: 1 1 260px;
}

.c-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 33, 51, 0.08);
  box-shadow: inset 0 4px 0 var(--accent-gold);
}

.c-card--soft {
  box-shadow: var(--shadow-card);
}

.c-card__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.c-button,
.c-button--ghost,
.header-cta,
.detail-link,
.hero-link,
.story-link,
.partner-link,
.poc-link,
.story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.c-button,
.header-cta,
.detail-link,
.partner-link,
.poc-link,
.story-button {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent));
  border: 1px solid rgba(255, 244, 214, 0.8);
  color: #1f2a37;
  font-weight: 600;
}

.c-button--ghost,
.hero-link,
.story-link {
  border: 1px solid var(--button-line);
  color: #fff;
}

.c-button::after,
.c-button--ghost::after,
.detail-link::after,
.hero-link::after,
.story-link::after,
.partner-link::after,
.poc-link::after,
.story-button::after {
  content: "↗";
  font-size: 0.9rem;
}

.site-header,
.c-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.c-header__bar {
  width: 100%;
  background: #2c3440;
  backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .header-inner,
.site-header.is-scrolled .c-header__bar {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(16, 33, 51, 0.12);
}

.site-header.is-scrolled .nav a,
.site-header.is-scrolled .header-cta,
.site-header.is-scrolled .menu-toggle,
.site-header.is-scrolled .lang-btn,
.site-header.is-scrolled .lang-link {
  color: var(--text);
}

.site-header.is-scrolled .header-cta,
.site-header.is-scrolled .menu-toggle,
.site-header.is-scrolled .lang-switch {
  border-color: rgba(16, 33, 51, 0.25);
}

.site-header.is-scrolled .lang-switch {
  background: rgba(16, 33, 51, 0.04);
}

.site-header.is-scrolled .lang-btn.is-active {
  background: rgba(229, 138, 43, 0.18);
  color: var(--accent);
}

.header-content,
.c-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand-logo,
.c-brand__logo {
  width: 120px;
  height: auto;
}

.nav,
.c-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
}

.nav a,
.c-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.header-actions,
.c-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-cta {
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
}

.menu-toggle,
.c-header__toggle {
  display: none;
  border: 1px solid var(--button-line);
  color: #fff;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  cursor: pointer;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--button-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn,
.lang-link {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.hero,
.c-hero {
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(18, 28, 43, 0.68), rgba(18, 28, 43, 0.68)),
    url("../img/jaraco-software-engineers-verlauf-hero.jpg") center/cover
      no-repeat;
  color: #fff;
}

.site-footer,
.c-footer {
  background: var(--footer-bg);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--light-line);
}

.footer-grid,
.c-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid > *,
.c-footer__grid > * {
  flex: 1 1 180px;
}

.footer-grid > :first-child,
.c-footer__grid > :first-child {
  flex-basis: 260px;
}

.footer-legal,
.c-footer__legal {
  border-top: 1px solid var(--light-line);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .section,
  .c-section {
    padding: 4rem 0;
  }

  .header-actions,
  .c-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .menu-toggle,
  .c-header__toggle {
    display: inline-flex;
  }

  .nav,
  .c-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0.75rem;
  }

  .nav.is-open,
  .c-nav.is-open {
    display: flex;
  }

  .brand-logo,
  .c-brand__logo {
    width: 96px;
  }
}
