/*
Theme Name: KreLou Development
Theme URI: https://krelou.dev
Author: Louis Kretzschmann
Author URI: https://krelou.dev
Description: Hand-coded WordPress theme for KreLou Development UG (haftungsbeschränkt). Same layout as the KreLou Consulting theme, Development colour system (Petrol + Terracotta).
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: krelou
*/

/* ==========================================================================
   Design tokens (Styling-Konzept KreLou Development, Stand 13.10.2026)
   Petrol = Fund/Highlight (nie klickbar), Terracotta = Aktion (Buttons, Links).
   Neutrale Farben identisch mit Consulting.
   ========================================================================== */
:root {
  --klc-bg: #16171b;
  --klc-bg-alt: #1f2026;
  --klc-bg-dashed: #1a1b20;
  --klc-text: #f6f4ee;
  --klc-text-muted: #c9c7be;
  --klc-text-faint: #8f8d86;
  --klc-text-placeholder: #6f6d67;
  --kld-petrol: #1c6e68;
  /* Aufgehellter Petrol-Ton nur für kleine Schrift auf Graphit:
     #1C6E68 erreicht auf #16171B nur ca. 3:1 Kontrast (WCAG verlangt 4,5:1). */
  --kld-petrol-text: #4fa39b;
  --kld-terracotta: #bf6a3d;
  --kld-terracotta-hover-link: #d4845a;
  --kld-terracotta-hover-btn: #cc774a;
  --klc-border: rgba(246, 244, 238, 0.13);
  --klc-border-strong: rgba(246, 244, 238, 0.22);
  --klc-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --klc-font-heading: 'Archivo', sans-serif;
  --klc-font-mono: 'IBM Plex Mono', monospace;
  --klc-max-width: 1120px;
  --klc-max-width-narrow: 820px;
}

/* ==========================================================================
   Self-hosted fonts (latin subset only)
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin-variable.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibmplexmono-latin-400.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibmplexmono-latin-500.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/ibmplexsans-latin-variable.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;
}

/* ==========================================================================
   Global resets & element defaults
   ========================================================================== */
html, body {
  margin: 0;
  padding: 0;
  background: var(--klc-bg);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  color: var(--klc-text);
  font-family: var(--klc-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--kld-terracotta);
  text-decoration: none;
}

a:hover {
  color: var(--kld-terracotta-hover-link);
}

button {
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--kld-terracotta);
  outline-offset: 1px;
}

::placeholder {
  color: var(--klc-text-placeholder);
}

/* Primary buttons: Terracotta, Text Graphit (Styling-Konzept Abschnitt 1) */
.kld-btn {
  background: var(--kld-terracotta);
  color: #16171b !important;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.kld-btn:hover {
  background: var(--kld-terracotta-hover-btn);
  color: #16171b !important;
}

/* Secondary CTA: Terracotta-Text mit Unterstrich */
.kld-link {
  font-weight: 600;
  color: var(--kld-terracotta);
  border-bottom: 2px solid var(--kld-terracotta);
  padding-bottom: 2px;
  text-decoration: none;
}

/* Petrol-Markierung: gleiche Form wie im Logo (gebogenes Band, Bogen nach oben,
   Eckradien .145/.43/.43/.145 H). Die Form wird von script.js als SVG hinter
   das Wort gezeichnet, nur die Länge hängt vom Wort ab. Ohne JavaScript
   bleibt die einfache Petrol-Fläche als Rückfall stehen. */
.kld-mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  background: var(--kld-petrol);
  color: #16171b;
  padding: 0 0.17em;
  /* Band ist 1.22em hoch und damit höher als die Zeilenhöhe der Headlines.
     Der Außenabstand schafft Platz, damit es die Zeile darüber und darunter
     nicht überdeckt. */
  margin: 0.24em 0 0.12em;
}

.kld-mark.is-drawn {
  background: none;
}

.kld-mark > .kld-mark-band {
  position: absolute;
  left: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

/* Honeypot field: hidden from sighted users, still reachable by simple bots */
.klc-hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
#menu-toggle {
  appearance: none;
}

#mobile-menu[hidden] {
  display: none;
}

#mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
}

#mobile-menu a {
  color: var(--klc-text);
}

#mobile-menu a.kld-btn {
  color: #16171b !important;
}

/* Breakpoint: desktop inline nav replaces mobile burger + panel */
@media (min-width: 860px) {
  [data-burger] {
    display: none !important;
  }
  [data-desknav] {
    display: flex !important;
  }
  #mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   Fließtext für Rechtsseiten und generische Seiten (the_content / page-3.php)
   ========================================================================== */
.klc-article-body {
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  color: var(--klc-text-muted);
  line-height: 1.7;
}

.klc-article-body > *:first-child {
  margin-top: 0;
}

.klc-article-body h2 {
  font-family: var(--klc-font-heading);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.18;
  color: var(--klc-text);
  margin: clamp(30px, 4vw, 42px) 0 14px;
}

.klc-article-body h3 {
  font-family: var(--klc-font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.2;
  color: var(--klc-text);
  margin: clamp(24px, 3.4vw, 34px) 0 12px;
}

.klc-article-body p {
  margin: 0 0 18px;
}

.klc-article-body ul,
.klc-article-body ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.klc-article-body li {
  margin-bottom: 8px;
}

.klc-article-body a {
  color: var(--kld-terracotta);
  text-decoration: underline;
}

.klc-article-body strong {
  color: var(--klc-text);
  font-weight: 700;
}

.klc-article-body hr {
  border: none;
  border-top: 1px solid var(--klc-border);
  margin: clamp(30px, 4vw, 42px) 0;
}
