/* ================================================================
   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;
}
