/* ═══════════════════════════════════════════════════════════
   MEKRAS.DE – BASE LANDING PAGE TEMPLATE
   Version: 1.0
   Fonts: Manrope (Headlines) · Inter (Body)
   ═══════════════════════════════════════════════════════════ */


/* ── 0. CSS Custom Properties (Design Tokens) ─────────────── */
:root {
  /* Colors */
  --color-primary:       #3AA6B9;
  --color-primary-dark:  #2997AA;
  --color-text-dark:     #0F172A;
  --color-text-body:     #454F5E;
  --color-bg:            #FFFFFF;
  --color-bg-light:      #E9F8F9;
  --color-border:        #CAE6E8;
  --color-white:         #FFFFFF;

  /* Typography */
  --font-headline: "Manrope", sans-serif;
  --font-body:     "Inter", sans-serif;

  /* Font sizes */
  --size-h1:    clamp(36px, 5vw, 52px);
  --size-h2:    clamp(28px, 4vw, 40px);
  --size-h3:    clamp(20px, 3vw, 26px);
  --size-body:  18px;
  --size-small: 14px;

  /* Spacing */
  --section-padding:    80px;
  --container-max:      1200px;
  --container-padding:  24px;
  --gap-cards:          28px;

  /* Radii */
  --radius-btn:   100px;
  --radius-card:  16px;
  --radius-badge: 100px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 8px 40px rgba(58, 166, 185, 0.18);

  /* Transitions */
  --transition: 0.22s ease;
}


/* ── 1. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-body);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }


/* ── 2. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p + p { margin-top: 1em; }


/* ── 3. Layout Utilities ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section__subline {
  color: var(--color-text-body);
  font-size: 17px;
}


/* ── 4. Badge ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--color-border);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-badge);
}


/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

/* Primary */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* White (for dark backgrounds) */
.btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: var(--color-bg-light);
}

/* Outline White */
.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}


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

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-text {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

.nav {
  flex: 1;
}

.nav__list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-body);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
  background: var(--color-bg-light);
}

.header__cta {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 13px;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.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); }


/* ── 7. Hero ──────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__headline {
  max-width: 560px;
}

.hero__subline {
  font-size: 18px;
  color: var(--color-text-body);
  max-width: 520px;
}

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

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.hero__trust .icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Hero image placeholder – replace with real <img> */
.hero__image {
  border-radius: 24px;
  overflow: hidden;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-border) 0%, var(--color-primary) 100%);
  border-radius: 24px;
}


/* ── 8. Cards (Leistungen) ────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.card__title {
  font-size: 20px;
}

.card__text {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.6;
}


/* ── 9. About Section ─────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, var(--color-border) 0%, var(--color-primary) 100%);
  border-radius: 24px;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__facts strong {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}


/* ── 10. Steps (Ablauf) ───────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.step__connector {
  flex-shrink: 0;
  width: 48px;
  margin-top: 44px;
  height: 2px;
  background: var(--color-border);
  position: relative;
}

.step__connector::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  transform: rotate(45deg);
}

.step__number {
  font-family: var(--font-headline);
  font-size: 40px;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
}

.step__title {
  font-size: 20px;
}

.step__text {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.6;
}


/* ── 11. Testimonials ─────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}

.testimonial {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial__stars {
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 1.7;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.testimonial__author strong {
  color: var(--color-text-dark);
  font-size: 15px;
}

.testimonial__author span {
  font-size: 13px;
  color: var(--color-text-body);
}


/* ── 12. CTA Section ──────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 80px 0;
}

.cta-section__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-section__headline {
  color: var(--color-white);
  max-width: 640px;
}

.cta-section__subline {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  font-size: 17px;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}


/* ── 13. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--color-text-dark);
  padding: 48px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

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

.footer__brand .header__logo-text {
  color: var(--color-white);
  font-size: 20px;
}

.footer__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

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

.footer__nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}


/* ── 14. Responsive – Tablet (≤ 922px) ───────────────────── */
@media (max-width: 922px) {
  :root {
    --section-padding: 56px;
  }

  /* Header */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 20px var(--container-padding);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav--open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav__link {
    font-size: 15px;
    padding: 10px 16px;
    width: 100%;
  }

  .header__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__image {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__image-placeholder {
    aspect-ratio: 16 / 9;
  }

  /* Cards */
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-placeholder {
    aspect-ratio: 16 / 9;
    max-width: 480px;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    gap: 16px;
  }

  .step__connector {
    width: 2px;
    height: 32px;
    margin: 0 0 0 56px;
    transform: none;
  }

  .step__connector::after {
    right: -4px;
    top: auto;
    bottom: -5px;
    transform: rotate(135deg);
  }

  /* Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}


/* ── 15. Responsive – Mobile (≤ 544px) ───────────────────── */
@media (max-width: 544px) {
  :root {
    --section-padding: 48px;
    --container-padding: 16px;
    --gap-cards: 16px;
  }

  /* Cards single column */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Hero actions */
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* CTA */
  .cta-section__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cta-section__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__nav ul {
    flex-direction: column;
    gap: 12px;
  }

  /* Trust badges */
  .hero__trust {
    flex-direction: column;
    gap: 12px;
  }
}
