/* ==========================================================================
   KoALApflegt – Karriere-Landingpage
   ========================================================================== */

/* Fonts (lokal gehostet, kein Google-Request) ----------------------------- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Mulish ist eine Variable Font – eine Datei deckt 400 bis 800 ab */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design-Tokens ----------------------------------------------------------- */
:root {
  --c-bg: #F4F1F0;
  --c-surface: #FFFFFF;
  --c-surface-soft: #FAF8F7;
  --c-text: #3B3535;
  --c-text-muted: #5E5656;
  --c-text-subtle: #6B6262;
  --c-brown: #6E5B5B;
  --c-rose: #8E7777;
  --c-mauve: #A08A8A;
  --c-red: #E84A33;
  --c-red-dark: #C93A25;
  --c-red-soft: #FBE4DF;
  --c-error: #B3301C;
  --c-line: #E3DAD7;
  --c-line-strong: #D9CFCC;
  --c-input-border: #DCD3D0;
  --c-track: #EFE9E7;
  --c-img-placeholder: #E6DFDD;

  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-sans: 'Mulish', system-ui, sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 96px);
}

/* Basis ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

[hidden] { display: none !important; }

a { color: var(--c-red-dark); }
a:hover { color: var(--c-text); }

input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--c-red);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--c-text); color: #fff; }

.btn--header { padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.btn--header:hover { background: #fff; color: var(--c-red-dark); }
.btn--xl { padding: 18px 34px; font-size: 20px; }
.btn--lg { padding: 16px 30px; font-size: 18px; }
.btn--submit { padding: 18px 28px; font-size: 20px; }
.btn--submit:disabled { opacity: .7; cursor: progress; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-brown);
  color: #fff;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__logo { display: block; height: 34px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.site-header__phone:hover { color: #fff; }
.site-header__phone-icon { display: none; }

/* Auf schmalen Displays nur das Telefon-Icon zeigen, damit nichts umbricht */
@media (max-width: 479px) {
  .site-header__actions { gap: 12px; }
  .site-header__phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
  }
  .site-header__phone-icon { display: block; }
  .site-header__phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Gemeinsame Typografie --------------------------------------------------- */
.kicker { color: var(--c-red); font-size: 17px; font-weight: 800; }
.kicker--hero { font-size: 18px; }

.h2 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--c-rose);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

/* Hero -------------------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 20px; }
.hero__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.8vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--c-rose);
  text-wrap: balance;
}
.hero__sub {
  margin: 0;
  max-width: 540px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.checklist li { display: flex; gap: 10px; }
.checklist li > span { color: var(--c-red); font-weight: 800; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}
.hero__cta-note { font-size: 15px; color: var(--c-text-subtle); }
.hero__media { position: relative; }
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: var(--hero-pos, 60% center);
  border-radius: 50% 50% 24px 24px;
  background: var(--c-img-placeholder);
}
.hero__badge {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: 22px;
  max-width: 270px;
  padding: 14px 18px;
  background: var(--c-surface);
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgba(59, 53, 53, .14);
}
.hero__badge strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--c-rose);
}

/* Vertrauensleiste -------------------------------------------------------- */
.trustbar { background: var(--c-brown); color: #fff; }
.trustbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px 32px;
  font-size: 17px;
  font-weight: 800;
}

/* Benefits ---------------------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.benefits__intro { display: flex; flex-direction: column; gap: 14px; }
.h2--benefits { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 28px 36px;
}
.benefit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--c-line-strong);
}
.benefit h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--c-text); }
.benefit p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text-muted);
  text-wrap: pretty;
}

/* Stelle ------------------------------------------------------------------ */
.job { background: var(--c-surface); }
.job__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.job__intro { display: flex; flex-direction: column; gap: 18px; }
.h2--job { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; text-wrap: balance; }
.job__intro p { margin: 0; font-size: 18px; line-height: 1.6; }
.job__img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 24px;
  background: var(--c-img-placeholder);
}
.job__details { display: flex; flex-direction: column; gap: 20px; }
.job__cta { align-self: flex-start; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--c-bg);
  border-radius: 24px;
}
.card h3 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 28px;
  color: var(--c-text);
}
.arrow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arrow-list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.5; }
.arrow-list li > span:first-child { color: var(--c-red); font-weight: 800; }

/* Team -------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  overflow: hidden;
  background: var(--c-mauve);
  color: #fff;
  border-radius: 28px;
}
.team__media { position: relative; display: block; min-height: 320px; }
.team__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}
.team__kicker { font-size: 17px; font-weight: 800; }
.h2--team { color: inherit; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; text-wrap: balance; }
.team__body p { margin: 0; font-size: 18px; line-height: 1.6; }

/* Ablauf ------------------------------------------------------------------ */
.process {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
}
.h2--process { margin-bottom: 28px; font-size: clamp(32px, 4vw, 46px); }
.process__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.process__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: var(--c-surface);
  border-radius: 22px;
}
.process__no { font-family: var(--f-serif); font-size: 44px; line-height: 1; color: var(--c-red); }
.process__step strong { font-size: 19px; }
.process__text { font-size: 16px; line-height: 1.5; color: var(--c-text-muted); }

/* Bewerbung (Quiz) -------------------------------------------------------- */
.apply {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 88px);
  scroll-margin-top: 64px;
}
.apply__card {
  padding: clamp(22px, 4vw, 44px);
  background: var(--c-surface);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(59, 53, 53, .09);
}
.apply__noscript { margin: 0; font-size: 18px; line-height: 1.55; }
.no-js .quiz { display: none; }

.quiz,
.quiz__panel { display: flex; flex-direction: column; gap: 24px; }

.progress { display: flex; flex-direction: column; gap: 10px; }
.progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text-subtle);
}
.progress__track { height: 8px; overflow: hidden; background: var(--c-track); border-radius: 999px; }
.progress__bar {
  width: 20%;
  height: 100%;
  background: var(--c-red);
  border-radius: 999px;
  transition: width .25s;
}

.quiz__title {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  color: var(--c-text);
}
.quiz__title:focus { outline: none; }
.quiz__options { display: grid; gap: 12px; }
.quiz__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 18px 20px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  color: var(--c-text);
  background: var(--c-surface-soft);
  border: 2px solid var(--c-line);
  border-radius: 16px;
  cursor: pointer;
}
@media (hover: hover) {
  .quiz__option:hover { border-color: var(--c-red); }
}
.quiz__option[aria-pressed="true"] { background: var(--c-red-soft); border-color: var(--c-red); }
.quiz__option > span:last-child { color: var(--c-red); }

.quiz__fields { display: grid; gap: 14px; }
.quiz__field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.quiz__field input {
  padding: 16px;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-surface-soft);
  border: 2px solid var(--c-input-border);
  border-radius: 14px;
}
.quiz__field input[aria-invalid="true"] { border-color: var(--c-error); }
.quiz__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-text-muted);
  cursor: pointer;
}
.quiz__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--c-red);
}
/* Honeypot gegen Spam-Bots – für Menschen unsichtbar */
.quiz__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quiz__error { margin: 0; color: var(--c-error); font-weight: 800; }

.quiz__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  text-align: center;
}
.quiz__done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-red-soft);
  color: var(--c-red);
  font-size: 34px;
  font-weight: 800;
}
.quiz__title--done { font-size: 38px; }
.quiz__done p { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.55; }

.quiz__back {
  align-self: flex-start;
  padding: 6px 0;
  font: inherit;
  font-size: 16px;
  color: var(--c-text-subtle);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

/* FAQ --------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-y);
}
.h2--faq { margin-bottom: 20px; font-size: clamp(32px, 4vw, 44px); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 2px solid var(--c-line); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--c-red); font-size: 22px; line-height: 1; }
.faq__icon::before { content: '+'; }
.faq__item[open] .faq__icon::before { content: '–'; }
.faq__item p {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-text-muted);
}

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--c-text); color: #fff; }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 110px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  font-size: 16px;
  line-height: 1.7;
}
.site-footer__logo { display: block; height: 30px; width: auto; margin-bottom: 12px; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer a { color: #fff; }
/* „Cookie-Einstellungen“ ist eine Aktion (Button), sieht aber aus wie die Links daneben */
.site-footer__btn {
  padding: 0;
  font: inherit;
  color: #fff;
  text-align: left;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}
.no-js .site-footer__btn { display: none; }

/* Sticky-CTA -------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 241, 240, .97);
  border-top: 1px solid var(--c-line);
}
.sticky-cta__btn {
  width: 100%;
  max-width: 480px;
  padding: 16px;
  font-size: 18px;
  text-align: center;
}
.sticky-cta__btn:hover { background: var(--c-red); }

/* Cookie-Banner (@indigokind/ik-consent) ---------------------------------- */
/* Nur Design-Tokens der Library überschreiben (vollständige Liste im Kopf von
   assets/vendor/ik-consent/ik-consent.css), Werte aus den Tokens oben.
   `:root .ikc-root` ist so spezifisch wie der Dark-Mode-Block der Library –
   die Seite hat kein dunkles Theme, das Banner bleibt deshalb immer hell.
   Voraussetzung: style.css wird NACH ik-consent.css eingebunden. */
:root .ikc-root {
  /* Akzent = dunkleres Markenrot: Weiß auf --c-red erreicht nur 3,8:1,
     auf --c-red-dark 5,1:1 (WCAG AA für die 15-px-Buttonschrift) */
  --ikc-accent: var(--c-red-dark);
  --ikc-accent-hover: var(--c-text);
  --ikc-accent-text: #fff;
  --ikc-link: var(--c-red-dark);

  --ikc-bg: var(--c-bg);
  --ikc-surface: var(--c-surface);
  --ikc-text: var(--c-text);
  --ikc-muted: var(--c-text-muted);
  --ikc-border: var(--c-line);
  --ikc-overlay: rgba(59, 53, 53, .55);
  --ikc-settings-hover-bg: var(--c-bg);

  /* „Alle ablehnen“ gleichwertig: ebenfalls gefüllt, gleiche Größe, 6,4:1 */
  --ikc-reject-bg: var(--c-brown);
  --ikc-reject-text: #fff;
  --ikc-reject-hover-bg: var(--c-text);
  --ikc-reject-border: var(--c-brown);

  --ikc-toggle-on: var(--c-brown);
  --ikc-toggle-off: var(--c-rose);

  --ikc-font-family: var(--f-sans);
  --ikc-font-size: 15px;
  --ikc-radius: 24px;
  --ikc-btn-radius: 999px;
  --ikc-shadow: 0 16px 44px rgba(59, 53, 53, .22), 0 2px 8px rgba(59, 53, 53, .1);
  --ikc-focus: 0 0 0 2px var(--c-surface), 0 0 0 5px var(--c-red);
}
/* Überschriften wie auf der Seite in DM Serif Display (dafür gibt es kein Token) */
.ikc-root .ikc-cm__title,
.ikc-root .ikc-pm__title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
}
