@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f6f6f6;
  --bg-2: #f2f2f2;
  --ink: #1e1e1e;
  --ink-2: #707070;
  --accent: #3f3f3f;
  --accent-2: #2f7f7b;
  --line: #e7e7e7;
  --card: #ffffff;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.06);
  --hero-overlay: rgba(255, 255, 255, 0.84);
  --alert: #d14646;
  --alert-soft: #fff1f1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f8f8f8 0%, #efefef 55%, #ededed 100%);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
  position: relative;
  z-index: 1001;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  transform: scale(1.18);
}

.brand-name {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

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

.nav a {
  font-size: 0.95rem;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 4px;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.nav a.alert {
  color: var(--alert);
  font-weight: 600;
}

.nav a.alert::after {
  background: var(--alert);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  z-index: 1002;
}

.hero {
  position: relative;
  padding: 160px 0 160px;
  overflow: hidden;
  background: #eaeaea;
}

.hero.has-image {
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
    url("../images/Badsanierung00004.jpeg") center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.contact-hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 420px);
  align-items: start;
  gap: 56px;
}

.hero h1 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero p {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 56ch;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero .tag {
  margin-bottom: 12px;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero .hero-actions {
  margin-top: 6px;
}

.hero-grid {
  gap: 56px;
}

.hero-text {
  max-width: 640px;
}

.hero.has-image .hero-text p {
  max-width: 78ch;
}

@media (max-width: 900px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #4a4a4a;
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: #2f2f2f;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 28px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-card h3 {
  margin-top: 0;
}

.section {
  padding: 64px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-family: "Poppins", system-ui, sans-serif;
  margin: 0;
  font-size: 2.2rem;
}

.section-title .tag {
  flex-shrink: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #efefef;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.contact-split {
  align-items: start;
}

.highlight {
  background: #f7f7f7;
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer small {
  color: var(--ink-2);
  display: block;
  margin-top: 0;
  line-height: 1.2;
}

.footer strong {
  display: block;
  margin-bottom: 6px;
}

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

.footer-links strong {
  flex-basis: 100%;
  margin-bottom: 2px;
}

.footer-links small {
  display: inline;
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f6f6f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.hero-note {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.hero-note .badge {
  justify-content: space-between;
}

.form {
  display: grid;
  gap: 12px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-family: inherit;
  background: #fafafa;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.map-card {
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  border: 1px dashed var(--line);
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}

.map-card iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 18px;
}

.lava-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lava-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite;
}

.lava-blob.one {
  background: radial-gradient(circle, #ffffff 0%, #d9d9d9 60%, transparent 70%);
  top: -80px;
  left: -60px;
}

.lava-blob.two {
  background: radial-gradient(circle, #f2f2f2 0%, #cfcfcf 60%, transparent 70%);
  bottom: -120px;
  right: -80px;
  animation-delay: -6s;
}

.lava-blob.three {
  background: radial-gradient(circle, #ededed 0%, #bdbdbd 60%, transparent 70%);
  top: 20%;
  right: 15%;
  width: 320px;
  height: 320px;
  animation-delay: -10s;
}

.lava-blob.four {
  background: radial-gradient(circle, #f7f7f7 0%, #cfcfcf 60%, transparent 70%);
  top: 45%;
  left: 10%;
  width: 300px;
  height: 300px;
  animation-delay: -12s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

body > *:not(.lava-bg):not(.topbar) {
  position: relative;
  z-index: 1;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.6px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.12) 12px,
      rgba(255, 255, 255, 0.18) 12px,
      rgba(255, 255, 255, 0.18) 24px
    );
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.card:hover,
.feature-card:hover,
.service-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.competence-grid .card:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.features {
  margin-top: -40px;
}

.feature-card {
  text-align: center;
  padding: 26px 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #efefef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--ink);
  font-weight: 700;
}

.competence-grid .card {
  padding: 0;
  overflow: hidden;
}

.competence-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.competence-body {
  padding: 18px 20px 22px;
}

.service-grid {
  display: grid;
  gap: 32px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #efefef;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-row:nth-child(even) .service-media {
  order: 2;
}

.service-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 22px;
}

.service-body {
  padding: 10px 10px 10px 0;
}

.service-body h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.service-body p {
  font-size: 1.05rem;
  color: var(--ink-2);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #ededed;
}

.alert-box {
  background: var(--alert-soft);
  border: 1px solid rgba(209, 70, 70, 0.3);
  box-shadow: var(--shadow-soft);
}

.alert-box h2,
.alert-box h3 {
  color: var(--alert);
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alert);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.cta {
  background: #6c6c6c;
  color: #fff;
  padding: 50px 40px;
  border-radius: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta .btn {
  background: #fff;
  color: var(--ink);
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    right: 4vw;
    top: 68px;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 9999;
    min-width: 220px;
  }

  .nav.open {
    display: flex;
    z-index: 9999;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 70px 0 60px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .section-title .tag {
    max-width: 100%;
  }

  .features {
    margin-top: -20px;
  }

  .cta {
    padding: 40px 26px;
  }
}

@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section-title h2 {
    font-size: 1.9rem;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-row:nth-child(even) .service-media {
    order: 0;
  }

  .service-media img {
    height: 240px;
  }

  .map-card {
    min-height: 260px;
    padding: 18px;
  }

  .map-card iframe {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }

  .btn {
    transition: none;
  }
}
