/* ================================================================
   shared/style-base.css
   Gemeinsame Basis-Utilities für humect.de und staffect-personal.de
   Brand-spezifische Tokens werden in den jeweiligen src/style.css
   Dateien über CSS-Custom-Properties überschrieben.
   ================================================================ */

/* ── Fade-up animation ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Grid pattern overlay ──────────────────────────────────── */
.grid-pattern {
  background-image:
    linear-gradient(to right,  rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 70%);
}

/* ── Form components ───────────────────────────────────────── */
.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-bg);
  color: var(--brand-text);
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.form-input::placeholder { color: var(--brand-text-muted); }
.form-input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 15%, transparent);
}
textarea.form-input { min-height: 120px; resize: vertical; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--brand-text);
}
.form-hint {
  font-weight: 400;
  margin-left: 0.25rem;
  color: var(--brand-text-muted);
}

.form-file-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--brand-border);
  background-color: var(--brand-bg);
  color: var(--brand-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 44px;
}
.form-file-label:hover   { border-color: var(--brand-accent); }
.form-file-label.has-file { color: var(--brand-text); border-color: var(--brand-accent); }

.form-success {
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-surface));
  border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, transparent);
}
.form-error-box {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid color-mix(in srgb, #ef4444 25%, transparent);
  background: color-mix(in srgb, #ef4444 8%, var(--brand-surface));
  color: #b91c1c;
}
@media (prefers-color-scheme: dark) {
  .form-error-box { color: #fca5a5; }
}

/* ── Button base ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background-color: var(--brand-accent);
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--brand-accent) 45%, transparent);
}
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-primary.w-full   { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  border: 1.5px solid var(--brand-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
  min-height: 44px;
}
.btn-outline:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-1px);
}

/* ── Contact info items ────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--brand-text-muted);
}
.contact-info-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
  color: var(--brand-accent);
}

/* ── Social links ──────────────────────────────────────────── */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--brand-border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
}
.social-link:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ── Tag chips ─────────────────────────────────────────────── */
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, transparent);
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--brand-bg));
  color: var(--brand-accent);
}

/* ── Shadow utility ────────────────────────────────────────── */
.shadow-soft {
  box-shadow: 0 2px 6px -2px rgba(0,0,0,.05), 0 4px 12px -4px rgba(0,0,0,.06);
}

/* ── Section divider ───────────────────────────────────────── */
.section-divider {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-divider hr {
  border: none;
  border-top: 1px solid var(--brand-border);
}

/* ── Touch targets (WCAG 2.5.5) ───────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .social-link, nav a, footer nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .btn-primary, .btn-outline { min-height: 52px; }
  .form-input  { min-height: 48px; }
}

/* ── Impressum Dokument-Link ──────────────────────────────── */
.impressum-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0.5px solid var(--brand-border);
  background: var(--brand-bg);
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.impressum-doc-link:hover {
  border-color: var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 6%, var(--brand-bg));
}

/* ── GVP Stat-Kachel Link-Wrapper ────────────────────────── */
.stat-tile-gvp-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
}
.stat-tile-gvp-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--hs-teal);
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: opacity 0.15s;
}
.stat-tile-gvp-link:hover .stat-tile-gvp-hint {
  opacity: 1;
}

/* ── CTA Strip Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .cta-strip-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta-card {
    padding: 20px 18px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .cta-card [data-lucide] { flex-shrink: 0; width: 20px; height: 20px; }
  .cta-card-title { margin-top: 0; font-size: 14px; }
  .cta-card-sub { font-size: 12px; }
}

/* ── Form Input iOS Safari ────────────────────────────────── */
@media (max-width: 640px) {
  .form-input { font-size: 16px; }
}

/* ── Inline SVG Icons (Netzwerke ohne Lucide-Support) ─────── */
.icon-linkedin,
.icon-xing,
.icon-instagram {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Cookie-Consent-Banner ──────────────────────────── */
.hs-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 16px;
  background: var(--brand-surface, #fff);
  border-top: 1px solid var(--brand-border, rgba(0,0,0,.12));
  box-shadow: 0 -4px 24px -8px rgba(0,0,0,.18);
}
.hs-consent-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hs-consent-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-text, #1a2332);
}
.hs-consent-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-text-muted, #4a5c52);
  margin: 0;
}
.hs-consent-text a {
  color: var(--brand-accent, #b8956a);
  text-decoration: underline;
}
.hs-consent-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: color-mix(in srgb,
    var(--brand-text, #1a2332) 4%, transparent);
}
.hs-consent-cat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--brand-text-muted, #4a5c52);
}
.hs-consent-cat input { margin-top: 2px; flex-shrink: 0; }
.hs-consent-cat strong { color: var(--brand-text, #1a2332); }
.hs-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.hs-consent-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px;
  transition: all .15s;
}
.hs-consent-btn-primary {
  background: var(--brand-primary, #1b3a2f);
  color: #fff;
}
.hs-consent-btn-primary:hover { filter: brightness(1.1); }
.hs-consent-btn-outline {
  background: transparent;
  border-color: var(--brand-border, rgba(0,0,0,.2));
  color: var(--brand-text, #1a2332);
}
.hs-consent-btn-outline:hover {
  border-color: var(--brand-primary, #1b3a2f);
}
.hs-consent-btn-ghost {
  background: transparent;
  color: var(--brand-text-muted, #4a5c52);
}
.hs-consent-btn-ghost:hover {
  color: var(--brand-primary, #1b3a2f);
}
@media (min-width: 768px) {
  .hs-consent-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hs-consent-head { flex: 0 0 100%; }
  .hs-consent-text { flex: 1 1 340px; }
  .hs-consent-cats { flex: 0 0 100%; order: 3; }
  .hs-consent-actions { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .hs-consent-btn { flex: 1 1 calc(50% - 4px); }
}

/* ── Section Vertical Rhythm — gezielte Hauptsektionen ──── */
#dienste, #branchen, #unternehmen, #bewerber {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  #dienste, #branchen, #unternehmen, #bewerber {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ── Global Typography Scale Refinement ─────────────────── */
body {
  font-size: 17px;
  line-height: 1.75;
}

/* ── FAQ Accordion (details/summary) ──────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2.5rem;
}
.faq-item {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background: var(--brand-bg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--brand-accent) 35%, transparent); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  list-style-type: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-text);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; font-size: 0; }
.faq-item summary:hover { color: var(--brand-accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--brand-text-muted);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--brand-text-muted);
}
.faq-answer p { margin: 0; }

/* ── FAQ CTA-Block (Startseite) ───────────────────────────── */
.faq-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
@media (min-width: 768px) {
  .faq-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Google-Bewertungen / Aggregat-Badge ──────────────────── */
/* Aggregat-Badge: G · 4,9 · ★★★★★ · XX Google-Bewertungen → Profil-Link */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.reviews-badge:hover {
  border-color: var(--brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.reviews-badge-score { font-weight: 700; color: var(--brand-text); font-size: 15px; }
.reviews-badge-count { font-size: 13px; color: var(--brand-text-muted); }
/* „100 % Weiterempfehlung"-Pille (kununu) */
.reviews-badge-rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #00a570;
}
.reviews-badge-rec svg { width: 14px; height: 14px; }
.reviews-badge-sep   { color: var(--brand-text-muted); opacity: .5; }
.reviews-badge-arrow { color: var(--brand-text-muted); transition: transform 0.2s, color 0.2s; }
.reviews-badge:hover .reviews-badge-arrow { color: var(--brand-accent); transform: translate(2px,-2px); }
.reviews-badge .reviews-stars { gap: 1px; }

/* Container: mehrere Badges (Google, kununu) nebeneinander, zentriert */
.reviews-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Große, zentrierte Variante als eigenständige Trust-Sektion.
   Aufbau: [Logo] [Textspalte]  — Textspalte zweizeilig. */
.reviews-badge-lg {
  gap: 14px;
  padding: 16px 22px;
  border-radius: 18px;
  text-align: left;
}
.reviews-badge-body { display: flex; flex-direction: column; gap: 3px; }
.reviews-badge-line1 { display: inline-flex; align-items: center; gap: 8px; }
.reviews-badge-line2 { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviews-badge-lg .reviews-badge-score { font-size: 20px; }
.reviews-badge-lg .stars-frac { font-size: 18px; }
.reviews-badge-lg .reviews-badge-count { font-size: 13px; }

/* „Jetzt bewerten"-CTA unter den Badges */
.reviews-cta {
  margin-top: 22px;
  font-size: 14px;
  color: var(--brand-text-muted);
}
.reviews-cta a {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-accent) 35%, transparent);
  transition: border-color 0.2s;
}
.reviews-cta a:hover { border-color: var(--brand-accent); }

/* kununu-Monogramm (Markenfarbe Grün) — schlichtes „k" statt Logo-Datei */
/* offizielles kununu-„k" (weiß) auf grünem Quadrat */
.reviews-badge-kununu {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: #00a570;
}
.reviews-badge-kununu img { width: 15px; height: 15px; display: block; }

/* Sterne-Reihe (volle Sterne, z. B. im Avatar-Kontext) */
.reviews-stars { display: inline-flex; align-items: center; gap: 2px; }
.reviews-stars svg { width: 16px; height: 16px; color: var(--brand-accent); }
/* Lucide rendert Sterne als Outline (stroke, fill:none) — gefüllt erzwingen */
.reviews-stars svg, .reviews-stars svg * {
  fill: var(--brand-accent) !important;
  stroke: var(--brand-accent) !important;
}

/* Anteilige Sterne (z. B. 4,6 von 5) via --rating (0–5), rein CSS.
   Untergrund = blasse Sterne, Vordergrund per width-% in Akzentfarbe. */
.stars-frac {
  --rating: 5;
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 1px;
  font-family: Arial, sans-serif; /* einheitliche Stern-Glyphe */
  white-space: nowrap;
}
.stars-frac::before {
  content: "★★★★★";
  color: color-mix(in srgb, var(--brand-accent) 24%, transparent);
}
.stars-frac::after {
  content: "★★★★★";
  color: var(--brand-accent);
  position: absolute;
  inset: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
}

/* ── Bewerten-Landingpage (nicht indexiert) ───────────────── */
.rate-hero-stars {
  display: inline-flex;
  gap: 6px;
  color: var(--brand-accent);
  margin-bottom: 8px;
}
.rate-hero-stars svg { width: 30px; height: 30px; fill: var(--brand-accent); stroke: var(--brand-accent); }

/* großer Plattform-Button (Google / kununu) */
.rate-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rate-btn:hover {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -22px color-mix(in srgb, var(--brand-primary) 40%, transparent);
}
.rate-btn-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.rate-btn-icon-google { background: #fff; border: 1px solid var(--brand-border); }
.rate-btn-icon-kununu { background: #00a570; }
.rate-btn-icon-kununu img { width: 30px; height: 30px; display: block; }
.rate-btn-body { flex: 1; min-width: 0; }
.rate-btn-title { font-weight: 700; font-size: 17px; color: var(--brand-text); display: flex; align-items: center; gap: 8px; }
.rate-btn-sub   { font-size: 13px; color: var(--brand-text-muted); margin-top: 2px; }
.rate-btn-arrow { flex-shrink: 0; color: var(--brand-text-muted); transition: transform 0.2s, color 0.2s; }
.rate-btn:hover .rate-btn-arrow { color: var(--brand-accent); transform: translate(3px,-3px); }

/* kleine Empfehlungs-/Sterne-Zeile im Button */
.rate-btn-rec {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #00a570; margin-left: 8px;
}
.rate-btn-rec svg { width: 13px; height: 13px; }

/* Schritt-für-Schritt Mini-Hinweis */
.rate-steps {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; color: var(--brand-text-muted);
}
.rate-step { display: flex; align-items: flex-start; gap: 10px; }
.rate-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-accent) 16%, transparent);
}

/* ── Sticky-Footer-Layout (für kurze Seiten wie bewerten-*) ─── */
/* Body füllt min. die Viewporthöhe; main wächst, Footer bleibt unten. */
body.page-sticky-footer { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.page-sticky-footer > main { flex: 1 0 auto; }
body.page-sticky-footer > footer { flex-shrink: 0; }
