/* ============================================================
   AFELLAH HAUSTECHNIK – Design System
   ============================================================ */

:root {
  --orange:      #E8611A;
  --orange-dark: #C04E0F;
  --orange-light:#FFF3EC;
  --dark:        #1A1A1A;
  --dark-2:      #2A2A2A;
  --dark-3:      #3A3A3A;
  --ink:         #1A1A1A;
  --ink-2:       #2D2D2D;
  --ink-3:       #5A5A5A;
  --mute:        #9A9A9A;
  --hair:        #E5E5E5;
  --paper:       #FFFFFF;
  --paper-2:     #F7F7F7;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,.12);
  --radius:      6px;
  --radius-lg:   10px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 72px 0; }
.bg-light { background: var(--paper-2); }
.bg-dark { background: var(--dark); color: #fff; }
.section-header { margin-bottom: 48px; text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header .lead { max-width: 640px; margin: 12px auto 0; }

/* ---- Typography ---- */
h1 { font-size: 46px; font-weight: 700; }
h2 { font-size: 34px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.lead { font-size: 16px; line-height: 1.7; color: var(--ink-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap; font-family: inherit;
}
.btn-primary {
  background: var(--orange); color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline-dark {
  background: transparent; color: var(--ink);
  border-color: var(--hair);
}
.btn-outline-dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 15px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 100;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo-link { flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: color .2s; padding: 6px 12px; border-radius: 4px;
}
.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); background: var(--orange-light); }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; padding: 4px 8px; color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding: 72px 0 64px;
  background: var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 16px; }
.hero-text h1 { margin-bottom: 20px; color: var(--ink); }
.hero-text .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Subpage hero ---- */
.hero-sub { padding: 56px 0; background: var(--paper); }
.hero-compact { padding: 56px 0; text-align: center; }
.hero-info-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--paper); padding: 28px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust-grid { display: flex; gap: 0; justify-content: center; }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 40px; flex: 1; max-width: 320px;
}
.trust-item + .trust-item {
  border-left: 1px solid var(--hair);
}
.trust-icon-box {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 20px;
}
.trust-icon-box svg { width: 22px; height: 22px; }
.trust-item-text { display: flex; flex-direction: column; }
.trust-item-label { font-size: 11px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.trust-item-value { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ============================================================
   TWO-COL SECTIONS
   ============================================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.two-col-text-right { direction: rtl; }
.two-col-text-right > * { direction: ltr; }
.col-text .eyebrow { margin-bottom: 12px; }
.col-text h2 { margin-bottom: 16px; }
.col-text p { color: var(--ink-3); font-size: 15px; }
.col-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.col-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Check list ---- */
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.check-list li::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--orange); color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: 700;
  margin-top: 2px;
}

/* ============================================================
   LEISTUNGEN CARDS
   ============================================================ */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.service-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--hair);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.service-icon svg { width: 26px; height: 26px; }
.service-icon {
  width: 52px; height: 52px;
  background: var(--orange-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-size: 24px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.service-tag {
  display: inline-block; margin-top: 12px;
  padding: 3px 10px;
  background: var(--orange-light); color: var(--orange);
  border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ============================================================
   SCHWERPUNKT / PROCESS
   ============================================================ */
.process-intro {
  text-align: center; margin-bottom: 48px;
}
.process-intro .tag {
  display: inline-block; padding: 4px 14px;
  background: var(--orange); color: #fff;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  margin-bottom: 16px;
}
.process-intro h2 { font-size: 30px; max-width: 640px; margin: 0 auto; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--hair);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--ink-3); }
.pill {
  display: inline-block; margin-top: 14px;
  padding: 5px 14px;
  background: var(--dark); color: #fff;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* ============================================================
   WAS UNS UNTERSCHEIDET
   ============================================================ */
.unterscheidet-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.unterscheidet-left h2 { margin-bottom: 16px; }
.unterscheidet-left p { color: var(--ink-3); font-size: 15px; margin-bottom: 16px; }

.trust-badges { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.trust-badge {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--hair);
}
.trust-badge-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--orange); color: #fff;
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
}
.trust-badge-icon svg { width: 18px; height: 18px; }
.trust-badge-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; text-transform: none; letter-spacing: 0; }
.trust-badge-text p { font-size: 13px; color: var(--ink-3); margin: 0; }

.unterscheidet-right { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.unterscheidet-right img { width: 100%; }

/* Stats */
.stats-bar {
  display: flex; gap: 48px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--hair);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-size: 56px; font-weight: 700; line-height: 1;
  color: var(--orange);
}
.stat-label { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* ============================================================
   TESTIMONIALS (dark)
   ============================================================ */
.testimonials-section {
  background: var(--dark); padding: 72px 0;
}
.testimonials-section .section-header .eyebrow { color: var(--orange); }
.testimonials-section .section-header h2 { color: #fff; }
.testimonials-section .section-header .lead { color: rgba(255,255,255,.6); }

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
}
.stars { color: var(--orange); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.quote {
  font-size: 14px; font-style: italic; line-height: 1.7;
  color: rgba(255,255,255,.75); margin-bottom: 16px;
}
.quote-mark { color: var(--orange); font-size: 24px; line-height: 1; display: block; margin-bottom: 8px; }
.author { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.author-role { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */
.contact-section { padding: 72px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start;
}
.contact-left h2 { font-size: 28px; margin-bottom: 14px; }
.contact-left p { color: var(--ink-3); font-size: 15px; }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-info-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2);
}
.contact-info-item strong { color: var(--ink); min-width: 110px; flex-shrink: 0; }

.contact-hours { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair); }
.contact-hours h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); padding: 5px 0; border-bottom: 1px solid var(--hair); }
.hours-row:last-child { border-bottom: none; }
.hours-row strong { color: var(--ink-2); }

/* Form */
.contact-form-box {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--hair);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--hair);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--paper); color: var(--ink);
  transition: border-color .2s; width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,97,26,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--mute); margin-top: 10px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 38px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.footer-brand .footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.footer-brand .footer-contact a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-brand .footer-contact a:hover { color: var(--orange); }
.footer-hours { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.8; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-size: 13px; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col li a:hover { color: var(--orange); }
.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: 12px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 12px;
}
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom nav a:hover { color: rgba(255,255,255,.7); }

/* Agency Badge im Footer */
.nf-footer-badge { position: relative; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.nf-footer-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: nf-spin 12s linear infinite; }
.nf-footer-ring-text { font-size: 10px; font-weight: 700; letter-spacing: .05em; fill: rgba(255,255,255,.7); font-family: system-ui, sans-serif; }
.nf-footer-logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }
.nf-footer-badge:hover .nf-footer-ring { animation-duration: 4s; }
@keyframes nf-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   SUBPAGE STYLES
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--hair); border-radius: var(--radius);
  background: var(--paper); overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px; font-weight: 600; font-size: 15px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--orange);
  font-weight: 300; flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--orange); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--ink-3); margin: 0; }

.foerder-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.foerder-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--orange-light);
  border-radius: var(--radius); border-left: 3px solid var(--orange);
}
.foerder-pct { font-size: 20px; font-weight: 700; color: var(--orange); min-width: 52px; flex-shrink: 0; }

.info-box {
  padding: 14px 18px; background: #FFF8E1;
  border-left: 3px solid #F59E0B;
  border-radius: var(--radius); font-size: 14px; color: var(--ink-2);
}

.feature-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--hair);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--ink-3); }

.promise-card { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--shadow-sm); }
.promise-card h3 { font-size: 18px; margin-bottom: 10px; }
.promise-card p { font-size: 14px; color: var(--ink-3); }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-card { padding: 28px 20px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--hair); text-align: center; }
.contact-card-icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; margin-bottom: 8px; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--orange); display: block; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--ink-3); margin: 0; }
.opening-hours { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; max-width: 480px; }
.opening-hours h3 { font-size: 16px; margin-bottom: 16px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; font-size: 14px; color: var(--ink-2); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.notdienst-row td { color: var(--orange); font-weight: 600; border-top: 1px solid var(--hair); padding-top: 12px; }

.contact-form-wide { max-width: 860px; margin: 0 auto; }
.contact-form-wide .contact-form-box { background: none; border: none; padding: 0; }
.stat-card { background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 0 24px; }
}

@media (max-width: 768px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .lead { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .section { padding: 48px 0; }

  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 16px 20px 24px;
    flex-direction: column; gap: 4px;
    border-top: 1px solid var(--hair);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: block; }
  .site-header .header-row > .btn { display: none; }

  .hero-section { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-image { order: -1; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .unterscheidet-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }

  .trust-grid { flex-direction: column; gap: 0; }
  .trust-item { padding: 16px 0; border-left: none !important; border-bottom: 1px solid var(--hair); }
  .trust-item:last-child { border-bottom: none; }

  .stats-bar { flex-direction: column; gap: 24px; }
  .stat-num { font-size: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-form-box { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr; }
}
