/*
Theme Name: KI³-Consulting.com
Theme URI: https://ki-recht.de
Author: KI³-Consulting.com
Author URI: https://ki3-consulting.com
Description: Professional dark theme for KI³-Consulting.com — AI compliance, law, and technology strategy. Features bilingual DE/EN toggle, hero section, services grid, 4-step approach, blog cards, team section, and footer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ki-recht
Tags: dark, business, legal, one-page, bilingual
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
  --ink:     #1A1F2E;
  --ink2:    #212738;
  --surface: #2A3347;
  --surface2:#313B52;
  --line:    #3D4D66;
  --line2:   #4A5E7A;
  --accent:  #E8820C;
  --accent2: #F5A623;
  --accent3: #FFD166;
  --muted:   #9CAABF;
  --light:   #E2E8F0;
  --white:   #F0F4FA;
  --ff-d: 'Playfair Display', Georgia, serif;
  --ff-b: 'DM Sans', system-ui, sans-serif;
  --max-w: 1200px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--light);
  font-family: var(--ff-b);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.site-topbar {
  background: var(--ink2);
  border-bottom: 0.5px solid var(--line);
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--ff-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.site-logo .dot { color: var(--accent3); }
.site-logo .sub {
  font-family: var(--ff-b);
  font-size: 10px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all .15s;
}
.lang-btn.active { background: var(--accent); color: #fff; }

.btn-consult {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent2);
  border: 0.5px solid var(--accent);
  padding: 7px 16px;
  border-radius: 4px;
  background: transparent;
  transition: background .15s, color .15s;
}
.btn-consult:hover { background: var(--accent); color: #fff; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav {
  background: var(--ink);
  border-bottom: 0.5px solid var(--line);
  position: sticky;
  top: 52px;
  z-index: 199;
}
.site-nav .container {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
}
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links li a {
  display: block;
  padding: 0 11px;
  height: 46px;
  line-height: 46px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links li a:hover { color: var(--accent3); }
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.active > a {
  color: var(--accent3);
  border-bottom-color: var(--accent);
}

.nav-search {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  padding: 4px 6px;
  transition: color .15s;
  flex-shrink: 0;
}
.nav-search:hover { color: var(--accent3); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  padding: 4px;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 0.5px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .875rem;
}
.hero-title {
  font-family: var(--ff-d);
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.125rem;
}
.hero-title em { font-style: normal; color: var(--accent3); }
.hero-text {
  font-size: 14px;
  color: var(--light);
  line-height: 1.8;
  margin-bottom: 1.875rem;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 4px;
  border: none;
  letter-spacing: .02em;
  transition: background .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); color: var(--ink); }

.btn-secondary {
  background: transparent;
  color: var(--accent3);
  font-size: 13px;
  font-weight: 400;
  padding: 11px 22px;
  border-radius: 4px;
  border: 0.5px solid var(--line2);
  transition: border-color .15s, color .15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent2); color: var(--accent2); }

/* Hero visual */
.hero-visual { display: flex; flex-direction: column; gap: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: .875rem 1.125rem;
}
.stat-number {
  font-family: var(--ff-d);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent3);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--accent2);
  margin-top: 4px;
  letter-spacing: .02em;
}

.hero-quote {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}
.hero-quote p {
  font-family: var(--ff-d);
  font-size: 13px;
  font-style: italic;
  color: var(--accent3);
  line-height: 1.65;
}
.hero-quote cite {
  font-size: 11px;
  color: var(--accent2);
  font-style: normal;
  display: block;
  margin-top: 7px;
}

/* =====================================================
   SECTIONS (shared)
   ===================================================== */
.section {
  padding: 4rem 0;
  border-bottom: 0.5px solid var(--line);
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--ff-d);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--accent3);
  margin-bottom: .625rem;
}
.section-subtitle {
  font-size: 13.5px;
  color: var(--light);
  max-width: 560px;
  line-height: 1.75;
}
.section-head { margin-bottom: 2rem; }

/* =====================================================
   SERVICES GRID
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.service-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.service-icon {
  font-size: 22px;
  color: var(--accent2);
  margin-bottom: .625rem;
}
.service-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent3);
  margin-bottom: 6px;
}
.service-desc {
  font-size: 12px;
  color: var(--light);
  line-height: 1.65;
  flex: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--accent2);
  margin-top: 12px;
  transition: gap .15s;
}
.service-card:hover .service-link { gap: 10px; }

/* =====================================================
   APPROACH
   ===================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3rem;
  align-items: start;
}
.steps-list { display: flex; flex-direction: column; }
.step-item {
  display: flex;
  gap: 16px;
  padding: .875rem 0;
  border-bottom: 0.5px solid var(--line);
}
.step-item:last-child { border-bottom: none; }
.step-number {
  font-family: var(--ff-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  min-width: 30px;
  line-height: 1;
  padding-top: 2px;
}
.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent3);
  margin-bottom: 4px;
}
.step-desc { font-size: 12px; color: var(--light); line-height: 1.6; }

/* =====================================================
   BLOG
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}
.blog-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.blog-category {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);
  margin-bottom: 8px;
}
.blog-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent3);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 8px;
}
.blog-meta { font-size: 11px; color: var(--muted); }

.badge-new {
  display: inline-block;
  background: rgba(232,130,12,.18);
  color: var(--accent3);
  border: 0.5px solid var(--accent);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-left: 6px;
  vertical-align: middle;
}

/* =====================================================
   TEAM
   ===================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 1.5rem;
}
.team-card {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232,130,12,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent3);
  flex-shrink: 0;
}
.team-name { font-size: 14px; font-weight: 500; color: var(--accent3); }
.team-role { font-size: 11.5px; color: var(--accent2); margin-top: 3px; line-height: 1.4; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: var(--surface2);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 3rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--ff-d);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent3);
}
.cta-text p { font-size: 13.5px; color: var(--light); margin-top: 5px; }
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink2);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 0.5px solid var(--line);
}
.footer-logo {
  font-family: var(--ff-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.footer-logo .dot { color: var(--accent3); }
.footer-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.65;
  max-width: 230px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent2);
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent3); }

.footer-bottom {
  padding: 1.125rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 11.5px; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 11.5px;
  color: var(--muted);
  transition: color .15s;
}
.footer-legal a:hover { color: var(--accent2); }

/* =====================================================
   WORDPRESS CORE CLASSES
   ===================================================== */
.wp-block-image { margin: 1.5rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 4px; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; display: block; }
.sticky { /* highlighted sticky posts */ }
.bypostauthor { /* comment author */ }

/* Entry content typography */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--ff-d);
  color: var(--accent3);
  margin: 1.5rem 0 .75rem;
}
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--accent2); text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: .75rem 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content blockquote {
  border-left: 2px solid var(--accent);
  padding: .875rem 1.25rem;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-family: var(--ff-d);
  font-style: italic;
  color: var(--accent3);
}

/* =====================================================
   SINGLE / PAGE CONTENT
   ===================================================== */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 0.5px solid var(--line);
}
.page-title {
  font-family: var(--ff-d);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.post-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: .5rem;
}
.post-meta a { color: var(--accent2); }

.content-area { padding: 3rem 0; }
.content-area .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.sidebar-widget {
  background: var(--surface);
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-family: var(--ff-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent3);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 0.5px solid var(--line);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  border: 0.5px solid var(--line);
  color: var(--muted);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent3); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-area .container { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 98px;
    left: 0; right: 0;
    background: var(--ink2);
    border-bottom: 0.5px solid var(--line);
    z-index: 198;
    padding: .5rem 0;
  }
  .nav-links.open li a {
    height: auto;
    line-height: 1;
    padding: .75rem 1.5rem;
    border-bottom: none;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
