: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 */
.hero-section {
  position: relative;
  height: 90vh; /* fast vollflächig */
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("./assets/hero.png")
    no-repeat center center/cover;
  /* Placeholder BG */
  color: var(--white);
  text-align: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.75); /* Dark overlay for text readability */
  z-index: 1;
}

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

.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: sticky; /* Sticky below the info bar */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.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(--primary-color);
    gap: 15px; /* Space between img and text */
}

/* 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(--text-color);
    position: relative;
}

.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: 10px;
        text-align: center;
    }

    .top-info-left, .top-info-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-top-info {
        padding: 10px 0;
    }

    /* 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(10px);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-section {
        padding-top: 160px; /* More space for stacked top bar */
    }

    /* 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;
  }
  
  .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;
}
