/* ==============================
   CSS Variables & Reset
   ============================== */
:root {
  --color-primary: #0f2444;
  --color-primary-light: #1a3a5c;
  --color-accent: #1e7e34;
  --color-accent-light: #28a745;
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #212529;
  --color-muted: #6c757d;
  --color-border: #dee2e6;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1200px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ==============================
   Navigation
   ============================== */
.nav { background: var(--color-primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { color: #fff; font-size: 1.25rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.nav-logo .accent { color: var(--color-accent-light); }
.nav-list { display: flex; gap: 2rem; list-style: none; }
.nav-list a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.nav-list a:hover, .nav-list a.active { color: #fff; border-bottom-color: var(--color-accent-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; line-height: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-list a { display: block; padding: 0.85rem 1.5rem; border-bottom: none; }
  .nav-list a.active { background: rgba(255,255,255,0.07); }
}

/* ==============================
   Utilities
   ============================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); color: var(--color-primary); margin-bottom: 0.75rem; font-weight: 700; }
.section-header p { color: var(--color-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

.btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  font-family: var(--font);
}
.btn-primary { background: var(--color-accent-light); color: #fff; border-color: var(--color-accent-light); }
.btn-primary:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,126,52,0.35); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* ==============================
   Cards
   ============================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--color-white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.card-icon {
  width: 52px; height: 52px; background: #e8f5e9; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; color: var(--color-primary); margin-bottom: 0.6rem; font-weight: 600; }
.card p { color: var(--color-muted); font-size: 0.93rem; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1.25rem; color: var(--color-accent); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.card-link:hover { color: var(--color-primary); }

/* ==============================
   Hero (Startseite)
   ============================== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 60%, #0d3d2b 100%);
  color: #fff; padding: 6rem 1.5rem; text-align: center;
}
.hero-eyebrow {
  display: inline-block; background: rgba(40,167,69,0.18); color: var(--color-accent-light);
  border: 1px solid rgba(40,167,69,0.4); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 1rem;
  border-radius: 20px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  max-width: 760px; margin: 0 auto 1.25rem; line-height: 1.15; letter-spacing: -0.02em;
}
.hero h1 .highlight { color: var(--color-accent-light); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,0.75); max-width: 530px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==============================
   Page Hero (Unterseiten)
   ============================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff; padding: 3.5rem 1.5rem;
}
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 560px; margin-top: 0.5rem; }

/* ==============================
   CTA Banner
   ============================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #155724 100%);
  color: #fff; text-align: center; padding: 4.5rem 1.5rem;
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; font-weight: 700; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ==============================
   Footer
   ============================== */
.footer { background: var(--color-primary); color: rgba(255,255,255,0.6); padding: 2rem 0; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.88rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

/* ==============================
   Leistungen
   ============================== */
.service-block { padding: 3rem 0; border-bottom: 1px solid var(--color-border); }
.service-block:last-of-type { border-bottom: none; }
.service-block-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.service-block-icon {
  width: 48px; height: 48px; background: #e8f5e9; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-block-icon svg { width: 24px; height: 24px; }
.service-block h2 { font-size: 1.45rem; color: var(--color-primary); font-weight: 700; }
.service-block .lead { color: var(--color-muted); margin-bottom: 1.5rem; font-size: 1rem; max-width: 680px; line-height: 1.7; }
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.55rem 2rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.35rem 0; color: var(--color-text); font-size: 0.94rem; }
.checklist li::before { content: "✓"; color: var(--color-accent-light); font-weight: 700; flex-shrink: 0; font-size: 0.9em; margin-top: 0.1em; }
.service-block .note { margin-top: 1.25rem; padding: 0.85rem 1rem; border-left: 3px solid var(--color-accent-light); background: rgba(0,0,0,0.03); color: var(--color-muted); font-size: 0.85rem; line-height: 1.6; max-width: 680px; }
.service-block--reference { padding: 1.75rem 2rem; border: 1px solid var(--color-border); border-radius: 12px; background: rgba(0,0,0,0.02); }
.service-block--reference h2 { font-size: 1.15rem; }
.service-block--reference .service-block-icon { transform: scale(0.85); }
.service-block--reference .checklist { font-size: 0.9rem; }

/* ==============================
   Über uns
   ============================== */
.profile-intro { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .profile-intro { grid-template-columns: 1fr; } }
.profile-avatar {
  width: 200px; height: 200px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-avatar svg { width: 80px; height: 80px; }
.profile-name { font-size: 1.7rem; color: var(--color-primary); font-weight: 700; margin-bottom: 0.2rem; }
.profile-title { color: var(--color-accent); font-weight: 600; font-size: 1rem; margin-bottom: 1.5rem; }
.profile-text { color: var(--color-muted); line-height: 1.75; margin-bottom: 0.9rem; }

.expertise-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.expertise-table th {
  text-align: left; padding: 0.75rem 1rem; background: var(--color-bg);
  color: var(--color-primary); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.06em; border-bottom: 2px solid var(--color-border);
}
.expertise-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; vertical-align: top; }
.expertise-table td:first-child { color: var(--color-primary); font-weight: 600; white-space: nowrap; width: 190px; }
.badge {
  display: inline-block; background: #e8f5e9; color: var(--color-accent);
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem;
  border-radius: 20px; margin: 0.15rem 0.2rem 0.15rem 0;
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.value-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; }
.value-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1rem; color: var(--color-primary); margin-bottom: 0.5rem; font-weight: 600; }
.value-card p { color: var(--color-muted); font-size: 0.9rem; line-height: 1.65; }

/* ==============================
   Kontakt
   ============================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.4rem; color: var(--color-primary); margin-bottom: 1.25rem; font-weight: 700; }
.contact-info p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.7; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item-icon {
  width: 42px; height: 42px; background: #e8f5e9; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; }
.contact-item-text strong { display: block; font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; }
.contact-item-text a, .contact-item-text span { color: var(--color-primary); font-size: 0.95rem; text-decoration: none; font-weight: 500; }
.contact-item-text a:hover { color: var(--color-accent); text-decoration: underline; }

.form-card { background: var(--color-white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--color-border); }
.form-card h2 { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 1.5rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.form-group label .req { color: #e53e3e; margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.7rem 0.95rem; border: 1.5px solid var(--color-border);
  border-radius: 6px; font-family: var(--font); font-size: 0.92rem;
  color: var(--color-text); background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30,126,52,0.1); background: var(--color-white);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.78rem; color: var(--color-muted); margin-top: 1rem; line-height: 1.55; }
.form-note a { color: var(--color-accent); text-decoration: underline; }
.form-success {
  display: none; background: #d4edda; border: 1px solid #c3e6cb;
  color: #155724; border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-top: 1rem; font-size: 0.9rem; line-height: 1.5;
}

/* ==============================
   Impressum & Datenschutz
   ============================== */
.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 1.25rem; color: var(--color-primary); font-weight: 700;
  margin: 2.5rem 0 0.75rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.4rem;
}
.legal-content h3 { font-size: 1.02rem; color: var(--color-primary); font-weight: 600; margin: 1.75rem 0 0.5rem; }
.legal-content p { color: #555; line-height: 1.75; margin-bottom: 0.9rem; }
.legal-content ul, .legal-content ol { margin: 0.5rem 0 1rem 1.75rem; }
.legal-content li { color: #555; line-height: 1.75; margin-bottom: 0.4rem; }
.legal-content a { color: var(--color-accent); text-decoration: underline; }
.legal-content strong { color: var(--color-text); }
.legal-highlight {
  background: var(--color-white); border-left: 4px solid var(--color-accent-light);
  padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.legal-highlight p { margin: 0; }

/* ==============================
   FAQ
   ============================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 0 1.25rem; margin-bottom: 0.85rem;
  transition: box-shadow var(--transition);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0;
  font-weight: 600; color: var(--color-primary); font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--color-accent);
  line-height: 1; transition: transform var(--transition);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--color-muted); font-size: 0.95rem; padding: 0 0 1.1rem; margin: 0; }
.faq details p a { color: var(--color-accent); }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-banner { padding: 3rem 1.5rem; }
  .profile-avatar { width: 120px; height: 120px; }
  .profile-avatar svg { width: 50px; height: 50px; }
  .expertise-table td:first-child { width: auto; white-space: normal; }
}
