:root {
  /* Colors - Industrial/Modern High-End */
  --primary: #1a365d;      /* Deep Steel Blue */
  --primary-dark: #0f1f38;
  --secondary: #e53e3e;    /* Precise Accent Red */
  --secondary-hover: #c53030;
  --dark: #171923;         /* Dark background */
  --dark-gray: #2d3748;
  --gray: #718096;
  --light-gray: #f7fafc;
  --white: #ffffff;
  
  /* Typography - Strict System Fonts (GDPR safe) */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 120px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--dark-gray);
  line-height: 1.6;
}

body {
  background-color: var(--light-gray);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Layout Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--secondary-hover);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  height: 90px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img {
  max-height: 85px;
  max-width: 100%;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo img {
  max-height: 65px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link:focus::after {
  width: 100%;
}

.nav-link:hover, .nav-link:focus {
  color: var(--primary);
  outline: none;
}

.nav-phone {
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background-color: rgba(229, 62, 62, 0.05);
  transition: var(--transition);
}

.nav-phone:hover {
  background-color: rgba(229, 62, 62, 0.1);
  color: var(--secondary-hover);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  /* Fixed background removed to prevent white bar artifacts on mobile */
  background-image: linear-gradient(rgba(15, 31, 56, 0.85), rgba(15, 31, 56, 0.7)), url('../bilder/IMG_7381-82e2404b.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: var(--header-height);
}

.hero h1 {
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
  font-weight: 300;
}

/* Leistungen Section */
.leistungen {
  background-color: var(--white);
}

.service-card {
  background-color: var(--light-gray);
  padding: 3rem 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
  border-top: 3px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-top-color: var(--primary);
  background-color: var(--white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(26, 54, 93, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card ul {
  margin-top: auto;
  padding-top: 1.5rem;
}

.service-card li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray);
  font-size: 0.95rem;
}

.service-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Referenzen Section */
.referenzen {
  background-color: var(--light-gray);
}

.ref-card {
  background-color: var(--white);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ref-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ref-content {
  padding: 2rem;
}

.ref-content h3 {
  margin-bottom: 0.5rem;
}

/* Unternehmen Section */
.unternehmen {
  background-color: var(--white);
}

.unternehmen-img {
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Kontakt Section */
.kontakt {
  background-color: var(--primary-dark);
  color: var(--white);
}

.kontakt h2, .kontakt p {
  color: var(--white);
}

.kontakt h2::after {
  background-color: var(--secondary);
}

.contact-card {
  background-color: rgba(255,255,255,0.05);
  padding: 3rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-text strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-text a, .contact-text span {
  color: var(--white);
  font-size: 1.1rem;
}

.contact-text a:hover {
  color: #a0aec0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 2px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: rgba(255,255,255,0.1);
}

/* Footer */
.footer {
  background-color: #0b1424;
  color: #718096;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #a0aec0;
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-col a::before {
  content: '›';
  color: var(--secondary);
  font-weight: bold;
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.footer-col a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-col.about p {
  color: #a0aec0;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item strong {
  color: var(--secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.footer-contact-item a,
.footer-contact-item span {
  color: #a0aec0;
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agency-link {
  color: #4a5568;
}

.agency-link a {
  color: var(--secondary);
  font-weight: 500;
}

.agency-link a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .logo img {
    max-height: 65px;
  }

  .header.scrolled .nav-menu {
    top: 90px;
    height: calc(100vh - 90px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }

  .footer-col h4::after {
    left: 0;
  }

  .footer-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Dropdown auf Mobile: als Accordion */
  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-item .nav-link {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: none;
    background-color: transparent;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav-item.is-open > .nav-dropdown {
    max-height: 500px;
    padding: 0.5rem 0 1rem;
    transform: none;
  }

  .nav-dropdown a {
    color: var(--gray);
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    text-align: center;
    white-space: normal;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a.is-active {
    padding-left: 1rem;
    background-color: transparent;
    color: var(--secondary);
  }

  .nav-dropdown a::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-col.about {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   SUBPAGE COMPONENTS
   ========================================================= */

/* Aktiver Navigations-Link */
.nav-link.is-active {
  color: var(--primary);
}
.nav-link.is-active::after {
  width: 100%;
}

/* =========================================================
   DROPDOWN-MENÜ (Leistungen)
   ========================================================= */
.nav-item {
  position: relative;
}

.nav-item .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
  margin-left: 0.15rem;
}

.nav-item.is-open > .nav-link .nav-toggle-icon,
.nav-item:hover > .nav-link .nav-toggle-icon {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background-color: var(--white);
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--secondary);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1100;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--dark-gray);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus,
.nav-dropdown a.is-active {
  background-color: var(--light-gray);
  color: var(--primary);
  padding-left: 1.5rem;
  outline: none;
}

.nav-dropdown a.is-active {
  font-weight: 600;
  border-left: 3px solid var(--secondary);
}

/* Page-Header (Hero für Unterseiten) */
.page-header {
  background-color: var(--primary-dark);
  background-image: linear-gradient(135deg, rgba(15, 31, 56, 0.95), rgba(26, 54, 93, 0.85));
  color: var(--white);
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(229, 62, 62, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: #cbd5e0;
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 720px;
  margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb .current {
  color: var(--secondary);
}

/* SVG-Bildplatzhalter (graue Box mit Maß-/Beschreibungstext) */
.img-placeholder {
  position: relative;
  background-color: #e2e8f0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(113, 128, 150, 0.08) 14px,
    rgba(113, 128, 150, 0.08) 28px
  );
  border: 1px dashed rgba(113, 128, 150, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #4a5568;
  border-radius: 4px;
  overflow: hidden;
  padding: 1.5rem;
}

.img-placeholder::before {
  content: '';
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  background-color: rgba(74, 85, 104, 0.35);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") no-repeat center / contain;
}

.img-placeholder .ph-label {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #2d3748;
}

.img-placeholder .ph-meta {
  font-size: 0.8rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.img-placeholder.ph-16-9 {
  aspect-ratio: 16 / 9;
}
.img-placeholder.ph-4-3 {
  aspect-ratio: 4 / 3;
}
.img-placeholder.ph-1-1 {
  aspect-ratio: 1 / 1;
}
.img-placeholder.ph-3-2 {
  aspect-ratio: 3 / 2;
}
.img-placeholder.ph-tall {
  aspect-ratio: 3 / 4;
}
.img-placeholder.ph-ref {
  height: 240px;
}
.img-placeholder.ph-hero {
  aspect-ratio: 16 / 10;
}

/* Variante: dunkel (für Kontakt-/Footer-Hintergründe) */
.img-placeholder.is-dark {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
}
.img-placeholder.is-dark .ph-label {
  color: var(--white);
}
.img-placeholder.is-dark .ph-meta {
  color: rgba(255, 255, 255, 0.55);
}

/* Content-Abschnitt für Subseiten */
.content-section {
  background-color: var(--white);
}
.content-section.is-light {
  background-color: var(--light-gray);
}

.content-section h2 {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--gray);
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.prose ol {
  list-style: decimal;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose a {
  color: var(--secondary);
  text-decoration: underline;
}

/* Feature-Liste (Icon-Boxen) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--secondary);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.feature-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: var(--dark);
}

.feature-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Detail-Layout (Sidebar + Hauptinhalt) */
.detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 4px;
  border-top: 3px solid var(--secondary);
}

.detail-sidebar h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.detail-sidebar ul {
  margin: 0;
}

.detail-sidebar li {
  margin-bottom: 0.5rem;
}

.detail-sidebar li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  font-size: 0.95rem;
  color: var(--dark-gray);
  transition: var(--transition);
}

.detail-sidebar li a:hover,
.detail-sidebar li a.is-active {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-sidebar li a.is-active {
  border-left: 3px solid var(--secondary);
  font-weight: 600;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-sidebar {
    position: static;
  }
}

/* CTA-Banner */
.cta-banner {
  background-color: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
}
.cta-banner h2::after {
  left: 50%;
  transform: translateX(-50%);
}
.cta-banner p {
  color: #cbd5e0;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Referenzen-Galerie (4-Spalten) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item .img-placeholder {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(113, 128, 150, 0.2);
}

.gallery-item-body {
  padding: 1.5rem;
}

.gallery-item-body h4 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.gallery-item-body .tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-item-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* FAQ / Accordion */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  background-color: var(--light-gray);
}

.faq-item .faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray);
}

/* Team / Mitarbeiter Karten */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
}

.team-card .img-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.team-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Timeline (Unternehmen) */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid rgba(229, 62, 62, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}

.timeline-item .year {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* Kennzahlen */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Kontaktseite Karten */
.kontakt-light {
  background-color: var(--light-gray);
}

.info-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--secondary);
  margin-bottom: 1.5rem;
}

.info-card strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-card a {
  color: var(--primary);
  font-weight: 500;
}

.info-card a:hover {
  color: var(--secondary);
}

/* Map */
.gmap-container {
  width: 100%;
  height: 380px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--dark);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-top: 3px solid var(--secondary);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  flex: 1 1 280px;
  margin: 0;
  color: #cbd5e0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--secondary);
  text-decoration: underline;
}

.cookie-banner .cookie-btn {
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  transition: var(--transition);
}

.cookie-banner .cookie-btn:hover {
  background-color: var(--secondary-hover);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  /* CSS-Fallback: nach 3s automatisch ausblenden, falls JS nicht greift */
  animation: pl-autohide 3s forwards;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

@keyframes pl-autohide {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: pl-spin 0.9s linear infinite;
}

@keyframes pl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reveal-Animationen */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] { transition-delay: 0.1s; }
.reveal[data-delay='2'] { transition-delay: 0.2s; }
.reveal[data-delay='3'] { transition-delay: 0.3s; }
.reveal[data-delay='4'] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .preloader-spinner {
    animation: none;
  }
}

/* 404 Seite */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  text-align: center;
}

.error-code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Agentur-Branding */
.agency-branding {
  text-align: center;
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: #4a5568;
}

.agency-branding a {
  color: var(--secondary);
  font-weight: 500;
}

.agency-branding a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

/* Hilfsklassen */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.section-tight { padding: 4rem 0; }

/* Responsive Anpassungen für neue Komponenten */
@media (max-width: 768px) {
  .page-header {
    padding: calc(var(--header-height) + 2rem) 0 3rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .gmap-container {
    height: 280px;
  }
}

/* =====================================================================
   Joomla-Import Ergaenzungen (com_aicontentbridge)
   Ersetzt frühere Inline-Styles der Artikel-Inhalte durch Klassen.
   ===================================================================== */

/* Abstands-Utilities */
.mt-1 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Content-Bilder in Artikeln */
.content-img { width: 100%; height: auto; border-radius: var(--radius, 8px); display: block; }

/* Datentabelle (Werkzeugstaehle) */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.data-table th { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 2px solid rgba(0,0,0,0.12); }
.data-table td { padding: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* Kontakt-Infokarten */
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-box { display: flex; align-items: flex-start; gap: 1rem; background: var(--white); border: 1px solid rgba(26,54,93,0.1); border-radius: 6px; padding: 1.25rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.contact-box .icon { flex-shrink: 0; width: 42px; height: 42px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-box strong { display: block; color: var(--primary); margin-bottom: 0.25rem; }
.contact-box a { color: var(--dark-gray); text-decoration: none; }

/* Kontaktformular-Panel */
.kontakt-form { background-color: var(--primary-dark); padding: 3rem; border-radius: 4px; }
.kontakt-form h3 { color: var(--white); margin-bottom: 1.5rem; }
.form-consent { display: flex; gap: 0.75rem; align-items: flex-start; color: #cbd5e0; font-size: 0.85rem; }
.form-consent input { margin-top: 0.25rem; }
.form-consent a { color: var(--secondary); text-decoration: underline; }

/* Google-Maps iframe */
.gmap-container iframe { width: 100%; height: 100%; border: 0; }

/* Quellenhinweis (Rechtstexte) */
.source-note { margin-top: 2rem; font-size: 0.85rem; color: var(--gray); }
