/* ===== CAPICON – Design Tokens ===== */
:root {
  --navy: #1c2156;
  --navy-dark: #12152f;
  --navy-soft: #3a3f78;
  --pink: #d93f7c;
  --pink-dark: #b83569;
  --pink-light: #f9e2eb;
  --gray-bg: #f2f2f2;
  --gray-border: #e3e3e8;
  --text: #2b2d42;
  --text-muted: #5b5d78;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(28, 33, 86, 0.08);
  --max-width: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 16px; font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--text-muted); }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--gray { background: var(--gray-bg); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(194, 47, 110, 0.35);
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-border);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.logo svg, .logo .logo-mark { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--pink); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 70% 20%, rgba(194, 47, 110, 0.35), transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(58, 63, 120, 0.4), transparent 55%),
              var(--navy-dark);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow { color: var(--pink-dark); }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero p { color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; max-width: 520px; }
.hero-actions { margin-top: 8px; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #23264f, #141633);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(194, 47, 110, 0.5);
  border: none;
}
.hero-play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.hero-video { width: 100%; height: 100%; object-fit: cover; border: none; display: block; }

/* ===== About ===== */
.about-intro { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.about-intro p { font-size: 1.1rem; color: var(--text); }
.about-intro strong { color: var(--navy); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 32px;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--white); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ===== Geschäftsfelder ===== */
.fields-intro { text-align: center; max-width: 900px; margin: 0 auto 56px; }
.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.field-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10.5;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.field-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 30, 0.82) 0%, rgba(10, 12, 30, 0.1) 55%, rgba(10,12,30,0.35) 100%);
  z-index: 0;
}
.field-card > * { position: relative; z-index: 1; }
.field-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.field-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-icon svg { width: 24px; height: 24px; color: var(--white); }
.field-card h3 {
  color: var(--white);
  display: inline-block;
  margin: 0 0 10px;
}
.field-card p { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; margin: 0; max-width: 90%; }

/* Each card looks for a photo in assets/images/geschaeftsfelder/ first.
   If the file doesn't exist yet, that layer is simply transparent and the
   gradient underneath shows instead — so dropping in a photo "just works". */
.field-bg--verkehr {
  background:
    url('../assets/images/geschaeftsfelder/verkehr.jpg') center / cover no-repeat,
    linear-gradient(135deg, #2b5134, #4f7a45 60%, #7a9b4f);
}
.field-bg--energie {
  background:
    url('../assets/images/geschaeftsfelder/energie.jpg') center / cover no-repeat,
    linear-gradient(135deg, #1a4a7a, #2f7cb0 60%, #5fb3d9);
}
.field-bg--mobilitaet {
  background:
    url('../assets/images/geschaeftsfelder/mobilitaet.jpg') center / cover no-repeat,
    linear-gradient(135deg, #3a3122, #6b5a3a 60%, #a3895a);
}
.field-bg--oeffentlich {
  background:
    url('../assets/images/geschaeftsfelder/oeffentliche-infrastruktur.jpg') center / cover no-repeat,
    linear-gradient(135deg, #1c2156, #3a3f78 60%, #6a6fb0);
}
.field-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; }

/* ===== Leistungsbereiche ===== */
.services {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.services-list { margin: 28px 0 32px; }
.services-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
}
.services-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pink);
  flex-shrink: 0;
}
.services-note { font-size: 0.92rem; color: var(--text-muted); margin-top: 16px; }

.accordion-item {
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-align: left;
}
.accordion-trigger .chev { flex-shrink: 0; transition: transform 0.25s ease; width: 20px; height: 20px; color: var(--pink); }
.accordion-item.open .chev { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner { padding: 0 24px 22px; font-size: 0.95rem; color: var(--text-muted); }

/* ===== Unsere Werte ===== */
.values {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.values-text p { font-size: 1.05rem; color: var(--text); }
.values-list li {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
}
.values-list li:last-child { border-bottom: none; }
.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 20px; height: 20px; color: var(--white); }
.values-list p { margin: 0; color: var(--navy); font-weight: 500; font-size: 0.98rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 32px;
  border-top: 4px solid var(--pink);
}
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--pink); margin-bottom: 10px; line-height: 1; }
.stat-label {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--gray-border);
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-text p { font-size: 1.05rem; }
.contact-info { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-info a, .contact-info span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--white); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--pink);
}
.field textarea { resize: vertical; min-height: 90px; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.checkbox-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text); }
.checkbox-item input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--pink); }

.form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.form-success.show { display: block; }
.form-success svg { width: 48px; height: 48px; color: var(--pink); margin: 0 auto 16px; }
.form-fields.hide { display: none; }

.form-error {
  display: none;
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #fdecee;
  color: #a4232f;
  font-size: 0.88rem;
}
.form-error.show { display: block; }
.form-error a { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.faq-sidebar .eyebrow { margin-bottom: 20px; }
.faq-category-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 32px 0 4px;
}
.faq-category-label:first-of-type { margin-top: 0; }
.faq-group { margin-bottom: 36px; }
.faq-item { border-bottom: 1px solid var(--gray-border); }
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-trigger .plus { flex-shrink: 0; width: 20px; height: 20px; color: var(--pink); transition: transform 0.25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-panel-inner { padding: 0 0 22px; color: var(--text-muted); font-size: 0.96rem; max-width: 760px; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.75); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 48px 0 28px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}
.footer .logo { color: var(--white); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--pink-light); }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 0; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--pink-light); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-border);
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .nav-cta { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
