
/* Akdag Ingenieure – V4 Inter + Logo-System */

:root {
  --akdag-purple: #5a1e86;
  --akdag-purple-dark: #3d145a;
  --akdag-charcoal: #202128;
  --akdag-text: #242228;
  --akdag-muted: #625d68;
  --akdag-line: #ded9d2;
  --akdag-bg: #f6f3ee;
  --akdag-white: #ffffff;
}

/* Einheitliche Schrift */
html,
body,
button,
input,
textarea,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body {
  background: linear-gradient(180deg, #fbfaf7 0%, #f6f3ee 100%) !important;
  color: var(--akdag-text) !important;
}

/* Header */
.site-header {
  background: rgba(251, 250, 247, 0.97) !important;
  border-bottom: 1px solid rgba(32, 33, 40, 0.10) !important;
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 84px !important;
  gap: 2rem !important;
}

.brand--image {
  min-width: 280px !important;
  max-width: 330px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.brand--image img {
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  object-fit: contain !important;
}

.desktop-nav {
  gap: 0.35rem !important;
}

.desktop-nav a {
  color: #383641 !important;
  padding: 0.55rem 0.62rem !important;
  border-radius: 9px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
  background: rgba(90, 30, 134, 0.08) !important;
  color: var(--akdag-purple) !important;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(90, 30, 134, 0.06), transparent 30rem),
    linear-gradient(135deg, #fbfaf7 0%, #f3f0ea 100%) !important;
  border-bottom: 1px solid rgba(32, 33, 40, 0.10) !important;
  padding: clamp(4rem, 6vw, 6rem) 0 clamp(4rem, 6vw, 5rem) !important;
  overflow: hidden !important;
}

.hero::after {
  display: none !important;
}

.hero__bg {
  opacity: 0.13 !important;
  width: min(54vw, 760px) !important;
  right: 0 !important;
  filter: grayscale(1) !important;
}

.hero__inner {
  position: relative !important;
  z-index: 2 !important;
  gap: 0 !important;
}

.hero__content {
  max-width: 980px !important;
}

.hero-logo {
  width: min(420px, 82vw);
  margin: 0 0 2.1rem 0;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero h1 {
  color: var(--akdag-charcoal) !important;
  font-size: clamp(3.25rem, 6.4vw, 6.3rem) !important;
  line-height: 0.97 !important;
  letter-spacing: -0.075em !important;
  max-width: 980px !important;
  margin: 0 0 1.45rem !important;
  font-weight: 800 !important;
}

.hero__subtitle {
  max-width: 920px !important;
  color: var(--akdag-text) !important;
  font-size: clamp(1.36rem, 2.05vw, 1.92rem) !important;
  line-height: 1.38 !important;
  font-weight: 650 !important;
}

.hero__text {
  max-width: 830px !important;
  color: var(--akdag-muted) !important;
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
}

.hero__actions {
  gap: 1rem !important;
  margin-top: 2.1rem !important;
}

.button {
  border-radius: 12px !important;
  padding: 0.9rem 1.35rem !important;
  font-weight: 800 !important;
}

.button--primary {
  background: var(--akdag-purple) !important;
  color: #fff !important;
}

.button--primary:hover {
  background: var(--akdag-purple-dark) !important;
  color: #fff !important;
}

.button--secondary {
  background: rgba(255, 255, 255, 0.84) !important;
  color: var(--akdag-text) !important;
  border-color: rgba(32, 33, 40, 0.18) !important;
}

.button--secondary:hover {
  border-color: rgba(90, 30, 134, 0.42) !important;
  color: var(--akdag-purple) !important;
}

/* Hero boxes removed */
.hero__panel {
  display: none !important;
}

/* Sections */
.section {
  padding: clamp(4.2rem, 6.8vw, 6.4rem) 0 !important;
}

.section--default {
  background: #ffffff !important;
}

.section--muted {
  background: #efebe4 !important;
}

.section__header h2 {
  color: var(--akdag-charcoal) !important;
  font-size: clamp(2.15rem, 4.2vw, 4rem) !important;
  letter-spacing: -0.055em !important;
}

.section__intro,
.section__header p,
.section p {
  color: var(--akdag-muted) !important;
}

/* Cards */
.service-card,
.info-panel,
.contact-panel,
.legal-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(32, 33, 40, 0.11) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(32, 33, 40, 0.055) !important;
}

.service-card h3 a,
.info-panel h3,
.contact-panel h3,
.legal-panel h2 {
  color: var(--akdag-charcoal) !important;
}

.service-card p,
.service-card li,
.info-panel p,
.contact-panel p,
.legal-panel p,
.legal-panel li,
.check-list li {
  color: #56515d !important;
}

/* Dark sections */
.section--dark {
  background: linear-gradient(135deg, #16171d 0%, #242228 100%) !important;
  color: #ffffff !important;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark li,
.section--dark strong,
.section--dark span {
  color: #ffffff !important;
}

.section--dark .eyebrow {
  color: #d5b4f4 !important;
}

.section--dark .process-list span {
  color: #d5b4f4 !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #4a1a6b 0%, #1e1f25 100%) !important;
}

.cta h2,
.cta p,
.cta .eyebrow {
  color: #ffffff !important;
}

.cta .button--secondary {
  color: #ffffff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

/* Footer */
.site-footer {
  background: #ffffff !important;
  color: var(--akdag-text) !important;
  border-top: 1px solid rgba(32, 33, 40, 0.10) !important;
}

.footer-brand,
.site-footer a {
  color: var(--akdag-charcoal) !important;
}

.site-footer p {
  color: var(--akdag-muted) !important;
}

/* Mobile */
@media (max-width: 1080px) {
  .brand--image {
    min-width: 230px !important;
    max-width: 280px !important;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    min-height: 76px !important;
  }

  .brand--image {
    min-width: 210px !important;
    max-width: 245px !important;
  }

  .hero {
    padding: 3.5rem 0 3.2rem !important;
  }

  .hero-logo {
    width: min(320px, 84vw);
    margin-bottom: 1.7rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem) !important;
  }

  .hero__subtitle {
    font-size: 1.24rem !important;
  }

  .hero__text {
    font-size: 1rem !important;
  }

  .hero__actions {
    display: grid !important;
  }

  .button {
    width: 100%;
  }
}


/* V5 – Hero-Logo entfernt, Überschrift ruhiger gesetzt */
.hero-logo {
  display: none !important;
}

.hero h1,
#hero-title {
  letter-spacing: -0.045em !important;
  word-spacing: 0.02em !important;
  font-weight: 800 !important;
  font-stretch: normal !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  max-width: 1050px !important;
}

@media (max-width: 720px) {
  .hero h1,
  #hero-title {
    letter-spacing: -0.035em !important;
    line-height: 1.02 !important;
  }
}


/* V6 – einheitlicher Header auf allen Seiten */
.site-header {
  width: 100% !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(251, 250, 247, 0.98) !important;
  border-bottom: 1px solid rgba(32, 33, 40, 0.10) !important;
  backdrop-filter: blur(16px) !important;
}

.site-header__inner {
  width: min(100% - 40px, 1220px) !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  min-height: 84px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
}

.brand--image {
  min-width: 280px !important;
  max-width: 330px !important;
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.brand--image img {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  object-fit: contain !important;
}

.desktop-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0.35rem !important;
}

.desktop-nav a {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  color: #383641 !important;
  padding: 0.55rem 0.62rem !important;
  border-radius: 9px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mobile-nav {
  display: none !important;
}

main {
  min-height: 70vh;
}

.legal-page,
.contact-page,
.page-lead {
  padding-top: clamp(4rem, 6vw, 6rem) !important;
}

.legal-container {
  max-width: 900px !important;
  margin: 0 auto !important;
}

/* falls einzelne Standalone-Seiten generische Header-Regeln haben */
body > header.site-header + main {
  margin-top: 0 !important;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
    position: relative !important;
    margin-left: auto !important;
  }

  .mobile-nav summary {
    display: grid !important;
    width: 52px !important;
    height: 52px !important;
    place-items: center !important;
    border: 1px solid rgba(32, 33, 40, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.82) !important;
    cursor: pointer !important;
    list-style: none !important;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none !important;
  }

  .mobile-nav summary span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    background: #242228 !important;
  }

  .mobile-nav nav {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    display: grid !important;
    width: min(84vw, 360px) !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(32, 33, 40, 0.12) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 60px rgba(32, 33, 40, 0.12) !important;
  }

  .mobile-nav nav a {
    padding: 0.8rem 0.9rem !important;
    color: #383641 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 9px !important;
  }

  .brand--image {
    min-width: 230px !important;
    max-width: 280px !important;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    width: min(100% - 28px, 1220px) !important;
    min-height: 76px !important;
  }

  .brand--image {
    min-width: 205px !important;
    max-width: 250px !important;
  }
}


/* V7 – Überschriften im Seiteninhalt luftiger gesetzt, Header bleibt unverändert */
main h1,
main h2,
main h3,
#hero-title,
.section__header h2,
.page-lead h1,
.legal-page h1,
.contact-page h1,
.legal-card h2,
.contact-card h2,
.service-card h3,
.info-panel h3 {
  letter-spacing: -0.025em !important;
  word-spacing: 0.035em !important;
  font-stretch: normal !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

/* Große Hauptüberschriften etwas weniger eng als vorher */
main h1,
#hero-title,
.page-lead h1,
.legal-page h1,
.contact-page h1 {
  letter-spacing: -0.032em !important;
  word-spacing: 0.04em !important;
  line-height: 1.03 !important;
}

/* Hero-Headline separat, damit sie stark bleibt, aber nicht gequetscht wirkt */
.hero h1,
#hero-title {
  letter-spacing: -0.038em !important;
  word-spacing: 0.045em !important;
  line-height: 1.02 !important;
}

/* Unterseiten-Headlines etwas ruhiger */
.section__header h2,
main h2 {
  letter-spacing: -0.022em !important;
  word-spacing: 0.035em !important;
  line-height: 1.12 !important;
}

/* Kartenüberschriften nicht zu eng */
.service-card h3,
.info-panel h3,
.legal-card h2,
.contact-card h2 {
  letter-spacing: -0.012em !important;
  word-spacing: 0.025em !important;
  line-height: 1.18 !important;
}

/* Header/Nav bewusst nicht anfassen */
.site-header h1,
.site-header h2,
.site-header h3,
.site-header a,
.site-header strong,
.site-header span,
.site-header small,
.desktop-nav a,
.mobile-nav a {
  letter-spacing: inherit;
  word-spacing: normal;
}


/* V9 – Fachbereiche + Leistungsarten sauber getrennt */
.hero__service-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.45rem 0 0;
  color: #4a4550 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__service-line::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 2px;
  margin: 0.85em 0.6rem 0 0;
  background: var(--akdag-purple);
}

.desktop-nav a {
  font-size: 0.84rem !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
    position: relative !important;
    margin-left: auto !important;
  }
}


/* V11 – Leistungsstruktur einheitlich auf allen Seiten */
.hero__service-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.45rem 0 0;
  color: #4a4550 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__service-line::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 2px;
  margin: 0.85em 0.6rem 0 0;
  background: var(--akdag-purple);
}

.service-card h3 {
  line-height: 1.18 !important;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
    position: relative !important;
    margin-left: auto !important;
  }
}


/* V13 – finale Leistungsstruktur */
.hero__service-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.45rem 0 0;
  color: #4a4550 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero__service-line::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 2px;
  margin: 0.85em 0.6rem 0 0;
  background: var(--akdag-purple);
}

.service-card h3 {
  line-height: 1.18 !important;
}
