/* ============================================================
   Hübner & Klöpfer Services GbR – Enterprise Design System
   Farben aus dem Logo: Dunkelgrün, Orange, Weiß
   ============================================================ */

/* --- Reset & Base --- */
:root {
  --green-900: #14532D;
  --green-800: #1A6B35;
  --green-700: #22803D;
  --green-600: #2D9B4E;
  --green-500: #3BB260;
  --green-100: #E8F5EC;
  --green-50: #F0FAF3;

  --orange-700: #C47109;
  --orange-600: #D4820C;
  --orange-500: #E8950F;
  --orange-400: #F5A623;
  --orange-100: #FFF4E0;
  --orange-50: #FFFAF0;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;

  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .10);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: .22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  color: var(--gray-600);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section--green {
  background: var(--green-50);
}

.section--dark {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
  color: var(--white);
}

.section--dark p {
  opacity: .85;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  font-size: 15px;
  color: var(--gray-900);
  line-height: 1.25;
}

.logo-text small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
}

.nav a:hover {
  color: var(--green-700);
  background: var(--green-50);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: var(--gray-700);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 107, 53, .3);
}

.btn--primary:hover {
  background: var(--green-800);
  box-shadow: 0 4px 16px rgba(26, 107, 53, .35);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--white);
  color: var(--green-700);
  border: 2px solid var(--green-700);
}

.btn--secondary:hover {
  background: var(--green-50);
}

.btn--orange {
  background: var(--orange-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212, 130, 12, .3);
}

.btn--orange:hover {
  background: var(--orange-700);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn--ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-50);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn--block {
  width: 100%;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  background:
    linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 155, 78, .08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--green-700);
}

.hero .lead {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
}

.hero-photo .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(0deg, rgba(20, 83, 45, .9) 0%, transparent 100%);
  color: var(--white);
}

.hero-photo .overlay strong {
  font-size: 16px;
}

.hero-photo .overlay span {
  font-size: 13px;
  opacity: .85;
}

.trust-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--green-600);
  flex-shrink: 0;
}

/* --- Stats / KPIs --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

.stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-700);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 4px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-icon--green {
  background: var(--green-100);
  color: var(--green-700);
}

.card-icon--orange {
  background: var(--orange-100);
  color: var(--orange-600);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
}

.card .btn {
  margin-top: 16px;
}

/* Service cards with image */
.service-card {
  overflow: hidden;
  padding: 0;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card .service-card-body {
  padding: 24px;
}

.service-card .service-card-body h3 {
  margin-bottom: 8px;
}

.service-card .service-card-body p {
  font-size: 14px;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

/* --- Process Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 800;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
}

.cta-banner .btn--orange {
  flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
}

.contact-item span {
  font-size: 14px;
  color: var(--gray-500);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: var(--white);
  font: inherit;
  font-size: 15px;
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 155, 78, .12);
}

textarea.form-input {
  min-height: 130px;
  resize: vertical;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--green-600);
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--green-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 40px;
}

.footer-brand span {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox .frame {
  max-width: min(1100px, 94vw);
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--gray-900);
}

.lightbox .frame img {
  width: 100%;
  height: auto;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, .25);
}

#lbClose {
  top: 12px;
  right: 12px;
}

#lbBack {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

body.modal-open {
  overflow: hidden;
}

/* --- Subpage Hero --- */
.subpage-hero {
  padding: 120px 0 48px;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}

.subpage-hero .breadcrumb {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.subpage-hero .breadcrumb a {
  color: var(--green-700);
}

.subpage-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-hero h1 {
  margin-bottom: 16px;
}

.subpage-hero .lead {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 660px;
}

/* Prose content for subpages */
.prose {
  max-width: 760px;
}

.prose p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
}

.prose h2 {
  margin: 40px 0 16px;
}

.prose h3 {
  margin: 32px 0 12px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.prose ul li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--gray-600);
  list-style: disc;
}

.prose ul li::marker {
  color: var(--green-600);
}

/* --- Section headers --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .overline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-600);
  margin-bottom: 8px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-photo img {
    height: 360px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .header-inner {
    height: 64px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .card-grid,
  .gallery-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 72px 0 32px;
  }

  .hero-photo img {
    height: 260px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  input,
  textarea,
  button {
    font-size: 16px;
  }
}