/*
Theme Name: Bo Hillebrand Rechtsanwalt
Theme URI: https://bohillebrand.de
Author: Bo Hillebrand
Author URI: https://bohillebrand.de
Description: Moderne Website für Rechtsanwalt M. Bo Hillebrand – Spezialisiert auf E-Zigaretten-Recht, Lebensmittelrecht, Kosmetikrecht und Markenrecht.
Version: 2.1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bohillebrand
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --blue: #2563eb;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 100px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.05), 0 20px 60px rgba(0,0,0,.08);
  --transition: all .3s cubic-bezier(.22,1,.36,1);
  --max-width: 1320px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.7;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-700); }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--gray-900);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.05rem; }
p { color: var(--gray-500); }
.blue { color: var(--blue); }

/* ========================================
   SKIP LINK
   ======================================== */
.skip-to-content {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; padding: .5rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 9999;
  font-size: .85rem; font-weight: 600;
}
.skip-to-content:focus { top: 0; color: #fff; }

/* ========================================
   CONTAINER
   ======================================== */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2.25rem; border-radius: 14px; font-size: .95rem;
  font-weight: 700; cursor: pointer; text-decoration: none;
  transition: var(--transition); border: none; font-family: inherit;
}
.btn-blue {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.btn-blue:hover {
  background: var(--blue-700); color: #fff;
  box-shadow: 0 8px 24px rgba(37,99,235,.3); transform: translateY(-2px);
}
.btn-white {
  background: var(--white); color: var(--gray-900);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow);
}
.btn-white:hover {
  border-color: var(--blue-200); color: var(--gray-900);
  box-shadow: var(--shadow-lg); transform: translateY(-2px);
}
.btn-sm {
  padding: .6rem 1.25rem; background: var(--blue); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .8rem;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-sm:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-white-fill {
  padding: 1rem 2.25rem; background: #fff; color: var(--blue-700);
  border-radius: 14px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: var(--transition); border: none; cursor: pointer;
}
.btn-white-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); color: var(--blue-700); }
.btn-outline-light {
  padding: 1rem 2.25rem; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 14px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: var(--transition);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }

/* ========================================
   LANGUAGE BAR
   ======================================== */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 28px;
  background: transparent;
  display: flex;
  align-items: center;
  transition: background .35s, border-color .35s;
}
.lang-bar.scrolled {
  background: rgba(255,255,255,.96);
}
.lang-bar-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: flex-end;
  gap: .25rem;
}
.lang-btn {
  background: none;
  border: none;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: var(--radius-full);
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.lang-btn:hover {
  color: var(--blue);
  background: var(--blue-50);
}
.lang-btn.active {
  color: var(--blue-700);
  background: var(--blue-50);
}
.admin-bar .lang-bar { top: 32px; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed; top: 27px; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 3rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  transition: padding .35s, background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--gray-200);
  padding: 1.15rem 3rem;
  padding-top: calc(1.15rem + env(safe-area-inset-top, 0px));
}
/* WordPress Admin Bar offset – desktop only (bar is fixed) */
.admin-bar .site-header { top: calc(32px + 28px); }
@media screen and (max-width: 782px) {
  /* On mobile/tablet WP admin bar is NOT fixed, it scrolls away.
     JS handles the dynamic offset via .admin-bar-offset class. */
  .admin-bar .lang-bar { top: 46px; }
  .admin-bar .site-header { top: calc(46px + 28px); }
  .admin-bar .site-header.admin-bar-scrolled { top: 28px !important; }
  .admin-bar .lang-bar.admin-bar-scrolled { top: 0 !important; }
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.site-logo { flex-shrink: 0; }
.site-logo a {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--gray-900);
}
.site-logo picture { display: flex; flex-shrink: 0; }
.site-logo .logo-mark {
  width: 40px; height: 40px;
  object-fit: contain;
}
.site-logo .site-title {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 0;
}
.site-logo .site-title a { color: var(--gray-900); }
.site-logo .site-description {
  font-size: .75rem; font-weight: 400; color: var(--gray-500);
  margin: 0; line-height: 1.2;
}

/* Navigation */
.main-navigation { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.main-navigation ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  align-items: center; margin: 0; padding: 0; justify-content: flex-end;
}
.main-navigation ul li a {
  color: var(--gray-500); text-decoration: none; font-size: .85rem;
  font-weight: 500; transition: color .25s; white-space: nowrap;
}
.main-navigation ul li a:hover { color: var(--gray-900); }
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a { color: var(--blue); font-weight: 600; }

/* Dropdown */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all .25s; z-index: 100;
}
.main-navigation ul li:hover > ul.sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation ul li ul.sub-menu li a {
  display: block; padding: .5rem 1.25rem; font-size: .85rem; white-space: nowrap;
}
.main-navigation ul li ul.sub-menu li a:hover { background: var(--blue-50); color: var(--blue); }

/* Mobile Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px; z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--gray-900);
  border-radius: 2px; transition: all .3s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 10rem 2rem 6rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 60%);
}
.hero-circles { position: absolute; inset: 0; overflow: hidden; }
.hero-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--blue-200); opacity: .3;
}
.hero-circle:nth-child(1) {
  width: 600px; height: 600px; top: 10%; left: 50%; transform: translateX(-50%);
  animation: pulse-ring 8s ease-in-out infinite;
}
.hero-circle:nth-child(2) {
  width: 900px; height: 900px; top: -5%; left: 50%; transform: translateX(-50%);
  animation: pulse-ring 8s ease-in-out 2s infinite;
}
.hero-circle:nth-child(3) {
  width: 1200px; height: 1200px; top: -20%; left: 50%; transform: translateX(-50%);
  animation: pulse-ring 8s ease-in-out 4s infinite;
}
@keyframes pulse-ring {
  0%, 100% { opacity: .15; transform: translateX(-50%) scale(1); }
  50% { opacity: .3; transform: translateX(-50%) scale(1.02); }
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

/* Hero Portrait */
.hero-portrait {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 2rem;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--blue-200), 0 20px 40px rgba(0,0,0,.08);
}
.hero-portrait picture { display: block; width: 100%; height: 100%; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Hero Portrait – Blob mode */
.hero-portrait--blob {
  width: 200px; height: 200px;
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  overflow: visible;
  box-shadow: none;
  position: relative;
}
.hero-portrait-blob {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, rgba(219,234,254,.6), rgba(239,246,255,.4));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: about-blob-morph 8s ease-in-out infinite;
  z-index: 0;
}
.hero-portrait--blob picture {
  position: relative; z-index: 1;
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(37,99,235,.12);
  border: 4px solid var(--white);
}
.hero-portrait--blob img {
  border-radius: 0;
}

/* Hero Portrait – Modern mode (Offset Double Frame) */
.hero-portrait--modern {
  width: 200px; height: 200px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  position: relative;
}
.hero-portrait--modern::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  right: -10px; bottom: -10px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-200, #bfdbfe), var(--blue-100, #dbeafe));
  z-index: 0;
}
.hero-portrait--modern picture {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(37,99,235,.12);
}
.hero-portrait--modern img { border-radius: 0; }

/* Hero Portrait – Seriös mode (Classic Double Border) */
.hero-portrait--serioes {
  width: 200px; height: 200px;
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--gray-300, #d1d5db);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hero-portrait--serioes picture {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-200, #e5e7eb);
}
.hero-portrait--serioes img { border-radius: 0; }

/* Hero Portrait – Neutral mode (Soft Rounded) */
.hero-portrait--neutral {
  width: 200px; height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100, #f3f4f6);
}
.hero-portrait--neutral img { border-radius: 0; }

/* Hero Chip */
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; background: var(--white);
  border: 1px solid var(--blue-200); border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; color: var(--blue);
  margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(37,99,235,.06);
}
.hero-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero h1 { margin-bottom: 1.5rem; }
.hero-desc {
  font-size: 1.15rem; color: var(--gray-500); max-width: 580px;
  margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 4rem;
}
.hero-trust { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-size: 1.75rem; font-weight: 800; color: var(--blue); display: block; }
.trust-label {
  font-size: .75rem; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 6rem 2rem; }
.section-center { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-chip {
  display: inline-flex; padding: .35rem .85rem;
  background: var(--blue-50); color: var(--blue);
  border-radius: var(--radius-full); font-size: .75rem;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-center h2 { margin-bottom: .75rem; }
.section-center p { font-size: 1rem; }
.bg-light { background: var(--gray-50); }

/* ========================================
   AREAS / PRACTICE AREAS GRID
   ======================================== */
.areas-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.area-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition); cursor: pointer;
  position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block;
}
.area-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform .35s;
}
.area-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: var(--blue-200); color: inherit;
}
.area-card:hover::after { transform: scaleX(1); }
.area-illus {
  position: absolute;
  top: -15px; right: -25px;
  width: 140px; height: 140px;
  opacity: .45;
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s;
}
.area-illus svg { width: 100%; height: 100%; }
.area-card:hover .area-illus { opacity: .65; }
.area-card h3 { margin-bottom: .5rem; position: relative; z-index: 1; }
.area-card p { font-size: .85rem; line-height: 1.7; position: relative; z-index: 1; }

/* ========================================
   ABOUT
   ======================================== */
.about-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: 20px; aspect-ratio: 4/5;
  object-fit: cover; box-shadow: var(--shadow-lg);
}

/* -- Blob mode for front-page Über-mich portrait -- */
.about-img-wrap--blob {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-img-blob {
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue-100, #dbeafe), var(--blue-50));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: about-blob-morph 8s ease-in-out infinite;
}
.about-img-wrap--blob .about-img {
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  aspect-ratio: 1;
  border: 5px solid var(--white);
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(37, 99, 235, .12);
}

/* -- Modern mode for Über-mich portrait (Offset Double Frame) -- */
.about-img-wrap--modern { position: relative; }
.about-img-wrap--modern::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  right: -10px; bottom: -10px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-200, #bfdbfe), var(--blue-100, #dbeafe));
  z-index: 0;
}
.about-img-wrap--modern .about-img {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(37,99,235,.12);
  position: relative;
  z-index: 1;
}

/* -- Seriös mode for Über-mich portrait (Classic Double Border) -- */
.about-img-wrap--serioes {
  padding: 5px;
  background: #fff;
  border: 2px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.about-img-wrap--serioes .about-img {
  border-radius: 4px;
  border: 1px solid var(--gray-200, #e5e7eb);
}

/* -- Neutral mode for Über-mich portrait (Soft Rounded) -- */
.about-img-wrap--neutral .about-img {
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100, #f3f4f6);
}

.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--blue); color: #fff; border-radius: 14px;
  padding: 1.25rem 1.75rem; box-shadow: 0 8px 30px rgba(37,99,235,.3);
}
.about-badge .num { font-size: 2rem; font-weight: 800; display: block; line-height: 1; color: #fff; }
.about-badge .label {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; opacity: .8; color: #fff;
}
.about-content .section-chip { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1.5rem; line-height: 1.2; }
.about-content > p { line-height: 1.9; margin-bottom: 1.25rem; }
.about-skills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skill-tag {
  padding: .4rem 1rem; background: var(--blue-50); color: var(--blue);
  border-radius: var(--radius-full); font-size: .8rem; font-weight: 600;
  border: 1px solid var(--blue-100); transition: var(--transition);
}
.skill-tag:hover { background: var(--blue); color: #fff; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-section { padding: 6rem 2rem; }
.cta-banner {
  max-width: var(--max-width); margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  border-radius: 24px; padding: 4rem 3rem; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(37,99,235,.2);
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 60%);
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem); color: #fff;
  margin-bottom: .75rem; position: relative;
}
.cta-banner > p {
  color: var(--blue-200); margin-bottom: 2.5rem;
  font-size: 1.05rem; position: relative;
}
.cta-row {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ========================================
   BLOG / AKTUELLES  –  Sidebar-Layout
   ======================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.blog-main {
  min-width: 0;
}
.blog-sidebar {
  position: sticky;
  top: 128px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Suchfeld */
.blog-search-input {
  width: 100%;
  padding: .55rem .85rem;
  font-size: .88rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.blog-search-input:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.blog-search-input::placeholder { color: var(--gray-300); }

/* Kategorie-Tags */
.blog-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--blue-50);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.blog-cat-tag:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}
.blog-cat-tag.active {
  background: var(--blue);
  color: #fff;
}
.blog-cat-count {
  font-size: .68rem;
  font-weight: 700;
  opacity: .6;
}
.blog-cat-tag.active .blog-cat-count { opacity: .8; }

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    order: -1;
    margin-bottom: 1rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer { padding: 4rem 2rem 2rem; border-top: 1px solid var(--gray-200); }
.footer-content {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--gray-900);
}
.footer-brand .footer-logo picture { display: flex; flex-shrink: 0; }
.footer-brand .footer-logo img {
  width: 34px; height: 34px;
  object-fit: contain;
}
.footer-brand .footer-logo span { font-size: 1rem; font-weight: 700; }
.footer-brand > p {
  color: var(--gray-400); font-size: .875rem;
  max-width: 320px; line-height: 1.7;
}
.footer-section h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray-400); font-weight: 700; margin-bottom: 1rem;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section a, .footer-section li {
  color: var(--gray-500); text-decoration: none; font-size: .875rem;
  display: block; padding: .3rem 0; transition: color .25s;
}
.footer-section a:hover { color: var(--blue); }
.footer-bottom {
  max-width: var(--max-width); margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between;
  color: var(--gray-400); font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: var(--gray-400); transition: color .25s; }
.footer-bottom a:hover { color: var(--blue); }

/* ========================================
   ANIMATIONS
   ======================================== */
.fade {
  opacity: 0; transform: translateY(24px);
  transition: all .7s cubic-bezier(.22,1,.36,1);
}
.fade.in { opacity: 1; transform: translateY(0); }
.fade-d1 { transition-delay: .1s; }
.fade-d2 { transition-delay: .2s; }
.fade-d3 { transition-delay: .3s; }
.fade-d4 { transition-delay: .4s; }

/* ========================================
   PAGE / SINGLE TEMPLATES
   ======================================== */
.page-header { padding: 8rem 2rem 3rem; text-align: center; background: var(--gray-50); }
.page-header h1 { margin-bottom: .5rem; }
/* Rechtsgebiet Background Illustration – hidden on mobile via media query below */

/* ----------------------------------------
   Table of Contents – Akkordeon-Panel
   ---------------------------------------- */
.toc {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  margin-bottom: 2.5rem;
}
.toc .toc-header-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.toc .toc-header-bar:hover { background: var(--gray-100); }
.toc .toc-header-bar .toc-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toc .toc-header-bar .toc-icon svg { width: 14px; height: 14px; }
.toc .toc-header-bar .toc-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-700);
}
.toc .toc-header-bar .toc-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: .2rem .6rem;
  border-radius: 100px;
}
.toc .toc-header-bar .toc-chevron {
  width: 20px; height: 20px;
  color: var(--gray-400);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  margin-left: .5rem;
  flex-shrink: 0;
}
.toc .toc-header-bar .toc-chevron.open { transform: rotate(180deg); }
.toc .toc-body {
  max-height: 600px;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,1,.36,1), padding .3s;
}
.toc .toc-body.collapsed {
  max-height: 0;
}
.toc ul { list-style: none; padding: .75rem 1.25rem; margin: 0; color: inherit; }
.entry-content .toc ul { padding-left: 1.25rem; color: inherit; margin-bottom: 0; }
.entry-content .toc li { margin-bottom: 0; }
.toc li + li { border-top: 1px solid var(--gray-100); }
.toc li a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .5rem;
  font-size: .88rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s, background .2s;
  border-radius: 6px;
}
.toc li a:hover { color: var(--blue); background: var(--blue-50); }
.toc li a .item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
  transition: all .25s;
}
.toc li a:hover .item-dot,
.toc li a.active .item-dot {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.toc li a.active { color: var(--blue); font-weight: 600; }
.toc li.sub a { padding-left: 1.75rem; font-size: .82rem; color: var(--gray-500); font-weight: 400; }
.toc li.sub a .item-dot { width: 4px; height: 4px; }
.toc li.sub a:hover { color: var(--blue); }

/* ----------------------------------------
   Rechtsgebiet CTA Box
   ---------------------------------------- */
.rg-cta {
  position: relative;
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .4s, border-color .4s;
}
.rg-cta:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
}
.rg-cta-glow { display: none; }
.rg-cta-content { position: relative; z-index: 1; }
.rg-cta-icon {
  width: 48px; height: 48px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
  animation: ctaIconPulse 3.5s ease-in-out infinite;
  transition: background .3s, transform .3s;
}
@keyframes ctaIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50% { box-shadow: 0 0 0 8px rgba(37,99,235,.06); }
}
.rg-cta:hover .rg-cta-icon {
  background: var(--blue-100);
  transform: scale(1.05);
}
.rg-cta-icon svg { width: 22px; height: 22px; }
.rg-cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.rg-cta-text {
  color: var(--gray-500);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.rg-cta-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.rg-cta-btn {
  padding: .8rem 1.75rem;
  font-size: .88rem;
}
.rg-cta-btn svg {
  transition: transform .25s;
}
.rg-cta-btn:hover svg {
  transform: translateX(3px);
}
.rg-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  border-radius: 12px;
  transition: color .25s, background .25s;
}
.rg-cta-phone:hover {
  color: var(--blue);
  background: var(--blue-50);
}
.rg-cta-phone svg { flex-shrink: 0; }

/* ----------------------------------------
   Rechtsgebiete-Übersicht CTA with Photo
   ---------------------------------------- */
.rg-ov-cta {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .4s, border-color .4s;
  margin-top: 2.5rem;
}
.rg-ov-cta:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
}

/* Portrait container */
.rg-ov-cta-portrait {
  flex-shrink: 0;
  width: 160px; height: 160px;
  position: relative;
}
.rg-ov-cta-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* -- Circle (default) -- */
.rg-ov-cta-portrait--circle { border-radius: 50%; overflow: hidden; }
.rg-ov-cta-img--circle { border-radius: 50%; }

/* -- Blob -- */
.rg-ov-cta-portrait--blob {
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  overflow: visible;
}
.rg-ov-cta-blob {
  position: absolute;
  width: 115%; aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  animation: about-blob-morph 8s ease-in-out infinite;
  z-index: 0;
}
.rg-ov-cta-portrait--blob picture { position: relative; z-index: 1; border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%; overflow: hidden; }
.rg-ov-cta-img--blob { border-radius: 0; border: 3px solid var(--white); }

/* -- Modern (Offset Double Frame) -- */
.rg-ov-cta-portrait--modern {
  border-radius: 0; overflow: visible; box-shadow: none; border: none;
}
.rg-ov-cta-portrait--modern::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: -8px; bottom: -8px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-200, #bfdbfe), var(--blue-100, #dbeafe));
  z-index: 0;
}
.rg-ov-cta-portrait--modern picture {
  position: relative; z-index: 1; display: block; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(37,99,235,.1);
}
.rg-ov-cta-img--modern { border-radius: 0; }

/* -- Seriös (Classic Double Border) -- */
.rg-ov-cta-portrait--serioes {
  border-radius: 8px; overflow: hidden;
  padding: 4px; background: #fff;
  border: 2px solid var(--gray-300, #d1d5db);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.rg-ov-cta-portrait--serioes picture { display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--gray-200); }
.rg-ov-cta-img--serioes { border-radius: 0; }

/* -- Neutral (Soft Rounded) -- */
.rg-ov-cta-portrait--neutral {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  border: 1px solid var(--gray-100);
}
.rg-ov-cta-img--neutral { border-radius: 0; }

/* Body */
.rg-ov-cta-body { flex: 1; min-width: 0; }
.rg-ov-cta-title {
  font-size: 1.35rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: .6rem; line-height: 1.3;
}
.rg-ov-cta-text {
  color: var(--gray-500); font-size: .95rem; line-height: 1.75;
  margin-bottom: 1.5rem; max-width: 580px;
}
.rg-ov-cta-actions {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
}
.rg-ov-cta-btn { padding: .8rem 1.75rem; font-size: .88rem; }
.rg-ov-cta-btn svg { transition: transform .25s; }
.rg-ov-cta-btn:hover svg { transform: translateX(3px); }

.page-content, .entry-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.page-content p, .entry-content p { margin-bottom: 1.5rem; line-height: 1.9; }
.page-content h2, .entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.page-content h3, .entry-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.page-content h4, .entry-content h4 { margin-top: 1.75rem; margin-bottom: .6rem; }
.page-content h5, .entry-content h5 { margin-top: 1.5rem; margin-bottom: .5rem; }
.page-content ul, .page-content ol,
.entry-content ul, .entry-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--gray-500); }
.page-content li, .entry-content li { margin-bottom: .5rem; }
.page-content img, .entry-content img { border-radius: var(--radius); margin: 2rem 0; max-width: 100%; height: auto; }
.page-content table, .entry-content table { max-width: 100%; overflow-x: auto; display: block; }
.entry-content { overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }
.page-content blockquote, .entry-content blockquote {
  border-left: 3px solid var(--blue); padding: 1rem 1.5rem;
  margin: 2rem 0; background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.page-content blockquote p, .entry-content blockquote p { color: var(--gray-700); font-style: italic; }
.page-with-sidebar .content-area {
  max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 3rem;
}
/* ----------------------------------------
   Sidebar Widgets – Panel mit Header-Bar
   ---------------------------------------- */
.sw {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s;
}
.sw:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
}
.sw-top {
  background: var(--gray-50);
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sw-top-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sw-top-icon svg { width: 14px; height: 14px; }
.sw-top-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
}
.sw-body { padding: 1.1rem 1.25rem; }

/* Contact rows */
.sw-contact-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem 0;
}
.sw-contact-row + .sw-contact-row { border-top: 1px solid var(--gray-100); }
.sw-contact-icon {
  width: 32px; height: 32px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.sw-contact-icon svg { width: 15px; height: 15px; }
.sw-contact-info { display: flex; flex-direction: column; }
.sw-contact-label {
  font-size: .72rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sw-contact-info a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.sw-contact-info a:hover { color: var(--blue); }

/* Area links */
.sw-area-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .25rem;
  text-decoration: none;
  color: var(--gray-600);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.sw-area-link + .sw-area-link { border-top: 1px solid var(--gray-100); }
.sw-area-link:hover { color: var(--blue); }
.sw-area-link.current { color: var(--blue-700); font-weight: 700; }
.sw-area-arrow {
  color: var(--gray-300);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.sw-area-link:hover .sw-area-arrow { color: var(--blue); transform: translateX(2px); }
.sw-area-link.current .sw-area-arrow { color: var(--blue-700); }

/* Benefits */
.sw-benefit {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .86rem;
  color: var(--gray-600);
}
.sw-benefit + .sw-benefit { border-top: 1px solid var(--gray-100); }
.sw-benefit-num {
  font-size: .7rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .5;
  min-width: 18px;
  padding-top: .1rem;
}

/* Related Rechtsgebiete cards */
a.sw-related-card {
  text-decoration: none;
  display: block;
  color: inherit;
}
a.sw-related-card:hover { transform: translateY(-3px); }
a.sw-related-card .sw-top-title { color: var(--gray-700); }
a.sw-related-card:hover .sw-top-title { color: var(--blue); }

/* ----------------------------------------
   Dynamic WordPress Widgets
   Matches .sw panel design exactly.
   Works with both new sw-markup (functions.php)
   AND as fallback for old <h3 class="widget-title">
   ---------------------------------------- */
.sidebar .widget {
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: 16px !important;
  margin-bottom: 1rem !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden !important;
  transition: box-shadow .3s, border-color .3s !important;
  padding: 0 !important;
}
.sidebar .widget:hover {
  border-color: var(--blue-200) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Title bar – works for BOTH <h3 class="widget-title"> AND .sw-top wrapper */
.sidebar .widget > h3.widget-title,
.sidebar .widget > .sw-top {
  background: var(--gray-50) !important;
  padding: .85rem 1.25rem !important;
  border-bottom: 1px solid var(--gray-100) !important;
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  margin: 0 !important;
}
/* Title text – override h3 global styles */
.sidebar .widget > h3.widget-title,
.sidebar .widget .sw-top-title {
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: var(--gray-700) !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Blue icon square BEFORE title (fallback for old markup without sw-top-icon) */
.sidebar .widget > h3.widget-title::before {
  content: '';
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
/* Neueste Beiträge icon – document */
.sidebar .widget_recent_entries > h3.widget-title::before {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 1H3.5A1.5 1.5 0 002 2.5v9A1.5 1.5 0 003.5 13h7a1.5 1.5 0 001.5-1.5V5L8 1z'/%3E%3Cpath d='M8 1v4h4'/%3E%3Cline x1='5' y1='7.5' x2='9' y2='7.5'/%3E%3Cline x1='5' y1='10' x2='8' y2='10'/%3E%3C/svg%3E") center/14px 14px no-repeat;
}
/* Neueste Kommentare icon – speech bubble */
.sidebar .widget_recent_comments > h3.widget-title::before {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6.33A5.17 5.17 0 007.67 1.5H6.5a5.5 5.5 0 00-5.5 5.5v4.33a.67.67 0 00.67.67H6.33A5.17 5.17 0 0013 6.33z'/%3E%3C/svg%3E") center/14px 14px no-repeat;
}
/* New markup: icon inside .sw-top-icon.sw-widget-icon */
.widget_recent_entries .sw-widget-icon {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 1H3.5A1.5 1.5 0 002 2.5v9A1.5 1.5 0 003.5 13h7a1.5 1.5 0 001.5-1.5V5L8 1z'/%3E%3Cpath d='M8 1v4h4'/%3E%3Cline x1='5' y1='7.5' x2='9' y2='7.5'/%3E%3Cline x1='5' y1='10' x2='8' y2='10'/%3E%3C/svg%3E") center/14px 14px no-repeat !important;
}
.widget_recent_comments .sw-widget-icon {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6.33A5.17 5.17 0 007.67 1.5H6.5a5.5 5.5 0 00-5.5 5.5v4.33a.67.67 0 00.67.67H6.33A5.17 5.17 0 0013 6.33z'/%3E%3C/svg%3E") center/14px 14px no-repeat !important;
}

/* Widget body – padding for content area */
.sidebar .widget > ul {
  padding: 1.1rem 1.25rem !important;
}
.sidebar .widget > div:not(.sw-top):not(.widget-title) {
  padding: 1.1rem 1.25rem;
}
.sidebar .widget ul { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }
.sidebar .widget li { margin-bottom: 0 !important; }
.sidebar .widget li a {
  display: block;
  padding: .6rem .25rem;
  text-decoration: none;
  color: var(--gray-600);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.sidebar .widget li + li { border-top: 1px solid var(--gray-100); }
.sidebar .widget li a:hover { color: var(--blue); }

/* Neueste Kommentare – specific styling */
.sidebar .widget_recent_comments .recentcomments {
  padding: .6rem .25rem;
  font-size: .86rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.sidebar .widget_recent_comments .recentcomments + .recentcomments {
  border-top: 1px solid var(--gray-100);
}
.sidebar .widget_recent_comments .recentcomments a {
  display: inline;
  padding: 0;
  color: var(--gray-700);
  font-weight: 600;
  font-size: .86rem;
}
.sidebar .widget_recent_comments .recentcomments a:hover {
  color: var(--blue);
}
.sidebar .widget_recent_comments .comment-author-link a {
  color: var(--blue);
  font-weight: 500;
}

/* ========================================
   BLOG / ARCHIVE
   ======================================== */
.posts-grid {
  max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.post-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-card-image { aspect-ratio: 16/10; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-content { padding: 1.5rem; }
.post-card-meta { font-size: .75rem; color: var(--gray-400); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.post-card-content h3 { margin-bottom: .5rem; }
.post-card-content h3 a { color: var(--gray-900); text-decoration: none; }
.post-card-content h3 a:hover { color: var(--blue); }
.post-card-content p { font-size: .85rem; line-height: 1.7; }
.card-link { color: var(--blue); font-weight: 600; font-size: .85rem; }
.pagination {
  max-width: var(--max-width); margin: 0 auto; padding: 2rem;
  display: flex; justify-content: center; gap: .5rem;
}
.pagination a, .pagination span {
  padding: .5rem 1rem; border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .85rem; color: var(--gray-500);
  text-decoration: none; transition: var(--transition);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ========================================
   ABOUT HERO – Side-by-Side with Blob
   ======================================== */
.about-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  overflow: hidden;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.about-hero-chip {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.about-hero-name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.about-hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.about-hero-photo-area {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-hero-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, var(--blue-100, #dbeafe), var(--blue-50));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: about-blob-morph 8s ease-in-out infinite;
}
@keyframes about-blob-morph {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; }
  33%      { border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%; }
  66%      { border-radius: 40% 50% 60% 40% / 40% 60% 50% 60%; }
}
.about-hero-photo {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 280px;
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  object-fit: cover;
  box-shadow: 0 25px 60px rgba(37, 99, 235, .12);
  border: 5px solid var(--white);
}
.about-hero-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: var(--white);
  border-radius: 14px;
  padding: .75rem 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.about-hero-badge-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.about-hero-badge-label {
  font-size: .7rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.3;
}

/* -- Circle mode for about-hero portrait -- */
.about-hero-photo--circle {
  border-radius: 50%;
}
.about-hero-photo-area--circle .about-hero-badge {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* -- Modern mode for about-hero portrait (Offset Double Frame) -- */
.about-hero-photo--modern {
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(37,99,235,.12);
  border: none;
}
.about-hero-photo-area--modern::before {
  content: '';
  position: absolute;
  width: 290px; height: 290px;
  top: calc(50% + 10px); left: calc(50% + 10px);
  transform: translate(-50%, -50%);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-200, #bfdbfe), var(--blue-100, #dbeafe));
  z-index: 0;
}

/* -- Seriös mode for about-hero portrait (Classic Double Border) -- */
.about-hero-photo-area--serioes {
  padding: 5px;
  background: #fff;
  border: 2px solid var(--gray-300, #d1d5db);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  width: fit-content;
}
.about-hero-photo--serioes {
  border-radius: 4px;
  border: 1px solid var(--gray-200, #e5e7eb);
}

/* -- Neutral mode for about-hero portrait (Soft Rounded) -- */
.about-hero-photo--neutral {
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100, #f3f4f6);
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero { padding: 8rem 0 3rem; }
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .about-hero-photo-area {
    order: -1;
  }
  .about-hero-blob {
    width: 260px;
    height: 260px;
  }
  .about-hero-photo {
    width: 220px;
    height: 220px;
  }
  .about-hero-chip {
    text-align: center;
  }
}

/* ========================================
   KOMPETENZEN – Icon-Karten mit SVG-Illustration
   ======================================== */
.komp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.komp-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.komp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.komp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.komp-card:hover::before { transform: scaleX(1); }
.komp-illus {
  position: absolute;
  top: -10px; right: -30px;
  width: 170px; height: 170px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  transition: opacity .3s;
}
.komp-illus svg { width: 100%; height: 100%; }
.komp-card:hover .komp-illus { opacity: .7; }
.komp-content { position: relative; z-index: 1; }
.komp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
}
.komp-list {
  list-style: none;
  margin: 0; padding: 0;
}
.komp-list li {
  font-size: .85rem;
  color: var(--gray-600);
  padding: .4rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.komp-dot {
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: .5;
}

/* ========================================
   CONTACT PAGE – Hero Split + Form Card
   ======================================== */

/* Hero */
.ct-hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 60%);
  padding: 10rem 2rem 4rem;
}
.ct-hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
}
.ct-portrait {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ct-portrait picture { display: block; }
.ct-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* Kontakt Portrait – Circle mode */
.ct-portrait--circle {
  border-radius: 50%;
  aspect-ratio: 1;
}
.ct-portrait--circle img { border-radius: 50%; object-fit: cover; aspect-ratio: 1; }

/* Kontakt Portrait – Blob mode */
.ct-portrait--blob {
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  overflow: visible;
  box-shadow: none;
}
.ct-portrait-blob {
  position: absolute;
  inset: -15px;
  background: linear-gradient(135deg, rgba(219,234,254,.6), rgba(239,246,255,.4));
  border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  animation: about-blob-morph 8s ease-in-out infinite;
  z-index: 0;
}
.ct-portrait--blob picture {
  position: relative; z-index: 1;
  display: block;
  border-radius: 30% 70% 53% 47% / 52% 36% 64% 48%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(37,99,235,.12);
  border: 4px solid var(--white);
}
.ct-portrait--blob img { border-radius: 0; }

/* Kontakt Portrait – Modern mode (Offset Double Frame) */
.ct-portrait--modern {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.ct-portrait--modern::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  right: -10px; bottom: -10px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-200, #bfdbfe), var(--blue-100, #dbeafe));
  z-index: 0;
}
.ct-portrait--modern picture {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(37,99,235,.12);
}
.ct-portrait--modern img { border-radius: 0; }

/* Kontakt Portrait – Seriös mode (Classic Double Border) */
.ct-portrait--serioes {
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  border: 2px solid var(--gray-300, #d1d5db);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.ct-portrait--serioes picture {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-200, #e5e7eb);
}
.ct-portrait--serioes img { border-radius: 0; }

/* Kontakt Portrait – Neutral mode (Soft Rounded) */
.ct-portrait--neutral {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid var(--gray-100, #f3f4f6);
}
.ct-portrait--neutral img { border-radius: 0; }

.ct-hero-tagline {
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.ct-hero-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.ct-hero-lead {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.ct-hero-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ct-hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--gray-700);
  font-size: .9rem;
  font-weight: 600;
  transition: color .2s;
}
.ct-hero-contact-item:hover { color: var(--blue); }
.ct-hero-contact-icon {
  width: 36px; height: 36px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: background .2s;
}
.ct-hero-contact-icon svg { width: 18px; height: 18px; }
.ct-hero-contact-item:hover .ct-hero-contact-icon {
  background: var(--blue-100);
}

/* Form Section */
.ct-form-section {
  padding: 3rem 2rem;
}
.ct-form-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.ct-form-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}
.ct-form-header-icon {
  width: 44px; height: 44px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.ct-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.ct-form-sub {
  font-size: .85rem;
  color: var(--gray-500);
  margin: .15rem 0 0;
}
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ct-form-group {
  margin-bottom: 1.1rem;
}
.ct-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.ct-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.ct-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.ct-input::placeholder { color: var(--gray-300); }
.ct-textarea {
  resize: vertical;
  min-height: 130px;
}
.ct-form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.25rem 0;
}
.ct-form-check input {
  margin-top: .3rem;
  accent-color: var(--blue);
}
.ct-form-check label {
  font-size: .85rem;
  color: var(--gray-500);
}
.ct-form-check a { color: var(--blue); }
.ct-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ct-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.ct-required-hint {
  font-size: .75rem;
  color: var(--gray-400);
}

/* Contact Form: Error & Loading States */
.ct-field-error .ct-input,
.ct-field-error input[type="checkbox"] + label {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}
.ct-field-error .ct-label {
  color: #ef4444;
}
.ct-submit--loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.ct-submit--loading svg { visibility: hidden; }
.ct-submit--loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-spin .6s linear infinite;
}
@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

/* Contact Form: Success Message */
.ct-form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}
.ct-form-success-icon {
  margin-bottom: 1rem;
}
.ct-form-success h3 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--gray-900, #111827);
}
.ct-form-success p {
  color: var(--gray-500, #6b7280);
  font-size: 1rem;
}

/* Info Section (below form) */
.ct-info-section {
  padding: 0 2rem 4rem;
}
.ct-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .ct-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ct-portrait {
    max-width: 220px;
    margin: 0 auto;
  }
  .ct-hero-contact { justify-content: center; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-form-card { padding: 1.5rem; }
  .ct-info-grid { grid-template-columns: 1fr; }
  .ct-form-header { flex-direction: column; text-align: center; }
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.comment-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.comment-author { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .75rem; color: var(--gray-400); margin-bottom: .75rem; }
.comment-content p { font-size: .9rem; }

/* ========================================
   HINWEIS-BANNER [hinweis] Shortcode
   ======================================== */
.bh-hinweis {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.bh-hinweis:hover {
  transform: translateY(-2px);
}

/* -- Farbvariante: Blau (Standard) -- */
.bh-hinweis--blau {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, .2);
}
.bh-hinweis--blau:hover { box-shadow: 0 8px 32px rgba(37, 99, 235, .3); }
.bh-hinweis--blau .bh-hinweis-titel,
.bh-hinweis--blau .bh-hinweis-text { color: #fff; }
.bh-hinweis--blau .bh-hinweis-text { opacity: .85; }
.bh-hinweis--blau .bh-hinweis-icon { background: rgba(255,255,255,.15); color: #fff; }
.bh-hinweis--blau .bh-hinweis-btn {
  background: #fff;
  color: var(--blue);
}
.bh-hinweis--blau .bh-hinweis-btn:hover { background: var(--blue-50); }

/* -- Farbvariante: Dunkel -- */
.bh-hinweis--dunkel {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-900) 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .2);
}
.bh-hinweis--dunkel:hover { box-shadow: 0 8px 32px rgba(15, 23, 42, .3); }
.bh-hinweis--dunkel .bh-hinweis-titel,
.bh-hinweis--dunkel .bh-hinweis-text { color: #fff; }
.bh-hinweis--dunkel .bh-hinweis-text { opacity: .7; }
.bh-hinweis--dunkel .bh-hinweis-icon { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.bh-hinweis--dunkel .bh-hinweis-btn {
  background: var(--blue);
  color: #fff;
}
.bh-hinweis--dunkel .bh-hinweis-btn:hover { background: var(--blue-700); }

/* -- Farbvariante: Gradient -- */
.bh-hinweis--gradient {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 50%, var(--blue-50) 100%);
  border: 1px solid var(--blue-200);
  box-shadow: 0 2px 12px rgba(37, 99, 235, .08);
}
.bh-hinweis--gradient:hover { box-shadow: 0 6px 24px rgba(37, 99, 235, .14); }
.bh-hinweis--gradient .bh-hinweis-titel { color: var(--gray-900); }
.bh-hinweis--gradient .bh-hinweis-text { color: var(--gray-500); }
.bh-hinweis--gradient .bh-hinweis-icon { background: var(--blue); color: #fff; }
.bh-hinweis--gradient .bh-hinweis-btn {
  background: var(--blue);
  color: #fff;
}
.bh-hinweis--gradient .bh-hinweis-btn:hover { background: var(--blue-700); }

/* Layout */
.bh-hinweis-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
}
.bh-hinweis-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bh-hinweis-body { flex: 1; min-width: 0; }
.bh-hinweis-titel {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .2rem;
  line-height: 1.3;
}
.bh-hinweis-text {
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}
.bh-hinweis-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.bh-hinweis-btn:hover { text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  .bh-hinweis-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .bh-hinweis-btn { width: 100%; justify-content: center; }
}

/* ========================================
   WORDPRESS CORE
   ======================================== */
.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption-text { font-size: .8rem; color: var(--gray-400); margin-top: .5rem; text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.gallery-item img { border-radius: var(--radius-sm); }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px;
  overflow: hidden; word-wrap: normal;
}

/* ========================================
   RESPONSIVE – TABLET
   ======================================== */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .about-img-wrap { max-width: 450px; margin: 0 auto; }
  .about-img-wrap--blob { max-width: 350px; }
  .about-skills { justify-content: center; }
  .about-badge { right: 0; }
  .footer-content { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .page-with-sidebar .content-area { grid-template-columns: 1fr; }
  .rg-ov-cta { gap: 2rem; padding: 2rem; }
  .rg-ov-cta-portrait { width: 130px; height: 130px; }
}

/* ========================================
   RESPONSIVE – MOBILE
   ======================================== */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
  }
  .site-header.scrolled {
    padding: 0.65rem 1rem;
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
  }
  .header-inner { gap: 0.75rem; }
  /* Ensure logo doesn't push toggle off-screen */
  .site-logo { flex: 1; min-width: 0; overflow: hidden; }
  .site-logo a { overflow: hidden; }
  .site-logo .logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
  .site-logo .site-title { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-logo .site-description { display: none; }
  /* Toggle always visible and accessible */
  .menu-toggle { display: flex; flex-shrink: 0; padding: 10px; margin-right: -4px; }
  .menu-toggle span { width: 26px; height: 2.5px; }
  /* Fullscreen mobile nav overlay */
  .main-navigation {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: #ffffff; z-index: 9999;
  }
  .main-navigation.active {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
  }
  .main-navigation ul { flex-direction: column; gap: 1.5rem; text-align: center; }
  .main-navigation ul li a { font-size: 1.15rem; color: var(--gray-900); }
  .main-navigation ul li ul.sub-menu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    background: transparent; padding: .5rem 0 0;
  }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .menu-toggle.active span:nth-child(2) { transform: scaleX(0); }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  .hero { padding: 7rem 1.5rem 4rem; }
  .areas-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 2rem; }
  .cta-banner { border-radius: var(--radius); padding: 3rem 1.5rem; }
  .cta-section { padding: 4rem 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Rechtsgebiet hero: hide bg illustration on mobile */
  .rechtsgebiet-bg-illus { display: none; }

  /* Remove double horizontal padding on mobile (.section + .container) */
  .section { padding-left: 0 !important; padding-right: 0 !important; }

  /* Break long German compound words (e.g. Nahrungsergänzungsmittel) */
  h1, h2, h3 {
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  /* Prevent invisible content on mobile: show .fade immediately in grids */
  .rg-content-grid .fade,
  .hcc-landing-grid .fade,
  .lp-grid .fade {
    opacity: 1 !important;
    transform: none !important;
  }

  /* ---- Content + Sidebar grids → single column on mobile ---- */
  .rg-content-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    min-width: 0;
  }
  .rg-content-grid > * { min-width: 0; }
  .rg-content-grid > .sidebar {
    position: static !important;
    padding-top: 0 !important;
  }
  .page-with-sidebar .content-area {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 1rem !important;
  }

  /* Page-content / entry-content: reduce padding on mobile */
  .page-content, .entry-content {
    padding: 1.5rem 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* TOC: ensure it doesn't overflow on mobile */
  .toc { word-break: break-word; max-width: 100%; box-sizing: border-box; }
  .toc ul { padding: .75rem .75rem; }
  .toc .toc-header-bar { padding: .85rem 1rem; gap: .4rem; }
  .toc .toc-header-bar .toc-title { font-size: .78rem; }
  .toc li a { padding: .55rem .35rem; font-size: .82rem; gap: .4rem; }
  .toc li.sub a { padding-left: 1.25rem; font-size: .78rem; }

  /* Werdegang timeline → stack on mobile */
  .rg-content-grid div[style*="140px"] {
    grid-template-columns: 1fr !important;
    gap: .5rem !important;
  }

  /* Kompetenzen cards: allow narrower min-width on mobile */
  .komp-grid {
    grid-template-columns: 1fr !important;
  }
  .komp-card {
    padding: 1.5rem 1.25rem;
  }

  /* CTA box inside rechtsgebiet pages */
  .rg-cta { padding: 1.5rem 1.25rem; }

  .rg-ov-cta {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .rg-ov-cta-portrait { width: 120px; height: 120px; margin: 0 auto; }
  .rg-ov-cta-actions { justify-content: center; }
  .rg-ov-cta-text { max-width: none; }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column; width: 100%;
    max-width: 320px; margin-left: auto; margin-right: auto;
  }
  .hero-btns a, .hero-btns .btn { width: 100%; text-align: center; justify-content: center; }
  .about-badge { position: relative; bottom: auto; right: auto; margin: 1rem auto 0; display: inline-block; }
  .about-img-wrap { text-align: center; }
}

/* ========================================
   HCC LANDING PAGE
   ======================================== */

/* Hero */
.hcc-hero {
  padding: 10rem 0 0;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  position: relative;
  overflow: clip;
}
.hcc-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue-50);
  color: var(--blue);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  padding: .35rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hcc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.hcc-hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Two-column layout */
.hcc-landing-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
/* Override global .page-content / .entry-content restrictions inside the grid */
.hcc-landing-grid .page-content {
  max-width: none;
  margin: 0;
  padding: 0;
}
.hcc-landing-grid .entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Sticky sidebar */
.hcc-sidebar-sticky {
  position: sticky;
  top: 128px;
  align-self: start;
  padding-top: 1rem;
}

/* Sidebar portrait */
.sw-portrait { text-align: center; margin-bottom: 1rem; }
.sw-portrait-img {
  width: 100%; max-width: 200px;
  border-radius: var(--radius);
  margin-bottom: .5rem;
}
.sw-portrait-name {
  font-size: .95rem; font-weight: 700;
  color: var(--gray-900);
}
.sw-portrait-role {
  font-size: .82rem; color: var(--gray-500);
  margin: 0;
}

/* Sidebar skills */
.sw-skills { display: flex; flex-wrap: wrap; gap: .4rem; }
.sw-skill {
  background: var(--blue-50);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: var(--radius-full);
}
.sw-text {
  font-size: .88rem; font-weight: 500;
  color: var(--gray-700);
}
.sw-cta { padding: 0 1.25rem 1.25rem; }

/* Table of Contents */
.hcc-toc {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hcc-toc-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--gray-50);
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}
.hcc-toc-header h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 0;
}
.hcc-toc-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.hcc-toc-list { padding: .75rem 1.25rem; }
.hcc-toc-list a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem .25rem;
  text-decoration: none;
  color: var(--gray-600);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.hcc-toc-list a + a { border-top: 1px solid var(--gray-100); }
.hcc-toc-list a:hover { color: var(--blue); }
.hcc-toc-num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--blue);
  opacity: .5;
  min-width: 18px;
}

/* Info box */
.info-box, .warning-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h4, .warning-box h4 {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .5rem;
}
.info-box p:last-child, .warning-box p:last-child { margin-bottom: 0; }
.warning-box {
  background: #fffbeb;
  border-color: #fde68a;
}
.warning-box h4 { color: #92400e; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.compare-table th {
  text-align: left;
  font-weight: 700;
  color: var(--gray-700);
  padding: .75rem 1rem;
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}
.compare-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: top;
}
.badge-ok {
  display: inline-block;
  background: #dcfce7; color: #166534;
  padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 600;
}
.badge-fail {
  display: inline-block;
  background: #fef2f2; color: #991b1b;
  padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 600;
}

/* Inline CTA */
.inline-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin: 3rem 0;
}
.inline-cta-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.inline-cta-text h3 { margin-bottom: .3rem; }
.inline-cta-text p { font-size: .88rem; margin-bottom: 0; }
.inline-cta .btn { margin-left: auto; white-space: nowrap; }

/* Related topics grid */
.hcc-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .hcc-landing-grid { grid-template-columns: 1fr 260px; gap: 2rem; }
}
@media (max-width: 900px) {
  .hcc-landing-grid { grid-template-columns: 1fr; }
  .hcc-sidebar-sticky { position: static; order: 99; }
  .hcc-topics-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hcc-hero { padding: 7rem 1.5rem 0; }
  .hcc-topics-grid { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; text-align: center; }
  .inline-cta .btn { margin-left: 0; }
  .compare-table { font-size: .82rem; }

  /* Checker landing grid: prevent overflow on mobile */
  .hcc-landing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    min-width: 0;
  }
  .hcc-landing-grid > * { min-width: 0; }
  .hcc-sidebar-sticky {
    position: static !important;
    order: 99;
    padding-top: 0;
  }

  /* TOC on checker pages: fit within mobile viewport */
  .hcc-toc { max-width: 100%; box-sizing: border-box; }
  .hcc-toc-list { padding: .5rem .75rem; }
  .hcc-toc-list a { font-size: .82rem; padding: .4rem .2rem; gap: .5rem; }
  .hcc-toc-header { padding: .75rem 1rem; }

  /* Sidebar widget: fit within mobile viewport */
  .sw { max-width: 100%; box-sizing: border-box; }
}

/* =========================================================================
   Landingpage Template
   ========================================================================= */
.lp-hero {
  padding: 10rem 2rem 0;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  position: relative;
  overflow: clip;
}
.lp-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.lp-grid > .page-content {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
.lp-grid > .page-content .entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Kacheln inside landing page: remove extra padding/max-width so they use full column width */
.lp-grid .bk-grid {
  max-width: none;
  padding: 0;
  margin: 2rem 0;
}
/* 3-col Kacheln need more room; in the LP content column switch to 1-col earlier */
.lp-grid .bk-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 1200px) {
  .lp-grid .bk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lp-grid .bk-grid--3 { grid-template-columns: 1fr; }
}
.lp-sidebar {
  position: sticky;
  top: 128px;
  align-self: start;
  padding-top: 1rem;
}
@media (max-width: 1100px) {
  .lp-grid { grid-template-columns: 1fr 280px; gap: 2rem; }
}
@media (max-width: 900px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-grid > * { min-width: 0; }
  .lp-sidebar { position: static; order: -1; }
  .lp-hero { padding: 7rem 1.5rem 0; }
}

/* =========================================================================
   Auto-Linker – dezente Inline-Links
   ========================================================================= */
a.bal-auto-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--gray-300, #d1d5db);
  background: transparent;
  border-radius: 2px;
  padding: 0 1px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
a.bal-auto-link:hover {
  color: inherit;
  border-bottom-color: var(--gray-500, #6b7280);
  border-bottom-style: solid;
  background-color: var(--blue-50, #eff6ff);
}

/* =========================================================================
   Rechtsgebiete-Übersicht
   ========================================================================= */
.rg-overview-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.rg-overview-sidebar {
  position: sticky;
  top: 128px;
}
@media (max-width: 1000px) {
  .rg-overview-layout {
    grid-template-columns: 1fr;
  }
  .rg-overview-sidebar {
    position: static;
    order: 2;
  }
  .rg-overview-main {
    order: 1;
  }
}

/* ================================================================
   Hero: sofort sichtbar (kein JS-fade), sanfte CSS-Animation
   ================================================================ */
.hero-portrait {
  animation: heroFadeIn .8s ease-out both;
}
.hero-headline {
  animation: heroFadeIn .8s ease-out .15s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   Reduced Motion & Mobile Animation Performance
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 768px) {
  /* Dauerhafte Hintergrund-Animationen auf Mobile deaktivieren */
  .hero-circle,
  .hero-portrait-blob,
  .cta-icon-pulse,
  .about-blob {
    animation: none !important;
  }
  /* Parallax auf Mobile deaktivieren */
  .hero-circles { transform: none !important; }
}
