/* ========================================
   AZ-Finanzen Design System
   Global CSS – loaded via mu-plugin
   Scope: .az-content
   ======================================== */

/* --- CSS Variables --- */
.az-content {
  --az-primary: #15779B;
  --az-primary-dark: #0D5F7F;
  --az-dark: #0D2137;
  --az-text: #333333;
  --az-text-light: #4A5568;
  --az-accent: #D4A44C;
  --az-accent-hover: #C09438;
  --az-white: #FFFFFF;
  --az-light: #F7F3ED;
  --az-beige: #E3DAC9;
  --az-border: #E3DAC9;
  --az-success: #2ECC71;
  --az-max: 1140px;
  --az-radius: 12px;
  --az-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --az-shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --az-transition: 0.3s ease;
}

/* --- Reset & Base --- */
.az-content * { box-sizing: border-box; }
.az-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--az-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.az-content img { max-width: 100%; height: auto; display: block; }
.az-content a { color: var(--az-primary); text-decoration: none; transition: color var(--az-transition); }
.az-content a:hover { color: var(--az-primary-dark); }

/* --- Typography --- */
.az-content h1, .az-content h2, .az-content h3, .az-content h4 {
  color: var(--az-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
.az-content h1 { font-size: clamp(2rem, 5vw, 3rem); }
.az-content h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.az-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.az-content p { margin: 0 0 1.2em; }

/* --- Layout --- */
.az-section { padding: 80px 24px; }
.az-section--light { background: var(--az-light); }
.az-section--dark { background: var(--az-dark); color: var(--az-white); }
.az-section--dark h2, .az-section--dark h3 { color: var(--az-white); }
.az-section--dark p { color: rgba(255,255,255,0.92); }
.az-section--accent { background: var(--az-primary); color: var(--az-white); }
.az-section--accent h2, .az-section--accent h3 { color: var(--az-white); }
.az-section--accent p { color: rgba(255,255,255,0.95); }
.az-section--accent .az-card { color: var(--az-text); }
.az-section--accent .az-card h3 { color: var(--az-dark); }
.az-section--accent .az-card p { color: var(--az-text-light); }
.az-container { max-width: var(--az-max); margin: 0 auto; }
.az-text-center { text-align: center; }

/* --- Section Header --- */
.az-section-header { text-align: center; margin-bottom: 48px; }
.az-section-header .az-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #A0916F;
  margin-bottom: 12px;
}
.az-section--dark .az-section-header .az-label,
.az-section--accent .az-section-header .az-label { color: #F5D78E; }
.az-section-header p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--az-text-light);
  font-size: 18px;
}
.az-section--dark .az-section-header p { color: rgba(255,255,255,0.9); }
.az-section--accent .az-section-header p { color: rgba(255,255,255,0.95); }

/* --- Buttons --- */
.az-content .az-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--az-transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.az-content .az-btn--primary {
  background: var(--az-accent);
  color: var(--az-white);
  border-color: var(--az-accent);
}
.az-content .az-btn--primary:hover {
  background: var(--az-accent-hover);
  border-color: var(--az-accent-hover);
  color: var(--az-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,164,76,0.35);
}
.az-content .az-btn--outline {
  background: transparent;
  color: var(--az-white);
  border-color: var(--az-white);
}
.az-content .az-btn--outline:hover {
  background: var(--az-white);
  color: var(--az-dark);
}
/* Outline-Buttons auf hellem Hintergrund */
.az-section:not(.az-section--dark):not(.az-section--accent) .az-btn--outline,
.az-section--light .az-btn--outline {
  color: var(--az-primary);
  border-color: var(--az-primary);
}
.az-section:not(.az-section--dark):not(.az-section--accent) .az-btn--outline:hover,
.az-section--light .az-btn--outline:hover {
  background: var(--az-primary);
  color: var(--az-white);
}
.az-content .az-btn--dark {
  background: var(--az-dark);
  color: var(--az-white);
  border-color: var(--az-dark);
}
.az-content .az-btn--dark:hover {
  background: var(--az-primary-dark);
  border-color: var(--az-primary-dark);
  color: var(--az-white);
  transform: translateY(-2px);
}

/* --- Hero Section (base) --- */
.az-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}
.az-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 60px 80px 80px;
  text-align: right;
}
.az-hero .az-label { color: var(--az-accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; display: inline-block; }
.az-hero h1 { color: var(--az-white); margin-bottom: 20px; font-size: clamp(2rem, 4vw, 2.8rem); }
.az-hero p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 32px; line-height: 1.7; }
.az-hero .az-quote {
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}
.az-hero .az-quote-author {
  font-size: 14px;
  color: var(--az-accent);
  margin-bottom: 32px;
}

/* Hero: Split-layout with image (homepage) */
.az-hero:has(.az-hero__image) {
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #0D2137 0%, #15779B 100%);
}
.az-hero__image {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  align-self: stretch;
}
.az-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.az-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0D2137 0%, transparent 30%);
  pointer-events: none;
}

/* Hero: Full-width with background overlay (subpages) */
.az-hero:not(:has(.az-hero__image)) {
  grid-template-columns: 1fr;
  background-color: #0D2137;
  background-size: cover;
  background-position: center;
}
.az-hero:not(:has(.az-hero__image))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,33,55,0.88) 0%, rgba(21,119,155,0.78) 100%);
  z-index: 1;
}
.az-hero:not(:has(.az-hero__image)) .az-hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* --- Trust Bar --- */
.az-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--az-white);
  box-shadow: var(--az-shadow);
  border-radius: var(--az-radius);
  overflow: hidden;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
.az-trust-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--az-border);
  border-bottom: 3px solid var(--az-beige);
}
.az-trust-item:last-child { border-right: none; }
.az-trust-item__number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--az-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.az-trust-item__label {
  font-size: 14px;
  color: var(--az-text-light);
  font-weight: 500;
}

/* --- Cards --- */
.az-cards { display: grid; gap: 24px; }
.az-cards--3 { grid-template-columns: repeat(3, 1fr); }
.az-cards--4 { grid-template-columns: repeat(4, 1fr); }
.az-cards--2 { grid-template-columns: repeat(2, 1fr); }
.az-card {
  background: var(--az-white);
  border-radius: var(--az-radius);
  padding: 36px 28px;
  box-shadow: var(--az-shadow);
  transition: all var(--az-transition);
  border: 1px solid var(--az-border);
  border-top: 3px solid var(--az-primary);
}
.az-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--az-shadow-hover);
}
.az-card__icon { display: none; }
.az-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.az-card p { color: var(--az-text-light); font-size: 15px; margin-bottom: 16px; }
.az-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--az-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.az-card__link:hover { color: var(--az-accent); }

/* --- Feature List --- */
.az-features { list-style: none; padding: 0; margin: 0; }
.az-features li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 16px;
}
.az-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--az-success);
  font-weight: 700;
  font-size: 18px;
}

/* --- Process Steps --- */
.az-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; }
.az-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}
.az-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--az-primary);
  color: var(--az-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.az-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.az-step p { font-size: 14px; color: var(--az-text-light); }

/* --- Team Cards --- */
.az-team-card {
  background: var(--az-white);
  border-radius: var(--az-radius);
  overflow: hidden;
  box-shadow: var(--az-shadow);
  transition: all var(--az-transition);
  border: 1px solid var(--az-border);
}
.az-team-card:hover { transform: translateY(-4px); box-shadow: var(--az-shadow-hover); }
.az-content .az-team-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--az-light);
  border-radius: var(--az-radius);
}
.az-team-card__body { padding: 24px; text-align: center; }
.az-team-card__body h3 { margin-bottom: 4px; font-size: 1.2rem; }
.az-team-card__body .az-role {
  color: var(--az-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.az-team-card__body p { font-size: 14px; color: var(--az-text-light); }

/* --- Contact Links (Team) --- */
.az-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.az-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--az-primary);
  color: var(--az-white) !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--az-primary);
  transition: all var(--az-transition);
  text-decoration: none !important;
}
.az-contact-link:hover {
  background: var(--az-primary-dark);
  color: var(--az-white) !important;
  border-color: var(--az-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,119,155,0.3);
}

/* --- CTA Section --- */
.az-cta { text-align: center; padding: 60px 24px; }
.az-cta h2 { margin-bottom: 16px; }
.az-cta p { margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.az-cta .az-btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- FAQ Accordion --- */
.az-faq-item { border-bottom: 1px solid var(--az-border); }
.az-faq-item summary {
  padding: 20px 40px 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--az-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.az-faq-item summary::-webkit-details-marker { display: none; }
.az-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--az-primary);
  transition: transform var(--az-transition);
}
.az-faq-item[open] summary::after { content: '\2212'; }
.az-faq-item .az-faq-answer { padding: 0 0 20px; color: var(--az-text-light); line-height: 1.8; }

/* --- Split Layout --- */
.az-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.az-split--reverse { direction: rtl; }
.az-split--reverse > * { direction: ltr; }

/* --- Responsive: Tablet (portrait) --- */
@media (max-width: 1024px) {
  .az-hero:has(.az-hero__image) { grid-template-columns: 1fr; }
  .az-hero__content { padding: 60px 40px 40px !important; text-align: center !important; }
  .az-hero__content div[style] { justify-content: center !important; }
  .az-hero__image { min-height: 340px; max-height: 400px; }
  .az-hero__image::after { background: linear-gradient(to bottom, #0D2137 0%, transparent 40%); }
  .az-split { gap: 40px; }
  .az-cards--4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .az-section { padding: 48px 16px; }
  .az-hero { grid-template-columns: 1fr !important; min-height: auto; }
  .az-hero__content { padding: 60px 24px 40px !important; text-align: center !important; }
  .az-hero__content div[style] { justify-content: center !important; }
  .az-hero__image { min-height: 300px; max-height: 360px; }
  .az-hero__image::after { background: linear-gradient(to bottom, #0D2137 0%, transparent 40%); }
  .az-trust-bar { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .az-trust-item { padding: 20px 16px; }
  .az-trust-item:nth-child(2) { border-right: none; }
  .az-cards--3, .az-cards--4 { grid-template-columns: 1fr; }
  .az-cards--2 { grid-template-columns: 1fr; }
  .az-split { grid-template-columns: 1fr; gap: 32px; }
  .az-split--reverse { direction: ltr; }
  .az-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .az-trust-bar { grid-template-columns: 1fr 1fr; }
  .az-steps { grid-template-columns: 1fr; }
  .az-hero { min-height: 420px; }
}
