/* ============================================================
   Gemeindepartner – Onepager
   Paleta: azul marino, azul/gris claro, blanco
   ============================================================ */

:root {
  --navy: #14294e;
  --navy-deep: #0c1c3a;
  --navy-soft: #1e3a6d;
  --blue-ice: #eaf1f9;
  --blue-mist: #f4f8fc;
  --gray-blue: #64748b;
  --gray-line: #e4e9f0;
  --white: #ffffff;
  --beige: #f6f1ea;
  --red-swiss: #da291c;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 8px rgba(20, 41, 78, 0.05), 0 12px 32px rgba(20, 41, 78, 0.07);
  --shadow-soft: 0 1px 3px rgba(20, 41, 78, 0.06);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 700; }

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
}
.section-head p { color: var(--gray-blue); margin-top: 0.7rem; font-size: 1.02rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.78rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(20, 41, 78, 0.25); }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }

.btn-light { background: var(--white); color: var(--navy); border-color: var(--gray-line); box-shadow: var(--shadow-soft); }
.btn-light:hover { border-color: var(--navy); transform: translateY(-1px); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.text-link:hover { gap: 0.65rem; color: var(--navy-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--gray-line);
  box-shadow: 0 4px 20px rgba(20, 41, 78, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.13rem; letter-spacing: -0.02em; }
.brand-claim { font-size: 0.67rem; font-weight: 500; color: var(--gray-blue); letter-spacing: 0.01em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav > a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav > a:not(.btn):hover::after,
.main-nav > a.active::after { transform: scaleX(1); }

.btn-header { flex: none; }
.btn-nav-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(560px, 82vh);
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 26%,
    rgba(255, 255, 255, 0.55) 46%,
    rgba(255, 255, 255, 0.08) 66%,
    rgba(255, 255, 255, 0) 80%);
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0 5.5rem; }
.hero-eyebrow {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-blue);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hero-lead {
  max-width: 430px;
  margin-top: 1.2rem;
  font-size: 1.05rem;
  color: #33415c;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-badge {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  bottom: clamp(1.4rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0.85rem 1.15rem;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--navy);
}
.swiss-cross { width: 30px; height: 30px; flex: none; }
.swiss-cross svg { width: 100%; height: 100%; display: block; }
.swiss-cross-lg { width: 44px; height: 44px; }

/* ---------- Iconos ---------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-ice);
  color: var(--navy);
  flex: none;
}
.icon-circle svg { width: 26px; height: 26px; }

/* ---------- Cards genéricas ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ---------- Ausgangslage ---------- */
.section-ausgangslage {
  background: linear-gradient(180deg, var(--blue-mist) 0%, var(--white) 100%);
  padding-top: clamp(2.8rem, 5vw, 4rem);
}
.ausgangslage-grid {
  display: grid;
  grid-template-columns: 0.9fr 2.4fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.ausgangslage-grid h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.ausgangslage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card-flat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1.3rem 1.35rem;
}
.card-flat .icon-circle { grid-row: 1 / 3; width: 48px; height: 48px; }
.card-flat h3 { font-size: 0.98rem; }
.card-flat p { font-size: 0.85rem; color: var(--gray-blue); line-height: 1.45; }

/* ---------- Dos pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.pillar {
  display: grid;
  grid-template-columns: 44% 1fr;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pillar-img { position: relative; min-height: 280px; }
.pillar-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar-body { padding: 1.8rem 1.7rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.pillar-body h3 { font-size: 1.45rem; margin-top: 0.4rem; }
.pillar-body > p { color: var(--gray-blue); font-size: 0.94rem; line-height: 1.5; }
.pillar-body .text-link { margin-top: auto; padding-top: 0.9rem; }

.check-list { list-style: none; margin: 0.4rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 15px;
  height: 15px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314294e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

/* ---------- KI-Check ---------- */
.section-kicheck { padding-top: 0; }
.kicheck-panel {
  background: var(--blue-ice);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 240px 1fr 215px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.kicheck-intro h2 { font-size: clamp(1.35rem, 2.2vw, 1.55rem); }
.kicheck-intro p { color: #3d5175; font-size: 0.93rem; margin: 0.8rem 0 1.4rem; }

.kicheck-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  counter-reset: none;
}
.kicheck-step {
  position: relative;
  text-align: center;
  padding: 0 0.4rem;
}
.kicheck-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(50% + 42px);
  width: calc(100% - 84px);
  height: 2px;
  background: repeating-linear-gradient(90deg, #b9cbe3 0 6px, transparent 6px 12px);
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-icon svg { width: 30px; height: 30px; }
.step-num {
  position: absolute;
  top: 44px;
  left: calc(50% - 46px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--blue-ice);
}
.kicheck-step h3 { font-size: 0.95rem; margin-top: 0.7rem; }
.kicheck-step p { font-size: 0.8rem; color: var(--gray-blue); line-height: 1.4; margin-top: 0.2rem; }

.kicheck-result {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.kicheck-result h3 { font-size: 0.98rem; margin-bottom: 0.7rem; }
.kicheck-result .check-list li { margin-bottom: 0.45rem; font-size: 0.88rem; }

/* ---------- Soluciones ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.solution { padding: 1.4rem 1.2rem; }
.solution .icon-circle { width: 46px; height: 46px; margin-bottom: 0.9rem; }
.solution .icon-circle svg { width: 22px; height: 22px; }
.solution h3 { font-size: 0.95rem; line-height: 1.3; }
.solution p { font-size: 0.82rem; color: var(--gray-blue); line-height: 1.45; margin-top: 0.4rem; }
.solutions-more { text-align: center; margin-top: 2.2rem; }

/* ---------- Dienstleistungen (grid 3 col) ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.services-grid .solution { padding: 1.7rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.services-grid .solution .icon-circle { width: 52px; height: 52px; }
.services-grid .solution .icon-circle svg { width: 25px; height: 25px; }
.services-grid .solution h3 { font-size: 1.08rem; }
.services-grid .solution p { font-size: 0.9rem; }
.services-grid .solution .text-link { margin-top: 0.9rem; }

/* ---------- Fachbereiche ---------- */
.section-fachbereiche { background: linear-gradient(180deg, var(--blue-mist) 0%, var(--white) 100%); }
.fachbereiche-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.fachbereiche-img { border-radius: var(--radius); overflow: hidden; min-height: 340px; position: relative; box-shadow: var(--shadow-card); }
.fachbereiche-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fachbereiche-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); max-width: 480px; }
.fachbereiche-body > p { color: var(--gray-blue); margin-top: 0.8rem; max-width: 460px; font-size: 0.98rem; }
.fachbereiche-body .btn { margin-top: 1.6rem; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.tag-list li {
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

/* ---------- Tarjeta KI ancha ---------- */
.pillar-wide { grid-template-columns: 40% 1fr; }
.pillar-wide .pillar-img { min-height: 340px; }
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.chip-row li {
  background: var(--blue-ice);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-soft);
}

/* ---------- Sicherheit ---------- */
.section-security {
  background: var(--beige);
  padding: clamp(2.5rem, 5vw, 3.6rem) 0;
}
.security-inner {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.security-title { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.security-title h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
.security-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.security-items li { display: flex; flex-direction: column; gap: 0.4rem; }
.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 41, 78, 0.06);
  color: var(--navy);
}
.security-icon svg { width: 21px; height: 21px; }
.security-items h3 { font-size: 0.83rem; line-height: 1.35; font-weight: 700; }
.security-items p { font-size: 0.78rem; color: var(--gray-blue); line-height: 1.4; }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 0.95fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: stretch;
}
.about-img { border-radius: var(--radius); overflow: hidden; min-height: 320px; position: relative; }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-body { display: flex; flex-direction: column; justify-content: center; padding: 0.5rem 0; }
.about-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.about-body > p { margin-top: 0.9rem; color: #33415c; font-size: 0.98rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { font-size: 0.8rem; color: var(--gray-blue); line-height: 1.4; }

.about-cta {
  background: var(--blue-ice);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.7rem 1.6rem;
}
.about-cta .icon-circle { background: var(--white); }
.about-cta h3 { font-size: 1.02rem; line-height: 1.35; }
.about-cta p { font-size: 0.88rem; color: #3d5175; line-height: 1.5; }
.about-cta .btn { margin-top: auto; font-size: 0.86rem; padding: 0.7rem 1.15rem; }

/* ---------- CTA final ---------- */
.section-final {
  position: relative;
  background:
    linear-gradient(100deg, rgba(12, 28, 58, 0.97) 0%, rgba(12, 28, 58, 0.88) 55%, rgba(12, 28, 58, 0.72) 100%),
    url('../assets/img/hero-schweiz.jpg') center 70% / cover no-repeat;
  color: var(--white);
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}
.final-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.final-text h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.final-text p { color: rgba(255, 255, 255, 0.75); margin-top: 0.4rem; font-size: 0.96rem; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}
.brand-footer { color: var(--white); gap: 0.55rem; }
.brand-footer .brand-mark { width: 30px; height: 30px; }
.brand-footer .brand-name { font-size: 0.98rem; }
.footer-meta { margin-right: auto; }
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--white); }
.footer-nav { display: flex; align-items: center; gap: 1.4rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--white); }
.footer-social svg { width: 17px; height: 17px; display: block; }

/* ---------- Formulario (bewerben.html) ---------- */
.form-page { padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3rem, 6vw, 5rem); background: var(--blue-mist); min-height: 70vh; }
.form-container { max-width: 760px; }
.form-intro { margin-bottom: 2.2rem; }
.form-intro h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.form-intro p { color: #33415c; margin-top: 0.9rem; max-width: 600px; }

.apply-form {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.apply-form fieldset { border: none; margin-bottom: 2rem; }
.apply-form legend {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding: 0;
}
.legend-note { font-weight: 500; color: var(--gray-blue); font-size: 0.88rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.86rem; font-weight: 600; }

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.apply-form textarea { resize: vertical; min-height: 120px; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20, 41, 78, 0.12);
}
.apply-form input[type="file"] {
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--gray-blue);
  border: 1.5px dashed var(--gray-line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: var(--blue-mist);
  width: 100%;
}
.apply-form input[type="file"]::file-selector-button {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--gray-line);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  margin-right: 0.9rem;
  cursor: pointer;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.2rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  cursor: pointer;
  padding: 0.25rem 0;
}
.choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex: none;
  cursor: pointer;
}
.consent { margin: 0.4rem 0 1.6rem; }
.consent a { color: var(--navy); font-weight: 600; }

.btn-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 0.95rem 1.5rem; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--gray-blue); margin-top: 0.9rem; }

.hidden-field { position: absolute; left: -9999px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.thanks-box {
  max-width: 560px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.thanks-box h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.thanks-box p { color: #33415c; }
.thanks-box .btn { margin-top: 0.5rem; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .fachbereiche-grid { grid-template-columns: 1fr; }
  .fachbereiche-img { min-height: 280px; }
  .security-inner { grid-template-columns: 1fr; }
  .security-items { grid-template-columns: repeat(3, 1fr); }
  .kicheck-panel { grid-template-columns: 1fr; text-align: center; }
  .kicheck-intro { max-width: 480px; margin: 0 auto; }
  .kicheck-result { max-width: 420px; margin: 0 auto; width: 100%; text-align: left; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-img { grid-column: 1; }
  .about-body { grid-column: 2; }
  .about-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .about-cta h3 { flex: 1 1 240px; }
  .about-cta p { flex: 1 1 260px; }
  .about-cta .btn { margin-top: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.02rem; }

  .btn-header { display: none; }
  .btn-nav-mobile { display: inline-flex; margin-top: 0.6rem; }
  .nav-toggle { display: flex; margin-left: auto; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 5% 1.5rem;
    border-bottom: 1px solid var(--gray-line);
    box-shadow: 0 18px 30px rgba(20, 41, 78, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    margin-left: 0;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a:not(.btn) { font-size: 1.02rem; padding: 0.55rem 0; width: 100%; }

  .ausgangslage-grid { grid-template-columns: 1fr; }
  .ausgangslage-grid h2 br { display: none; }
  .ausgangslage-cards { grid-template-columns: 1fr; }

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

  .kicheck-steps { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0.6rem; }
  .kicheck-step:not(:last-child)::after { display: none; }

  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 45%,
      rgba(255, 255, 255, 0.3) 75%,
      rgba(255, 255, 255, 0) 100%);
  }
  .hero { min-height: 0; }
  .hero-content { padding: 2.6rem 0 8rem; }
  .hero-lead { max-width: 520px; }

  .section-final {
    background:
      linear-gradient(100deg, rgba(12, 28, 58, 0.97) 0%, rgba(12, 28, 58, 0.88) 55%, rgba(12, 28, 58, 0.72) 100%),
      url('../assets/img/hero-schweiz-900.jpg') center 70% / cover no-repeat;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { grid-column: 1; min-height: 260px; }
  .about-body { grid-column: 1; }
}

@media (max-width: 640px) {
  .section { padding: 2.8rem 0; }
  .section-head { margin-bottom: 1.8rem; }

  .pillar, .pillar-wide { grid-template-columns: 1fr; }
  .pillar-img, .pillar-wide .pillar-img { min-height: 200px; }
  .pillar-body { padding: 1.4rem 1.3rem; }

  .services-grid { grid-template-columns: 1fr; }
  .services-grid .solution { display: flex; gap: 0.45rem; padding: 1.25rem 1.2rem; }
  .services-grid .solution .icon-circle { margin-bottom: 0.35rem; }
  .fachbereiche-img { min-height: 220px; }
  .fachbereiche-body .btn { width: 100%; justify-content: center; }

  /* Soluciones como filas compactas: icono a la izquierda, texto a la derecha */
  .solutions-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .solution {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.1rem;
    align-items: center;
    padding: 1.05rem 1.15rem;
  }
  .solution .icon-circle { grid-row: 1 / 3; margin-bottom: 0; width: 44px; height: 44px; }
  .solution h3 br { display: none; }
  .solution p { margin-top: 0; }
  .solutions-more { margin-top: 1.6rem; }

  /* Seguridad como filas compactas */
  .security-items { grid-template-columns: 1fr; gap: 0.9rem; }
  .security-items li {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.05rem;
    align-items: center;
  }
  .security-icon { grid-row: 1 / 3; }
  .security-items h3 br { display: none; }
  .security-items li:not(:has(p)) h3 { grid-row: 1 / 3; }

  .about-img { min-height: 220px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; margin-top: 1.5rem; }
  .stat-value br { display: none; }
  .about-cta { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1.5rem 1.4rem; }
  .about-cta h3, .about-cta p { flex: 0 0 auto; }
  .about-cta .btn { margin-top: 0.4rem; }

  .final-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .footer-meta { margin-right: 0; }
  .footer-nav { flex-wrap: wrap; gap: 0.5rem 1.4rem; }
  .footer-nav a { padding: 0.35rem 0; }

  .hero h1 { font-size: 2rem; }
  .hero h1 br { display: none; }
  .hero-badge { right: 5%; bottom: 1.2rem; padding: 0.7rem 1rem; font-size: 0.78rem; }
  .swiss-cross { width: 26px; height: 26px; }
  .swiss-cross-lg { width: 40px; height: 40px; }
  .brand-claim { display: none; }

  .kicheck-panel { padding: 1.6rem 1.3rem 1.8rem; border-radius: 18px; }
  .kicheck-steps { gap: 1.5rem 0.5rem; }
}

@media (max-width: 420px) {
  .hero-ctas { gap: 0.7rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .final-ctas { width: 100%; }
  .final-ctas .btn { width: 100%; justify-content: center; }
}
