/* ================================================================
   AVENTO – design system ported from the original static site,
   adapted to Hello Elementor + Elementor widget markup.
   ================================================================ */

/* ── Self-hosted Lato (GDPR: no external font CDN) ───────────── */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-latin-400-normal.woff2') format('woff2'),
       url('../fonts/lato-latin-400-normal.woff') format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-latin-700-normal.woff2') format('woff2'),
       url('../fonts/lato-latin-700-normal.woff') format('woff');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-latin-900-normal.woff2') format('woff2'),
       url('../fonts/lato-latin-900-normal.woff') format('woff');
}

:root {
  --gold: #bf0000;
  --gold-dark: #8c0000;
  --gold-soft: #ffe5e5;
  --navy: #26313a;
  --navy-soft: #2e3c47;
  --olive: #6e8b5a;
  --ivory: #f5f6f7;
  --ivory-deep: #eaebec;
  --ink: #26313a;
  --text: #26313a;
  --muted: #8c949c;
  --line: #dde0e3;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(38, 49, 58, 0.14);
  --radius: 8px;
  --max: 1180px;
}

/* ── Base ─────────────────────────────────────────────────────── */
body {
  color: var(--text);
  background: #fff;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-main { display: block; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Elementor boxed width to match original 1180px container */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--max);
}

h1, h2, h3 { color: var(--ink); line-height: 1.14; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  box-shadow: 0 4px 24px rgba(38, 49, 58, 0.1);
}

.header-topbar {
  width: 100%;
  background: var(--navy);
  padding: 9px 0;
  border-bottom: 2px solid var(--gold);
}

.header-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

.header-topbar a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 160ms ease; }
.header-topbar a:hover { color: var(--gold); }

.header-nav-bar { width: 100%; border-bottom: 3px solid var(--gold); background: #fff; }

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

.brand img,
.brand .custom-logo {
  height: 96px !important;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}
.brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }

.brand-fallback { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: 0.08em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li { position: relative; }

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-dark);
  background: rgba(191, 0, 0, 0.13);
  outline: none;
}

.nav-links li.nav-cta a,
.nav-links li.menu-item-cta a {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 22px rgba(38, 49, 58, 0.18);
}
.nav-links li.nav-cta a:hover { background: var(--gold-dark); color: #fff; }

.nav-links .current-menu-item > a { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(90deg, #141f2a, var(--navy-soft));
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.site-footer strong { color: #fff; display: block; font-size: 18px; }
.site-footer span { display: block; color: rgba(255, 253, 248, 0.72); margin-top: 6px; }

.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 4px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact a { display: block; margin: 4px 0; }

/* ── Buttons (Elementor) ─────────────────────────────────────── */
.elementor-widget-button .elementor-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff !important;
  background-color: var(--gold) !important;
  box-shadow: 0 12px 28px rgba(140, 0, 0, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus {
  background-color: var(--gold-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* light button on dark backgrounds */
.av-btn-light .elementor-button {
  background-color: #fff !important;
  color: var(--gold-dark) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.av-btn-light .elementor-button:hover { background-color: var(--ivory) !important; color: var(--gold-dark) !important; }

/* dark/navy button */
.av-btn-dark .elementor-button {
  background-color: var(--navy) !important;
  color: #fff !important;
}
.av-btn-dark .elementor-button:hover { background-color: var(--gold-dark) !important; color: #fff !important; }

/* ── Headings / kickers ──────────────────────────────────────── */
body .elementor-widget.elementor-widget-heading .elementor-heading-title { color: var(--ink); }
.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(36px, 5vw, 58px); }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: 0; }
.elementor-widget-heading h3.elementor-heading-title { font-size: 24px; }
.elementor-widget-heading h4.elementor-heading-title { font-size: 19px; }
.elementor-widget-heading h6.elementor-heading-title {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Hero (av-hero) ──────────────────────────────────────────── */
.av-hero { background: var(--navy); }
.av-hero .elementor-background-overlay {
  background: linear-gradient(100deg, rgba(38, 49, 58, 0.9) 0%, rgba(38, 49, 58, 0.66) 55%, rgba(38, 49, 58, 0.34) 100%) !important;
}
.av-hero .elementor-widget-container { position: relative; z-index: 2; }
.av-hero h1.elementor-heading-title { color: #fff !important; font-size: clamp(30px, 4vw, 58px); line-height: 1.12; }
.av-hero h6.elementor-heading-title { color: var(--gold) !important; letter-spacing: 0.18em; }
.av-hero .elementor-widget-text-editor { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 620px; }

/* ── Trust strip (av-trust) ──────────────────────────────────── */
.av-trust > .elementor-container {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
  gap: 1px !important;
}
.av-trust .elementor-column > .elementor-widget-wrap {
  background: linear-gradient(180deg, #fff, rgba(234, 230, 225, 0.72));
  padding: 26px;
  height: 100%;
}
.av-trust .elementor-widget-heading h4.elementor-heading-title { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.av-trust .elementor-widget-text-editor { color: var(--muted); font-weight: 700; }

/* ── Service cards (image-box in av-services) ────────────────── */
.av-services .elementor-widget-image-box { height: 100%; }
.av-services .elementor-image-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 32px rgba(38, 49, 58, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.av-services .elementor-image-box-wrapper:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 22px 46px rgba(38, 49, 58, 0.16);
}
.av-services .elementor-image-box-img {
  margin: 0 !important;
  width: 100% !important;
}
.av-services .elementor-image-box-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}
.av-services .elementor-image-box-content {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.av-services .elementor-image-box-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
.av-services .elementor-image-box-title a { color: var(--ink) !important; text-decoration: none; }
.av-services .elementor-image-box-title a:hover { color: var(--gold-dark) !important; }
.av-services .elementor-image-box-description { color: var(--muted); }

/* ── Icon lists (check lists) ────────────────────────────────── */
.elementor-widget-icon-list .elementor-icon-list-icon svg,
.elementor-widget-icon-list .elementor-icon-list-icon i { color: var(--gold); }
.elementor-widget-icon-list .elementor-icon-list-text { color: var(--text); }

/* ── Accordion (FAQ) ─────────────────────────────────────────── */
.elementor-accordion .elementor-tab-title { font-weight: 700; }
.elementor-accordion .elementor-tab-title.elementor-active { color: var(--gold); }

/* ── CTA band (av-cta) ───────────────────────────────────────── */
.av-cta { background: var(--navy) !important; }
.av-cta h2.elementor-heading-title { color: #fff; }
.av-cta .elementor-widget-text-editor { color: rgba(255, 255, 255, 0.85); }

/* ── Section rhythm ──────────────────────────────────────────── */
.elementor-widget-text-editor p { margin: 0 0 1em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 18px 30px rgba(38, 49, 58, 0.14);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .av-trust > .elementor-container { grid-template-columns: 1fr; }
}

/* ================================================================
   PHASE 3 – pixel-match components (hero slider, cards, CTA, etc.)
   ================================================================ */

/* ── Hero slider (ported from original) ──────────────────────── */
.av-hero-slider .elementor-widget-container { padding: 0 !important; margin: 0 !important; }
.av-hero-slider .elementor-widget-wrap,
.av-hero-slider .elementor-column > .elementor-widget-wrap,
.av-hero-slider .elementor-column > .elementor-element-populated { padding: 0 !important; margin: 0 !important; }
.hero-slider {
  position: relative;
  min-height: clamp(520px, 62vh, 760px);
  overflow: hidden;
  background: var(--navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(38, 49, 58, 0.88) 0%, rgba(38, 49, 58, 0.62) 55%, rgba(38, 49, 58, 0.32) 100%);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
  color: #fff;
}
.hero-slide-inner .hero-kicker,
.hero-slide-inner h1,
.hero-slide-inner .hero-subtitle { max-width: 620px; }
.hero-slide-inner .hero-kicker {
  color: var(--gold);
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-slide-inner h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.12;
  margin: 0 0 20px;
}
.hero-slide-inner .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
.hero-slider-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: 0; cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.35); }
.hero-slider-prev, .hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(6px);
}
.hero-slider-prev:hover, .hero-slider-next:hover { background: var(--gold); border-color: var(--gold); }
.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

/* ── Trust strip overlap ─────────────────────────────────────── */
.av-trust { margin-top: -46px !important; position: relative; z-index: 5; }

/* ── Section kicker ──────────────────────────────────────────── */
.av-kicker .elementor-heading-title {
  color: var(--gold-dark) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Intro lead panel ────────────────────────────────────────── */
.av-lead-panel .elementor-widget-container {
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--olive);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(38, 49, 58, 0.08);
}
.av-intro { background: linear-gradient(180deg, #ffffff, var(--ivory)); }

/* ── Service cards with "Mehr erfahren" button ───────────────── */
.av-card { background: transparent; }
.av-card > .elementor-widget-wrap,
.av-card > .elementor-column-wrap > .elementor-widget-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 32px rgba(38, 49, 58, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  padding: 0 !important;
}
.av-card:hover > .elementor-widget-wrap,
.av-card:hover > .elementor-column-wrap > .elementor-widget-wrap {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 22px 46px rgba(38, 49, 58, 0.16);
}
.av-card .elementor-widget-image { width: 100%; margin: 0 !important; }
.av-card .elementor-widget-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.av-card .elementor-widget-heading { padding: 24px 28px 0; margin: 0; }
.av-card .elementor-widget-heading .elementor-heading-title { font-size: 22px; color: var(--ink); }
.av-card .elementor-widget-heading .elementor-heading-title a { color: var(--ink); text-decoration: none; }
.av-card .elementor-widget-text-editor { padding: 12px 28px 0; color: var(--muted); }
.av-card .elementor-widget-button { padding: 20px 28px 28px; margin-top: auto; }
.av-card .elementor-widget-button .elementor-button {
  background: #fff !important;
  color: var(--gold-dark) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: none;
  min-height: 42px;
  padding: 0 18px;
}
.av-card .elementor-widget-button .elementor-button:hover {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
}

/* ── CTA contained card ──────────────────────────────────────── */
.av-cta { background: #fff !important; }
.av-cta-card > .elementor-widget-wrap,
.av-cta-card > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 42px;
  border: 1px solid rgba(191, 0, 0, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(191, 0, 0, 0.16) 0 18%, transparent 18% 44%, rgba(110, 139, 90, 0.18) 44% 58%, transparent 58%),
    linear-gradient(105deg, #26313a, #2e3c47 58%, #4e7040);
  box-shadow: var(--shadow);
}
.av-cta-inner > .elementor-container { align-items: center; }
.av-cta-card h2.elementor-heading-title,
.av-cta-card .elementor-widget-text-editor { color: #fff !important; }
.av-cta-kicker .elementor-heading-title { color: #e84040 !important; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; font-weight: 800; }
.av-cta-btncol { display: flex; justify-content: flex-end; align-items: center; }
@media (max-width: 767px) {
  .av-cta-btncol { justify-content: flex-start; }
}

/* ── Page hero (subpages) ────────────────────────────────────── */
.av-page-hero .elementor-background-overlay {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(38, 49, 58, 0.95), rgba(110, 139, 90, 0.72)) !important;
}
.av-page-hero h1.elementor-heading-title,
.av-page-hero .elementor-widget-text-editor,
.av-page-hero h6.elementor-heading-title { color: #fff !important; }
.av-page-hero h6.elementor-heading-title { letter-spacing: 0.12em; }
/* ── Content cards (subpage 2-col panels) ────────────────────── */
.av-content-card > .elementor-widget-wrap,
.av-content-card > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(38, 49, 58, 0.07);
}
.av-content-card.av-accent > .elementor-widget-wrap,
.av-content-card.av-accent > .elementor-column-wrap > .elementor-widget-wrap {
  border-left: 5px solid var(--gold);
  background: var(--ivory-deep, #eaebec);
}

/* ── Service detail page ─────────────────────────────────────── */
.av-detail-hero { background: var(--navy); }
.av-detail-hero .elementor-container { align-items: flex-end; }
.av-detail-hero .elementor-background-overlay {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(38, 49, 58, 0.92), rgba(38, 49, 58, 0.55) 55%, rgba(191, 0, 0, 0.32)) !important;
}
.av-detail-hero .elementor-widget-container { position: relative; z-index: 2; }
.av-detail-hero h1.elementor-heading-title,
.av-detail-hero .elementor-widget-text-editor { color: #fff !important; }
.av-detail-hero h1.elementor-heading-title { font-size: clamp(34px, 5vw, 62px); max-width: 860px; }
.av-detail-hero .elementor-widget-text-editor { max-width: 720px; color: rgba(255, 255, 255, 0.9) !important; }
.av-detail-hero h6.elementor-heading-title { color: var(--gold) !important; letter-spacing: 0.18em; }

/* detail cards (left column) */
.av-detail-cardwrap { margin-bottom: 22px; }
.av-detail-cardwrap:last-child { margin-bottom: 0; }
.av-detail-card > .elementor-widget-wrap,
.av-detail-card > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 26px rgba(38, 49, 58, 0.06);
}

/* sticky sidebar form */
/* Sticky sidebar: the column stretches to the (tall) left column, and the widget-wrap
   stays at content height (align-self/fit-content) so it has room to travel as you scroll. */
.av-detail-form { align-self: stretch; }
.av-detail-form > .elementor-widget-wrap,
.av-detail-form > .elementor-column-wrap > .elementor-widget-wrap {
  position: sticky; top: 110px; align-self: flex-start; height: -moz-fit-content; height: fit-content;
}

.request-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.request-form .form-head { margin-bottom: 20px; }
.request-form .form-head .section-kicker { color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.request-form .form-head h2 { font-size: 24px; color: var(--ink); margin: 0; }
.request-form .form-row { margin-top: 14px; }
.request-form .form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.request-form label, .request-form legend { color: var(--ink); font-size: 14px; font-weight: 800; display: block; }
.request-form input, .request-form textarea {
  width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #cfd4da; border-radius: var(--radius);
  color: var(--ink); background: #fbfbfc; font: inherit;
}
.request-form textarea { resize: vertical; }
.request-form input:focus, .request-form textarea:focus { border-color: var(--gold); outline: 3px solid rgba(191, 0, 0, 0.16); background: #fff; }
.request-form .checkbox-fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.request-form .checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.request-form .checkbox-grid label {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; min-height: 44px;
  padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory-deep, #eaebec); font-weight: 700; font-size: 13px;
}
.request-form .checkbox-grid input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.request-form .form-submit {
  width: 100%; margin-top: 22px; min-height: 48px; border: 0; border-radius: var(--radius);
  background: var(--gold); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer;
  transition: background 160ms ease;
}
.request-form .form-submit:hover { background: var(--gold-dark); }
.request-form .form-status { min-height: 22px; margin: 12px 0 0; color: var(--gold-dark); font-weight: 700; }
.request-form .form-status.error { color: #8c0000; }
.request-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }

@media (max-width: 900px) {
  .av-detail-form > .elementor-widget-wrap,
  .av-detail-form > .elementor-column-wrap > .elementor-widget-wrap { position: static; }
}

/* ================================================================
   PHASE 6 – demo polish: fonts (GDPR), trust overlap, spacing, dropdown
   ================================================================ */

/* Local system font everywhere – no external/Google fonts (GDPR) */
body,
input, textarea, select, button,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-button,
.elementor-icon-list-item,
.request-form,
.hero-slide-inner {
  font-family: 'Lato', Arial, Helvetica, sans-serif !important;
}
.site-main .elementor-widget-heading .elementor-heading-title { font-weight: 700; }

/* Trust strip: white rounded card, real shadow, borderless, deeper overlap */
.av-trust { margin-top: -64px !important; }
.av-trust > .elementor-container {
  background: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(38, 49, 58, 0.22) !important;
  gap: 0 !important;
}
.av-trust .elementor-column > .elementor-widget-wrap {
  background: #fff !important;
  padding: 30px 32px !important;
  height: 100%;
}
.av-trust .elementor-column:not(:first-child) > .elementor-widget-wrap {
  border-left: 1px solid var(--line);
}

/* Services: responsive CSS grid (3 -> 2 -> 1) */
.av-services > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.av-services .elementor-column.av-card { width: auto !important; padding: 0 !important; margin: 0 !important; }
.av-card > .elementor-widget-wrap,
.av-card > .elementor-column-wrap > .elementor-widget-wrap { width: 100%; margin: 0; }
@media (max-width: 1024px) {
  .av-services > .elementor-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .av-services > .elementor-container { grid-template-columns: 1fr; }
}
#leistungen .elementor-widget-heading .elementor-heading-title,
#leistungen .elementor-widget-text-editor { max-width: 820px; }

/* Subpage hero + content sizing to match the demo proportions */
.av-page-hero h1.elementor-heading-title { font-size: clamp(28px, 4vw, 44px) !important; }
.av-page-hero .elementor-widget-text-editor { max-width: 760px; }
.av-content-card .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(24px, 3vw, 32px) !important; }

/* ── Dropdown menu (Leistungen) ──────────────────────────────── */
.nav-links li.menu-item-has-children { position: relative; }
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(38, 49, 58, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 60;
}
.nav-links li.menu-item-has-children:hover > .sub-menu,
.nav-links li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu a {
  display: block;
  min-height: 0;
  padding: 9px 18px;
  margin: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}
.nav-links .sub-menu a:hover { background: rgba(191, 0, 0, 0.10); color: var(--gold-dark); }
.nav-links .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

@media (max-width: 1080px) {
  .nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    background: var(--ivory);
    display: none;
  }
  .nav-links .menu-item-has-children.is-submenu-open > .sub-menu { display: block; }
  .nav-links .sub-menu li { border-top: 1px solid var(--line); }
  .nav-links .sub-menu a { min-height: 46px; padding: 0 24px 0 40px; font-weight: 600; font-size: 14px; }
  .nav-links .menu-item-has-children > a { position: relative; }
  .nav-links .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 9px; height: 9px;
    margin: 0;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 180ms ease;
  }
  .nav-links .menu-item-has-children.is-submenu-open > a::after { transform: translateY(-30%) rotate(225deg); }
}

/* ================================================================
   PHASE 9 – hero arrows, responsive side gutters, sticky footer
   ================================================================ */

/* 1. Hero prev/next arrows must not overlap the hero text.
   They only have clearance once the boxed content is centred with a
   wide enough margin (~>1360px); below that, rely on dots + swipe. */
@media (max-width: 1360px) {
  .hero-slider-prev,
  .hero-slider-next { display: none; }
}

/* 2/3. Increase side spacing for ALL content as the layout narrows */
.container { box-sizing: border-box; }
@media (max-width: 1024px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 44px;
    padding-right: 44px;
  }
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 44px;
    padding-right: 44px;
  }
  .hero-slide-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 44px;
    padding-right: 44px;
  }
  /* header/footer inner keep the same gutter */
  .header-topbar-inner,
  .footer-grid { padding-left: 44px; padding-right: 44px; }
}
@media (max-width: 640px) {
  .container { padding-left: 22px; padding-right: 22px; }
  .elementor-section.elementor-section-boxed > .elementor-container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero-slide-inner { padding-left: 22px; padding-right: 22px; }
  .header-topbar-inner,
  .footer-grid { padding-left: 22px; padding-right: 22px; }
}

/* 4. Sticky footer – always pinned to the bottom of the viewport */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* ============ GitHub-sync additions (methods, funding platform, legal) ===== */
.form-privacy-note { font-size: 13px; line-height: 1.5; color: #8C949C; margin: 4px 0 14px; }
.form-privacy-note a { color: inherit; text-decoration: underline; }
.av-method { margin-top: 20px; align-items: center; }
.av-method .av-method-img img { border-radius: 10px; display: block; width: 100%; }
.av-method + .av-method { border-top: 1px solid #DDE0E3; padding-top: 20px; }
.av-process { margin: 0; padding-left: 1.25em; }
.av-process li { margin: 10px 0; line-height: 1.6; }
.av-legal h2 { margin-top: 34px; font-size: 22px; }
.av-legal h2:first-child { margin-top: 0; }
.av-legal ul { padding-left: 1.2em; margin: 10px 0; }
.av-legal li { margin: 6px 0; }
.av-btnrow .elementor-button { width: 100%; text-align: center; }

/* method card grid (grouped service sub-methods) + service-detail info panel */
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.method-card { overflow: hidden; border: 1px solid #DDE0E3; border-radius: 12px; background: #FFFFFF; }
.method-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.method-card-body { padding: 18px 20px 22px; }
.method-card h3 { font-size: 17px; margin: 0 0 8px; }
.method-card p { margin: 0; color: #8C949C; font-size: 14px; line-height: 1.6; }
.info-panel { border: 1px solid #DDE0E3; border-radius: 12px; background: #FFFFFF; padding: 24px; }
.info-panel h3 { margin: 0 0 10px; }
.info-panel p { margin: 0 0 4px; color: #5b636b; line-height: 1.6; }
.info-panel .button.primary { margin-top: 18px; display: inline-block; }
@media (max-width: 768px) { .method-grid { grid-template-columns: 1fr; } .info-panel { position: static; } }

/* ============ Polish pass: match static design =========================== */

/* Generic button links (hero actions, info panel) — primary keeps WHITE text */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius);
  font-family: Arial, Helvetica, sans-serif; font-weight: 800; text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}
.button.primary { color: #fff !important; background: var(--gold); box-shadow: 0 12px 28px rgba(140, 0, 0, 0.32); }
.button.primary:hover, .button.primary:focus-visible { background: var(--gold-dark); color: #fff !important; transform: translateY(-1px); }
.button.outline-light { color: #fff !important; border-color: rgba(255, 255, 255, 0.38); background: transparent; }
.button.outline-light:hover, .button.outline-light:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff !important; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Icon lists → small olive dots (static .check-list look) */
.elementor-widget-icon-list .elementor-icon-list-icon { display: none !important; }
.elementor-widget-icon-list .elementor-icon-list-item { position: relative; padding-left: 26px !important; }
.elementor-widget-icon-list .elementor-icon-list-item::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--olive); transform: translateY(-50%);
}

/* Accordion → static FAQ details look (gray panel cards, bold summary) */
.elementor-accordion .elementor-accordion-item {
  border: 1px solid var(--line) !important; border-radius: var(--radius);
  background: var(--ivory-deep, #eaebec); margin-bottom: 12px; overflow: hidden;
}
.elementor-accordion .elementor-tab-title { padding: 16px 18px; font-weight: 800; color: var(--navy); }
.elementor-accordion .elementor-tab-title a { color: inherit; }
/* Brand colours: active question + the +/− toggle icons in AVENTO red
   (overrides Elementor's default green/teal global colours). */
.elementor-accordion .elementor-tab-title.elementor-active,
.elementor-accordion .elementor-tab-title.elementor-active a { color: var(--gold) !important; }
.elementor-accordion .elementor-tab-title .elementor-accordion-icon,
.elementor-accordion .elementor-tab-title .elementor-accordion-icon i,
.elementor-accordion .elementor-tab-title .elementor-accordion-icon svg { color: var(--gold) !important; fill: var(--gold) !important; }
.elementor-accordion .elementor-tab-content { padding: 0 18px 18px; border-top: none !important; background: transparent; }

/* Info panel: olive accent like static */
.info-panel {
  padding: 30px; border: 1px solid var(--line); border-left: 5px solid var(--olive);
  border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px rgba(38, 49, 58, 0.08);
}
.info-panel h3 { font-size: 24px; margin: 0 0 12px; }

/* Method cards: gray panel background like static */
.method-card { background: var(--ivory-deep, #eaebec); }

/* Legal pages (Impressum/Datenschutz): narrow measure, compact headings */
.av-legal .elementor-widget-container { max-width: 860px; }
.av-legal h2 { font-size: 20px; margin: 40px 0 10px; }
.av-legal h2:first-child { margin-top: 0; }
.av-legal p, .av-legal li { color: var(--muted); line-height: 1.7; }
.av-legal a { color: var(--gold-dark); }

/* Tile / funding-card headings closer to static (23px) */
.av-card h3.elementor-heading-title { font-size: 22px; }

/* Detail card section headings: large like static detail-section h2 */
.av-detail-card h2.elementor-heading-title { font-size: clamp(24px, 3vw, 34px); }

/* Kontakt: gray-panel info card like static .contact-info */
.av-contact-info > .elementor-widget-wrap,
.av-contact-info > .elementor-column-wrap > .elementor-widget-wrap {
  padding: 34px; border-radius: var(--radius); background: var(--ivory-deep, #eaebec);
}
.av-contact-info h2.elementor-heading-title { font-size: clamp(28px, 4vw, 44px); }
.av-contact-info a { color: var(--gold-dark); text-decoration: none; }
.av-contact-info { align-self: start; }
.av-legal ul { list-style: none; padding-left: 0; }
.av-legal li { position: relative; padding-left: 26px; margin: 8px 0; }
.av-legal li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--olive); transform: translateY(-50%);
}
.av-contact-info > .elementor-widget-wrap,
.av-contact-info > .elementor-column-wrap > .elementor-widget-wrap { align-self: flex-start; height: auto; }

/* ============ Spacing polish (cards, grids, lists) ======================== */
/* Text-only cards (Für wen / Möglichkeiten tiles): proper bottom padding */
.av-card .elementor-widget-text-editor:last-child { padding-bottom: 28px; }
.av-card .elementor-widget-heading:last-child { padding-bottom: 28px; }

/* Card grids: 24px vertical rhythm between wrapped rows */
.av-services .elementor-column { margin-bottom: 24px; }
.av-services { padding-bottom: 56px !important; }

/* Icon lists: static 12px item spacing + roomier line-height */
.elementor-widget-icon-list .elementor-icon-list-items .elementor-icon-list-item:not(:first-child) { margin-top: 12px !important; }
.elementor-widget-icon-list .elementor-icon-list-text { line-height: 1.6; }

/* 2-col content/aside sections: wider gutter like static (~24px) */
.av-content-card > .elementor-widget-wrap,
.av-content-card > .elementor-column-wrap > .elementor-widget-wrap { margin-right: 12px; }
.av-content-card.av-accent > .elementor-widget-wrap,
.av-content-card.av-accent > .elementor-column-wrap > .elementor-widget-wrap { margin-left: 12px; margin-right: 0; }
@media (max-width: 767px) {
  .av-content-card > .elementor-widget-wrap,
  .av-content-card.av-accent > .elementor-widget-wrap { margin-left: 0; margin-right: 0; }
}

/* Center the service-detail "Interesse an dieser Leistung?" info panel */
.info-panel { text-align: center; }

/* ============ Contact Form 7 (inherits .request-form design) ============== */
.request-form .form-row p { margin: 0; }
.request-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.request-form input.wpcf7-form-control, .request-form textarea.wpcf7-form-control { width: 100%; }
.request-form textarea.wpcf7-form-control { min-height: 140px; }
.request-form .checkbox-fieldset p { margin: 0; }
.request-form .checkbox-fieldset .wpcf7-checkbox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.request-form .checkbox-fieldset .wpcf7-list-item { margin: 0; }
.request-form .checkbox-fieldset .wpcf7-list-item label {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; min-height: 44px; margin: 0;
  padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory-deep, #eaebec);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.request-form .checkbox-fieldset .wpcf7-list-item input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.request-form .checkbox-fieldset .wpcf7-list-item-label { font-weight: 700; }
.request-form .form-consent { margin-top: 18px; }
.request-form .form-consent p { margin: 0; }
.request-form .form-consent .wpcf7-list-item { margin: 0; display: block; }
.request-form .form-consent label { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--muted); }
.request-form .form-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.request-form .form-consent a { color: var(--gold-dark); }
.request-form .form-submit { width: 100%; margin-top: 22px; }
.request-form .wpcf7-spinner { margin-left: 12px; }
.request-form .wpcf7-not-valid-tip { color: #8c0000; font-size: 12px; font-weight: 700; margin-top: 6px; display: block; }
.request-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px; border-radius: var(--radius); font-weight: 700; }
.wpcf7 form.sent .wpcf7-response-output { border: 1px solid var(--olive); color: #3f5233; background: #eef3ea; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border: 1px solid #8c0000; color: #8c0000; background: #fdecec; }
@media (max-width: 600px) { .request-form .checkbox-fieldset .wpcf7-checkbox { grid-template-columns: 1fr; } }
/* CF7 wraps the two-col row's labels in a single <p> — grid the <p> instead */
.request-form .form-row.two-col > p { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.request-form .form-row.two-col { display: block; }

/* ============ AI-generated label — responsive theme overlay ================
   Positioned relative to each visible image container so it stays in the corner
   at every screen size (baked-in labels get cropped by background-size:cover). */
/* NB: .hero-slide is already position:absolute (slider) — do NOT set it relative here
   or the slides stop filling the slider. Absolute is a valid containing block for ::after. */
.av-detail-hero, .av-page-hero,
.av-card .elementor-widget-image, .method-card-media { position: relative; }
.method-card-media { line-height: 0; overflow: hidden; }

.av-detail-hero::after, .av-page-hero::after, .hero-slide::after,
.av-card .elementor-widget-image::after, .method-card-media::after {
  content: "";
  position: absolute;
  right: 3.5%; bottom: 5%;
  width: clamp(84px, 22%, 190px);
  aspect-ratio: 3.157 / 1;              /* label PNG is 7459x2363 */
  background: url(../img/ai-generated.png) center / contain no-repeat;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.45));
}
/* Heroes are large: keep the badge in a comfortable corner and above the dark overlay */
.av-detail-hero::after, .av-page-hero::after { right: 2.5%; bottom: 7%; z-index: 3; }
.hero-slide::after { right: 3%; bottom: 8%; }
/* Card images are short — nudge the badge fully onto the image */
.av-card .elementor-widget-image::after { bottom: 8%; }
.method-card-media::after { bottom: 8%; right: 4%; width: clamp(72px, 30%, 150px); }
