* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.004em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Palatino", "Georgia", "Times New Roman", serif;
  margin: 0 0 0.8rem 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.3;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem 0;
}

.doc-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: var(--text);
}

.doc-text--small {
  font-size: 14px;
  color: var(--text);
  opacity: 0.92;
}

pre {
  margin: 0;
  font-family: inherit;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(15, 20, 25, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1.5rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a.active {
  color: var(--primary);
  border-bottom: 1px solid rgba(28, 78, 128, 0.4);
  padding-bottom: 0.2rem;
}

.nav-links a:hover {
  color: rgba(28, 78, 128, 0.9);
}

.site-main {
  min-height: 70vh;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-footer {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 3.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero {
  padding: 6rem 0 5.5rem;
  background: #1b2632;
  color: #f9f7f2;
  background-size: cover;
  background-position: center;
  scroll-margin-top: 120px;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 360px;
}

.hero-content {
  max-width: 640px;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.6rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn.secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn.light {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(15, 20, 25, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 7.5rem 0;
  scroll-margin-top: 120px;
}

.section-header {
  margin-bottom: 2.2rem;
}

.section-header .muted {
  opacity: 0.75;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.75);
}

.section-copy {
  max-width: 720px;
  display: grid;
  gap: 1.4rem;
}

.section-copy .doc-text {
  color: rgba(15, 20, 25, 0.82);
  line-height: 1.8;
}

.section-copy .doc-text::first-line {
  color: var(--text);
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.card-accent {
  border-color: rgba(182, 122, 58, 0.25);
  box-shadow: 0 16px 34px rgba(182, 122, 58, 0.18);
}

.text-link {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-color: rgba(28, 78, 128, 0.4);
}

.nav-card {
  cursor: pointer;
  position: relative;
  padding: 2.4rem;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-card::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(28, 78, 128, 0.22);
}

.nav-card::after {
  content: "→";
  position: absolute;
  right: 1.8rem;
  bottom: 1.4rem;
  font-size: 1rem;
  color: rgba(15, 20, 25, 0.35);
}

.nav-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.nav-card p {
  margin: 0;
  color: var(--muted);
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.nav-card:hover::after {
  color: rgba(15, 20, 25, 0.55);
}

.list {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  line-height: 1.7;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.sticky-box {
  position: sticky;
  top: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.sticky-box .contact-lines {
  margin: 1rem 0 1.5rem 0;
  display: grid;
  gap: 0.4rem;
}

.job-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.job-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.job-details {
  display: grid;
  gap: 1rem;
}

.branchen-overview .branchen-intro {
  max-width: 820px;
}

.branchen-overview .branchen-intro .doc-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.branchen-overview .branchen-intro .doc-text::first-line {
  color: var(--text);
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.branchen-grid-wrap {
  max-width: 920px;
}

.branchen-grid {
  margin-top: 4.5rem;
  gap: 3rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.branchen-card {
  padding: 2.6rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branchen-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 20, 25, 0.45);
}

.branchen-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.branchen-card::after {
  content: "→";
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  font-size: 1rem;
  color: rgba(15, 20, 25, 0.35);
}

.branchen-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.branchen-card:hover::after {
  color: rgba(15, 20, 25, 0.55);
}

.branchen-details {
  margin-top: 4.5rem;
  background: rgba(255, 255, 255, 0.8);
}

.branchen-details .section-body {
  max-width: 960px;
}

.branchen-details .doc-text {
  line-height: 1.85;
  color: rgba(15, 20, 25, 0.84);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 20, 25, 0.15);
  font: inherit;
}

textarea {
  min-height: 140px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: 4.5rem 0 4rem;
  }

  .branchen-grid-wrap {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
