/*
Theme Name: Nursing in Germany
Theme URI: https://nursingingermany.com
Author: Martin Fru Chi
Author URI: https://nursingingermany.com/about/
Description: A fast, bilingual (EN/FR) content theme built for nursingingermany.com. No page builder, no external fonts, no tracking. Designed for readers on mobile data: system fonts, minimal CSS, no render-blocking requests. Includes automatic hreflang, Article/FAQPage/Person schema, breadcrumbs, a language switcher and CTA blocks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nig
Tags: blog, two-columns, custom-menu, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --ink:        #10211f;
  --ink-2:      #34504c;
  --ink-3:      #5e7a76;
  --line:       #dde7e5;
  --line-2:     #edf3f2;
  --bg:         #ffffff;
  --bg-2:       #f5f9f8;
  --bg-3:       #eaf3f1;

  --brand:      #0d6b5f;
  --brand-dark: #085047;
  --brand-tint: #e3f1ee;

  --accent:     #b8541b;
  --accent-dark:#98430f;
  --accent-tint:#fdeee4;

  --warn-bg:    #fff8e6;
  --warn-line:  #e8cf8f;
  --warn-ink:   #6b4c04;

  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 1px 2px rgba(16,33,31,.05), 0 8px 24px -12px rgba(16,33,31,.18);

  --wrap:       1140px;
  --measure:    43rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.011em; }
h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 2.85rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.8rem); margin-top: 2.1em; letter-spacing: -.016em; }
h3 { font-size: clamp(1.13rem, 1.03rem + .45vw, 1.3rem); margin-top: 1.9em; }
h4 { font-size: 1.03rem; margin-top: 1.6em; }

p, ul, ol, table, figure, pre, blockquote { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
li > ul, li > ol { margin-top: .4em; margin-bottom: .4em; }

strong { font-weight: 650; }
small { font-size: .875rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-3); padding: .12em .38em; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 999;
  width: auto; height: auto; clip: auto; padding: .6rem 1rem;
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 50rem; }

.site-main { display: block; min-height: 50vh; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 66px;
}
.site-brand {
  font-weight: 750; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
  display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0;
}
.site-brand:hover { color: var(--brand-dark); }
.site-brand__mark {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  letter-spacing: 0;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .945rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
.nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--brand); }

.lang-switch { display: flex; gap: 2px; background: var(--bg-3); border-radius: 999px; padding: 3px; }
.lang-switch a, .lang-switch span {
  font-size: .8rem; font-weight: 650; text-decoration: none;
  padding: .25rem .6rem; border-radius: 999px; color: var(--ink-3); line-height: 1.4;
}
.lang-switch .is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(16,33,31,.08); }

.header-cta {
  background: var(--brand); color: #fff !important; text-decoration: none;
  padding: .5rem .95rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 650; white-space: nowrap;
}
.header-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .45rem .6rem; cursor: pointer;
  font-size: .9rem; color: var(--ink-2);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line-2); margin: 0; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 0; }
  .nav .header-cta { text-align: center; margin-top: .8rem; }
}

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */

.hero {
  background: linear-gradient(170deg, var(--bg-2) 0%, var(--brand-tint) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 1rem + 7vw, 5rem) 0;
}
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-dark);
  background: rgba(255,255,255,.75); padding: .35rem .7rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { max-width: 20ch; margin-bottom: .6em; }
.hero__lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__note { font-size: .86rem; color: var(--ink-3); margin: 1.4rem 0 0; }

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 650; font-size: 1rem; line-height: 1.4;
  padding: .78rem 1.35rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.btn--primary { background: var(--accent); color: #fff !important; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--brand { background: var(--brand); color: #fff !important; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); background: rgba(255,255,255,.6); }
.btn--block { display: block; width: 100%; }

/* ==========================================================================
   7. Cards & grids
   ========================================================================== */

.section { padding: clamp(2.5rem, 1rem + 6vw, 4.5rem) 0; }
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 42rem; margin-bottom: 2.2rem; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--ink-2); margin-bottom: 0; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand-dark); }
.card p { color: var(--ink-2); font-size: .96rem; margin-bottom: 0; }
.card__more { margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 650; }
.card--link:hover { border-color: var(--brand); box-shadow: var(--shadow); }

.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.stat__num { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); font-weight: 750; color: var(--brand-dark); letter-spacing: -.02em; line-height: 1.1; }
.stat__label { font-size: .88rem; color: var(--ink-2); margin-top: .35rem; }
.stat__src { font-size: .78rem; color: var(--ink-3); margin-top: .5rem; }
.stat__src a { color: var(--ink-3); }

/* ==========================================================================
   8. Article
   ========================================================================== */

.breadcrumbs { font-size: .85rem; color: var(--ink-3); padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--ink-3); }

.entry { padding: .5rem 0 3.5rem; }
.entry__header { max-width: var(--measure); margin-bottom: 2rem; }
.entry__header h1 { margin-bottom: .6em; }
.entry__kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-dark); margin-bottom: .9rem;
}

.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem;
  font-size: .9rem; color: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .85rem 0; margin: 0;
}
.byline__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 700;
}
.byline strong { color: var(--ink); font-weight: 650; }
.byline__sep { color: var(--line); }

.entry__body { max-width: var(--measure); font-size: 1.09rem; }
.entry__body > h2:first-child { margin-top: 0; }
.entry__body a { font-weight: 500; }

/* answer box — the 40-60 word direct answer */
.answer {
  background: var(--brand-tint); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.3rem; margin: 0 0 1.9em;
}
.answer p { margin: 0; font-size: 1.08rem; }
.answer p + p { margin-top: .7em; }
.answer__label {
  display: block; font-size: .76rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: .45rem;
}

/* callouts */
.note, .warn, .tip {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.2rem; margin: 1.7em 0; font-size: 1rem;
  background: var(--bg-2);
}
.note p:last-child, .warn p:last-child, .tip p:last-child, .note ul:last-child, .warn ul:last-child, .tip ul:last-child { margin-bottom: 0; }
.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.warn a { color: var(--warn-ink); }
.tip { background: var(--accent-tint); border-color: #f0c9ac; }
.note__title, .warn__title, .tip__title { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .96rem; }

/* tables */
.entry__body table, .table {
  width: 100%; border-collapse: collapse; font-size: .96rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.entry__body th, .entry__body td, .table th, .table td {
  padding: .68rem .8rem; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.entry__body th, .table th { background: var(--bg-2); font-weight: 650; font-size: .88rem; color: var(--ink-2); }
.entry__body tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin-bottom: 0; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5em 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 1.4em 3rem; margin: 0;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .05em;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: .92rem;
}
.steps > li::after {
  content: ""; position: absolute; left: .97rem; top: 2.3rem; bottom: .2em;
  width: 2px; background: var(--line-2);
}
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; margin-bottom: .2em; }

/* checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .55em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .46em;
  width: 1.05rem; height: 1.05rem; border-radius: 4px;
  border: 1.5px solid var(--brand); background: var(--brand-tint);
}
.checklist li::after {
  content: ""; position: absolute; left: .29rem; top: .66em;
  width: .46rem; height: .24rem; border-left: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark); transform: rotate(-45deg);
}

/* figures / artefacts */
.entry__body figure { margin: 1.9em 0; }
.entry__body figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.entry__body figcaption { font-size: .86rem; color: var(--ink-3); margin-top: .6rem; }

blockquote {
  border-left: 3px solid var(--brand); padding: .2em 0 .2em 1.2rem;
  margin: 1.8em 0; color: var(--ink-2); font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin: 2.5em 0 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin-bottom: .6rem; background: var(--bg);
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: .95rem 1.1rem;
  list-style: none; position: relative; padding-right: 2.6rem; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: .82rem;
  font-size: 1.3rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq .faq__a { padding: .95rem 1.1rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* sources */
.sources { font-size: .92rem; color: var(--ink-2); margin-top: 2.5em; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.sources h2 { font-size: 1.05rem; margin-top: 0; }
.sources ol { padding-left: 1.3em; }
.sources li { margin-bottom: .4em; }

/* table of contents */
.toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 0 0 2.2em; font-size: .97rem;
}
.toc__title { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .3em; }

/* ==========================================================================
   9. CTA blocks
   ========================================================================== */

.cta { border-radius: var(--radius); margin: 2.2em 0; }

.cta--soft {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 1.15rem 1.3rem; font-size: 1rem;
}
.cta--soft p { margin: 0; }
.cta--soft a { font-weight: 650; }

.cta--magnet {
  background: var(--bg); border: 1.5px solid var(--brand);
  padding: 1.5rem 1.5rem;
}
.cta--magnet h3 { margin-top: 0; font-size: 1.18rem; }
.cta--magnet p { color: var(--ink-2); font-size: .98rem; }
.cta__form { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.cta__form input[type=email] {
  flex: 1 1 15rem; min-width: 0; padding: .72rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; color: var(--ink); background: var(--bg);
}
.cta__form input[type=email]:focus { border-color: var(--brand); outline: none; }
.cta__fineprint { font-size: .82rem; color: var(--ink-3); margin: .7rem 0 0; }

.cta--hard {
  background: var(--ink); color: #eaf3f1; padding: 1.7rem 1.6rem;
}
.cta--hard h3 { color: #fff; margin-top: 0; font-size: 1.28rem; }
.cta--hard p { color: #c3d6d3; }
.cta--hard p:last-of-type { margin-bottom: 1.2rem; }
.cta--hard a:not(.btn) { color: #9fded1; }
.cta__compare {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.1rem 0;
  padding: 1rem 0; border-top: 1px solid #2c4340; border-bottom: 1px solid #2c4340;
}
.cta__compare div { font-size: .9rem; color: #9db3b0; }
.cta__compare b { display: block; font-size: 1.24rem; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.cta__compare .is-ours b { color: #7fd4c2; }

/* ==========================================================================
   10. Post lists
   ========================================================================== */

.postlist { list-style: none; padding: 0; margin: 0; }
.postlist > li { border-bottom: 1px solid var(--line); padding: 1.4rem 0; margin: 0; }
.postlist > li:first-child { padding-top: 0; }
.postlist h2 { font-size: 1.22rem; margin: 0 0 .35rem; }
.postlist h2 a { text-decoration: none; color: var(--ink); }
.postlist h2 a:hover { color: var(--brand-dark); }
.postlist p { color: var(--ink-2); font-size: .98rem; margin: 0; max-width: 60ch; }
.postlist__meta { font-size: .84rem; color: var(--ink-3); margin-bottom: .45rem; }

.pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2.5rem 0 0; }
.pagination .page-numbers {
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; font-size: .94rem; color: var(--ink-2);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

.related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.8rem; }
.related h2 { font-size: 1.1rem; margin-top: 0; }

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  background: var(--ink); color: #9db3b0;
  padding: 3rem 0 2rem; font-size: .94rem; margin-top: 4rem;
}
.site-footer a { color: #cfe3e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.footer-grid h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #6f8a86; margin: 0 0 .9rem; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.site-footer__bottom {
  border-top: 1px solid #2c4340; margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between;
  font-size: .86rem; color: #6f8a86;
}
.site-footer__disclaimer { max-width: 62ch; margin: 1.2rem 0 0; font-size: .84rem; color: #6f8a86; }

/* ==========================================================================
   12. Utilities
   ========================================================================== */

.u-center { text-align: center; }
.u-mt0 { margin-top: 0; }
.u-mb0 { margin-bottom: 0; }
.u-muted { color: var(--ink-3); }
.u-small { font-size: .9rem; }
.u-measure { max-width: var(--measure); }
.u-nowrap { white-space: nowrap; }

.pill {
  display: inline-block; font-size: .78rem; font-weight: 650;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--bg-3); color: var(--ink-2);
}

@media print {
  .site-header, .site-footer, .cta, .nav, .lang-switch { display: none !important; }
  body { font-size: 11pt; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
