/* =========================================================
   Hausmeisterservice Paschke — Apple-inspiriertes Designsystem
   Reines CSS, kein Build. Gemeinsam für alle Seiten.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-dark: #000000;
  --color-accent: #2e7d50;
  --color-accent-hover: #36935e;
  --color-accent-light: #8fe3ad;
  --color-border: #d2d2d7;

  --max-width: 1120px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --nav-height: 52px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 110px 0;
}

.section--tight {
  padding: 80px 0;
}

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

.section--dark {
  background: var(--color-bg-dark);
  color: #f5f5f7;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
}

.section-sub {
  margin-top: 18px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--color-text-muted);
}

.section--dark .section-sub {
  color: #a1a1a6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #1d1d1f;
}

.btn-light:hover {
  background: #e8e8ed;
}

.link-arrow {
  font-size: 17px;
  font-weight: 400;
}

.link-arrow::after {
  content: " \203A";
}

.link-arrow:hover {
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nav__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav__cta {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 980px;
  background: var(--color-accent);
  color: #fff !important;
  opacity: 1 !important;
}

.nav__cta:hover {
  background: var(--color-accent-hover);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--nav-height) + 40px) 22px 60px;
  background: #111;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: hero-fade-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
}

.hero__sub {
  margin-top: 20px;
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  margin-top: 36px;
}

.hero--sub {
  min-height: 56vh;
}

/* ---------- Generic page intro hero (legal pages) ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 90px) 0 50px;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 19px;
}

/* ---------- Feature (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature--reverse .feature__media {
  order: 2;
}

.feature__media img,
.feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.feature__title {
  font-size: clamp(28px, 4vw, 44px);
}

.feature__text {
  margin-top: 20px;
  font-size: 19px;
  color: var(--color-text-muted);
}

.feature__text + .feature__text {
  margin-top: 16px;
}

.feature__actions {
  margin-top: 26px;
}

/* ---------- Benefits grid ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.benefit {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.section--alt .benefit {
  background: #fff;
}

.benefit__icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.benefit h3 {
  font-size: 22px;
}

.benefit p {
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 17px;
}

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 44px;
  color: #1d1d1f;
  background: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.service-card--dark {
  color: #fff;
}

.service-card--dark .service-card__title,
.service-card--dark .service-card__text {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.service-card__eyebrow {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-card--dark .service-card__eyebrow {
  color: var(--color-accent-light);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.service-card__title {
  font-size: 30px;
  margin-top: 6px;
}

.service-card__text {
  margin-top: 12px;
  font-size: 18px;
  max-width: 22em;
  color: inherit;
  opacity: 0.92;
}

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.contact-card h3 {
  font-size: 20px;
}

.contact-card a,
.contact-card p {
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--color-text);
}

.contact-card a {
  color: var(--color-accent);
}

.contact-card span {
  color: var(--color-text-muted);
}

.map-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 48px);
}

.cta-band p {
  margin: 18px auto 30px;
  max-width: 560px;
  font-size: 20px;
  color: #a1a1a6;
}

/* ---------- Legal / prose pages ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 22px 110px;
}

.prose h2 {
  font-size: 28px;
  margin: 48px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  font-size: 17px;
  color: #333;
  margin: 10px 0;
}

.prose .note {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: var(--color-text-muted);
}

.footer__links a:hover {
  color: var(--color-text);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature,
  .benefits,
  .services,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    gap: 32px;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .service-card {
    min-height: 360px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 8px 22px 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    height: calc(100vh - var(--nav-height));
  }

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

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links a,
  .nav__cta {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 19px;
  }

  .nav__cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 980px;
  }

  .nav__links li:last-child {
    border-bottom: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

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

  .nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .section {
    padding: 80px 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card,
  .btn {
    transition: none;
  }
}
