/* ======================================================================
   Michael Müller — Website 2026
   Brand: work.mate / mm-mobile-solutions
====================================================================== */

:root {
  /* Brand Tokens */
  --c-deep-teal:    #1C3C46;
  --c-rich-emerald: #35797A;
  --c-sunny-lime:   #E0FE94;
  --c-lavender:     #E8A1EF;
  --c-sunset:       #FF7960;
  --c-serene-sky:   #A5CBF6;

  --c-bg:           #F5F2ED;
  --c-bg-alt:       #ECE8E2;
  --c-bg-card:      #FFFFFF;
  --c-ink:          var(--c-deep-teal);
  --c-ink-muted:    #5A6C72;

  --font: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-w: 1440px;
  --pad-x: clamp(24px, 6vw, 120px);
  --pad-y: clamp(80px, 12vh, 160px);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ======================================================================
   Typography Helpers
====================================================================== */
.meta {
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--c-ink-muted);
  text-transform: uppercase;
}
.meta--light { color: rgba(255,255,255,.55); }

.label {
  font-size: clamp(13px, 1.1vw, 22px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sunset);
}

.headline-xxl {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-deep-teal);
  margin: 0;
}
.headline-xl {
  font-size: clamp(44px, 7.5vw, 110px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-deep-teal);
  margin: 0;
}
.headline-l {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-deep-teal);
  margin: 0;
}

.lead {
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.45;
  color: var(--c-ink);
  font-weight: 400;
  max-width: 1100px;
  margin: 0;
}

/* ======================================================================
   Top Navigation
====================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 242, 237, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(245, 242, 237, 0.88);
  border-bottom-color: rgba(28, 60, 70, 0.08);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  font-size: 18px;
  transition: color 0.25s ease;
}
.nav.is-scrolled .nav__brand { color: var(--c-deep-teal); }
.nav__brand img { width: 36px; height: 36px; }
.nav__brand-text { display: none; }
@media (min-width: 720px) { .nav__brand-text { display: inline; } }

.nav__links {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .nav__links { display: inline-flex; }
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.15s, opacity 0.25s ease;
}
.nav__link:hover { color: #fff; }
.nav.is-scrolled .nav__link { color: var(--c-ink-muted); }
.nav.is-scrolled .nav__link:hover { color: var(--c-deep-teal); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-sunset);
  color: var(--c-deep-teal);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 121, 96, 0.35);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--c-sunset);
  z-index: 200;
  transition: width 0.1s ease-out;
}

/* ======================================================================
   Section Base
====================================================================== */
.section {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section--full {
  max-width: none;
  padding: 0;
}
.section__top {
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section__lead {
  margin-top: clamp(28px, 4vw, 48px);
}

/* Reveal on scroll (progressive enhancement — only when JS active) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ======================================================================
   Section 1 — Hero
====================================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-bg);
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 47% 53%;
    min-height: 100vh;
  }
}

.hero__photo {
  background-image: url('../Assets/portrait.jpg');
  background-size: cover;
  background-position: center 20%;
  background-color: #2c3a30;
  min-height: 50vh;
}
@media (min-width: 900px) {
  .hero__photo { min-height: 100vh; }
}

.hero__panel {
  background: var(--c-deep-teal);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 50vh;
  gap: 48px;
}
@media (min-width: 900px) {
  .hero__panel { min-height: 100vh; }
}

.hero__panel-top {
  display: flex;
  justify-content: flex-end;
}
.hero__logo {
  width: clamp(56px, 5vw, 96px);
  height: clamp(56px, 5vw, 96px);
}

.hero__name {
  color: #fff;
  font-weight: 600;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 24px 0;
}
.hero__role {
  display: inline-block;
  font-size: clamp(13px, 1.1vw, 22px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sunset);
  margin-bottom: 40px;
}
.hero__divider {
  width: 72px;
  height: 3px;
  background: var(--c-sunset);
  margin-bottom: 32px;
  border: 0;
}
.hero__tagline {
  color: rgba(255,255,255,.86);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 32px);
  line-height: 1.35;
  max-width: 720px;
  margin: 0;
}

.hero__panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__year {
  color: rgba(255,255,255,.45);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(28, 60, 70, 0.4);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce 2.2s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 899px) { .hero__scroll-hint { display: none; } }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ======================================================================
   Pillar Card (shared)
====================================================================== */
.pillars {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
}
.pillars--3 { grid-template-columns: 1fr; }
.pillars--4 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .pillars--3 { grid-template-columns: repeat(2, 1fr); }
  .pillars--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .pillars--3 { grid-template-columns: repeat(3, 1fr); }
  .pillars--4 { grid-template-columns: repeat(4, 1fr); }
}

.pillar {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 0;
}
.pillar__icon {
  color: var(--c-sunset);
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}
.pillar__content { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pillar__title {
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 600;
  color: var(--c-deep-teal);
  line-height: 1.18;
  margin: 0;
}
.pillar__desc {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 400;
  color: var(--c-ink-muted);
  line-height: 1.45;
  margin: 0;
}
.pillar--simple .pillar__title {
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 500;
  align-self: center;
}
.pillar--simple { align-items: center; }

/* ======================================================================
   Section 2 — Problem
====================================================================== */
.problem__top {
  margin-bottom: clamp(48px, 7vw, 96px);
}
.problem__pains {
  margin-top: clamp(48px, 8vw, 120px);
  margin-bottom: clamp(48px, 8vw, 96px);
}
.problem__cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.problem__cta-divider {
  width: clamp(60px, 6vw, 96px);
  height: 4px;
  background: var(--c-sunset);
  flex-shrink: 0;
}
.problem__cta-text {
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--c-sunset);
  line-height: 1;
  margin: 0;
}

/* ======================================================================
   Section 4 — Vorstellung (About)
====================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
}
.about__left { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 72px); }
.about__bio {
  font-size: clamp(18px, 1.7vw, 32px);
  line-height: 1.45;
  color: var(--c-ink);
  font-weight: 400;
  max-width: 760px;
  margin: 0;
}
.about__photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.about__photo {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* ======================================================================
   Section 7 — Referenzen
====================================================================== */
.clients__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .clients__body {
    grid-template-columns: minmax(280px, 1fr) 2.5fr;
  }
}
.clients__stats {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 48px);
}
.clients__stat-num {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  color: var(--c-sunset);
  line-height: 1;
  letter-spacing: -0.025em;
}
.clients__stat-label {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 500;
  color: var(--c-ink-muted);
  margin-top: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  padding: 8px;
}
@media (min-width: 540px) { .clients__logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .clients__logos { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px; } }

.clients__logo {
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.2vw, 20px);
  min-height: clamp(80px, 9vw, 130px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clients__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 60, 70, 0.08);
}
.clients__logo img {
  max-width: 100%;
  max-height: clamp(48px, 6vw, 96px);
  object-fit: contain;
}

/* ======================================================================
   Section 8 — Standort (NEW)
====================================================================== */
.locations {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: 1fr;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (min-width: 720px) {
  .locations { grid-template-columns: 1fr 1fr; }
}
.location-card {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid rgba(28, 60, 70, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(28, 60, 70, 0.08);
}
.location-card__pin {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(255, 121, 96, 0.12);
  color: var(--c-sunset);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.location-card__region {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  font-weight: 600;
  margin: 0;
}
.location-card__name {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--c-deep-teal);
  margin: 0;
  letter-spacing: -0.015em;
}
.location-card__desc {
  color: var(--c-ink-muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}
.location-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-sunset);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-top: auto;
}
.location-card__link:hover { text-decoration: underline; }

.locations__cloud-note {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--c-ink-muted);
}
.locations__cloud-note strong {
  color: var(--c-deep-teal);
  font-weight: 600;
}

/* ======================================================================
   Section 10 — Kontakt
====================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-bg);
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: 47% 53%;
    min-height: 100vh;
  }
}
.contact__photo {
  background-image: url('../Assets/portrait.jpg');
  background-size: cover;
  background-position: center 20%;
  background-color: #2c3a30;
  min-height: 50vh;
}
@media (min-width: 900px) { .contact__photo { min-height: 100vh; } }

.contact__panel {
  background: var(--c-deep-teal);
  color: #fff;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 6vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 50vh;
  gap: 40px;
}
@media (min-width: 900px) { .contact__panel { min-height: 100vh; } }

.contact__panel-top { display: flex; justify-content: flex-end; }
.contact__logo { width: clamp(56px, 5vw, 96px); height: clamp(56px, 5vw, 96px); }

.contact__label {
  display: inline-block;
  font-size: clamp(13px, 1.1vw, 22px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sunset);
  margin-bottom: 28px;
}
.contact__headline {
  color: #fff;
  font-weight: 600;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 32px 0;
}
.contact__sub {
  color: rgba(255,255,255,.86);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 32px);
  line-height: 1.35;
  margin: 0 0 32px 0;
  max-width: 680px;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--c-sunset);
  color: var(--c-deep-teal);
  padding: clamp(16px, 1.4vw, 22px) clamp(24px, 2vw, 36px);
  border-radius: var(--radius-pill);
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  align-self: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 121, 96, 0.35);
}

.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__info-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.1vw, 22px);
  line-height: 1.2;
  transition: color 0.15s;
  width: fit-content;
  word-break: break-word;
}
.contact__info-row:hover { color: var(--c-sunset); }
.contact__info-icon {
  font-size: 22px;
  color: var(--c-sunset);
  width: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact__panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.contact__year {
  color: rgba(255,255,255,.45);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* ======================================================================
   Footer
====================================================================== */
.footer {
  background: var(--c-bg);
  border-top: 1px solid rgba(28, 60, 70, 0.08);
  padding: 32px clamp(24px, 6vw, 120px);
  font-size: 14px;
  color: var(--c-ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer a {
  color: var(--c-ink-muted);
  transition: color 0.15s;
}
.footer a:hover { color: var(--c-sunset); }
.footer__links { display: inline-flex; gap: 20px; }

/* ======================================================================
   Legal Pages (Impressum / Datenschutz)
====================================================================== */
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(120px, 14vh, 180px) clamp(24px, 6vw, 80px) clamp(80px, 10vh, 120px);
}
.legal__meta { margin-bottom: 20px; }
.legal__headline {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--c-deep-teal);
  margin: 0 0 48px 0;
}
.legal h2 {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 600;
  color: var(--c-deep-teal);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 600;
  color: var(--c-deep-teal);
  margin: 32px 0 12px;
}
.legal p, .legal li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 0 14px;
}
.legal ul { padding-left: 24px; }
.legal a { color: var(--c-sunset); }
.legal a:hover { text-decoration: underline; }

/* ======================================================================
   Print friendly
====================================================================== */
@media print {
  .nav, .scroll-progress, .hero__scroll-hint { display: none !important; }
}
