/* ═══════════════════════════════════════
   DM Gebäudereinigung — Stylesheet
   ═══════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Colors */
  --color-bg:          #F7F6F3;
  --color-surface:     #FFFFFF;
  --color-text:        #1A1A1A;
  --color-muted:       #6B6B6B;
  --color-accent:      #2D6A4F;
  --color-accent-lt:   #40916C;
  --color-accent-pale: #D8F3DC;
  --color-accent-dk:   #1B4332;
  --color-border:      #E0DED8;
  --color-warm:        #F5EFE6;

  /* Typography */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius:    12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ═══════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.v {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent-dk);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--color-text);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--color-accent-dk);
  transform: translateY(-1px);
}

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

.burger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--color-accent-pale) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-pale);
  color: var(--color-accent-dk);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

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

.btn-p:hover {
  background: var(--color-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 106, 79, 0.22);
}

.btn-s {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-s:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-warm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img svg {
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--color-surface);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.float-icon {
  width: 42px;
  height: 42px;
  background: var(--color-accent-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-card .lbl {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.float-card .val {
  font-weight: 700;
  font-size: 0.95rem;
}


/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 500;
}

.trust-ico {
  width: 38px;
  height: 38px;
  background: var(--color-accent-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════ */
section {
  padding: var(--space-2xl) 0;
}

.s-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.s-desc {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.8;
}

.s-center {
  text-align: center;
}

.s-center .s-desc {
  margin: 0 auto;
}


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
#leistungen {
  background: var(--color-bg);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.svc {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.4s var(--ease);
}

.svc:hover {
  border-color: var(--color-accent-pale);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(45, 106, 79, 0.07);
}

.svc:hover::before {
  height: 100%;
}

.svc-ico {
  width: 52px;
  height: 52px;
  background: var(--color-accent-pale);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  transition: all 0.3s var(--ease);
}

.svc:hover .svc-ico {
  background: var(--color-accent);
  color: #fff;
}

.svc h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.svc p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */
#ueber-uns {
  background: var(--color-surface);
}

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

.about-img {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-warm);
  position: relative;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img svg {
  width: 100%;
  height: 100%;
}

.about-img.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-pale);
}

.about-img.img-placeholder::after {
  content: '📷 Foto hier einfügen';
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.stat-n {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-l {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 4px;
}


/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
  background: var(--color-accent-dk);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.3), transparent 70%);
  pointer-events: none;
}

.cta-section .s-title {
  color: #fff;
}

.cta-section .s-desc {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 32px;
}

.btn-w {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-accent-dk);
  padding: 16px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-w:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}


/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
#kontakt {
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

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

.c-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.c-ico {
  width: 44px;
  height: 44px;
  background: var(--color-accent-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.c-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.c-item p {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.c-item a {
  transition: color 0.3s var(--ease);
}

.c-item a:hover {
  color: var(--color-accent);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-warm);
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0 32px;
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

.footer-logo span {
  color: var(--color-accent-lt);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.footer-links a:hover {
  color: #fff;
}


/* ═══════════════════════════════════════
   LEGAL PAGES (Impressum / Datenschutz)
   ═══════════════════════════════════════ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 40px;
  min-height: 80vh;
}

#impressum,
#datenschutz {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.legal-content {
  max-width: 760px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--color-accent-dk);
}


/* ═══════════════════════════════════════
   SCROLL TO TOP BUTTON
   ═══════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-dk);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--color-border);
  }

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

  .burger {
    display: flex;
  }

  /* Stacked grids */
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  /* Spacing */
  section {
    padding: 64px 0;
  }

  .trust-items {
    gap: 24px;
  }

  .float-card {
    bottom: -10px;
    left: 8px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}
