/* ==========================================================
   Karriere – Landing Page, Zahnarztpraxis Blumberg
   Fonts: public/fonts/fonts.css
   ========================================================== */

/* Same tokens as the main website (zahnarztpraxis-blumberg.de, public/css/style.css) and the
   implant landing page: flat look – square photos, no card shadows, sage pill buttons. */
:root {
  --bg: #f2f2f0;            /* main site --light */
  --surface: #ffffff;
  --tint: #e4f2d4;          /* main site --accent-pale */
  --sage: #98a686;          /* main site --accent (buttons) */
  --sage-strong: #7d8b6c;   /* main site --accent-dark (hover, headings, icons) */
  --sage-deep: #66734f;     /* button hover */
  --ink: #111111;           /* main site --text */
  --ink-soft: #5d5d5a;      /* main site --muted */
  --line: #d9d9d5;
  --error: #b3261e;         /* main site --error */
  --success: #3f6b2a;       /* main site --success */

  --font-head: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --font-body: 'PT Serif', Georgia, serif;
  --font-btn: 'Nunito', 'Nunito Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 0;           /* photos are square-cornered on the main site */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 58px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--sage-strong); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--sage-strong); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sage-strong); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--form { max-width: 820px; }
.text-center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sage-strong); margin-bottom: .8rem;
}

/* ---------- Buttons (pill shape, like the main site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-btn); font-weight: 700; font-size: 1rem; letter-spacing: .04em;
  line-height: 1.2; text-decoration: none; text-align: center;
  min-height: 48px; padding: 1.1em 1.8em; border-radius: 300px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-strong); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-light { background: var(--sage); color: #fff; }
.btn-light:hover { background: var(--sage-strong); color: #fff; }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn-outline-light:hover { background: var(--surface); color: var(--ink); }
.btn-sm { min-height: 40px; padding: .75em 1.4em; font-size: .92rem; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 14px rgba(0, 0, 0, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); max-width: 1440px; }
.header-logo { display: block; }
.header-logo img { width: 180px; height: auto; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-btn); font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--sage-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero-note { margin: -.6rem 0 1rem; }
.hero-checks { margin: 1.2rem 0 0; }
.hero-checks li { margin-bottom: .55rem; }
.hero-image img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.cta-note { margin: .6rem 0 0; font-family: var(--font-head); font-size: .88rem; color: var(--ink-soft); }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8b6c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-white { background: var(--surface); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Benefits ---------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--bg); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.feature p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sage-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Open positions ---------- */
.jobs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.job { display: grid; grid-template-columns: 38% 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job img { width: 100%; height: 100%; object-fit: cover; }
.job-body { padding: 1.5rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; }
.job-body h3 { font-size: 1.15rem; }
.job-body p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 .8rem; }
.job-body .job-req { font-family: var(--font-head); font-size: .92rem; color: var(--ink); }
.job-body .btn { margin-top: auto; }

/* ---------- Practice ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-image img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-text p { color: var(--ink-soft); }
.promise { margin: 1.6rem 0 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--sage-strong); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; }
.promise p { font-style: italic; color: var(--ink); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: var(--surface); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.step p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-strong); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem;
}

/* ---------- Form (as on the main site) ---------- */
.form { display: grid; gap: 1.2rem; background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.5rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
.form__field { display: flex; flex-direction: column; gap: .25rem; }
.form__label { font-family: var(--font-head); font-weight: 700; font-size: .98rem; }
.form__desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; margin: 0 0 .3rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sage-strong); box-shadow: 0 0 0 3px rgba(152, 166, 134, .3); }
.form.was-validated input:invalid, .form.was-validated select:invalid, .form.was-validated textarea:invalid { border-color: var(--error); }
.form__check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-family: var(--font-head); font-size: .98rem; }
.form__check input { width: 18px; height: 18px; margin-top: .3rem; flex: none; accent-color: var(--sage-strong); }
.form.was-validated .form__check input:invalid { outline: 2px solid var(--error); outline-offset: 2px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .98rem; }
.form__status.is-success { background: #e7f1df; color: var(--success); }
.form__status.is-error { background: #fbe9e7; color: var(--error); }
.file-drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.1rem 1rem; border: 1px dashed var(--ink-soft); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: center;
}
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--sage-strong); font-size: 1.4rem; line-height: 1; }
.file-drop__text { color: var(--sage-strong); font-family: var(--font-head); font-weight: 700; }
.file-drop.has-file { border-style: solid; border-color: var(--sage); }
.file-drop.has-file .file-drop__text { color: var(--ink); word-break: break-all; }
.file-drop:focus-within { outline: 2px solid var(--sage-strong); outline-offset: 3px; }

/* ---------- FAQ (lines, no boxes – like the main site) ---------- */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.1rem 2.5rem 1.1rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--sage-strong); }
.faq-body { padding: 0 0 1.4rem; color: var(--ink-soft); }
.faq-body p:last-child { margin-bottom: 0; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; color: var(--ink); }
.hours dt { font-family: var(--font-head); font-weight: 700; }
.hours dd { margin: 0; }
.hours small { font-size: .85em; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--tint); }
.final-cta a:not(.btn) { color: var(--ink); }
.final-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.final-text p { color: var(--ink-soft); font-size: 1.1rem; }
.final-info { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.8rem; }
.final-info h3 { font-size: 1.1rem; color: var(--sage-strong); }
.final-info p { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); color: var(--ink-soft); padding: 2.5rem 0 3rem; font-size: .92rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 1.2rem; }
.disclaimer { max-width: 60em; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a, .link-button { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.link-button { background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.copyright { margin: 0; }

/* ---------- Mobile sticky bar & consent ---------- */
.mobile-bar { display: none; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 80; padding: 1rem; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 760px; margin: 0 auto; background: var(--surface); box-shadow: 0 10px 40px rgba(29, 33, 26, .25); padding: 1.5rem 1.6rem; font-size: .95rem; }
.consent-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: .4rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }

/* Long German words: allow hyphenation inside narrow cards */
.feature, .step, .job-body { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .final-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; padding-bottom: 84px; }
  .header-logo img { width: 150px; }
  .header-phone, .header-actions .btn { display: none; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  .job img { aspect-ratio: 3 / 2; height: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:last-child { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .final-info { grid-template-columns: 1fr; }
  .consent { padding: .75rem; }
  .consent-inner { font-size: .9rem; padding: 1.2rem; }
  .consent-actions { grid-template-columns: 1fr; }

  /* Mobile hero: buttons right after the headline */
  .hero-text { display: flex; flex-direction: column; }
  .hero-text h1 { order: 1; font-size: 1.95rem; margin-bottom: .5em; }
  .hero-text .lead { order: 2; margin-bottom: .2rem; }
  .hero-text .hero-actions { order: 3; margin: 1.1rem 0 1.3rem; }
  .hero-text .hero-note { order: 4; margin: -.7rem 0 1.2rem; }
  .hero-checks { order: 5; margin: 0; font-size: .95rem; line-height: 1.55; }

  .mobile-bar {
    display: flex; gap: .6rem; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(29, 33, 26, .08);
    transform: translateY(0); transition: transform .25s ease;
  }
  .mobile-bar.is-hidden { transform: translateY(110%); }
  .mobile-bar-book { flex: 1; padding: .95em 1em; }
  .mobile-bar-call { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--sage); color: var(--sage-strong); }
  .mobile-bar-call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 380px) {
  .hero-text > .eyebrow { display: none; }
  .hero-text h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after, .mobile-bar { transition: none; }
}
