/* ==========================================================================
   E&P Kältetechnik – Redesign-Konzept (einfachcool.auftrittsreich.de)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand (aus echtem Logo gesampelt) */
  --navy-950: #071a2e;
  --navy-900: #0b2544;
  --navy-800: #123a63;
  --brand-blue: #106c9d;
  --brand-blue-light: #1c8cc4;
  --ice-teal: #6fc3d6;
  --ice-teal-light: #a9e0ea;
  --frost-50: #f2fafc;
  --frost-100: #e6f4f8;
  --white: #ffffff;
  --ink: #0e2233;
  --gray-600: #4d6373;
  --gray-500: #7690a0;
  --gray-200: #dde9ee;
  --gray-100: #eef5f8;

  --grad-brand: linear-gradient(135deg, var(--brand-blue) 0%, var(--ice-teal) 100%);
  --grad-hero: linear-gradient(160deg, rgba(7, 26, 46, 0.94) 0%, rgba(11, 37, 68, 0.82) 45%, rgba(16, 108, 157, 0.55) 100%);
  --grad-dark: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);

  --shadow-sm: 0 2px 10px rgba(11, 37, 68, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 37, 68, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 37, 68, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--ice-teal-light); }

h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  max-width: 780px;
}
p.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--gray-600);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(16, 108, 157, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 108, 157, 0.4); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-ghost-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn-ghost-dark:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 11px 24px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 37, 68, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 48px);
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 42px; width: auto; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-950);
  line-height: 1.15;
}
.logo-text span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--brand-blue); font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--navy-800);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active { background: var(--frost-100); color: var(--brand-blue); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.header-phone svg { flex-shrink: 0; color: var(--brand-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 48px) clamp(48px, 6vw, 76px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero p.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-badge {
  background: rgba(11, 37, 68, 0.35);
  padding: 18px 20px;
  text-align: left;
}
.hero-badge strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  color: var(--white);
}
.hero-badge span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); }

.hero-sm { min-height: 48vh; align-items: center; }
.hero-sm .hero-inner { padding-top: clamp(120px, 14vw, 160px); }
.hero-sm h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections generic ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-frost { background: var(--frost-50); }
.section-dark { background: var(--grad-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.78); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-title, .section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
}
.split-media .media-tag {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--navy-900);
}
.split-media .media-tag svg { color: var(--brand-blue); }
.split-body ul.check-list { margin-top: 22px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.98rem;
  color: var(--gray-600);
}
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand-blue); }
.check-list li strong { color: var(--ink); }

/* ---------- Bento services grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: clamp(26px, 3vw, 34px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.bento-card.featured {
  grid-column: span 2;
  background: var(--grad-dark);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: clamp(30px, 3vw, 40px);
}
.bento-card.featured h3 { color: var(--white); }
.bento-card.featured p { color: rgba(255, 255, 255, 0.75); }
.bento-card.featured img {
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--frost-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 18px;
}
.bento-card.featured .icon-badge { background: rgba(255, 255, 255, 0.12); color: var(--ice-teal-light); }
.bento-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.bento-card p { color: var(--gray-600); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat { padding: clamp(24px, 3vw, 34px) 22px; background: rgba(7, 26, 46, 0.5); }
.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 5/4;
  display: flex;
  align-items: flex-end;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 20, 36, 0.92) 0%, rgba(7, 20, 36, 0.15) 55%, transparent 100%);
}
.project-card-body { position: relative; z-index: 2; padding: 24px; color: var(--white); }
.project-kw {
  display: inline-block;
  background: var(--grad-brand);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.project-card-body h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.project-card-body p { color: rgba(255, 255, 255, 0.8); font-size: 0.87rem; margin: 0; }

/* ---------- Team ---------- */
.team-group { margin-bottom: 48px; }
.team-group h3.group-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 22px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--grad-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo.avatar { }
.avatar-mono {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--white);
  background: var(--grad-brand);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card h4 { font-size: 1rem; margin-bottom: 2px; }
.team-card .role { color: var(--brand-blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.team-card .detail { color: var(--gray-500); font-size: 0.82rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-dark);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 195, 214, 0.35), transparent 70%);
  top: -180px;
  right: -140px;
}
.cta-band h2 { color: var(--white); position: relative; z-index: 1; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); position: relative; z-index: 1; margin: 0; }
.cta-band .cta-actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---------- Cards generic (jobs, downloads) ---------- */
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: clamp(26px, 3vw, 36px);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--frost-100);
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.68); padding: clamp(56px, 6vw, 80px) 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 36px; }
.footer-logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ice-teal-light); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; color: var(--ice-teal); margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal-content p, .legal-content li { color: var(--gray-600); }
.legal-content ul { padding-left: 1.2em; list-style: disc; margin-bottom: 1em; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  padding: 24px clamp(20px, 6vw, 40px);
  transform: translateX(100%);
  transition: transform 0.32s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer nav a {
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer .header-phone { color: var(--white); margin-top: 30px; font-size: 1.1rem; }
.mobile-drawer .btn { margin-top: 20px; align-self: flex-start; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .main-nav, .site-header .header-phone { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: span 1; }
  .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 86vh; }
}
