/* ============================================================
   MEVA Gebäudereinigung & Hausmeisterservice
   Palette lives in :root — swap these to match the logo.
   ============================================================ */
:root {
  --brand:        #12b3af;   /* MEVA teal (interactive)   */
  --brand-bright: #15c8c4;   /* logo teal (accents/glows) */
  --brand-dark:   #0c8f8c;   /* deep teal (links, hover)  */
  --brand-2:      #15c8c4;   /* accent teal               */
  --navy:         #1a2635;   /* MEVA brand navy           */
  --navy-2:       #24384f;   /* lighter navy for gradient */
  --ink:          #17232f;   /* headings (near navy)      */
  --body:         #4a5561;   /* body text                 */
  --muted:        #7c8794;
  --line:         #e5eaef;
  --bg:           #ffffff;
  --bg-soft:      #f1f8f8;
  --bg-tint:      #e4f4f4;
  --white:        #ffffff;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 8px rgba(16, 42, 74, .06);
  --shadow:       0 12px 30px rgba(16, 42, 74, .10);
  --shadow-lg:    0 24px 60px rgba(16, 42, 74, .16);
  --maxw:         1160px;
  --font-head:    "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* ---------- Icons ---------- */
.ico { width: 26px; height: 26px; display: block; stroke: var(--brand); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-icon .ico { width: 20px; height: 20px; }
.btn .ico { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }

a { color: var(--brand-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-lead { font-size: 1.1rem; color: var(--body); margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
  text-align: center;
}
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #0e9c98 0%, var(--brand-bright) 120%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 179, 175, .30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(18, 179, 175, .38); color:#fff; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand-logo { height: 42px; width: auto; }
.footer-logo { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .96rem;
  transition: background .2s, color .2s;
}
.main-nav > a:not(.nav-cta):hover { background: var(--bg-tint); color: var(--brand); }
.nav-cta { margin-left: 8px; color: #fff; padding: 10px 20px; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .18s;
}
.lang-switch button.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(21,200,196,.42) 0%, rgba(21,200,196,0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(21,200,196,.20) 0%, rgba(21,200,196,0) 55%),
    linear-gradient(140deg, var(--navy) 0%, #1e3346 50%, #17544f 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; padding-top: clamp(70px, 11vw, 140px); padding-bottom: clamp(80px, 12vw, 150px); }
.hero-content { max-width: 760px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; color: #eafcff;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin-bottom: .3em; }
.hero-claim { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #b9f0ef; margin: 0 0 .8em; letter-spacing: .01em; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.92); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-actions .btn { white-space: normal; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 0; padding: 0; }
.hero-badges li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.95); }
.hero-badges .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px rgba(21,200,196,.28); }

/* ---------- Why / Feature cards ---------- */
.why { background: var(--bg); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg-tint), #cdeeed);
}
.feature-card h3 { font-size: 1.24rem; }
.feature-card p { margin: 0; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.about-text p { margin-bottom: 1.1em; }
.about-text .btn { margin-top: 12px; }
.about-media { position: relative; }
.about-card-stack {
  background: linear-gradient(140deg, var(--navy) 0%, #17544f 130%);
  border-radius: 24px; padding: 40px; display: grid; gap: 22px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.about-card-stack::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .6;
}
.about-card-stack .stat { position: relative; z-index: 1; color: #fff; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 18px; }
.about-card-stack .stat:last-child { border-bottom: 0; padding-bottom: 0; }
.about-card-stack .stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.about-card-stack .stat span { font-weight: 600; color: rgba(255,255,255,.9); }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.cards-service { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--bg-tint), #cdeeed);
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .5em; }
.service-card > p { margin: 0 0 14px; font-size: .97rem; }
.service-list-label { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.service-list { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-list { list-style: none; margin: 30px 0 26px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.contact-list li div { display: flex; flex-direction: column; padding-top: 2px; }
.contact-list strong { color: var(--ink); font-family: var(--font-head); }
.contact-quote { font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--brand-dark); font-weight: 600; margin-top: 8px; }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: .2em; }
.form-note { font-size: .96rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(21,200,196,.16);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .84rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.field input:invalid:not(:placeholder-shown) { border-color: #e0748a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(48px,7vw,72px) 24px; }
.footer-brand .footer-logo { margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-family: var(--font-head); font-weight: 600; color: #fff; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col p { margin: 0 0 8px; font-size: .95rem; }
.footer-col a, .footer-brand a { color: rgba(255,255,255,.72); }
.footer-col a:hover, .footer-brand a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; gap: 8px; font-size: .87rem; }
.footer-legal a { color: rgba(255,255,255,.6); }

/* ---------- Legal / Impressum page ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); background: var(--bg); }
.legal-inner { max-width: 760px; }
.legal .back-link { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; margin-bottom: 26px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.legal-note { color: var(--muted); font-size: .95rem; margin: 0 0 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal .addr { line-height: 1.9; }
.legal .addr strong { color: var(--ink); font-family: var(--font-head); }
.legal a { word-break: break-word; }
.legal .small { font-size: .9rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards-3, .cards-service { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .32s ease; z-index: 90;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > a { padding: 14px 8px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .cards-3, .cards-service { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
