/* === Fonts === */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  src: url('/fonts/nunito.woff2') format('woff2');
  font-display: swap;
}

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

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #122b3a;
  background: #ffffff;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-gray {
  background: #e9f5fc;
}

.section-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #009fe3;
  border-radius: 2px;
}

.section-link {
  margin-top: 2.5rem;
  text-align: center;
}

.section-link a {
  font-weight: 600;
  color: #122b3a;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s;
}

.section-link a:hover {
  border-color: #009fe3;
  background: #e3f4fc;
}

/* === Header & Navigation === */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    backdrop-filter: blur(10px) saturate(1.4);
  }
}

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

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: #122b3a;
  letter-spacing: -0.5px;
}

/* CSS-only mobile menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #122b3a;
  position: relative;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle:checked ~ .nav-toggle-label .hamburger {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nav-toggle:checked ~ .main-nav {
  max-height: 400px;
}

.nav-link {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-top: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.nav-link:hover {
  background: #f8f8f8;
  color: #122b3a;
}

.nav-link.active {
  background: #e3f4fc;
  color: #122b3a;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, #29b4ef 0%, #009fe3 55%, #0084bd 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,159,227,0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #009fe3 0%, #0084bd 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,159,227,0.45);
}

.btn-outline {
  background: transparent;
  color: #122b3a;
  border-color: #d0d0d0;
}

.btn-outline:hover {
  background: #122b3a;
  color: #ffffff;
  border-color: #122b3a;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: #122b3a;
  border-color: #ffffff;
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
}

/* === Hero === */
.hero {
  background: linear-gradient(180deg, #b9e2f7 0%, #dcf1fb 60%, #f2fafe 100%);
  color: #0e2e42;
  padding: 5rem 0 6.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(0,159,227,0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(98,211,255,0.20) 0%, transparent 50%);
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Wellen-Kante am Hero-Ende */
.hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,45 C240,90 480,0 720,35 C960,70 1200,10 1440,50 L1440,90 L0,90 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

@keyframes heroDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

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


.hero-name {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #007db3;
  background: rgba(255,255,255,0.75);
  border: 1px solid #aedcf2;
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #3d6a80
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Stats === */
.stats {
  background: linear-gradient(120deg, #007db3 0%, #009fe3 60%, #29b4ef 100%);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #d6effb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === About === */
.about h2 {
  display: inline-block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

.about-photo img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

.about-content {
  max-width: 700px;
}

.about-quote {
  font-size: 1.25rem;
  font-weight: 700;
  color: #122b3a;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #e3f4fc;
  border-radius: 8px;
  line-height: 1.4;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,110,160,0.10);
  border: 1px solid #e3f4fc;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #009fe3, #007db3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: #e3f4fc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #122b3a;
  transition: background 0.3s;
}

.card:hover .card-icon {
  background: #009fe3;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .btn {
  margin-top: auto;
  align-self: center;
}

/* Dark cards for business section */
.services-dark {
  background: #122b3a;
  color: #ffffff;
}

.services-dark h2 {
  color: #ffffff;
}

.services-dark h2::after {
  background: #009fe3;
}

.services-dark .section-subtitle {
  color: #999;
}

.card-dark {
  background: #252525;
  color: #ffffff;
  border-top-color: #009fe3;
}

.card-dark .card-icon {
  background: rgba(0,159,227,0.2);
  color: #41c0f0;
}

.card-dark:hover .card-icon {
  background: #009fe3;
  color: #122b3a;
}

.card-dark h3 {
  color: #ffffff;
}

.card-dark p {
  color: #aaa;
}

.card-dark:hover {
  background: #1c3b4e;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* === Project Cards === */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  border-left: 4px solid #009fe3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e3f4fc;
  color: #122b3a;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #aedcf2;
}

.project-card p:last-child {
  color: #666;
  margin-bottom: 0;
  line-height: 1.7;
}

.project-card a {
  color: #122b3a;
  font-weight: 600;
  text-decoration: underline;
}

/* === Projekte Page === */
.projekte-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid #009fe3;
  display: inline-block;
  max-width: 100%;
}

.projekte-intro {
  font-size: 1.15rem;
  color: #666;
  max-width: 650px;
}

.project-grid-2col {
  grid-template-columns: 1fr;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.project-card-header h3 {
  margin-bottom: 0;
  min-width: 0;
  word-break: break-word;
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-live {
  background: #e3f4fc;
  color: #009fe3;
}

.project-features {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}

.project-features li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: #666;
}

.project-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: #009fe3;
  border-radius: 50%;
}

.project-card-highlight {
  border-left-color: #009fe3;
  border-left-width: 5px;
  background: #fafdff;
}

.project-link {
  margin-top: 1rem;
  display: inline-block;
}

/* === Feature List (Foto & Video) === */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-top: 3px solid #009fe3;
  transition: all 0.3s;
}

.feature-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #e3f4fc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009fe3;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.feature-item p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* === CTA Dark === */
.cta-dark {
  background: linear-gradient(135deg, #0a1f2c 0%, #122b3a 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.cta-dark h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-dark h2::after {
  display: none;
}

.cta-dark p {
  color: #bbb;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-container {
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* === Page Content (single pages) === */
.page-content h1 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #009fe3;
}

.page-content h2 {
  margin-top: 2.5rem;
}

.page-content h3 {
  margin-top: 1.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.35rem;
  line-height: 1.7;
}

.page-content a {
  color: #122b3a;
  text-decoration: underline;
  font-weight: 600;
}

.page-content a:hover {
  color: #555;
}

/* Service tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
}

.page-content thead {
  background: #122b3a;
  color: #ffffff;
}

.page-content th,
.page-content td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.page-content th {
  font-weight: 600;
}

.page-content tbody tr:hover {
  background: #e3f4fc;
}

/* Contact info styling (legacy for other pages) */
.contact-info {
  background: #f8f8f8;
  border-left: 4px solid #009fe3;
  border-radius: 0 12px 12px 0;
  padding: 2rem;
  margin: 1.5rem 0;
}

.contact-info p {
  font-size: 1.05rem;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
  text-decoration: none;
  color: #122b3a;
  border-top: 3px solid #009fe3;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.contact-card-whatsapp {
  border-top-color: #25D366;
}

.contact-card-whatsapp .contact-card-icon {
  background: rgba(37,211,102,0.1);
  color: #25D366;
}

.contact-card-whatsapp:hover .contact-card-icon {
  background: #25D366;
  color: #ffffff;
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: #e3f4fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #009fe3;
  transition: all 0.3s;
}

.contact-card:hover .contact-card-icon {
  background: #009fe3;
  color: #ffffff;
}

.contact-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.contact-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info-block {
  padding: 2rem;
  background: #f8f8f8;
  border-radius: 12px;
  border-left: 4px solid #009fe3;
}

.contact-info-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.contact-info-block h2::after {
  display: none;
}

.contact-info-block .btn {
  margin-top: 0.75rem;
}

.contact-photo {
  height: 40vh;
  min-height: 250px;
  max-height: 450px;
  background: url('/img/service-wartung.jpg') center 40%/cover no-repeat;
  position: relative;
}

.contact-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15,15,15,0.6) 100%);
}

/* === Footer === */
.site-footer {
  background: #0a1f2c;
  color: #999;
  padding: 3.5rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #009fe3 50%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer a {
  color: #999;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #41c0f0;
}

.site-footer p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* === Scroll-Reveal (nur moderne Browser, Fallback = sofort sichtbar) === */
/* `translate` statt `transform`, damit die Hover-Lifts (transform) unabhängig bleiben */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card, .project-card, .feature-item, .contact-card, .stat, .about-photo {
      animation: revealUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes revealUp {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* === Print === */
@media print {
  .site-header, .site-footer, .hero, .stats, .cta-dark { display: none; }
  .section { padding: 1rem 0; }
}

/* === Media Queries === */

/* Tablet */
@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.25rem; }

  .hero { padding: 6rem 0; }
  .hero h1 { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-buttons { flex-direction: row; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-number { font-size: 2rem; }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .section { padding: 5rem 0; }

  .hero { padding: 7rem 0; }
  .hero h1 { font-size: 3.5rem; }

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

  .about-quote { font-size: 1.35rem; }

  /* Desktop nav */
  .nav-toggle-label {
    display: none;
  }

  .main-nav {
    position: static;
    max-height: none;
    flex-direction: row;
    border-bottom: none;
    overflow: visible;
  }

  .nav-link {
    border-top: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
  }

  .nav-link.active {
    background: transparent;
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: #009fe3;
    border-radius: 2px;
  }

  .nav-link:hover {
    background: transparent;
    color: #009fe3;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Perfektwasser-Ergänzungen === */
.logo-img {
  display: flex;
  align-items: center;
}

.logo-img img {
  height: 34px;
  width: auto;
}

.nav-link-shop {
  color: #009fe3;
  font-weight: 700;
}

.card-img {
  width: calc(100% + 3rem);
  max-width: none;
  margin: -2rem -1.5rem 1.25rem;
  height: 160px;
  object-fit: cover;
  border-radius: 17px 17px 0 0;
}

.card-img-contain {
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
}

.card-grid-4 {
  gap: 1.5rem;
}

.product-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  color: #666;
  font-size: 0.95rem;
}

.product-facts li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
}

.product-facts li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #009fe3;
  font-weight: 700;
}

.product-tag {
  display: inline-block;
  background: #009fe3;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.product-tag-gray {
  background: #8a9aa5;
}

.laser-banner {
  background: #d9effa;
}

.laser-banner-tag {
  display: inline-block;
  background: #009fe3;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.testimonial p {
  font-style: italic;
  color: #444;
}

.img-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.img-row img {
  width: 100%;
  border-radius: 12px;
}

@media (min-width: 700px) {
  .img-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .img-row:has(> img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === Mobile-Fixes === */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  h1, h2, h3, h4 {
    hyphens: auto;
  }
}

@media (max-width: 720px) {
  /* Breite Spez-Tabellen: wischen statt abschneiden */
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-content th,
  .page-content td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  /* Inline-Bilder mit style="max-width: NNNpx" nie breiter als der Viewport
     (!important nötig, um die Inline-Styles zu überstimmen) */
  .page-content img,
  .about-photo img {
    max-width: 100% !important;
    height: auto;
  }
}


/* === Feinschliff v8: Split-Hero, Eyebrows, Wellen-CTA === */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.text-grad {
  background: linear-gradient(120deg, #0084bd 0%, #009fe3 50%, #29b4ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-product {
  display: block;
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}

.hero-product img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 32px rgba(0,80,120,0.28));
  transition: transform 0.4s ease;
}

.hero-product:hover img {
  transform: translateY(-6px) scale(1.02);
}

.hero-product-tag {
  position: absolute;
  top: 6%;
  right: -0.25rem;
  background: linear-gradient(135deg, #29b4ef, #009fe3);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,120,180,0.35);
}

.section-eyebrow {
  color: #009fe3;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.4rem;
}

/* Wellen-Übergang in den dunklen CTA-Block (weiße Sektion darüber) */
.cta-dark {
  position: relative;
  overflow: hidden;
  padding-top: 6.5rem;
}

.cta-dark::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,30 C240,80 480,0 720,40 C960,80 1200,10 1440,45 L1440,0 L0,0 Z'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}

/* Testimonials: großes Anführungszeichen */
.testimonial {
  position: relative;
  padding-top: 2.75rem;
}

.testimonial::before {
  content: '\201E';
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  color: #009fe3;
  opacity: 0.35;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    text-align: left;
  }

  .hero-grid .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-grid .hero-buttons {
    justify-content: flex-start;
  }

  .hero-product {
    max-width: 420px;
  }
}


/* === Lead-Formular === */
.lead-form {
  background: #ffffff;
  border: 1px solid #d5ecf8;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0,90,140,0.16);
  text-align: left;
}

.lead-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0e2e42;
  margin-bottom: 0.25rem;
}

.lead-form-sub {
  color: #667f8f;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.lf-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.lf-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #16303f;
  margin-bottom: 0.9rem;
}

.lf-label input,
.lf-label textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #cfe3ee;
  border-radius: 10px;
  font: inherit;
  color: #16303f;
  background: #fbfdfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lf-label input:focus,
.lf-label textarea:focus {
  outline: none;
  border-color: #009fe3;
  box-shadow: 0 0 0 3px rgba(0,159,227,0.15);
}

.lf-row {
  display: grid;
  gap: 0;
}

.lf-hint {
  font-size: 0.8rem;
  color: #667f8f;
  margin: -0.4rem 0 0.9rem;
}

.lf-hint a {
  color: #009fe3;
  font-weight: 600;
}

.lf-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: #667f8f;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.lf-consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #009fe3;
  flex-shrink: 0;
}

.lf-consent a {
  color: #009fe3;
}

.lf-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
}

.lf-submit + .lf-hint {
  margin-top: 0.85rem;
  margin-bottom: 0;
  text-align: center;
}

.landing-form-center {
  max-width: 560px;
  margin: 0 auto;
}

.landing-hero {
  padding-bottom: 7rem;
}

.landing-facts {
  display: inline-block;
  text-align: left;
  color: #3d6a80;
}

.landing-facts li::before {
  color: #007db3;
}

@media (min-width: 900px) {
  .lf-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .landing-hero .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .landing-facts {
    display: block;
  }
}


/* Freisteller-Fotos auf hellem Grund: getöntes Panel */
.about-photo-tint img {
  background: linear-gradient(160deg, #dff1fb 0%, #f4fafe 100%);
  border: 1px solid #cfe7f5;
  padding: 1.5rem;
}
