/* ===========================================================
   CleanControlCompany – Stylesheet
   Design-Tokens: Marineblau (Vertrauen) + Mint (frisch/sauber)
   Signatur-Element: "Quality Control"-Checkliste (Hero, Karten)
   =========================================================== */

:root {
  /* Farben */
  --navy: #0a2a4d;
  --navy-light: #134272;
  --sky: #cfe5ee;
  --mint: #2dd4a8;
  --mint-dark: #19a682;
  --paper: #f6f9fb;
  --ink: #1c2b3a;
  --ink-soft: #5b6b7c;
  --white: #ffffff;
  --border: #e1e8ee;

  /* Typografie */
  --font-display: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Layout */
  --header-h: 84px;
  --radius: 14px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--mint);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 2000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* ===========================================================
   EYEBROW / LABELS (Mono = "Inspektions-Protokoll"-Look)
   =========================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 14px;
}

.eyebrow--light {
  color: var(--mint);
}

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  background-color: var(--sky);
  box-shadow: 0 3px 10px rgba(10, 42, 77, 0.08);
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-h);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.6vw, 20px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo strong {
  font-weight: 800;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

/* NAVIGATION */
.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta::after {
  display: none;
}

.nav a.is-active::after {
  width: 100%;
}

.nav__cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* BURGER MENU */
.burger {
  width: 32px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  width: 100%;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.burger.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--mint);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--mint-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Signature element: checklist card */
.hero__panel {
  display: flex;
  justify-content: center;
}

.checklist {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.checklist__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dark);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.checklist__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.checklist__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist__items li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.checklist__box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--white);
}

.checklist__check {
  opacity: 0;
  transform: scale(0.4);
  color: var(--mint-dark);
  font-weight: 800;
  font-size: 1.05rem;
  animation: check-in 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.checklist__items li:has(.checklist__check) .checklist__box {
  animation: box-check 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.checklist__foot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

@keyframes check-in {
  0%, 4% { opacity: 0; transform: scale(0.4); }
  10%, 90% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes box-check {
  0%, 4% { border-color: var(--border); background: var(--white); }
  10%, 100% { border-color: var(--mint); background: rgba(45, 212, 168, 0.12); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45, 212, 168, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(45, 212, 168, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .checklist__check,
  .checklist__items li:has(.checklist__check) .checklist__box,
  .checklist__dot {
    animation: none;
    opacity: 1;
    transform: none;
    border-color: var(--mint);
    background: rgba(45, 212, 168, 0.12);
  }
}

/* ===========================================================
   SECTION LAYOUT
   =========================================================== */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--sky);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section__intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(10, 42, 77, 0.35);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(10, 42, 77, 0.4);
}

.about__content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.about__content p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 56ch;
}

.check-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.check-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(45, 212, 168, 0.18);
  color: var(--mint-dark);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===========================================================
   SERVICES
   =========================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: 0 18px 40px -28px rgba(10, 42, 77, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(10, 42, 77, 0.45);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-card__stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-dark);
  border: 1.5px solid var(--mint);
  border-radius: 999px;
  padding: 4px 10px;
  transform: rotate(6deg);
}

/* SERVICE AREAS */
.service-areas {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px dashed rgba(10, 42, 77, 0.18);
  text-align: center;
}

.service-areas__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.service-areas__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.service-areas__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(10, 42, 77, 0.3);
}

.service-areas__list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

/* ===========================================================
   GALERIE / SLIDESHOW
   =========================================================== */
.section--gallery {
  background: var(--paper);
}

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 56px -20px rgba(10, 42, 77, 0.22);
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
}

.slideshow__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

/* Pfeile */
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 42, 77, 0.7);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.slideshow__btn:hover {
  background: var(--navy);
  transform: translateY(-50%) scale(1.08);
}

.slideshow__btn--prev { left: 14px; }
.slideshow__btn--next { right: 14px; }

/* Verstecken wenn nur 1 Bild */
.slideshow.single-slide .slideshow__btn { display: none; }
.slideshow.single-slide .slideshow__dots { display: none; }

/* Punkte */
.slideshow__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slideshow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.slideshow__dot.active {
  background: var(--mint);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .slide img {
    height: 260px;
  }

  .slideshow__btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  border: 1px solid var(--border);
}

.testimonial__stars {
  color: var(--mint-dark);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.testimonial blockquote {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.testimonial figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.testimonial figcaption span {
  color: var(--mint-dark);
}

.testimonials__note {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ===========================================================
   CONTACT
   =========================================================== */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact__info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.contact__text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin-bottom: 32px;
}

.contact__list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.contact__list a {
  text-decoration: none;
  font-weight: 700;
  color: var(--mint);
}

.contact__list a:hover {
  text-decoration: underline;
}

.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

/* FORM */
.contact__form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--mint);
  background: var(--white);
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ===========================================================
   FORM SUCCESS
   =========================================================== */
.form-success {
  text-align: center;
  padding: 48px 24px;
  animation: fadeInUp .45s ease both;
}

.form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo--footer {
  color: var(--white);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.footer__nav a:hover {
  color: var(--mint);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .services,
  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__panel {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__media {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  body {
    padding-top: 72px;
  }

  .header {
    height: 72px;
  }

  :root {
    --header-h: 72px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--sky);
    box-shadow: 0 8px 16px rgba(10, 42, 77, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav.active {
    max-height: 400px;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 24px;
  }

  .nav ul li {
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 12px 0;
    width: 100%;
  }

  .nav__cta {
    margin-top: 8px;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0;
  }

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

  .form-row--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact__form {
    padding: 26px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
  }
}