@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Fallback static weights for older browsers */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #c40000;
  --red-dark: #a30000;
  --dark: #1a1a1a;
  --text: #333333;
  --muted: #666666;
  --light: #f7f7f7;
  --border: #e5e5e5;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

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

.btn-white {
  background: var(--white);
  color: var(--red);
  font-weight: 700;
}

.btn-white:hover {
  background: #f0f0f0;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

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

.logo-text .name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.2;
}

.logo-text .sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta a {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.nav-cta a:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  background: var(--light);
  padding: 88px 0 96px;
  border-bottom: 2px solid var(--red);
  box-shadow: 0 4px 16px rgba(196,0,0,0.12);
  text-align: center;
}

.hero .container {
  max-width: 700px;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 36px;
}

/* Benefits */
.benefits {
  padding: 72px 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit {
  text-align: center;
}

.benefit-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.benefit p {
  font-size: 0.9rem;
  color: var(--muted);
}

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

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

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Services preview */
.services-preview {
  padding: 72px 0;
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
  display: block;
}

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

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* Services full */
.services-full {
  padding: 72px 0;
}

.service-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item-icon {
  width: 56px;
  height: 56px;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA section */
.cta-section {
  background: var(--red);
  padding: 72px 0;
  text-align: center;
}

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

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Page header */
.page-header {
  background: var(--light);
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-header p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 1rem;
  max-width: 580px;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  padding: 72px 0;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 2px;
}

.contact-detail-text span,
.contact-detail-text a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form-box h2 {
  font-size: 1.3rem;
  margin-bottom: 28px;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field { display: none; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

.alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Text pages (Impressum, Datenschutz) */
.text-page {
  padding: 64px 0;
}

.text-page .content {
  max-width: 760px;
}

.text-page h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}

.text-page h2:first-of-type {
  margin-top: 0;
}

.text-page p,
.text-page li {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.7em;
}

.text-page ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 52px 0 24px;
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-logo img {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand-logo span {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.65;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col .line {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 52px 0;
  }

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

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    gap: 0;
    z-index: 99;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border) !important;
    font-size: 1rem;
  }

  .main-nav li:last-child a {
    border-bottom: none !important;
  }

  .nav-cta a {
    background: transparent !important;
    color: var(--red) !important;
    padding: 13px 0 !important;
    border-radius: 0 !important;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 68px;
  }

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

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

  .service-item {
    grid-template-columns: 1fr;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =============================
   Moderne Verbesserungen
   ============================= */

/* Focus-Ring für Tastaturnavigation */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hamburger → X-Animation */
.menu-toggle span {
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scroll-Einblend-Animation (nur wenn JS aktiv) */
.js .fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Service-Card – roter Akzentstreifen beim Hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 6px 6px 0 0;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* Leistungsseite – automatische Nummerierung */
.services-full {
  counter-reset: service;
}
.service-item {
  counter-increment: service;
}
.service-item-content::before {
  content: counter(service, decimal-leading-zero);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
