/*
Theme Name: Goldmay
Theme URI: https://goldmay.de
Author: Goldmay Team
Author URI: https://goldmay.de
Description: Professionelles und minimales WordPress-Theme für Goldmay Betreuungsservice. Vollständig optimiert für AEO, GEO und SEO mit Rank Math Integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: goldmay
Tags: minimal, professional, betreuung, services, tailwind, german
*/

/* ============================================================
   CUSTOM PROPERTIES & BASE
   ============================================================ */
:root {
  --red:        #ae856f;
  --red-dark:   #715446;
  --red-light:  #c49a87;
  --dark:       #111111;
  --dark-2:     #1F1F1F;
  --gray-100:   #F5F5F5;
  --gray-200:   #E5E7EB;
  --gray-400:   #9CA3AF;
  --gray-500:   #6B7280;
  --gray-700:   #374151;
  --white:      #fbfaf9;
  --transition: 0.25s ease;
  --gutter:     1.5rem;
  --content-max: 1200px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 18, 48, 0.25);
  color: var(--white) !important;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red) !important;
  text-decoration: none;
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark) !important;
  border-color: var(--dark);
}
.btn-outline-dark:hover {
  background: var(--dark);
  color: var(--white) !important;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fefcfc;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  flex-shrink: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark) !important;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.site-logo span { color: var(--red); }
.site-logo-img { height: 70px; width: auto; display: block; }
.footer-brand .site-logo-img { height: 48px; }

#primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#primary-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a,
#primary-nav .current_page_item > a {
  color: var(--red);
}

.header-cta { flex-shrink: 0; }

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
  transform-origin: center;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   OFF-CANVAS MENU
   ============================================================ */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#overlay.open {
  opacity: 1;
  pointer-events: all;
}

#off-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
#off-canvas.open { transform: translateX(0); }

.off-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

#close-canvas {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dark);
  transition: background var(--transition);
}
#close-canvas:hover { background: var(--gray-200); }

.off-canvas-nav {
  padding: 1.5rem;
  flex: 1;
}
.off-canvas-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.off-canvas-nav li { border-bottom: 1px solid var(--gray-200); }
.off-canvas-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--dark);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: color var(--transition);
}
.off-canvas-nav a:hover { color: var(--red); }

.off-canvas-cta {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.off-canvas-cta .btn { display: block; text-align: center; margin-bottom: 1.25rem; }

.off-canvas-contact { font-size: 0.875rem; color: var(--gray-500); }
.off-canvas-contact a {
  color: var(--gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-weight: 500;
}
.off-canvas-contact a:hover { color: var(--red); }
.off-canvas-contact svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 5rem 0; }

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================================
   LUCIDE ICONS
   ============================================================ */
.gm-icon,
.gm-icon svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  vertical-align: middle;
  flex-shrink: 0;
}
/* Larger icons in specific contexts */
.usp-icon.gm-icon,
.usp-icon.gm-icon svg   { width: 28px; height: 28px; }
.service-card-icon .gm-icon,
.service-card-icon .gm-icon svg { width: 26px; height: 26px; }
.contact-icon .gm-icon,
.contact-icon .gm-icon svg { width: 20px; height: 20px; }
.value-check .gm-icon,
.value-check .gm-icon svg  { width: 14px; height: 14px; stroke-width: 2.5; }
.faq-icon .gm-icon,
.faq-icon .gm-icon svg     { width: 14px; height: 14px; }
.service-card-link .gm-icon,
.service-card-link .gm-icon svg { width: 14px; height: 14px; }

.text-center .section-lead { margin: 0 auto; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-placeholder {
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.8125rem;
  font-weight: 500;
  gap: 0.5rem;
  border: 2px dashed var(--gray-200);
  text-align: center;
  padding: 2rem;
}
.img-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-2);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.3) 0%, rgba(17,17,17,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.hero-lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-page {
  min-height: 40vh;
  padding-top: 80px;
  padding-bottom: 0;
  background: #fff;
  align-items: flex-end;
}
.hero-page .hero-content { padding: 3rem var(--gutter) 4rem; }
.hero-page h1 { font-size: clamp(1.75rem, 4vw, 3rem); }

/* ============================================================
   SECTION: USP STRIP
   ============================================================ */
.usp-strip {
  background: var(--red);
  padding: 0;
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.usp-item {
  padding: 2rem 2rem;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.usp-item:last-child { border-right: none; }
.usp-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  opacity: 0.9;
}
.usp-item h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.usp-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================================
   SECTION: SERVICES CARDS
   ============================================================ */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card-body {
  padding: 2rem 1.75rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-icon {
  width: 52px;
  height: 52px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--red);
}
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1875rem; }
.service-card p { color: var(--gray-500); font-size: 0.9375rem; flex: 1; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============================================================
   SECTION: ABOUT TEASER
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-split-reverse { direction: rtl; }
.about-split-reverse > * { direction: ltr; }

.about-img-wrap {
  position: relative;
}
.about-img-wrap .img-placeholder {
  aspect-ratio: 4/5;
}
.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--red);
  z-index: -1;
}

.value-list { margin-top: 1.5rem; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.value-check {
  width: 22px;
  height: 22px;
  background: var(--red);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}
.value-check svg { width: 12px; height: 12px; color: white; }
.value-text { font-size: 0.9375rem; color: var(--gray-700); font-weight: 500; }

/* ============================================================
   SECTION: STATS
   ============================================================ */
.stats-section { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--gray-500); font-size: 0.9375rem; }

/* ============================================================
   SECTION: FAQ (AEO)
   ============================================================ */
.faq-section { background: var(--gray-100); }
.faq-wrap { max-width: 760px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); background: var(--white); margin-bottom: 4px; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-question.active { color: var(--red); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.faq-answer.open { display: block; }

/* ============================================================
   SECTION: CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--red);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner .container { max-width: 700px; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.125rem; }

/* ============================================================
   SECTION: TEAM
   ============================================================ */
.team-card { text-align: center; }
.team-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.25rem;
}
.team-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* ============================================================
   SECTION: PROCESS STEPS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step-item { position: relative; padding: 2rem; background: var(--white); border: 1px solid var(--gray-200); }
.step-number {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-item h3 { margin-bottom: 0.75rem; font-size: 1.125rem; }
.step-item p { font-size: 0.9375rem; color: var(--gray-500); margin: 0; }

/* ============================================================
   SECTION: CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 0.25rem; font-weight: 600; }
.contact-info-item p { color: var(--dark); font-weight: 500; margin: 0; font-size: 0.9375rem; }

.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--dark); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  outline: none;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  height: 3.125rem;
  cursor: pointer;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--red); }
.contact-form textarea { height: 140px; resize: vertical; }
.privacy-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.privacy-group .form-checkbox { width: auto; flex-shrink: 0; margin-top: 0.2rem; }
.privacy-group label { display: inline; font-weight: 400; margin-bottom: 0; }
.map-placeholder { width: 100%; height: 300px; margin-top: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #fff; color: var(--gray-500); border-top: 1px solid var(--gray-200); }

.footer-top {
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }

.footer-brand .site-logo { margin-bottom: 1.25rem; display: block; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.75; }

.footer-col h4 {
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a { color: var(--gray-500); font-size: 0.875rem; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--dark); }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.footer-social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.footer-contact-item a { color: var(--gray-500); }
.footer-contact-item a:hover { color: var(--dark); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--gray-400);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--dark); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: '|'; margin: 0 0.75rem; color: var(--gray-200); }
.footer-links a { display: block; }

/* ============================================================
   PAGE CONTENT (WordPress default pages)
   ============================================================ */
.page-content { padding: 5rem 0; }
.page-content-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.page-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.5rem; color: var(--gray-700); }

/* ============================================================
   BLOG — CARD
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.blog-card:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.blog-card-img-wrap { display: block; overflow: hidden; }
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.03); }
.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-card-meta a { color: var(--red); text-decoration: none; font-weight: 600; }
.blog-card-meta a:hover { color: var(--red-dark); }
.blog-card-meta span { color: var(--gray-200); }
.blog-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-title a { color: var(--dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--red); }
.blog-card-excerpt {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-decoration: none;
  margin-top: auto;
}
.blog-card-link:hover { color: var(--red-dark); }
.blog-card-link .gm-icon svg { width: 14px; height: 14px; }

/* Blog page header */
.blog-page-header {
  background: #fff;
  padding: calc(80px + 4rem) 0 4rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

/* Archive label strip */
.archive-label {
  display: inline-block;
  background: #F5F5F5;
  padding: 0.875rem 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}
.archive-label strong { color: var(--dark); }

/* Blog pagination */
.blog-pagination {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links { display: flex; align-items: center; gap: 0.375rem; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition);
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.blog-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  cursor: default;
}
.blog-pagination .prev,
.blog-pagination .next {
  width: auto;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Blog no-posts */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--gray-500);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  background: #fff;
  padding: calc(80px + 3.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.single-post-meta a { color: var(--red); text-decoration: none; font-weight: 600; }
.single-post-meta span { color: var(--gray-200); }
.single-post-featured {
  max-width: 900px;
  margin: -3rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.single-post-featured img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}
.single-post-content {
  padding: 4rem 0 5rem;
}
.single-post-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.single-post-inner .entry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.single-post-inner .entry-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.single-post-inner .entry-content p { color: var(--gray-700); line-height: 1.85; margin-bottom: 1.25rem; font-size: 1.0625rem; }
.single-post-inner .entry-content ul,
.single-post-inner .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-post-inner .entry-content li { color: var(--gray-700); margin-bottom: 0.5rem; line-height: 1.7; }
.single-post-inner .entry-content img { max-width: 100%; height: auto; }
.single-post-inner .entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #F5F5F5;
  font-style: italic;
  color: var(--gray-700);
}
.post-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.post-tags-label { font-size: 0.875rem; color: var(--gray-400); margin-right: 0.5rem; }
.author-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #F5F5F5;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.author-box img { flex-shrink: 0; border-radius: 50%; }
.author-box-name { font-weight: 700; margin-bottom: 0.25rem; color: var(--dark); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.author-box-bio { color: var(--gray-500); font-size: 0.9375rem; margin: 0; }
.post-nav {
  background: #F5F5F5;
  padding: 3rem 0;
  margin-top: 3rem;
}
.post-nav .nav-links { display: flex; justify-content: space-between; gap: 2rem; }
.post-nav .nav-previous,
.post-nav .nav-next { flex: 1; }
.post-nav .nav-next { text-align: right; }
.post-nav-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}
.post-nav a { color: var(--dark); text-decoration: none; font-weight: 600; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1rem; }
.post-nav a:hover { color: var(--red); }

/* Related posts */
.related-posts {
  background: #F5F5F5;
  padding: 4rem 0;
}

/* Responsive blog */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav .nav-links { flex-direction: column; }
  .post-nav .nav-next { text-align: left; }
  .author-box { flex-direction: column; }
}

/* ============================================================
   SINGLE / BLOG (legacy)
   ============================================================ */
.post-thumbnail { width: 100%; aspect-ratio: 16/7; object-fit: cover; margin-bottom: 2rem; }
.post-meta { color: var(--gray-400); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ============================================================
   404
   ============================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}
.error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  display: block;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  transform: translateY(10px);
}
#scroll-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#scroll-top:hover { background: var(--red-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-split { gap: 3rem; }
  .contact-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  #primary-nav { display: none; }
  .header-cta { display: none; }
  #hamburger { display: flex; }

  .hero { min-height: 90vh; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .usp-grid { grid-template-columns: 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .usp-item:last-child { border-bottom: none; }

  .grid-2, .grid-3, .grid-4, .about-split, .steps-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-split-reverse { direction: ltr; }
  .about-accent { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 1rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================================
   EXTRACTED INLINE STYLES
   ============================================================ */

/* Search results highlight */
.search-highlight { color: var(--red); }

/* Blog post card title link */
.post-card-title a { color: #111; text-decoration: none; }
.post-card-title a:hover { color: var(--red); }

/* Tag pills in single posts */
.tag-link {
  display: inline-block;
  background: #F5F5F5;
  color: #374151;
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.tag-link:hover { background: var(--red); color: #fff; }

/* White CTA button (on coloured/dark backgrounds) */
.btn-white {
  background: #fff;
  color: var(--red);
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 700;
  padding: 0.875rem 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid #fff;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-white:hover { background: transparent; color: #fff; }

/* Contact sidebar CTA box */
.contact-cta-box {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: #F5F5F5;
  border-left: 3px solid var(--red);
}

/* Required field asterisk */
.required-mark { color: var(--red); }

/* Checkbox with theme accent */
.form-checkbox { margin-top: 3px; width: auto; accent-color: var(--red); }

/* Value cards (Unsere Werte) */
.value-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-top: 3px solid var(--red);
  text-align: center;
}
.value-card-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--red);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #off-canvas, #overlay, #scroll-top { display: none; }
  body { padding-top: 0; }
}
