/*
Theme Name: Flatsome Child
Description: Almanzu Impact child theme
Author: Almanzu Impact
Template: flatsome
Version: 1.0
*/

/* ============================================================
   FONTS – self-hosted (DSGVO)
   ============================================================ */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   BRAND VARIABLES
   ============================================================ */
:root {
  --terra:        #9B3D2E;
  --terra-dark:   #7E2F23;
  --sand:         #E8D9C0;
  --charcoal:     #1F2A30;
  --charcoal-soft:#2C3A42;
  --cream:        #FAF6EE;
  --cream-warm:   #F3ECDC;
  --muted:        #6B6659;
  --line:         rgba(31,42,48,.12);
}

/* ============================================================
   BASE RESETS & TYPOGRAPHY
   ============================================================ */
body {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--charcoal) !important;
  background: var(--cream) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: var(--charcoal) !important;
  letter-spacing: -0.01em;
}

body h1, body .h1 { font-size: clamp(2.4rem, 5vw, 4.6rem) !important; line-height: 1.02 !important; font-weight: 300 !important; }
body h2, body .h2 { font-size: clamp(1.6rem, 3.2vw, 2.9rem) !important; line-height: 1.08 !important; font-weight: 400 !important; }
body h3, body .h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important; line-height: 1.25 !important; font-weight: 500 !important; }

em { color: var(--terra); font-style: italic; }

a { color: inherit; }
a:hover { color: var(--terra); }

/* ============================================================
   FLATSOME OVERRIDES – Colors
   ============================================================ */
:root {
  --primary-color: var(--terra) !important;
}
.primary-color,
.color-primary { color: var(--terra) !important; }
.primary-bg,
.bg-primary,
.button.primary,
.button.is-primary { background-color: var(--terra) !important; border-color: var(--terra) !important; }
.button.primary:hover,
.button.is-primary:hover { background-color: var(--terra-dark) !important; border-color: var(--terra-dark) !important; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(250,246,238,0) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid var(--line) !important;
  transition:
    background .3s ease-out,
    backdrop-filter .3s ease-out,
    -webkit-backdrop-filter .3s ease-out,
    border-color .3s ease-out,
    box-shadow .3s ease-out !important;
}
#header.az-scrolled {
  background: rgba(250,246,238,.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 24px -8px rgba(31,42,48,.08);
}
#header .header-inner {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.nav > li > a {
  font-family: 'Inter', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  color: var(--charcoal) !important;
  padding-bottom: 6px !important;
  border-bottom: 1.5px solid transparent !important;
  transition: border-color .2s ease !important;
}
.nav > li > a:hover,
.nav > li.current-menu-item > a {
  border-color: var(--terra) !important;
  color: var(--charcoal) !important;
}
/* CTA button in nav */
.nav-cta .button,
#nav .nav-cta > a {
  background: var(--terra) !important;
  color: var(--cream) !important;
  border-radius: 2px !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}
.nav-cta .button:hover,
#nav .nav-cta > a:hover {
  background: var(--terra-dark) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button, .btn {
  border-radius: 2px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  letter-spacing: .02em !important;
  transition: transform .15s ease-out, background .2s ease-out, box-shadow .2s ease-out !important;
}
.button:hover { transform: translateY(-2px); }
.button:active, .btn:active { transform: translateY(0) scale(.98) !important; transition-duration: .05s !important; }
.button.primary,
.button.color-primary {
  background: var(--terra) !important;
  color: var(--cream) !important;
  border: none !important;
}
.button.primary:hover,
.button.color-primary:hover {
  background: var(--terra-dark) !important;
  box-shadow: 0 10px 28px -8px rgba(155,61,46,.45) !important;
}
.button.outline {
  background: transparent !important;
  border: 1.5px solid var(--charcoal) !important;
  color: var(--charcoal) !important;
}
.button.outline:hover {
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  box-shadow: 0 8px 20px -8px rgba(31,42,48,.3) !important;
}
.button.outline-light {
  background: transparent !important;
  border: 1.5px solid rgba(250,246,238,.7) !important;
  color: var(--cream) !important;
}
.button.outline-light:hover {
  background: var(--cream) !important;
  color: var(--charcoal) !important;
  border-color: var(--cream) !important;
  box-shadow: 0 8px 24px -8px rgba(250,246,238,.25) !important;
}

/* ============================================================
   EYEBROW LABEL
   ============================================================ */
.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.az-hero {
  padding: 90px 0 110px;
  background: var(--cream);
}
.az-hero .az-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.az-hero h1 { margin: 22px 0 0; }
.az-hero .lede {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  max-width: 520px;
  margin: 22px 0 34px;
}
.az-hero .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.az-hero .meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.az-hero .meta strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  color: var(--charcoal);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.az-hero-photo-wrap {
  position: relative;
}
.az-hero-photo {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 80px -20px rgba(31,42,48,.25);
  position: relative;
}
.az-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.az-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,42,48,.12));
}
.az-hero-badge {
  position: absolute;
  bottom: 28px;
  left: -24px;
  background: var(--terra);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 2px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  max-width: 240px;
  line-height: 1.3;
  box-shadow: 0 12px 30px -8px rgba(155,61,46,.4);
  z-index: 2;
}

/* ============================================================
   PILLARS SECTION
   ============================================================ */
.az-pillars {
  padding: 110px 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.az-section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
}
.az-section-head .lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 640px;
}
.az-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.az-pillar {
  background: var(--cream);
  padding: 38px 34px 42px;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.az-pillar::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--terra);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease-out;
}
.az-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(31,42,48,.18);
}
.az-pillar:hover::before { transform: scaleY(1); }
.az-pillar .num {
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  color: var(--terra);
  letter-spacing: .1em;
  margin-bottom: 22px;
  font-weight: 500;
}
.az-pillar h3 { margin-bottom: 14px; font-size: clamp(1.1rem, 1.6vw, 1.45rem) !important; }
.az-pillar p { color: var(--charcoal-soft); font-size: .97rem; margin-bottom: 22px; }
.az-pillar ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.az-pillar ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--charcoal-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.az-pillar ul li::before { content: "—"; color: var(--terra); flex-shrink: 0; }
.az-pillar a.more {
  color: var(--terra);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.az-pillar a.more::after {
  content: "→";
  display: inline-block;
  transition: transform .2s ease-out;
}
.az-pillar a.more:hover::after { transform: translateX(5px); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.az-about {
  padding: 130px 0;
  background: var(--cream);
}
.az-about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.az-about-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 3px;
}
.az-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.az-about .quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--charcoal);
  margin: 28px 0;
  padding-left: 24px;
  border-left: 3px solid var(--terra);
}
.az-about .bio { color: var(--charcoal-soft); max-width: 560px; }
.az-about .creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
  margin: 32px 0;
}
.az-about .creds div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: .9rem;
}
.az-about .creds strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--charcoal);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ============================================================
   APPROACH SECTION
   ============================================================ */
.az-approach {
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  padding: 130px 0;
}
.az-approach h2 { color: var(--cream) !important; }
.az-approach p { color: rgba(250,246,238,.75) !important; }
.az-approach .eyebrow { color: var(--sand) !important; }
.az-approach .az-section-head { margin-bottom: 20px; }
.az-approach .az-section-head .lede { color: rgba(250,246,238,.75) !important; }
.az-approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 32px;
}
.az-step {
  padding: 36px 28px 42px;
  border-right: 1px solid rgba(250,246,238,.15);
}
.az-step:last-child { border-right: 0; }
.az-step .n {
  font-family: 'Fraunces', serif;
  font-size: 3.2rem;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 22px;
  font-weight: 300;
}
.az-step h3 { color: var(--cream) !important; font-size: clamp(1.1rem, 1.4vw, 1.2rem) !important; margin-bottom: 10px; }
.az-step p { color: rgba(250,246,238,.7) !important; font-size: .92rem; margin: 0; }

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.az-testimonials {
  padding: 130px 0;
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.az-t-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.az-t-card {
  background: var(--cream);
  padding: 44px 40px 36px;
  border-left: 3px solid var(--terra);
  border-radius: 2px;
}
.az-t-card blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  line-height: 1.45;
  margin: 0 0 22px;
  color: var(--charcoal);
  font-weight: 400;
  padding: 0;
  border: none;
}
.az-t-card .who { display: flex; align-items: center; gap: 14px; }
.az-t-card .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  color: var(--charcoal);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.az-t-card .who strong { display: block; font-size: .95rem; color: var(--charcoal); font-family: 'Inter', sans-serif; }
.az-t-card .who span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.az-cta {
  padding: 120px 0 130px;
  background: var(--terra) !important;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.az-cta::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(250,246,238,.06);
  pointer-events: none;
}
.az-cta-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.az-cta h2 { color: var(--cream) !important; max-width: 760px; margin-bottom: 18px; }
.az-cta .lede {
  color: rgba(250,246,238,.85);
  max-width: 640px;
  font-size: 1.2rem;
  margin-bottom: 36px;
}
.az-cta .eyebrow { color: rgba(250,246,238,.8) !important; }
.az-cta .ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--charcoal) !important;
  color: rgba(250,246,238,.75) !important;
}
#footer .footer-inner {
  padding: 72px 0 32px !important;
}
#footer h4,
#footer .widget-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: .8rem !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--cream) !important;
  margin-bottom: 16px !important;
}
#footer ul { list-style: none; padding: 0; margin: 0; }
#footer ul li { margin-bottom: 8px; font-size: .92rem; }
#footer a { color: rgba(250,246,238,.75); }
#footer a:hover { color: var(--cream) !important; }
#footer .footer-bottom {
  border-top: 1px solid rgba(250,246,238,.12);
  padding-top: 24px;
  color: rgba(250,246,238,.5);
  font-size: .82rem;
}
.footer-logo img {
  height: 54px;
  filter: brightness(0) invert(1);
  opacity: .95;
  margin-bottom: 20px;
}
.footer-brand-line {
  color: rgba(250,246,238,.6);
  max-width: 320px;
  font-size: .9rem;
}

/* ============================================================
   LEISTUNGEN PAGE
   ============================================================ */
.az-leist-hero {
  padding: 90px 0 40px;
  background: var(--cream);
}
.az-leist-hero h1 { max-width: 900px; }
.az-leist-hero .lede {
  max-width: 720px;
  font-size: 1.2rem;
  color: var(--charcoal-soft);
}
.az-service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.az-service-detail.reverse .sd-copy { order: 2; }
.az-service-detail.reverse .sd-photo { order: 1; }
.sd-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
}
.sd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-copy .eyebrow { margin-bottom: 14px; }
.sd-copy h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important; margin-bottom: 16px; }
.sd-copy p { color: var(--charcoal-soft); }
.sd-copy ul { margin: 22px 0; padding: 0; list-style: none; }
.sd-copy ul li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  font-size: .97rem;
}
.sd-copy ul li::before { content: "›"; color: var(--terra); font-weight: 700; flex-shrink: 0; }
/* UX Builder ux_html list used inside Leistungen columns */
ul.sd-list { margin: 22px 0; padding: 0; list-style: none; }
ul.sd-list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; font-size: .97rem; color: var(--charcoal-soft); }
ul.sd-list li::before { content: "›"; color: var(--terra); font-weight: 700; flex-shrink: 0; }
.price-chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */
.az-kontakt {
  padding: 100px 0;
  background: var(--cream-warm);
}
.az-k-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.k-form {
  background: var(--cream);
  padding: 44px 44px 40px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
/* CF7 form styling */
.wpcf7-form label,
.k-form label {
  display: block;
  margin-bottom: 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: .04em;
  font-family: 'Inter', sans-serif;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-top: 6px;
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .95rem !important;
  background: var(--cream) !important;
  color: var(--charcoal) !important;
  outline: none;
  box-shadow: none !important;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: var(--terra) !important; }
.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form input[type="submit"] {
  background: var(--terra) !important;
  color: var(--cream) !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 2px !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  cursor: pointer !important;
  letter-spacing: .02em !important;
  transition: background .2s ease !important;
}
.wpcf7-form input[type="submit"]:hover { background: var(--terra-dark) !important; }
.cf7-dsgvo { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.cf7-dsgvo .wpcf7-list-item { margin: 0; }
.cf7-dsgvo a { text-decoration: underline; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: .78rem; color: var(--terra); }
.wpcf7-response-output { border-color: var(--terra) !important; font-size: .88rem !important; border-radius: 2px !important; }
.k-info h3 { font-size: 1.6rem; margin-bottom: 12px; }
.k-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.k-row strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--charcoal);
  font-size: .95rem;
}

/* ============================================================
   ÜBER MICH PAGE
   ============================================================ */
.az-ueber-hero {
  padding: 90px 0 70px;
  background: var(--cream);
}
.az-ueber-hero h1 { max-width: 780px; }
.az-ueber-hero .lede {
  font-size: 1.2rem;
  color: var(--charcoal-soft);
  max-width: 640px;
  margin-top: 22px;
}

/* ============================================================
   ANSATZ PAGE
   ============================================================ */
.az-ansatz-hero {
  padding: 90px 0 70px;
  background: var(--cream);
}

/* ============================================================
   SCROLL OFFSET — compensate for sticky header
   ============================================================ */
html { scroll-padding-top: 80px; }
[id] { scroll-margin-top: 80px; }

/* ============================================================
   HERO ENTRANCE
   ============================================================ */
@keyframes az-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.az-hero-entrance {
  opacity: 0;
  animation: az-enter .65s ease-out forwards;
}
.az-hero-entrance:nth-child(1) { animation-delay: .05s; }
.az-hero-entrance:nth-child(2) { animation-delay: .18s; }
.az-hero-entrance:nth-child(3) { animation-delay: .3s; }
.az-hero-entrance:nth-child(4) { animation-delay: .42s; }
.az-hero-entrance:nth-child(5) { animation-delay: .54s; }
.az-hero-entrance:nth-child(6) { animation-delay: .64s; }

/* ============================================================
   MOTION — prefers-reduced-motion guard
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .az-hero-entrance { opacity: 1 !important; }
}

/* Entry animation — sections fade+translate up */
.az-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.az-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.az-reveal:nth-child(2) { transition-delay: .1s; }
.az-reveal:nth-child(3) { transition-delay: .2s; }
.az-reveal:nth-child(4) { transition-delay: .3s; }

/* ============================================================
   FOCUS — keyboard only, never on mouse click
   ============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus { border-color: var(--terra) !important; }
.wpcf7-form input:focus-visible,
.wpcf7-form textarea:focus-visible,
.wpcf7-form select:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 0;
}

/* Form submit — loading state */
.wpcf7-form.submitting input[type="submit"] {
  opacity: .65;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* CF7 validation error icon */
.wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wpcf7-not-valid-tip::before {
  content: "!";
  width: 16px; height: 16px;
  background: var(--terra);
  color: var(--cream);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ============================================================
   FLUID SPACING + TYPOGRAPHY
   ============================================================ */
:root {
  --section-pad: clamp(72px, 10vw, 130px);
  --container-pad: clamp(20px, 4vw, 32px);
  --gap-grid: clamp(20px, 3vw, 28px);
}

.az-hero, .az-pillars, .az-about, .az-approach,
.az-testimonials, .az-cta, .az-kontakt,
.az-leist-hero, .az-ueber-hero, .az-ansatz-hero {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}


.az-hero .az-hero-grid,
.az-section-head,
.az-pillar-grid,
.az-about-grid,
.az-approach-steps,
.az-t-grid,
.az-cta-inner,
.az-k-grid,
.az-service-detail {
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.az-pillar-grid,
.az-t-grid { gap: var(--gap-grid); }

/* ============================================================
   TOUCH TARGETS
   ============================================================ */
.button, .btn,
.nav > li > a,
#nav .nav-cta > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   CONTAINER QUERIES — pillar cards adapt independently
   ============================================================ */
.az-pillar-grid { container-type: inline-size; }
@container (max-width: 680px) {
  .az-pillar { padding: 28px 24px 32px; }
  .az-pillar h3 { font-size: 1.2rem !important; }
}

/* ============================================================
   RESPONSIVE — mobile-first
   ============================================================ */

/* Base (mobile): single column */
.az-hero .az-hero-grid,
.az-about-grid,
.az-k-grid { grid-template-columns: 1fr; gap: 40px; }

.az-pillar-grid,
.az-t-grid { grid-template-columns: 1fr; }

.az-approach-steps { grid-template-columns: 1fr; }
.az-step { border-right: 0; border-bottom: 1px solid rgba(250,246,238,.15); }
.az-step:last-child { border-bottom: 0; }

.az-section-head { grid-template-columns: 1fr; gap: 16px; }

.az-service-detail { grid-template-columns: 1fr; gap: 40px; }
.az-service-detail.reverse .sd-copy,
.az-service-detail.reverse .sd-photo { order: 0; }

.az-hero-badge { left: 0; bottom: 16px; }
.az-about .creds { grid-template-columns: 1fr; }
.k-row { grid-template-columns: 1fr; }

/* ≥640px — tablet */
@media (min-width: 640px) {
  .az-approach-steps { grid-template-columns: repeat(2, 1fr); }
  .az-step { border-bottom: 0; border-right: 1px solid rgba(250,246,238,.15); }
  .az-step:nth-child(even) { border-right: 0; }
  .az-about .creds { grid-template-columns: repeat(2, 1fr); }
  .k-row { grid-template-columns: 130px 1fr; }
}

/* ≥960px — desktop */
@media (min-width: 960px) {
  .az-hero .az-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; }
  .az-about-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .az-k-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .az-pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .az-t-grid { grid-template-columns: repeat(2, 1fr); }
  .az-approach-steps { grid-template-columns: repeat(4, 1fr); }
  .az-step { border-right: 1px solid rgba(250,246,238,.15); border-bottom: 0; }
  .az-step:last-child { border-right: 0; }
  .az-section-head { grid-template-columns: 1fr 2fr; gap: 60px; }
  .az-service-detail { grid-template-columns: 1fr 1fr; gap: 70px; }
  .az-service-detail.reverse .sd-copy { order: 2; }
  .az-service-detail.reverse .sd-photo { order: 1; }
}

/* ============================================================
   MOBILE SECTION PADDING — override UX Builder inline styles
   ============================================================ */
@media (max-width: 639px) {
  .section { padding-top: clamp(56px, 12vw, 90px) !important; padding-bottom: clamp(56px, 12vw, 90px) !important; }
  .row { padding-left: clamp(16px, 5vw, 24px) !important; padding-right: clamp(16px, 5vw, 24px) !important; }
}
