/* ============================================================
   AC DESIGN SYSTEM — ac-design-system.css
   Avencrest Capital unified design tokens and components.
   Loaded globally via _AvencrestHead.cshtml.
   Scoped with .ac-page to avoid breaking existing Elementor
   and #ac-home pages.
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
  /* Brand colors */
  --ac-navy:    #050027;
  --ac-orange:  #e45327;
  --ac-action:  #c54019;
  --ac-action-hover: #a83212;

  /* Neutral palette */
  --ac-ink:     #172238;
  --ac-muted:   #526075;
  --ac-subtle:  #7b8ba0;
  --ac-border:  #dce2ed;
  --ac-surface: #f5f7fb;
  --ac-bg:      #ffffff;

  /* Semantic */
  --ac-focus:   #f79c54;
  --ac-success: #16a34a;
  --ac-danger:  #dc2626;

  /* Typography */
  --ac-font:    'Montserrat', system-ui, -apple-system, sans-serif;
  --ac-mono:    'SF Mono', 'Fira Code', monospace;

  /* Spacing scale */
  --ac-space-xs: 4px;
  --ac-space-sm: 8px;
  --ac-space-md: 16px;
  --ac-space-lg: 24px;
  --ac-space-xl: 40px;
  --ac-space-2xl: 64px;
  --ac-space-3xl: 84px;

  /* Layout */
  --ac-content-width: 1200px;
  --ac-narrow-width: 900px;
  --ac-wide-width: 1400px;

  /* Radii */
  --ac-radius-sm: 4px;
  --ac-radius-md: 8px;
  --ac-radius-lg: 12px;
  --ac-radius-xl: 16px;
  --ac-radius-pill: 50px;

  /* Shadows */
  --ac-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ac-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --ac-shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}


/* ── 2. Base Styles (scoped to .ac-page) ── */
.ac-page {
  font-family: var(--ac-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ac-ink);
  background: var(--ac-bg);
}

.ac-page *, .ac-page *::before, .ac-page *::after {
  box-sizing: border-box;
}

.ac-page :is(a, button, select, summary, input, textarea):focus-visible {
  outline: 3px solid var(--ac-focus);
  outline-offset: 3px;
  border-radius: var(--ac-radius-sm);
}

.ac-page :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ac-font);
  color: var(--ac-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}

.ac-page h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 20px; }
.ac-page h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); margin-bottom: 18px; }
.ac-page h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: 14px; }
.ac-page h4 { font-size: 1.125rem; margin-bottom: 12px; }

.ac-page p {
  margin-top: 0;
  margin-bottom: 1em;
  color: var(--ac-muted);
  line-height: 1.7;
}

.ac-page img { max-width: 100%; height: auto; }
.ac-page a:not(.ac-btn) { color: var(--ac-action); }
.ac-page a:not(.ac-btn):hover { color: var(--ac-action-hover); }


/* ── 3. Hero Banner ── */
.ac-page-hero {
  position: relative;
  background: var(--ac-navy);
  color: #fff;
  padding: 72px 28px 64px;
  overflow: hidden;
}

.ac-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/Geschaeftsanbahnung-1.png') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.ac-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ac-content-width);
  margin: 0 auto;
}

.ac-page-hero .ac-eyebrow {
  color: #ffb68a;
}

.ac-page-hero h1 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: 16px;
}

.ac-page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.125rem;
  max-width: 65ch;
  margin-bottom: 20px;
}

.ac-page-hero .ac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}


/* ── 4. Content Sections ── */
.ac-page-section {
  padding: 72px 28px;
  background: var(--ac-bg);
}

.ac-page-section--alt {
  background: var(--ac-surface);
}

.ac-page-section--dark {
  background: var(--ac-navy);
  color: #fff;
}

.ac-page-section--dark h2,
.ac-page-section--dark h3 {
  color: #fff;
}

.ac-page-section--dark p {
  color: rgba(255,255,255,0.75);
}

.ac-page-section__inner {
  max-width: var(--ac-content-width);
  margin: 0 auto;
}

.ac-page-section__inner--narrow {
  max-width: var(--ac-narrow-width);
}

.ac-page-section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--ac-space-xl);
}


/* ── 5. Eyebrow ── */
.ac-eyebrow {
  display: block;
  font-family: var(--ac-font);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-action);
  margin-bottom: 12px;
}


/* ── 6. Buttons ── */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--ac-font);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: var(--ac-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ac-btn--primary,
.ac-page a.ac-btn--primary {
  color: #fff !important;
  background: var(--ac-orange, #e45327);
  border-color: var(--ac-orange, #e45327);
}
.ac-btn--primary:hover,
.ac-page a.ac-btn--primary:hover {
  color: #fff !important;
  background: var(--ac-navy, #050027) !important;
  border-color: var(--ac-navy, #050027) !important;
}

.ac-btn--secondary,
.ac-page a.ac-btn--secondary {
  color: var(--ac-navy) !important;
  background: var(--ac-bg);
  border-color: var(--ac-border);
}
.ac-btn--secondary:hover,
.ac-page a.ac-btn--secondary:hover {
  color: var(--ac-navy) !important;
  background: var(--ac-surface);
  border-color: #bdc7d8;
}

.ac-btn--ghost,
.ac-page a.ac-btn--ghost {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.ac-btn--ghost:hover,
.ac-page a.ac-btn--ghost:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.5);
}

.ac-btn--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: auto;
  color: var(--ac-action);
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}
.ac-btn--link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ── 7. Cards ── */
.ac-card {
  background: var(--ac-bg);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--ac-shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ac-card:hover {
  border-color: var(--ac-navy);
  box-shadow: var(--ac-shadow-md);
  transform: translateY(-2px);
}

.ac-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f58220;
  color: #fff;
  margin-bottom: 20px;
  font-size: 28px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ac-card:hover .ac-card__icon {
  background: var(--ac-navy);
  color: #fff;
}

.ac-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ac-navy);
  margin-bottom: 10px;
}

.ac-card__body {
  color: var(--ac-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ac-card__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ac-border);
}


/* ── 8. Grids ── */
.ac-grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

.ac-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ac-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ac-grid--4 { grid-template-columns: repeat(4, 1fr); }


/* ── 9. Split Layout ── */
.ac-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.ac-split__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ac-radius-lg);
  object-fit: cover;
}

.ac-split__content h2 { margin-top: 0; }
.ac-split__content p:last-child { margin-bottom: 0; }


/* ── 10. Lists ── */
.ac-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.ac-check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ac-ink);
}

.ac-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ac-action);
  font-weight: 700;
  font-size: 1.125rem;
}


/* ── 11. Badges ── */
.ac-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ac-navy);
  white-space: nowrap;
}


/* ── 12. Data Table ── */
.ac-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ac-bg);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  overflow: hidden;
}

.ac-table th,
.ac-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--ac-border);
}

.ac-table th {
  font-weight: 700;
  color: var(--ac-navy);
  background: var(--ac-surface);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ac-table td { color: var(--ac-ink); }
.ac-table tr:last-child td { border-bottom: none; }


/* ── 13. Info Box / Callout ── */
.ac-info-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--ac-surface);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ac-muted);
}

.ac-info-box--warning {
  background: #fef3cd;
  border-color: #f7d774;
  color: #664d03;
}

.ac-info-box__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--ac-subtle);
  margin-top: 2px;
}


/* ── 14. Stats / Metric Cards ── */
.ac-stat {
  padding: 24px;
  background: var(--ac-bg);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-lg);
}

.ac-stat__number {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ac-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ac-stat__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ac-subtle);
  margin-top: 8px;
}


/* ── 15. Process Steps ── */
.ac-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
}

.ac-step + .ac-step {
  border-top: 1px solid var(--ac-border);
}

.ac-step__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ac-radius-md);
  background: var(--ac-action);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.ac-step__title {
  font-weight: 700;
  color: var(--ac-navy);
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.ac-step__desc {
  color: var(--ac-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}


/* ── 16. Form Elements ── */
.ac-form-group {
  margin-bottom: 20px;
}

.ac-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ac-navy);
  margin-bottom: 6px;
}

.ac-input,
.ac-select,
.ac-textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ac-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ac-ink);
  background: var(--ac-bg);
  border: 2px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ac-input:focus,
.ac-select:focus,
.ac-textarea:focus {
  border-color: var(--ac-action);
  box-shadow: 0 0 0 3px rgba(197, 64, 25, 0.12);
  outline: none;
}

.ac-textarea { min-height: 120px; resize: vertical; }

.ac-input::placeholder,
.ac-textarea::placeholder {
  color: var(--ac-subtle);
}

.ac-help-text {
  font-size: 0.8125rem;
  color: var(--ac-subtle);
  margin-top: 4px;
}

.ac-error-text {
  font-size: 0.8125rem;
  color: var(--ac-danger);
  margin-top: 4px;
}


/* ── 17. FAQ / Accordion ── */
.ac-faq {
  margin-bottom: 10px;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  background: var(--ac-bg);
  overflow: hidden;
}

.ac-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--ac-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ac-navy);
  line-height: 1.45;
  list-style: none;
}

.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::marker { content: ''; }

.ac-faq__body {
  padding: 0 22px 20px;
  color: var(--ac-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ac-faq__body p { margin-bottom: 8px; }
.ac-faq__body p:last-child { margin-bottom: 0; }

/* Plus/minus indicator */
.ac-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.ac-faq__icon::before,
.ac-faq__icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  background: var(--ac-action);
  transition: transform 0.15s ease;
}
.ac-faq__icon::after { transform: rotate(90deg); }
.ac-faq[open] .ac-faq__icon::after { transform: none; }


/* ── 18. Responsive ── */
@media (max-width: 1024px) {
  .ac-page-hero { padding: 56px 24px 48px; }
  .ac-page-section { padding: 56px 24px; }
  .ac-split { gap: 36px; }
  .ac-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ac-page { font-size: 1rem; }
  .ac-page-hero { padding: 44px 20px 40px; }
  .ac-page-section { padding: 44px 20px; }
  .ac-split { grid-template-columns: 1fr; gap: 28px; }
  .ac-grid--2,
  .ac-grid--3,
  .ac-grid--4 { grid-template-columns: 1fr; }
  .ac-card { padding: 24px 20px; }
}

@media (max-width: 420px) {
  .ac-page-section { padding-left: 16px; padding-right: 16px; }
  .ac-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-page *, .ac-page *::before, .ac-page *::after {
    transition: none !important;
    animation: none !important;
  }
  .ac-card:hover { transform: none; }
}
