/* Jur-Ah! – Recht leicht erklärt. Same type as kanzleituran.de for reading;
   the logo uses Nunito (self-hosted, SIL OFL) in navy and sun yellow from the firm's artwork. */
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/nunito-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/nunito-800-italic.woff2") format("woff2"); }
:root {
  --navy: #0b2340;
  --sun: #f2b425;
  --orange: #ef8a12;
  --sun-soft: #fff4d6;
  --ink: #131515;
  --paper: #e9eaea;
  --white: #f8f8f7;
  --muted: #50555a;
  --line: #13151522;
  --accent: #15305a;
  --font: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --gutter: max(18px, 4.2vw);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --ghost-accent-color: #15305a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; background: #fff; padding: 14px; }
.skip-link:focus { top: 12px; }

/* Header */
.jh-header { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 0; pointer-events: none; }
.jh-bar {
  pointer-events: auto; max-width: 1140px; margin: 0 auto; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 14px 10px 26px; border: 1px solid #13151520; border-radius: 22px;
  background: #f8f8f7cc; backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
/* Logo: the firm's artwork as a transparent image (navy "Jur-", orange "Ah!", the light-bulb mascot) */
.jl-img { display: block; width: auto; }
.jl-inline { font-family: "Nunito", var(--font); font-style: italic; font-weight: 900; color: var(--navy); }
.jl-inline span { color: var(--orange); }

.jh-logo { display: inline-flex; align-items: center; gap: 14px; }
.jh-logo .jl-img { height: 40px; }
.jh-logo-sub { flex: none; padding-top: 4px; font-family: "Nunito", var(--font); font-style: italic; font-size: 16px; font-weight: 800; color: var(--navy); }
.jh-kanzlei {
  display: inline-flex; align-items: baseline; font-size: 13px; font-weight: 500; letter-spacing: .05em;
  padding: 12px 20px; border-radius: 40px; background: var(--ink); color: #fff; transition: transform .25s;
}
.jh-kanzlei:hover { transform: translateY(-2px); }
.jh-kanzlei i { display: inline-block; width: 1px; height: .84em; margin: 0 .2em 0 .14em; background: currentColor; opacity: .85; transform: translateY(.48em); }

/* Home: one short introduction, then straight to the posts */
.jh-home { max-width: 1140px; margin: 0 auto; padding: 44px var(--gutter) 34px; box-sizing: content-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.jh-home-text { max-width: 60ch; font-size: 19px; line-height: 1.5; color: #333a3a; }
.jh-byline { display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 60px; background: var(--sun-soft); font-size: 14.5px; line-height: 1.35; color: var(--navy); }
.jh-faces { display: flex; flex: none; }
.jh-byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sun-soft); }
.jh-faces img + img { margin-left: -14px; }

/* Hero */
.jh-hero { max-width: 1140px; margin: 0 auto; padding: 80px var(--gutter) 40px; box-sizing: content-box; }
.jh-hero h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; color: var(--accent); font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.055em; }
.jh-hero h1 b { font-weight: 800; }
.jh-hero h1 span { font-size: .5em; font-weight: 500; letter-spacing: -.035em; }
.jh-hero > p { max-width: 58ch; margin-top: 24px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.jh-hero--tag h1 { color: var(--ink); font-weight: 700; }
.jh-kicker { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.jh-kicker a { text-decoration: underline; text-decoration-color: #13151540; text-underline-offset: 3px; }

/* Search and filter */
.jh-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter) 100px; box-sizing: content-box; }
.jh-tools { display: grid; gap: 16px; padding: 22px 0 36px; border-top: 1px solid var(--line); }
.jh-search { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; max-width: 440px; margin: 0 auto; padding: 0 16px; border: 1px solid #13151526; border-radius: 40px; background: #fff; }
.jh-search svg { flex: none; width: 19px; height: 19px; color: var(--muted); }
.jh-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: 16px var(--font); color: var(--ink); outline: none; }
.jh-search:focus-within { border-color: var(--ink); }
.jh-tags { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.jh-tags::-webkit-scrollbar { display: none; }
.jh-tags a { flex: none; padding: 9px 16px; border: 1px solid #13151526; border-radius: 30px; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.jh-tags a:hover { background: var(--sun-soft); border-color: var(--sun); }
.jh-tags a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.jh-results-count { margin-bottom: 22px; font-size: 15px; color: var(--muted); }

/* Cards: two columns already on phones, like the firm's draft */
.jh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.jh-card a { display: grid; gap: 6px; }
.jh-card-img { position: relative; aspect-ratio: 4 / 3; margin-bottom: 14px; overflow: hidden; border-radius: 18px; background: var(--paper); }
.jh-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.jh-card a:hover img { transform: scale(1.04); }
.jh-card-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: #13151530; }
.jh-card-tag { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.jh-card-title { font-size: 18px; font-weight: 400; line-height: 1.35; letter-spacing: -.015em; color: #2a2e2e; }
.jh-card a:hover .jh-card-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jh-empty { padding: 40px 0; font-size: 18px; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; font-size: 15px; color: var(--muted); }
.pagination a { padding: 12px 22px; border: 1px solid #13151530; border-radius: 30px; color: var(--ink); }

/* Article */
.jh-article { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 40px; box-sizing: content-box; }
.jh-article-head h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.jh-lead { margin-top: 22px; font-size: 21px; line-height: 1.5; color: #3a3f3f; }
.jh-meta { margin-top: 22px; font-size: 14px; color: var(--muted); }
.jh-article-img { margin: 40px 0 0; }
.jh-article-img img { width: 100%; border-radius: 22px; }
.jh-article-img figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.jh-content { margin-top: 40px; font-size: 18.5px; line-height: 1.7; color: #1f2323; }
.jh-content > * + * { margin-top: 1.1em; }
.jh-content h2 { margin-top: 1.8em; font-size: 27px; line-height: 1.2; letter-spacing: -.03em; }
.jh-content h3 { margin-top: 1.6em; font-size: 21px; letter-spacing: -.02em; }
.jh-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.jh-content ul, .jh-content ol { padding-left: 1.3em; }
.jh-content li + li { margin-top: .4em; }
.jh-content blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 20px; }
.jh-content img { border-radius: 16px; }
.jh-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.jh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.kg-width-wide { width: min(1000px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }
.jh-note { display: grid; gap: 18px; justify-items: start; margin-top: 56px; padding: 26px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.jh-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.jh-share a, .jh-share button { padding: 9px 16px; border: 1px solid #13151526; border-radius: 30px; background: none; font: 14px var(--font); color: var(--ink); cursor: pointer; }
.jh-related { padding-top: 40px; }
.jh-related h2 { margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 28px; letter-spacing: -.035em; }

.jh-button { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 28px; border-radius: 40px; background: var(--ink); color: #fff; font-size: 15px; transition: transform .3s var(--ease); }
.jh-button:hover { transform: translateY(-3px); }

/* Footer */
.jh-footer { background: var(--paper); padding: 64px var(--gutter) 28px; }
.jh-footer-inner, .jh-footer-bar { max-width: 1140px; margin: 0 auto; }
.jh-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; }
.jh-footer-intro { max-width: 56ch; font-size: 17px; line-height: 1.5; color: #3a3f3f; }

.jh-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid #13151526; font-size: 14px; color: var(--muted); }
.jh-footer-bar nav { display: flex; gap: 22px; }

@media (max-width: 900px) {
  .jh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 18px; }
}
@media (max-width: 600px) {
  .jh-bar { padding: 8px 8px 8px 18px; min-height: 58px; border-radius: 20px; }
  .jh-logo-sub { display: none; }
  .jh-logo .jl-img { height: 34px; }
  .jh-bar { flex-wrap: wrap; row-gap: 8px; }
  .jh-search { order: 3; flex-basis: 100%; max-width: none; }
  .jh-search input { height: 42px; }
  .jh-home { padding-top: 28px; padding-bottom: 24px; }
  .jh-home-text { font-size: 16.5px; }
  .jh-byline { font-size: 13.5px; }
  .jh-kanzlei { font-size: 11.5px; padding: 11px 15px; }
  .jh-hero { padding-top: 48px; padding-bottom: 28px; }
  .jh-hero h1 span { font-size: .56em; }
  .jh-hero > p { font-size: 16.5px; }
  .jh-card-img { border-radius: 14px; margin-bottom: 10px; }
  .jh-card-tag { font-size: 16px; }
  .jh-card-title { font-size: 15.5px; }
  .jh-article { padding-top: 44px; }
  .jh-lead { font-size: 18.5px; }
  .jh-content { font-size: 17px; }
  .jh-content h2 { font-size: 23px; }
  .jh-note { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 1060px) { .jh-logo-sub { display: none; } }

/* Page navigation (only shown with more than one page) */
.jh-pages { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 48px 0 0; font-size: 15px; color: var(--muted, #5b6573); }
.jh-pages a { font-weight: 700; color: var(--navy); }
