/* ============================================
   LATZKO GMBH - REDESIGN
   CI: Green #1F5931 | Yellow #FBCE34
   Style: Modern Flat + Interactive Craftsmanship
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --green: #1F5931;
  --green-light: #2a7a43;
  --green-dark: #163f23;
  --yellow: #FBCE34;
  --yellow-light: #fcd85c;
  --yellow-dark: #e0b520;
  --white: #ffffff;
  --off-white: #f5f7f0;
  --green-tint: #eef4eb;
  --yellow-tint: #fef9e8;
  --gray-50: #ecf0e9;
  --gray-100: #d6ddd3;
  --gray-200: #b8c4b3;
  --gray-300: #8a9a85;
  --gray-400: #5e7258;
  --gray-500: #3d5038;
  --gray-600: #2b3928;
  --dark: #111d10;
  --shadow-sm: 0 1px 3px rgba(31,89,49,0.08);
  --shadow-md: 0 4px 12px rgba(31,89,49,0.1);
  --shadow-lg: 0 8px 30px rgba(31,89,49,0.12);
  --shadow-xl: 0 16px 50px rgba(31,89,49,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-animations * {
  animation: none !important;
  transition: none !important;
}

body.custom-cursor-active {
  cursor: none;
}
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active [role="button"] {
  cursor: none;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-light);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 70ch;
}

.text-accent { color: var(--yellow); }
.text-green { color: var(--green); }

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

.section {
  padding: 100px 0;
}

.section--green {
  background: var(--green);
  color: var(--white);
}
.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--yellow);
}
.section--green p {
  color: rgba(255,255,255,0.85);
}

.section--gray {
  background: var(--green-tint);
}

.section--gray h2,
.section--gray h3 {
  color: var(--yellow-dark);
}

.section--yellow-tint {
  background: var(--yellow-tint);
}

.section--yellow {
  background: var(--yellow);
  color: var(--green-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  margin: 16px auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section--green .section-label {
  color: var(--yellow);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 30px;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--yellow);
  color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--yellow-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251,206,52,0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn--secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--green);
}
.btn--white:hover {
  background: var(--off-white);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245,247,240,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(31,89,49,0.1);
  transition: all var(--transition-smooth);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(31,89,49,0.97);
}

.nav--scrolled .nav__link {
  color: rgba(255,255,255,0.7);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--yellow);
  background: rgba(255,255,255,0.1);
}

.nav--scrolled .nav__link--cta {
  background: var(--yellow);
  color: var(--green-dark);
}

.nav--scrolled .nav__burger span {
  background: var(--yellow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 42px;
  width: auto;
  transition: filter var(--transition-smooth);
}

.nav--scrolled .nav__logo-img {
  filter: brightness(0) invert(1);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--green);
  background: var(--gray-50);
}

.nav__link--cta {
  background: var(--yellow);
  color: var(--green-dark);
  font-weight: 600;
}
.nav__link--cta:hover {
  background: var(--yellow-light);
  color: var(--green-dark);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav__dropdown-item:hover {
  background: var(--gray-50);
  color: var(--green);
}

/* Mobile Nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px;
  z-index: 999;
  overflow-y: auto;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
}

.nav__mobile a:hover {
  color: var(--green);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* --- Hero --- */
.hero {
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-tint) 0%, var(--yellow-tint) 50%, var(--off-white) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(31,89,49,0.08);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

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

.hero h1 span {
  color: var(--yellow);
  position: relative;
}

.hero__text {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: var(--gray-400);
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--gray-300);
  font-weight: 500;
}

/* Decorative pipe background */
.hero__pipes {
  position: absolute;
  top: 0;
  right: -5%;
  width: 55%;
  height: 100%;
  opacity: 0.06;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__pipes { display: none; }
}

/* --- Service Cards (Home) --- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .service-cards { grid-template-columns: 1fr; }
}

.service-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--green-tint) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(31,89,49,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.service-card:hover .service-card__icon {
  background: var(--yellow);
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green);
}

.service-card__link svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* --- Leistungen Grid --- */
.leistung-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-smooth);
  text-align: center;
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
  background: linear-gradient(180deg, var(--yellow-tint) 0%, var(--white) 100%);
}

.leistung-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1.6rem;
}

.leistung-card h4 {
  margin-bottom: 10px;
}

.leistung-card p {
  font-size: 0.9rem;
  margin: 0 auto;
}

/* --- About / Company Section --- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--yellow);
  color: var(--green-dark);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat-item__label {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-100);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline__item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline__year {
  flex: 0 0 auto;
  width: 80px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  padding-top: 4px;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline__content {
  flex: 1;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.timeline__content p {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .timeline::before { left: 20px; }
  .timeline__item,
  .timeline__item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 50px;
    gap: 12px;
  }
  .timeline__dot { left: 20px; }
}

/* --- Team Grid --- */
.team-card {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.team-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  overflow: hidden;
  border: 3px solid var(--yellow);
  transition: all var(--transition-smooth);
}

.team-card:hover .team-card__avatar {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(251,206,52,0.3);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-dark);
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-top: 4px;
}

/* --- Partner Logos --- */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

.partners img {
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-smooth);
}

.partners img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.partners span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-400);
}

/* --- Benefits List --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-tint) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.benefit-item:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1.1rem;
}

.benefit-item:hover .benefit-item__icon {
  background: var(--yellow);
  color: var(--green-dark);
  transform: rotate(8deg) scale(1.1);
}

.benefit-item__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* --- Job Cards --- */
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition-smooth);
}

.job-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.job-card__type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
}

.job-card h3 {
  margin-bottom: 10px;
}

.job-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 1.2rem;
}

.contact-info-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-300);
  font-weight: 600;
}

.contact-info-card__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

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

/* --- Page Header (Subpages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--yellow);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 600px;
}

.page-header__bg {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(251,206,52,0.08);
  border-radius: 50%;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}
.breadcrumb a:hover {
  color: var(--yellow);
}

/* --- Leistung Detail Page --- */
.leistung-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  .leistung-detail { grid-template-columns: 1fr; }
}

.leistung-sidebar {
  position: sticky;
  top: 100px;
}

.leistung-sidebar__card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.leistung-sidebar__card h4 {
  margin-bottom: 20px;
}

.leistung-sidebar__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.leistung-sidebar__contact:last-child {
  border-bottom: none;
}

.leistung-sidebar__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-weight: 700;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--yellow);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin: 0 auto 32px;
}

.cta-banner__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(251,206,52,0.1);
  filter: blur(60px);
}

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 50px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--yellow);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}
.footer__bottom a:hover {
  color: var(--yellow);
}

/* --- Notfall-Sektion --- */
.emergency-banner {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.emergency-banner h2 {
  color: var(--white);
}

.emergency-banner__phone {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 20px 0;
  display: inline-block;
}

.emergency-banner__shake-hint {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.custom-cursor--hidden {
  opacity: 0;
}

/* --- Scroll Manometer --- */
.manometer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  z-index: 900;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.manometer--visible {
  opacity: 1;
}

/* --- Spark Effect --- */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  animation: spark-fly 0.6s ease-out forwards;
}

@keyframes spark-fly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0); }
}

/* --- Pipe Background SVG --- */
.pipe-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.pipe-bg path {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
}

/* --- Animation Toggle --- */
.anim-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 900;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.anim-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.legal-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

/* --- Parallax Sections --- */
.parallax-section {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section__bg {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

.parallax-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.parallax-section__overlay--green {
  background: linear-gradient(135deg, rgba(31,89,49,0.85) 0%, rgba(31,89,49,0.7) 100%);
}

.parallax-section__overlay--yellow {
  background: linear-gradient(135deg, rgba(251,206,52,0.9) 0%, rgba(251,206,52,0.75) 100%);
}

.parallax-section__overlay--dark {
  background: linear-gradient(135deg, rgba(22,63,35,0.92) 0%, rgba(31,89,49,0.8) 100%);
}

.parallax-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: var(--container-width);
  padding: 0 24px;
}

.parallax-section__content h2 {
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.parallax-section__content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.parallax-section__content .btn {
  margin-top: 24px;
}

/* Parallax image cards with hover tilt */
.parallax-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  transition: transform var(--transition-smooth);
}

.parallax-card:hover {
  transform: scale(1.02);
}

.parallax-card img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform: translateY(-10%);
}

.parallax-card:hover img {
  transform: translateY(-5%) scale(1.05);
}

.parallax-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(31,89,49,0.9) 0%, transparent 100%);
  color: var(--white);
}

.parallax-card__overlay h3 {
  color: var(--white);
  margin-bottom: 4px;
}

.parallax-card__overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
