/* === 1. Tokens === */
:root {
  --color-primary: #ef0000;
  --color-primary-dark: #de0000;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-grey-light: #f5f5f5;
  --color-grey: #777777;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --spacing-section: 5rem;
}

/* === 2. Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--color-black); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* === 3. Header / Navigation === */
.site-header { background: var(--color-white); border-bottom: 3px solid var(--color-primary);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.nav-logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--color-black); text-transform: uppercase; }
.nav-logo span { color: var(--color-primary); }
.nav-menu { display: none; list-style: none; gap: 2rem; }
.nav-menu a { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 500;
  color: var(--color-black); text-transform: uppercase; letter-spacing: .05em;
  transition: color .2s; }
.nav-menu a:hover { color: var(--color-primary); }
.nav-toggle { background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-black);
  margin: 5px 0; transition: .3s; }
@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .nav-toggle { display: none; }
}
.nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%;
  left: 0; right: 0; background: white; padding: 1rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,.1); gap: 1rem; }

/* === 4. Hero === */
.hero { background: var(--color-black); color: white; padding: 6rem 1.5rem;
  text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #111 0%, #2a2a2a 100%); opacity: .95; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--color-primary); font-style: normal; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; opacity: .85; }
.btn { display: inline-block; padding: .9rem 2rem; border-radius: 4px; font-family: var(--font-heading);
  font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em;
  transition: background .2s, transform .1s; cursor: pointer; border: none; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 2px solid white; margin-left: 1rem; }
.btn-outline:hover { background: white; color: var(--color-black); }

/* === 5. Stats Bar === */
.stats-bar { background: var(--color-primary); color: white; padding: 2.5rem 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  max-width: var(--max-width); margin: 0 auto; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; }
.stat-label { font-size: .85rem; opacity: .85; margin-top: .25rem; }

/* === 6. Sections === */
.section { padding: var(--spacing-section) 1.5rem; }
.section-alt { background: var(--color-grey-light); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem;
  text-align: center; }
.section-title span { color: var(--color-primary); }
.section-subtitle { text-align: center; color: var(--color-grey); max-width: 600px;
  margin: 0 auto 3rem; font-size: 1.05rem; }

/* === 7. Feature Grid === */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: var(--max-width); margin: 0 auto; }
@media (min-width: 600px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: white; border-radius: 8px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); border-top: 4px solid var(--color-primary); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.feature-card p { color: var(--color-grey); font-size: .95rem; }

/* === 8. Two-Column Content === */
.content-split { display: grid; grid-template-columns: 1fr; gap: 3rem;
  max-width: var(--max-width); margin: 0 auto; align-items: center; }
@media (min-width: 768px) { .content-split { grid-template-columns: 1fr 1fr; } }
.content-split img { border-radius: 8px; width: 100%; }
.content-split h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.content-split p { color: var(--color-grey); margin-bottom: 1.5rem; line-height: 1.8; }

/* === 9. USP List === */
.usp-list { list-style: none; margin: 1.5rem 0; }
.usp-list li { padding: .6rem 0 .6rem 2rem; position: relative; font-size: .95rem; }
.usp-list li::before { content: '✓'; position: absolute; left: 0;
  color: var(--color-primary); font-weight: 700; }

/* === 10. CTA Section === */
.cta-section { background: var(--color-black); color: white; padding: 5rem 1.5rem;
  text-align: center; }
.cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.cta-section p { opacity: .8; max-width: 560px; margin: 0 auto 2rem; }

/* === 11. Contact Page === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem;
  max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--color-primary); }
.contact-info p, .contact-info a { display: block; margin-bottom: .75rem;
  color: var(--color-black); font-size: 1rem; }

/* === 12. Form === */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .8rem 1rem; border: 1px solid #ddd; border-radius: 4px;
  font-family: var(--font-body); font-size: 1rem; transition: border .2s; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; }
.form-check input { width: auto; margin-top: .2rem; }

/* === 13. Footer === */
.site-footer { background: #1a1a1a; color: #aaa; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: var(--max-width); margin: 0 auto; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
  color: white; text-transform: uppercase; margin-bottom: 1rem; }
.footer-brand span { color: var(--color-primary); }
.footer-links h4 { color: white; font-size: .9rem; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #aaa; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid #333; margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: .85rem; }

/* === 14. Page Hero (non-homepage) === */
.page-hero { background: var(--color-black); color: white; padding: 4rem 1.5rem;
  text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero h1 em { color: var(--color-primary); font-style: normal; }
.page-hero p { opacity: .75; margin-top: .75rem; font-size: 1.05rem; }

/* === 15. Referenzen Grid === */
.referenzen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.referenz-card { background: white; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.referenz-card img { width: 100%; height: 200px; object-fit: cover; }
.referenz-card-body { padding: 1.25rem; }
.referenz-card-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.referenz-card-body p { font-size: .9rem; color: var(--color-grey); }
