/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2b2f36;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

:root {
  --color-dark: #232a34;
  --color-dark-2: #1c222b;
  --color-accent: #d63a5f;
  --color-accent-hover: #b92f50;
  --color-text: #2b2f36;
  --color-muted: #6b7280;
  --color-light: #f6f7f8;
  --color-grey: #e5e7eb;
  --header-height: 72px;
  --container: 1100px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-dark);
  z-index: 100;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 36px;
}
.main-nav a {
  color: #d8dde3;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
  letter-spacing: .2px;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,35,.35) 0%, rgba(20,25,35,.55) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 24px;
}
.hero-welcome {
  color: var(--color-accent);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  margin: 0 0 18px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.hero-prefix {
  font-weight: 400;
  color: #c9ced6;
  font-size: .7em;
  margin-right: .25em;
}
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: #e8ecf1;
  margin: 0 auto;
  max-width: 720px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 90px 0;
}
.section-light { background: #fafbfc; }
.section-grey  { background: var(--color-grey); }
.section-dark  { background: var(--color-dark-2); color: #e3e6ea; }

.section-title {
  color: var(--color-accent);
  font-size: clamp(32px, 4.5vw, 48px);
  text-align: center;
  margin: 0 0 18px;
}
.section-title-light { color: var(--color-accent); }
.section-subtitle {
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--color-text);
  margin: -8px 0 18px;
}
.section-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-muted);
}

/* ===================== ABOUT ===================== */
.about-block {
  max-width: 760px;
  margin: 0 auto 32px;
}
.about-block h3 {
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.about-block p {
  color: #4a5260;
  font-size: 15.5px;
}

/* ===================== SERVICES ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform .25s ease;
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card:hover .service-icon {
  transform: scale(1.08);
}
.service-card h3 {
  font-size: 17px;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.service-card p {
  color: var(--color-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ===================== TESTIMONIALS ===================== */
.section-title-dark { color: var(--color-dark); }

.testimonials-wrapper {
  margin-top: 30px;
}
.testimonials {
  position: relative;
}
.testimonials-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* Sanftes Ein-/Ausblenden an den Rändern */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 320px;
  background: #d6eef0;
  border-radius: 14px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
}
.testimonial-card h3 {
  font-size: 17px;
  margin: 0 0 16px;
  color: var(--color-dark);
}
.testimonial-card .quote {
  font-size: 14.5px;
  color: #2b2f36;
  flex: 1;
  margin: 0 0 16px;
}
.testimonial-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark);
  display: inline-block;
  margin-bottom: 16px;
  transition: color .2s ease;
}
.testimonial-link:hover { color: var(--color-accent); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,.10);
  padding-top: 14px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 13.5px;
  color: var(--color-dark);
}
.testimonial-author span {
  font-size: 12px;
  color: var(--color-muted);
}
.testimonial-nav-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.testimonial-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--color-grey);
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
  transition: background .2s ease, transform .15s ease, color .2s ease;
}
.testimonial-nav:hover {
  background: #c9ccd2;
  transform: scale(1.08);
}

/* ===================== HARDWARE PARTNER MARQUEE ===================== */
.partner-marquee {
  background: var(--color-dark);
  padding: 28px 0;
  overflow: hidden;
}
.partner-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #b4bac3;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #e3e6ea;
  letter-spacing: -0.5px;
  white-space: nowrap;
  user-select: none;
}

/* ===================== CTA ===================== */
.cta {
  background: var(--color-grey);
  padding: 80px 0 100px;
  text-align: center;
}
.cta h2 {
  color: var(--color-accent);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}
.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--color-text);
  font-size: 17px;
}

/* ===================== BUTTON ===================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  border: 0;
  transition: background .2s ease, transform .15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}
.btn-full {
  width: 100%;
  padding: 14px 20px;
}

/* ===================== IMPRESSUM ===================== */
.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 40px;
}
.info-block { margin-bottom: 22px; }
.info-block h4 {
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.info-block p {
  margin: 0;
  color: #d6dae0;
  font-size: 15px;
  line-height: 1.6;
}

.contact-form h4 {
  color: #d6dae0;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  color: #b4bac3;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.req { color: var(--color-accent); }
.form-group input,
.form-group textarea {
  width: 100%;
  background: #4a5260;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b4bac3;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #535b6a;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 1.2em;
}
.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* ===================== MAP ===================== */
.map-section {
  width: 100%;
  height: 380px;
  background: #2a2f38;
}
.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Schwarz-weiß / Graustufen-Look */
  filter: grayscale(1) contrast(1.05) brightness(0.85);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--color-dark-2);
  color: #b4bac3;
  padding: 36px 0 30px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.legal-links a {
  color: #b4bac3;
  font-size: 14px;
  transition: color .2s ease;
}
.legal-links a:hover {
  color: var(--color-accent);
}
.social {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #4a5260;
  color: #fff;
  border-radius: 50%;
  transition: background .2s ease, transform .15s ease;
}
.social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}
.copyright {
  font-size: 13.5px;
  color: #8b929c;
  margin: 0;
}

/* ===================== LEGAL PAGES (AGB, Datenschutz, …) ===================== */
.legal-page main {
  min-height: calc(100vh - var(--header-height) - 200px);
  margin-top: var(--header-height);
  padding: 80px 0;
  background: #fafbfc;
}
.legal-title {
  color: var(--color-accent);
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 8px;
}
.legal-meta {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0 0 36px;
}
.legal-content .container {
  max-width: 860px;
}
.legal-content h3 {
  color: var(--color-dark);
  font-size: 20px;
  margin: 36px 0 14px;
}
.legal-content h4 {
  color: var(--color-dark);
  font-size: 16px;
  margin: 22px 0 10px;
}
.legal-content p,
.legal-content li {
  color: #4a5260;
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-content p {
  margin: 0 0 14px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content ul li {
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}
.legal-content a:hover {
  color: var(--color-accent-hover);
}
.legal-placeholder {
  color: var(--color-muted);
  font-style: italic;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .impressum-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav li a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .section { padding: 60px 0; }
  .cta { padding: 60px 0 70px; }
  .hero { min-height: 70vh; }
}
