:root {
  --primary-color: #2e7d32; /* Forest Green */
  --secondary-color: #f1c40f; /* Construction Yellow */
  --secondary-hover: #f39c12;
  --accent-color: #795548; /* Earth Brown */
  --bg-color: #f1f8e9; /* Light Green tint */
  --text-color: #333333;
  --text-light: #555555;
  --white: #ffffff;
  --border-radius: 8px;
  --shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
  --transition: all 0.3s ease;

  /* Font stacks */
  --font-heading: "Exo 2", sans-serif;
  --font-body: "Roboto", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title.align-left {
  text-align: left;
}
.section-title.align-left::after {
  margin: 15px 0 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px; /* Modern rounded feel */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

.btn-secondary-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  margin-left: 15px;
}

.btn-secondary-outline:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header / Hero Section - Animated Background */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  overflow: hidden;
  width: 100%;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenburns 20s infinite alternate ease-in-out;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
    background-position: center center;
  }
  100% {
    transform: scale(1.15);
    background-position: right bottom;
  }
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark gradient overlay for text readability */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

#hero-text-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  opacity: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content .highlight {
  color: var(--secondary-color);
}

.subheadline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: #ecf0f1;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-color);
  padding: 40px 25px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: rgba(230, 126, 34, 0.2);
}

.icon-wrapper {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

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

/* About Us Section */
.about-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1 1 450px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.tech-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  opacity: 0.8;
}

.about-text {
  flex: 1 1 450px;
}

.highlight-text {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.check-list {
  margin-top: 30px;
}

.check-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.check-list li i {
  color: var(--secondary-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

/* References Section */
.references-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: -30px auto 50px;
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px); /* Fixed height rows */
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
}

/* Grid Layout specific for Gallery */
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Reviews Section */
.reviews-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}

.review-card::before {
  content: "\201C"; /* Quote mark */
  font-size: 5rem;
  color: rgba(230, 126, 34, 0.1);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

.stars {
  color: #f1c40f;
  margin-bottom: 15px;
}

.review-text {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 20px;
}

.review-author {
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 50px;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info > p {
  margin-bottom: 40px;
  color: var(--text-light);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form-wrapper {
  flex: 1 1 400px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
  color: var(--white);
  margin-bottom: 5px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 20px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.dgitel-bar {
  margin-top: 10px;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

/* Header Top Info Bar (Contact) */
.header-top-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
  position: relative;
  z-index: 1001;
}

.header-top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.top-info-left,
.top-info-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info-item i {
  color: var(--secondary-color);
}

.top-info-item a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.top-info-item a:hover {
  color: var(--secondary-color);
}

/* Updated Top Bar Navigation */
.top-bar {
  position: absolute;
  top: var(--top-info-height, 38px);
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 15px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.top-bar.scrolled-nav {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  gap: 15px; /* Space between img and text */
  transition: color 0.4s ease;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.top-bar.scrolled-nav .logo-container {
  color: var(--primary-color);
  text-shadow: none;
}

/* Explicit Logo Image Style */
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-placeholder {
  /* Kept for backup/reference if needed */
  height: 50px;
  width: auto;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  color: var(--white);
  position: relative;
  transition: color 0.4s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.top-bar.scrolled-nav .main-nav a {
  color: var(--text-color);
  text-shadow: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary-color);
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Removed .top-contact from here as it moved up */

/* Hero Banner "Meisterbetrieb" */
.hero-banner {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-banner i {
  margin-right: 10px;
}

/* Enhanced Footer */
.footer-content {
  align-items: flex-start; /* Align columns to top */
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  margin-left: 0; /* Reset previous style */
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1002;
}

/* Adjust layout for fixed header */
.hero-section {
  padding-top: 130px; /* Space for fixed header + top bar */
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    height: 300px;
  }

  .contact-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  /* Top Info Bar Stacking */
  .header-top-container {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .top-info-left,
  .top-info-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-top-info {
    padding: 8px 0;
    font-size: 0.75rem;
  }

  .top-info-item i {
    font-size: 0.8rem;
  }

  /* Mobile Navigation */
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 100vh;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .main-nav a {
    font-size: 1.2rem;
    color: var(--text-color);
    text-shadow: none;
  }

  .glass-panel {
    padding: 15px;
    border-radius: 12px;
    margin: 0 10px;
  }

  .hero-section {
    padding-top: 180px; 
  }

  /* Footer Fixes */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .footer-col {
    width: 100%;
    min-width: auto;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .dgitel-adbar-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 10px 0 0 0;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .subheadline {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .review-card {
    padding: 20px;
  }
}

/* DGITel Adbar Styles (New Version) */
.dgitel-adbar-wrapper {
  width: 100%;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.dgitel-adbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dgitel-adbar-content {
    flex-direction: row;
  }
}

.dgitel-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.025em;
}

.dgitel-copyright strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

/* New Banner Styles */
@keyframes subtle-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.dgitel-banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 1rem; Removed padding to fit better in footer */
}

.dgitel-banner-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  border: 1px solid #f3f4f6;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: all 0.5s ease;
  animation: subtle-glow 3s infinite;
}

.dgitel-banner-link:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #93c5fd;
  transform: translateY(-4px);
}

.dgitel-icon-box {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #eff6ff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease;
}

.dgitel-banner-link:hover .dgitel-icon-box {
  background-color: #2563eb;
}

.dgitel-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #2563eb;
  transition: color 0.5s ease;
}

.dgitel-banner-link:hover .dgitel-icon-svg {
  color: #fff;
}

.dgitel-text-area {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dgitel-service-text {
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dgitel-brand-line {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.brand-dgit {
  font-size: 1.25rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.dgitel-banner-link:hover .brand-dgit {
  color: #2563eb;
}

.brand-el {
  font-size: 1.25rem;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.3s ease;
}

.dgitel-banner-link:hover .brand-el {
  color: #3b82f6;
}

.brand-solutions {
  font-size: 1.25rem;
  font-weight: 300;
  color: #60a5fa;
  margin-left: 0.125rem;
}

.dgitel-status-dot-wrapper {
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
}

.dgitel-status-dot-container {
  position: relative;
  display: flex;
  height: 0.75rem;
  width: 0.75rem;
}

.dgitel-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: #60a5fa;
  opacity: 0.75;
}

.dgitel-dot-bg {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.75rem;
  width: 0.75rem;
  background-color: #3b82f6;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 2px solid #fff;
}

.dgitel-tooltip {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111827;
  color: #fff;
  font-size: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dgitel-banner-link:hover .dgitel-tooltip {
  opacity: 1;
}

.dgitel-arrow {
  color: #60a5fa;
}

/* ==========================================================================
   Qualifikationen & Zertifikate Button & Modal Styles
   ========================================================================== */

/* Primary Outline Button */
.btn-primary-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Modal Core Setup */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal.active {
  visibility: visible;
  opacity: 1;
}

/* Modal Backdrop */
.cert-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 30, 18, 0.5); /* Tinted dark backdrop */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 1;
}

/* Modal Content Card */
.cert-modal-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 950px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(46, 125, 50, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(46, 125, 50, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-modal.active .cert-modal-content {
  transform: scale(1);
}

/* Modal Header */
.cert-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 35px;
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  background: #fafdf6;
}

.cert-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
}

.cert-modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
  font-family: var(--font-body);
}

/* Modal Close Button */
.cert-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--primary-color);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cert-modal-close:hover {
  background: rgba(46, 125, 50, 0.08);
  color: var(--secondary-hover);
  transform: rotate(90deg);
  border-color: rgba(46, 125, 50, 0.1);
}

/* Modal Scrollable Body */
.cert-modal-body {
  padding: 35px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
  background: #ffffff;
}

/* Certificate Category Layout */
.cert-category-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cert-category-title {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--accent-color);
  border-bottom: 2px solid rgba(121, 85, 72, 0.12);
  padding-bottom: 8px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-category-title i {
  color: var(--secondary-color);
}

/* Certificate Cards Grid */
.cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Premium Certificate Cards */
.cert-card {
  background: #fafdf6;
  border: 1px solid rgba(46, 125, 50, 0.08);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.2);
  background: #ffffff;
}

.cert-card:hover::before {
  width: 6px;
  background: var(--secondary-color);
  opacity: 1;
}

.cert-card-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: flex-start;
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-card-icon {
  transform: scale(1.1);
  color: var(--secondary-hover);
}

.cert-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cert-card-details h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
}

.cert-card-details p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  font-family: var(--font-body);
}

.cert-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  transition: color 0.3s ease;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-card:hover .cert-card-action {
  color: var(--primary-color);
}

/* Lightbox Preview */
.cert-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-lightbox.active {
  visibility: visible;
  opacity: 1;
}

.cert-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 10, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  cursor: pointer;
}

.cert-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-lightbox.active .cert-lightbox-content {
  transform: scale(1);
}

.cert-lightbox-close {
  position: absolute;
  top: -55px;
  right: 0;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
}

.cert-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cert-lightbox-caption {
  color: #ffffff;
  margin: 15px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsiveness adjustments for modal */
@media (max-width: 768px) {
  .cert-modal-content {
    max-height: 90vh;
    width: 95%;
  }
  .cert-modal-header {
    padding: 20px 25px;
  }
  .cert-modal-header h2 {
    font-size: 1.4rem;
  }
  .cert-modal-subtitle {
    font-size: 0.85rem;
  }
  .cert-modal-body {
    padding: 25px;
    gap: 25px;
  }
  .cert-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .cert-lightbox-close {
    top: auto;
    bottom: -60px;
    right: 50%;
    transform: translateX(50%);
  }
  .cert-lightbox-close:hover {
    transform: translateX(50%) scale(1.1) rotate(90deg);
  }
  .cert-lightbox-caption {
    font-size: 1.1rem;
    margin-top: 10px;
  }
}

/* ==========================================================================
   INTERACTIVE PORTFOLIO & FILTERING SYSTEM
   ========================================================================== */

/* Filter Controls Bar */
.portfolio-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 30px 0 45px 0;
  flex-wrap: wrap;
}

/* Glassmorphic Active/Inactive Filter Pills */
.filter-pill {
  background: var(--white);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: 50px;
  padding: 10px 24px;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.filter-pill:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.2);
}

.filter-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.25);
  transform: scale(1.03);
}

/* Modern Auto-Responsive Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Portfolio Card Design with Glassmorphism shadow */
.portfolio-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Card Hover States */
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(46, 125, 50, 0.15);
}

/* Portfolio Image Container */
.portfolio-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, #eaeaea 25%, #f5f5f5 50%, #eaeaea 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.portfolio-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom Image on Hover */
.portfolio-card:hover .portfolio-img-container img {
  transform: scale(1.08);
}

/* Interactive Overlay (Green tint + Zoom Icon) */
.portfolio-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 125, 50, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-hover-overlay i {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 8px;
  transform: scale(0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-hover-overlay span {
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Reveals Overlay elements */
.portfolio-card:hover .portfolio-hover-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-hover-overlay i {
  transform: scale(1);
}

.portfolio-card:hover .portfolio-hover-overlay span {
  transform: translateY(0);
}

/* Card details underneath image */
.portfolio-card-info {
  padding: 18px 20px;
  background: var(--white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.portfolio-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-color);
  margin: 0 0 5px 0;
  transition: color 0.3s;
  font-weight: 700;
}

.portfolio-card:hover .portfolio-card-info h4 {
  color: var(--primary-color);
}

.portfolio-card-info p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* Smooth filtering states */
.portfolio-card.hidden {
  display: none;
}

/* Smooth keyframe fade animation for filtering */
@keyframes portfolioFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-card:not(.hidden) {
  animation: portfolioFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
  .portfolio-filters {
    gap: 8px;
    margin: 20px 0 30px 0;
  }
  .filter-pill {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}

/* ==========================================
   Careers Banner Section
   ========================================== */
.careers-banner-section {
  padding: 80px 0;
  background-color: var(--white);
}

.careers-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.careers-banner-card {
  display: flex;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e5a22 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  max-width: 850px;
  width: 100%;
}

.careers-banner-content {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.careers-banner-badge {
  align-self: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--secondary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.careers-banner-content h2 {
  font-size: 2.3rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: none;
}

.highlight-yellow {
  color: var(--secondary-color);
}

.careers-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.careers-highlight-text {
  font-weight: 500;
  color: var(--secondary-color) !important;
  font-size: 0.95rem !important;
  margin-bottom: 30px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.careers-banner-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.careers-banner-buttons .btn {
  text-transform: none;
  font-size: 0.95rem;
  padding: 12px 25px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.careers-banner-buttons .btn-primary {
  background-color: var(--secondary-color);
  color: #333;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.careers-banner-buttons .btn-primary:hover {
  background-color: var(--secondary-hover);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

.careers-banner-buttons .btn-secondary-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  margin-left: 0;
}

.careers-banner-buttons .btn-secondary-outline:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive adjustments for Careers Banner */
@media (max-width: 768px) {
  .careers-banner-content {
    padding: 40px 30px;
  }
  .careers-banner-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .careers-banner-content {
    padding: 30px 20px;
  }
  .careers-banner-content h2 {
    font-size: 1.5rem;
  }
  .careers-banner-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .careers-banner-buttons .btn {
    width: 100%;
    margin-left: 0;
  }
}




