/* ============================================================
   QMSupport e.U. – statische Website
   Farbe: #6E58A3 (lila) · Hintergrund weiß · Schrift: Open Sans
   ============================================================ */

/* ---------- Lokale Schrift: Open Sans ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2");
}

/* ---------- Basis ---------- */
:root {
  --purple: #6E58A3;
  --icon-blue: #4a9fd6;
  --text: #4a4a4a;
  --text-light: #6f6f6f;
  --border: #ececec;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 54px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  color: #555;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
  font-weight: 400;
}
.main-nav a:hover { color: var(--purple); text-decoration: none; }
.main-nav a.active { color: var(--purple); }

/* Sprachumschalter */
.lang-switch {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.lang-switch a { line-height: 0; opacity: .85; }
.lang-switch a:hover { opacity: 1; }
.lang-switch img { height: 16px; width: 24px; border: 1px solid #ddd; }

/* Hamburger (mobil) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--purple);
  border-radius: 2px;
}

/* ---------- Seiten-Grundgerüst mit Q-Wasserzeichen ---------- */
.page {
  position: relative;
  min-height: 60vh;
}
.page::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -70px;
  width: 340px;
  height: 400px;
  background: url("../images/logodeck.jpg") no-repeat center / contain;
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Slider (Startseite) ---------- */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}
.slider .slide {
  display: none;
  width: 100%;
}
.slider .slide.active { display: block; animation: fade 1s ease; }
.slider .slide img { width: 100%; height: auto; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(110,88,163,.55);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.slider-btn:hover { background: var(--purple); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active { background: #fff; }

/* ---------- Service-Icons ---------- */
.services-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  padding: 70px 24px;
  max-width: 1300px;
  margin: 0 auto;
}
.service-item {
  flex: 1 1 180px;
  max-width: 220px;
  text-align: center;
  color: inherit;
}
.service-item:hover { text-decoration: none; }
.icon-box {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border: 2px solid var(--icon-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.service-item:hover .icon-box {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(74,159,214,.25);
}
.icon-box svg { width: 40px; height: 40px; fill: var(--icon-blue); }
.service-item .label {
  font-size: 19px;
  font-weight: 300;
  color: #333;
  line-height: 1.35;
}

/* ---------- Dienstleistungs-Detailseite ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 90px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-block { text-align: center; }
.service-block.wide { grid-column: 1 / -1; max-width: 620px; margin: 0 auto; }
.service-block .icon-box { width: 88px; height: 88px; margin-bottom: 28px; }
.service-block h2 {
  font-weight: 300;
  font-size: 27px;
  color: #333;
  margin-bottom: 26px;
}
.service-block p {
  color: var(--text-light);
  font-weight: 300;
  margin: 0 auto;
  max-width: 480px;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text h2 {
  text-align: center;
  font-weight: 300;
  font-size: 28px;
  color: #333;
  margin: 10px 0 24px;
}
.about-text h2:nth-of-type(2) { margin-top: 50px; }
.about-text p {
  text-align: center;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 20px;
}
.about-image img { width: 100%; height: auto; }
.about-cta {
  text-align: center;
  font-weight: 300;
  font-size: 22px;
  color: #555;
  padding: 70px 24px 30px;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}
.contact-form h1,
.contact-info h2 {
  text-align: center;
  font-weight: 400;
  font-size: 26px;
  color: #333;
  margin-bottom: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}
.form-row > label { padding-top: 8px; color: #555; font-weight: 300; }
.req { color: #d33; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 15px;
  color: #333;
}
.form-row textarea { min-height: 180px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--purple); }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checkbox-group label,
.consent label {
  font-weight: 300;
  color: #555;
  font-size: 15px;
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
}
.checkbox-group input,
.consent input { margin-top: 5px; }
.consent { margin: 26px 0 20px 198px; display: grid; gap: 16px; }

.btn-submit {
  margin-left: 198px;
  background: #eee;
  border: 1px solid #ccc;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-submit:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.contact-info p { text-align: center; color: var(--text-light); font-weight: 300; }
.contact-info .addr { line-height: 2; margin-bottom: 26px; }

.form-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-weight: 400;
}
.form-note.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-note.err { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }

/* ---------- Impressum / DSGVO ---------- */
.legal { max-width: 900px; margin: 0 auto; }
.legal h1 { font-weight: 300; font-size: 30px; color: #333; margin-bottom: 30px; }
.legal h2 { font-weight: 600; font-size: 20px; color: var(--purple); margin: 34px 0 12px; }
.legal h3 { font-weight: 600; font-size: 16px; color: #444; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .3px; }
.legal p { font-weight: 300; color: var(--text-light); margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; color: var(--text-light); font-weight: 300; }
.legal ul li { margin-bottom: 6px; }
.legal .imprint-block { font-weight: 300; color: var(--text-light); line-height: 1.9; margin-bottom: 30px; }
.legal a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple);
  color: #fff;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 300;
  font-size: 15px;
}
.footer-inner a { color: #fff; }
.footer-links { display: flex; gap: 26px; }
.footer-links a::before { content: "\203A"; margin-right: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 24px; }

  .services-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text h2:nth-of-type(2) { margin-top: 34px; }

  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row > label { padding-top: 0; }
  .consent { margin-left: 0; }
  .btn-submit { margin-left: 0; width: 100%; }

  .page::before { display: none; }
  .slider-btn { width: 34px; height: 34px; font-size: 18px; }
}

@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 10px 16px; }
  .logo img { height: 44px; }
}
