/*
Theme Name: Lichtlinie
Theme URI: https://praxis-lichtlinie.de
Description: Praxis Lichtlinie design system (colours, typography, spacing) extracted from the original React site, as a Hello Elementor child theme. Pages are built with Elementor; this theme owns the tokens, fonts and base styles.
Author: Praxis Lichtlinie
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: lichtlinie
*/

/* ─── Self-hosted fonts (identical files to the original site) ─── */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/cg-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/cg-normal-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; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/cg-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url('assets/fonts/cg-italic-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; }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/lato-italic-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/lato-italic-400-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; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/lato-300-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('assets/fonts/lato-300-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; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/lato-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/lato-400-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; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/lato-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/lato-700-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 (from the original src/index.css) ─── */
:root {
  --ll-background: hsl(43 42% 97%);        /* #FAF8F3 */
  --ll-foreground: hsl(116 15% 17%);       /* dark green text */
  --ll-card: hsl(43 50% 98%);
  --ll-border: hsl(42 26% 84%);
  --ll-primary: hsl(116 13% 38%);          /* sage green */
  --ll-primary-foreground: hsl(43 42% 97%);
  --ll-secondary: hsl(40 55% 75%);         /* sand */
  --ll-accent: hsl(40 55% 65%);            /* gold */
  --ll-muted: hsl(95 15% 92%);
  --ll-muted-foreground: hsl(116 18% 33%);
  --ll-ring: hsl(95 15% 55%);
  --ll-destructive: hsl(0 60% 45%);

  --teal-50:#EEF2ED; --teal-100:#D8E3D6; --teal-200:#BCCEBA; --teal-300:#A5B49A; --teal-400:#8FA48B;
  --teal-500:#7A9476; --teal-600:#698767; --teal-700:#617A5F; --teal-800:#4A5E48; --teal-900:#334238;
  --sand-100:#F0EDE7; --sand-200:#E7E2D6; --sand-300:#D4CAB7; --sage-200:#C9D7C2; --sage-400:#A5B49A;

  --ll-radius: 0.5rem;        /* 8px */
  --ll-radius-sm: 0.25rem; --ll-radius-md: 0.375rem; --ll-radius-xl: 0.75rem;
  --ll-font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ll-font-sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ll-nav-height: 4rem;      /* 5rem from 640px */
  --ll-container: 72rem;
}
@media (min-width: 640px) { :root { --ll-nav-height: 5rem; } }

/* ─── Base ─── */
html { scroll-behavior: smooth; scroll-padding-top: var(--ll-nav-height); -webkit-text-size-adjust: 100%; color-scheme: light; overscroll-behavior-y: none; }
body { background: var(--ll-background); color: var(--ll-foreground); font-family: var(--ll-font-sans); font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-wrap: break-word; }
h1, h2, h3, h4, .ll-serif { font-family: var(--ll-font-serif); font-weight: 400; line-height: 1.15; color: var(--ll-foreground); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
a { color: var(--ll-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
:focus-visible { outline: 2px solid var(--ll-ring); outline-offset: 2px; }
button, [role="button"], a, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 640px), (pointer: coarse) { input, textarea, select { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ─── Reusable utility classes (match the React components) ─── */
.ll-eyebrow { font-family: var(--ll-font-sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ll-muted-foreground); font-weight: 700; }
.ll-lead { font-size: 1.125rem; font-weight: 300; color: var(--ll-muted-foreground); }
.ll-card { background: var(--ll-card); border: 1px solid var(--ll-border); border-radius: var(--ll-radius-xl); padding: 1.5rem; }
.ll-btn, .ll-form button[type="submit"] { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ll-font-sans); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--ll-radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.ll-btn-primary, .ll-form button[type="submit"] { background: var(--ll-primary); color: var(--ll-primary-foreground); }
.ll-btn-primary:hover, .ll-form button[type="submit"]:hover { background: var(--teal-800); color: #fff; }
.ll-btn-outline { background: transparent; color: var(--ll-primary); border-color: var(--ll-primary); }
.ll-btn-outline:hover { background: var(--ll-muted); }
.ll-btn-sand { background: var(--ll-secondary); color: var(--ll-foreground); }
.ll-btn-sand:hover { background: var(--ll-accent); }
.ll-section-soft { background: var(--teal-50); }
.ll-section-card { background: var(--ll-card); border-top: 1px solid var(--ll-border); border-bottom: 1px solid var(--ll-border); }
.ll-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--ll-accent), transparent); }

/* ─── Forms rendered by the lichtlinie-bridge plugin ─── */
.ll-form { display: grid; gap: 1rem; max-width: 40rem; }
.ll-form .ll-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ll-form .ll-row { grid-template-columns: 1fr 1fr; } }
.ll-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 700; color: var(--ll-muted-foreground); }
.ll-form input, .ll-form textarea, .ll-form select { font: inherit; font-weight: 400; color: var(--ll-foreground); background: #fff; border: 1px solid var(--ll-border);
  border-radius: var(--ll-radius); padding: .7rem .9rem; width: 100%; }
.ll-form input:focus, .ll-form textarea:focus, .ll-form select:focus { border-color: var(--ll-primary); outline: 2px solid var(--ll-ring); outline-offset: 1px; }
.ll-form .ll-consent { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; }
.ll-form .ll-consent input { width: auto; margin-top: .25rem; }
.ll-form .ll-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ll-form .ll-status { font-size: .95rem; padding: .8rem 1rem; border-radius: var(--ll-radius); display: none; }
.ll-form .ll-status.ok { display: block; background: var(--teal-50); color: var(--teal-900); border: 1px solid var(--teal-200); }
.ll-form .ll-status.err { display: block; background: hsl(0 60% 97%); color: var(--ll-destructive); border: 1px solid hsl(0 50% 85%); }
.ll-newsletter { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
.ll-newsletter input[type="email"] { flex: 1 1 14rem; }

/* ─── Login / portal button (header) ─── */
.ll-login { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: var(--ll-primary);
  border: 1px solid var(--ll-primary); border-radius: var(--ll-radius); padding: .5rem .9rem; text-decoration: none; }
.ll-login:hover { background: var(--ll-primary); color: var(--ll-primary-foreground); }
.ll-login svg { width: 14px; height: 14px; }

/* ─── Site notice banner (admin-managed, via API) ─── */
.ll-notice { font-size: .9rem; padding: .7rem 1rem; text-align: center; border-bottom: 1px solid var(--ll-border); }
.ll-notice[data-type="info"]    { background: var(--teal-50);  color: var(--teal-900); }
.ll-notice[data-type="warning"] { background: hsl(40 70% 92%); color: hsl(30 50% 25%); }
.ll-notice[data-type="urgent"]  { background: hsl(0 60% 95%);  color: var(--ll-destructive); }

/* ─── Blog prose (replaces @tailwindcss/typography) ─── */
.ll-prose, .single-post .entry-content { max-width: 42rem; margin-inline: auto; font-size: 1.0625rem; line-height: 1.75; }
.ll-prose h2, .single-post .entry-content h2 { margin-top: 2.5rem; }
.ll-prose h3, .single-post .entry-content h3 { margin-top: 2rem; }
.ll-prose p, .single-post .entry-content p { margin: 1.1rem 0; }
.ll-prose blockquote, .single-post .entry-content blockquote { border-left: 3px solid var(--ll-accent); padding-left: 1rem; font-family: var(--ll-font-serif); font-style: italic; font-size: 1.25rem; color: var(--ll-muted-foreground); }
.ll-prose img, .single-post .entry-content img { border-radius: var(--ll-radius-xl); }
