:root {
  --primary: #0a5c8f;
  --primary-dark: #08345f;
  --primary-light: #11a0d8;
  --accent: #71be2f;
  --accent-dark: #4f9820;
  --text: #1e2933;
  --muted: #5f6f7a;
  --white: #ffffff;
  --light: #f4f8fb;
  --light-blue: #eaf5fb;
  --border: rgba(8, 52, 95, 0.12);
  --shadow: 0 18px 50px rgba(8, 52, 95, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top right, rgba(17, 160, 216, 0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(113, 190, 47, 0.12), transparent 40%),
    linear-gradient(180deg, #f4f8fb 0%, #eaf5fb 100%);
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 80px 40px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 20px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 54px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-kicker.light {
  color: #bfe98f;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  font-weight: 700;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(113, 190, 47, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 8px 20px rgba(113, 190, 47, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: none;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 52, 95, 0.08);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
}

/* Joomla Logo */
.navbar-brand img,
.brand-logo img {
  max-height: 200px;
  width: auto;
  border-radius: 14px !important;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: block;
}

/* Optional für eigenes Branding */
.brand,
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-text,
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong,
.logo-text strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.brand-text span,
.logo-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Navigation */
.menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu a {
  position: relative;
  font-weight: 600;
  color: var(--primary-dark);
  transition: 0.2s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

.menu a:hover {
  color: var(--accent-dark);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
  background:
    linear-gradient(rgba(8, 52, 95, 0.8), rgba(10, 92, 143, 0.8)),
    url('/images/Background_Webseite.png') center/cover no-repeat;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(17, 160, 216, 0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(113, 190, 47, 0.15), transparent 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-text {
  max-width: 850px;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #d8ecf7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 span {
  color: #bfe98f;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-points li {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

/* Services */
.services {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Cards */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--light-blue), #f0fff0);
  font-size: 1.8rem;
}

.card h3 {
  color: var(--primary-dark);
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* About */
.about {
  background: linear-gradient(180deg, rgba(234, 245, 251, 0.5), rgba(255, 255, 255, 1));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-box {
  padding-right: 20px;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.advantage {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(8, 52, 95, 0.07);
}

.advantage h3 {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

/* Process */
.process {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(8, 52, 95, 0.08);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.step h3 {
  color: var(--primary-dark);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.contact-left h2,
.contact-left p,
.contact-left a,
.contact-left strong {
  color: #ffffff;
}

.contact-data {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.contact-form {
  padding: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

/* Footer */
.footer {
  background: #061f39;
  color: rgba(255, 255, 255, 0.85);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

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

/* Slider */
.image-slider-section {
  background: transparent;
}

.fade-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(8, 52, 95, 0.08);
  box-shadow: 0 22px 60px rgba(8, 52, 95, 0.16);
}

.fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #000;
  animation: fadeSlider 75s infinite;
}

.fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.fade-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 52, 95, 0.08), rgba(8, 52, 95, 0.03)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.fade-slider:hover .fade-slide {
  animation-play-state: paused;
}

@keyframes fadeSlider {
  0% { opacity: 0; }
  1.2% { opacity: 1; }
  5.2% { opacity: 1; }
  6.66% { opacity: 0; }
  100% { opacity: 0; }
}

.fade-slide:nth-child(1)  { animation-delay: 0s; }
.fade-slide:nth-child(2)  { animation-delay: 5s; }
.fade-slide:nth-child(3)  { animation-delay: 10s; }
.fade-slide:nth-child(4)  { animation-delay: 15s; }
.fade-slide:nth-child(5)  { animation-delay: 20s; }
.fade-slide:nth-child(6)  { animation-delay: 25s; }
.fade-slide:nth-child(7)  { animation-delay: 30s; }
.fade-slide:nth-child(8)  { animation-delay: 35s; }
.fade-slide:nth-child(9)  { animation-delay: 40s; }
.fade-slide:nth-child(10) { animation-delay: 45s; }
.fade-slide:nth-child(11) { animation-delay: 50s; }
.fade-slide:nth-child(12) { animation-delay: 55s; }
.fade-slide:nth-child(13) { animation-delay: 60s; }
.fade-slide:nth-child(14) { animation-delay: 65s; }
.fade-slide:nth-child(15) { animation-delay: 70s; }

/* Responsive */
@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    padding: 16px 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero {
    min-height: auto;
  }

  .section {
    padding: 80px 24px;
  }

  .fade-slider {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-buttons,
  .hero-points,
  .footer-inner,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-text span {
    display: none;
  }

  .btn,
  .btn-outline,
  .btn-white {
    width: 100%;
  }

  .fade-slider {
    height: 300px;
  }
}

.google-reviews {
  margin-top: 50px;
  text-align: center;
}

.google-reviews h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
}

/* einzelne Bewertung */
.review {
  background: #ffffff;
  padding: 25px;
  margin: 15px auto;
  border-radius: 14px;
  max-width: 600px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* Hover Effekt (passt zu deinen Karten) */
.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Sterne */
.review span {
  font-size: 20px;
  color: #f1c40f;
}

/* Text */
.review p {
  margin: 10px 0;
  color: #333;
}

/* Name */
.review strong {
  color: #555;
}
