/* ========================================
   Engineering by Elisert - Gemeinsames CSS
   Wird von allen Unterseiten geladen
   ======================================== */

@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: block;
  src: url('/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: block;
  src: url('/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: block;
  src: url('/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 700;
  font-display: block;
  src: url('/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-weight: 700;
  font-display: block;
  src: url('/fonts/caveat/files/caveat-latin-700-normal.woff2') format('woff2');
}

:root {
  --primary: #1F4E79;
  --primary-dark: #163958;
  --primary-darker: #0F172A;
  --accent: #D97706;
  --accent-dark: #B45309;
  --ink: #0F172A;
  --muted: #6B7280;
  --bg: #FAFAF9;
  --card: #FFFFFF;
  --tint: #EAF1F8;
  --line: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ===== HEADER ===== */
header.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo-placeholder { display: inline-block; line-height: 0; }
.header-logo img.logo-img { height: 80px; width: auto; display: block; }
.footer-logo img.logo-img { height: 70px; width: auto; display: block; }
.header-cta {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--primary-dark); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--tint);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb-inner {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { margin: 0 12px; color: var(--line); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--primary-darker);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(31,78,121,0.85) 0%, rgba(15,23,42,0.92) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1' opacity='0.10'%3E%3Cpolygon points='300,90 375,135 375,225 300,270 225,225 225,135'/%3E%3Cpolygon points='380,180 455,225 455,315 380,360 305,315 305,225'/%3E%3Cpolygon points='220,180 295,225 295,315 220,360 145,315 145,225'/%3E%3Cpolygon points='300,270 375,315 375,405 300,450 225,405 225,315'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217,119,6,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 900px;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}

/* ===== SECTION-COMMON ===== */
.section { padding: 100px 0; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--accent);
}
.section-label.center { justify-content: center; }
.section-label.center::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--accent);
}
.section h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.section h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.section p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.section-bg-white { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 18px 36px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: white;
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: all 0.2s;
}
.card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(31, 78, 121, 0.06); }

/* ===== FOOTER ===== */
footer.site-footer {
  background: var(--primary-darker);
  color: white;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 320px;
  margin-top: 24px;
}
.footer-printed4u {
  background: rgba(217, 119, 6, 0.1);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: 0 4px 4px 0;
}
.footer-printed4u .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-printed4u p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 8px;
}
.footer-printed4u a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.footer-printed4u a:hover { text-decoration: underline; }
.footer-section h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-section a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  line-height: 2;
  display: block;
  transition: color 0.2s;
}
.footer-section a:hover { color: white; }
.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.social-links a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}
.social-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 240px;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== LEGAL-PAGES (Impressum, Datenschutz) ===== */
.legal-page {
  background: white;
  padding: 80px 0 100px;
}
.legal-page h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--ink);
}
.legal-page .meta {
  color: var(--muted);
  margin-bottom: 56px;
  font-size: 15px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.legal-page h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--ink);
}
.legal-page p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--ink);
}
.legal-page p strong { font-weight: 600; }
.legal-page ul, .legal-page ol {
  margin: 16px 0 24px 24px;
  font-size: 16px;
  line-height: 1.75;
}
.legal-page li { margin-bottom: 8px; }
.legal-page .legal-block {
  background: var(--tint);
  padding: 24px 28px;
  border-left: 3px solid var(--primary);
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.legal-page .legal-block p { margin-bottom: 8px; }
.legal-page .legal-block p:last-child { margin-bottom: 0; }

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
.contact-info { padding-right: 24px; }
.contact-info-item {
  margin-bottom: 28px;
  padding-left: 56px;
  position: relative;
}
.contact-info-item .icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--tint);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-info-item h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-info-item p, .contact-info-item a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  line-height: 1.5;
}
.contact-info-item a:hover { color: var(--primary); }
.contact-form {
  background: white;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--accent); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
}
.form-checkbox input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-checkbox a { color: var(--primary); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .section h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 16px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 24px; }
  .legal-page h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .header-cta { display: none; }
  .header-logo img.logo-img { height: 60px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ===== ÜBERSICHT-RASTER (für /leistungen/) ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.overview-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.overview-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(31, 78, 121, 0.06);
  transform: translateY(-2px);
}
.overview-card .icon {
  width: 48px;
  height: 48px;
  background: var(--tint);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.overview-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.overview-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  flex: 1;
}
.overview-card .more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.overview-card .more:hover { color: var(--accent); }

/* ===== LEISTUNGSDETAIL-LAYOUT (zwei Spalten: Content + Sidebar) ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}
.detail-content > p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; }
.detail-content h3 { font-size: 24px; margin: 40px 0 16px; color: var(--primary); }
.detail-content ul {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}
.detail-content ul li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.detail-content ul li:last-child { border-bottom: none; }
.detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background: var(--tint);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4E79' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-sidebar {
  position: sticky;
  top: 120px;
}
.sidebar-card {
  background: var(--tint);
  border-left: 3px solid var(--primary);
  padding: 28px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sidebar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}
.sidebar-card .btn-primary {
  padding: 12px 20px;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

/* ===== BRANCHEN-LAYOUT ===== */
.branche-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.branche-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.branche-stat:last-child { border-right: none; }
.branche-stat .number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.branche-stat .label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ===== PROJEKTE-LISTE ===== */
.project-list {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}
.project-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.project-card .meta {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.project-card .meta .year { color: var(--accent); margin-bottom: 4px; display: block; }
.project-card .meta .branche { color: var(--muted); }
.project-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.project-card .tag {
  font-size: 12px;
  background: var(--tint);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.project-card .description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.project-card .result-block {
  background: var(--bg);
  padding: 16px;
  border-radius: 4px;
}
.project-card .result-block .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.project-card .result-block p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 32px;
  max-width: 820px;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 24px 28px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 56px;
  transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--tint); }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '–'; transform: translateY(-50%) rotate(0deg); }
.faq-item .faq-answer {
  padding: 0 28px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.faq-item .faq-answer p { margin-bottom: 12px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ===== FAQ-KATEGORIE-HEADER ===== */
.faq-category {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.faq-category:first-of-type { margin-top: 0; }

@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .branche-stats { grid-template-columns: 1fr; gap: 16px; }
  .branche-stat { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .branche-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .project-card { grid-template-columns: 1fr; gap: 20px; }
}

/* === TOP-NAVIGATION (für agb.astro und branchen/* die externes CSS nutzen) === */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.nav-list > li { position: relative; }
.nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link .caret { font-size: 10px; margin-left: 2px; opacity: 0.6; }

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 90;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--tint); color: var(--primary); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all 0.2s;
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
  }
  .main-nav.open { max-height: 600px; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: var(--bg);
  }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
}

/* ===== STICKY CTA (Conversion-Hebel auf allen Unterseiten) ===== */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.sticky-cta a {
  pointer-events: auto;
  background: var(--accent, #D97706);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.32);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sticky-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.42);
}
.sticky-cta a.phone {
  background: white;
  color: var(--primary, #1F4E79);
  border: 1px solid var(--line, #E5E7EB);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}
.sticky-cta a.phone:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}
@media (max-width: 768px) {
  .sticky-cta { bottom: 16px; right: 16px; }
  .sticky-cta a { padding: 12px 18px; font-size: 13px; }
  .sticky-cta a.phone { display: none; }
}

/* ===== Social-Soon Marker (Instagram folgt) ===== */
.social-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.32);
  cursor: default;
  position: relative;
}
.social-soon::after {
  content: "bald";
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--accent, #D97706);
  color: white;
  text-transform: uppercase;
  line-height: 1;
}

/* ===== BACK-TO-TOP-BUTTON (global) ===== */
.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--primary, #1F4E79);
  border: 1px solid var(--line, #E5E7EB);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.15s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  color: var(--accent, #D97706);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ===== HERO-MAJOR (für Haupt-Landingpages: Leistungen, Branchen, Werdegang, Projekte, FAQ) ===== */
/* Variante des Startseiten-Heros mit Hex-Banner-Bild im Hintergrund. */
.hero.hero-major {
  padding: 100px 0 120px;
}
.hero.hero-major::before {
  background: none;
  background-image: url('/img/hex-banner-hero.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero.hero-major::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.75) 40%,
    rgba(15, 23, 42, 0.40) 70%,
    rgba(15, 23, 42, 0.20) 100%);
  pointer-events: none;
  z-index: 1;
  /* Überschreibt das ::after aus dem Default-Hero komplett */
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  background-size: auto;
}
.hero.hero-major .hero-content {
  position: relative;
  z-index: 2;
}
.hero.hero-major h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -1.8px;
  margin-bottom: 24px;
  max-width: 1000px;
}
.hero.hero-major .hero-eyebrow {
  margin-bottom: 32px;
}
.hero.hero-major .hero-lead {
  font-size: 21px;
  line-height: 1.55;
  max-width: 760px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.hero.hero-major .hero-sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 40px;
}
.hero.hero-major .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero.hero-major .hero-ctas .btn-primary {
  background: var(--accent);
  color: white;
  padding: 16px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.hero.hero-major .hero-ctas .btn-primary:hover { background: #B45309; }
.hero.hero-major .hero-ctas .btn-outline {
  background: transparent;
  color: white;
  padding: 16px 30px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.hero.hero-major .hero-ctas .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}
@media (max-width: 768px) {
  .hero.hero-major { padding: 70px 0 90px; }
  .hero.hero-major h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.6px; }
  .hero.hero-major .hero-lead { font-size: 18px; }
  .hero.hero-major .hero-sub { font-size: 16px; margin-bottom: 28px; }
}

/* ===== SEO-AUSBAU: ANWENDUNGS-GRID (Leistungen, Branchen) ===== */
.anwendung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.anwendung-card {
  background: white;
  border: 1px solid var(--line, #E5E7EB);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.anwendung-card:hover {
  border-color: var(--primary, #1F4E79);
  box-shadow: 0 6px 24px rgba(31, 78, 121, 0.08);
}
.anwendung-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink, #0F172A);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.anwendung-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #475569);
  margin: 0 0 16px;
}
.anwendung-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.anwendung-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--tint, rgba(31,78,121,0.06));
  color: var(--primary, #1F4E79);
  border-radius: 3px;
  text-transform: uppercase;
}
.anwendung-card .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #D97706);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}
.anwendung-card .more:hover { color: #B45309; }
@media (max-width: 980px) { .anwendung-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .anwendung-grid { grid-template-columns: 1fr; gap: 16px; } .anwendung-card { padding: 24px 20px; } }

/* ===== SEO-AUSBAU: STACK-GRID (Engineering-Stack auf Leistungen) ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stack-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent, #D97706);
  padding-bottom: 12px;
  margin: 0 0 16px;
  border-bottom: 2px solid var(--primary, #1F4E79);
}
.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stack-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #0F172A);
  border-bottom: 1px solid var(--line, #E5E7EB);
}
.stack-list li:last-child { border-bottom: none; }
.stack-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 2px;
  background: var(--accent, #D97706);
}
.stack-list li strong { color: var(--primary, #1F4E79); font-weight: 700; }
@media (max-width: 980px) { .stack-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 580px) { .stack-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ===== SEO-AUSBAU: BRANCHE-DETAIL-GRID (Konstruktion, FEM, CE, Halbleiter) ===== */
.branche-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.branche-detail {
  background: var(--bg, #F8FAFC);
  border-left: 3px solid var(--accent, #D97706);
  padding: 28px 28px 28px 28px;
  border-radius: 4px;
}
.branche-detail h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary, #1F4E79);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.branche-detail p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink, #0F172A);
  margin: 0;
}
.branche-detail em { color: var(--muted, #475569); font-style: italic; }
@media (max-width: 880px) { .branche-detail-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ===== SEO-AUSBAU: QUICK-FAQ (Featured Snippets / KI-Suche) ===== */
.quick-faq {
  max-width: 880px;
  margin: 0 auto;
}
.quick-faq details {
  border-bottom: 1px solid var(--line, #E5E7EB);
  padding: 0;
}
.quick-faq details:first-of-type {
  border-top: 1px solid var(--line, #E5E7EB);
}
.quick-faq summary {
  cursor: pointer;
  padding: 22px 32px 22px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #0F172A);
  list-style: none;
  position: relative;
  transition: color 0.15s;
}
.quick-faq summary:hover { color: var(--primary, #1F4E79); }
.quick-faq summary::-webkit-details-marker { display: none; }
.quick-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent, #D97706);
  line-height: 1;
  transition: transform 0.2s;
}
.quick-faq details[open] summary::after { content: '−'; }
.quick-faq details p {
  padding: 0 4px 24px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted, #475569);
  margin: 0;
}
