/* ============ HUNTWORKER – Shared Styles (Petrol / Weiß / Kupfer) ============ */

/* ---- Schriften: selbst gehostet (keine Anfrage an Google, kein Render-Blocker) ----
   Quicksand/Mulish sind variable Fonts (ein File je Familie, alle Gewichte).
   Lizenz: SIL Open Font License 1.1, siehe assets/fonts/OFL-*.txt.
   Die "… Fallback"-Faces gleichen Arial an die Laufweite der Webfonts an, damit
   beim Nachladen (font-display: swap) möglichst nichts springt. */
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../assets/fonts/quicksand-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../assets/fonts/mulish-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/mulish-latin-italic.woff2") format("woff2");
}
@font-face {
  /* Nur für die Wortmarke: Gewicht 700, auf lateinische Grundzeichen reduziert */
  font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/jost-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Quicksand Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 106%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%;
}
@font-face {
  font-family: "Mulish Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 104%; ascent-override: 97%; descent-override: 24%; line-gap-override: 0%;
}

:root {
  /* HUNTWORKER — Marken-Palette (Petrol + warmes Kupfer) */
  --petrol:#133A48; --petrol-dark:#0D2A34; --petrol-deep:#0A2129;
  --copper:#C46B3D; --copper-dark:#A5552C; --copper-tint:#FBEFE6; --copper-line:#F0D8C6;
  --red:#133A48; --red-dark:#0D2A34; --red-bright:#133A48; --red-tint:#EAF1F3; --red-line:#D3E0E4;
  --graphite:#46535A; --graphite-dark:#33403F;
  --ink:#22282B; --gray:#5A6469; --gray-light:#93A0A6; --line:#E4E9EB; --bg:#FFFFFF; --bg-soft:#F4F8F9;
  --radius:14px; --shadow:0 10px 30px rgba(10,33,41,0.10);
  --font-head:"Quicksand", "Quicksand Fallback", sans-serif; --font-body:"Mulish", "Mulish Fallback", sans-serif;
  --teal:var(--petrol); --teal-dark:var(--petrol-dark); --teal-ink:var(--petrol-dark); --teal-tint:var(--red-tint);
  --orange:var(--copper); --orange-dark:var(--copper-dark);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;   /* lange Komposita ("Nachbesetzungsschutz") sprengen sonst schmale Handys */
}

p { text-wrap: pretty; }

a { color: var(--red); text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Jost", var(--font-head);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Wortmarke: "HUNT" petrol + "WORKER" kupfer */
.brand .eye { color: var(--red); }
.brand .kju { color: var(--copper); }

/* Wortmarke als "HUNTWORKER" (kein Suffix) */
.brand .eye, .brand .kju { text-transform: uppercase; }
.brand .kju::after { content: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  /* 120-px-Fassung statt des 1714-px-Originals (angezeigt werden 38 px) */
  background: url("../assets/huntworker-mark-120.png") center/cover no-repeat;
  background-image: image-set(url("../assets/huntworker-mark-120.webp") type("image/webp"), url("../assets/huntworker-mark-120.png") type("image/png"));
  align-self: center;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Header-Logo: Bildmarke + Wortmarke auf EINER Zeile (kein Umbruch), Claim darunter */
.site-header .brand {
  display: block;
  white-space: nowrap;
  line-height: 1;
}
.site-header .brand .brand-mark { display: inline-block; vertical-align: middle; }
.site-header .brand .eye,
.site-header .brand .kju { vertical-align: middle; }
.site-header .brand::after {
  content: "ERFOLG BRAUCHT MENSCHEN";
  display: block;
  margin-left: 48px; /* Bildmarke (38px) + Abstand (10px) → Claim bündig unter dem Wortmark */
  margin-top: 4px;
  font-family: "Jost", var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--gray);
  white-space: nowrap;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 26px;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--gray);
  white-space: nowrap;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); }

.nav-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; }
.nav-actions .btn { white-space: nowrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }

/* Sekundär-CTA: Petrol gefüllt (klare Hierarchie neben Kupfer) */
.btn-teal { background: var(--petrol); color: #fff; }
.btn-teal:hover { background: var(--petrol-dark); }

.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 11px 26px;
}
.btn-ghost:hover { background: var(--red-tint); }

.btn-sm { font-size: 14.5px; padding: 9px 20px; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-teal { background: var(--red-tint); }

.kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-lead {
  font-size: 19px;
  color: var(--gray);
  max-width: 720px;
}

.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* ============ Cards ============ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

/* ============ Partner-Badge (floating) ============ */
.partner-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 64px;
  height: 64px;
  display: block;
}

.partner-fab-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-fab-icon img {
  width: 46px;
  height: auto;
  display: block;
}

.partner-fab-icon:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(40, 18, 20, 0.18);
}

.partner-fab-tip {
  position: absolute;
  right: 100%;
  bottom: 50%;
  transform: translate(12px, 50%);
  margin-right: 14px;
  width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-fab-tip strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.partner-fab-icon:hover ~ .partner-fab-tip,
.partner-fab-icon:focus-visible ~ .partner-fab-tip {
  opacity: 1;
  transform: translate(0, 50%);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--petrol-deep);
  color: #C7C4C4;
  padding: 26px 0 18px;
  font-size: 12.5px;
  line-height: 1.6;
  border-top: 3px solid var(--copper);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  font-family: "Jost", var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
.footer-logo .eye { color: #EAF1F3; }
.footer-logo .kju { color: var(--copper); }

.footer-brandline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-tagline {
  font-family: var(--font-head);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 12px;
  color: #8C8A8B;
}

.site-footer a { color: #E3A67F; }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 26px;
  font-size: 12.5px;
  color: #8C8A8B;
}

/* Linkspalten im Footer (Leistungen, Gewerke, Ratgeber, Unternehmen) */
.footer-nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
  text-align: left;
  padding: 20px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #EAF1F3;
  margin-bottom: 10px;
}
.footer-nav ul { list-style: none; display: grid; gap: 7px; }
.footer-nav a { font-size: 14px; line-height: 1.45; }
.footer-nap { font-size: 13px; color: #A9B4B8; }
.footer-nap a { white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }

/* ============ Info-Tooltips (z. B. Aufwandspauschale) ============
   Inhalt per display:none statt nur unsichtbar: ein unsichtbarer, aber
   gelayouteter Kasten verbreiterte die Seite mobil auf 454 px (SEO-Audit). */
.tt{position:relative;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:5px;border-radius:50%;background:var(--red,#133A48);color:#fff;font-size:11px;line-height:1;font-weight:700;font-style:normal;cursor:help;vertical-align:middle;flex:none;}
.tt:focus{outline:2px solid var(--red,#133A48);outline-offset:2px;}
.tt .tt-box{display:none;position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:270px;max-width:76vw;background:#2A2A2C;color:#fff;font-size:12.5px;font-weight:400;font-style:normal;line-height:1.5;text-align:left;padding:12px 14px;border-radius:10px;box-shadow:0 14px 34px rgba(40,18,20,.30);z-index:60;pointer-events:none;white-space:normal;}
.tt .tt-box::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#2A2A2C;}
.tt:hover .tt-box,.tt:focus .tt-box{display:block;}
.tt .tt-title{display:block;font-weight:700;margin-bottom:7px;color:#fff;}
.tt .tt-row{display:flex;justify-content:space-between;gap:14px;padding:3px 0;border-top:1px solid rgba(255,255,255,.10);margin-top:5px;}
.tt .tt-row strong{color:#7FA0AB;font-weight:700;white-space:nowrap;}
/* Nach unten öffnende Variante – für Tabellen mit overflow (Vergleichstabelle) */
.tt.tt-down .tt-box{top:calc(100% + 10px);bottom:auto;left:0;transform:none;}
.tt.tt-down .tt-box::after{top:auto;bottom:100%;left:22px;transform:none;border-top-color:transparent;border-bottom-color:#2A2A2C;}

/* ============ Barrierefreiheit ============ */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--petrol); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kennzeichnung von Beispiel-/Illustrationsinhalten (z. B. Stellen-Benachrichtigung) */
.example-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gray); background: #fff; border: 1px dashed var(--gray-light);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* Kurzlabel für den Header-Button (unter 1200 px "Absichern" statt "Jetzt absichern") */
.lbl-sm { display: none; }

/* ============ Mobile-Navigation (Hamburger) ============ */
.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* ============ Responsive ============ */
/* Kopfzeile: Logo + Navigation + Login + "Jetzt absichern" brauchen 1150 px.
   Unter 1200 px rückt die Navigation enger und der Button nimmt das Kurzlabel,
   unter 1100 px übernimmt das Hamburger-Menü (sonst scrollt die Seite seitlich).
   Neuer Menüpunkt oder längerer Text: Grenzen neu nachmessen. */
@media (max-width: 1199px) {
  .main-nav { gap: 18px; }
  .nav-actions .lbl-lg { display: none; }
  .nav-actions .lbl-sm { display: inline; }
}

@media (max-width: 1099px) {
  .main-nav { display: none; }
  /* Mobil bleibt der Haupt-CTA im Header sichtbar (SEO-Audit: "Jetzt absichern"
     fehlte mobil); Login wandert ins Menü. */
  .site-header .container { gap: 10px; }
  .nav-actions { margin-left: auto; gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { font-size: 14px; padding: 9px 16px; }
  .mobile-menu .lbl-sm { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 100%; height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(30, 15, 17, 0.14);
    padding: 12px 22px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    z-index: 49;
  }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-menu .mm-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu .mm-link:hover { color: var(--red); }
  .mobile-menu .mm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
  }
  .mobile-menu .mm-actions .btn { width: 100%; font-size: 16px; padding: 14px 24px; }
  body.mm-lock { overflow: hidden; }
}

@media (max-width: 900px) {
  html { overflow-x: clip; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .section h2 { font-size: 30px; }
}

/* Schmale Handys: Platz für Logo + "Absichern" + Menü-Knopf in einer Zeile */
@media (max-width: 480px) {
  h1, h2 { -webkit-hyphens: auto; hyphens: auto; }
  .container { padding: 0 18px; }
  .site-header .brand { font-size: 23px; }
  .site-header .brand .brand-mark { width: 32px; height: 32px; margin-right: 8px; }
  .site-header .brand::after { margin-left: 40px; font-size: 7.5px; letter-spacing: 0.8px; }
  .nav-toggle { width: 42px; height: 40px; }
  .mobile-menu { padding: 8px 18px 20px; }
}
/* 371–389 px (z. B. iPhone SE/mini mit 375 px): Logo und Button etwas kleiner,
   sonst ragt der Menü-Knopf aus dem Bild */
@media (min-width: 371px) and (max-width: 389px) {
  .site-header .brand { font-size: 21px; }
  .site-header .brand .brand-mark { width: 30px; height: 30px; }
  .site-header .brand::after { margin-left: 38px; }
  .nav-actions .btn-primary { padding: 9px 12px; }
}
@media (max-width: 370px) {
  .site-header .brand .brand-mark { display: none !important; }
  .site-header .brand::after { margin-left: 0; }
}
/* Unter 360 px ragte der Knopf ebenfalls hinaus: Wortmarke und Button kleiner */
@media (max-width: 359px) {
  .site-header .container { gap: 8px; }
  .site-header .brand { font-size: 19px; }
  .nav-actions .btn-primary { padding: 9px 12px; }
}
