    :root {
      --black: #000;
      --yellow: #ffd700;
      --white: #fff;
      --light-gray: #f5f5f5;
      --dark-gray: #484545;
      --header-font: "Montserrat", sans-serif;
      --body-font: "Montserrat", sans-serif;
      --bg-color: #1a1a1a;
      --text-color: #f0f0f0;
    }

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


    body {
      font-family: var(--body-font);
      background: var(--bg-color);
      color: var(--text-color);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    body:not(.home) {
      position: relative;
      isolation: isolate;
      background:
        radial-gradient(circle at 12% 18%, rgba(214, 169, 95, 0.22), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(122, 88, 54, 0.24), transparent 20%),
        radial-gradient(circle at 50% 82%, rgba(80, 57, 36, 0.18), transparent 28%),
        linear-gradient(180deg, #4b3a2f 0%, #362920 24%, #241c17 55%, #171311 100%);
      background-attachment: fixed;
    }

    body:not(.home)::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0%, transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18) 100%);
      opacity: 0.55;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1.5rem;
      background:
        linear-gradient(180deg, rgba(84, 61, 43, 0.96) 0%, rgba(58, 41, 29, 0.96) 100%);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
      border-bottom: 1px solid rgba(214, 169, 95, 0.22);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    body.home header {
      background: transparent;
      box-shadow: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      border-bottom: none;
    }

    .header-left,
    .header-center,
    .header-right {
      flex: 1;
      display: flex;
      align-items: center;
    }

    .header-left {
      justify-content: flex-start;
      gap: 0.5rem;
    }
    #logoLink {
      display: flex;
      align-items: center;
    }
    .header-center { justify-content: center; }
    .header-right {
      justify-content: flex-end;
      gap: 0.5rem;
    }

    .company-name {
      font-family: 'Montserrat', sans-serif;
      font-size: 2.0rem;
      font-weight: 600;
      letter-spacing: 0.7px;
      color: var(--white);
      text-decoration: none;
    }

    header img {
      height: 60px;
    }

    #menuToggle {
      background: none;
      border: none;
      color: var(--white);
      font-size: 2rem;
      cursor: pointer;
      margin-left: 0.5rem;
    }

@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }
  #logoLink {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

    #sideMenu {
      position: fixed;
      top: 0;
      left: 0;
      width: 250px;
      height: 100%;
      background: var(--dark-gray);
      color: var(--white);
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      z-index: 2000;
      padding-top: 4rem;
    }

    #sideMenu.open {
      transform: translateX(0);
    }

    #sideMenu ul {
      list-style: none;
      padding: 0;
    }

    #sideMenu li {
      margin: 1rem 0;
      transition: background 0.3s ease, transform 0.3s ease;
    }

    #sideMenu li:hover {
      background: var(--yellow);
      transform: scale(1.05);
    }

    /* Hide the Kontakt entry in the side menu */
    #sideMenu li.contact-menu-item {
      display: none;
    }

    #sideMenu li:hover a {
      color: var(--black);
    }

    #sideMenu a {
      color: var(--white);
      text-decoration: none;
      font-size: 1.2rem;
      padding: 0.5rem 1rem;
      display: block;
      transition: color 0.3s ease;
    }

    #sideMenu a i {
      margin-right: 0.5rem;
    }


    #overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 1500;
    }

    #overlay.visible {
      opacity: 1;
      visibility: visible;
    }

.header-button {
  background: var(--yellow);
  color: var(--black);
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
}

/* Stats page */
.stats-section {
  padding: 2rem 2rem;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-controls select {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--white);
  color: var(--bg-color);
}

.stats-controls input[type="datetime-local"] {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--white);
  color: var(--bg-color);
  margin-left: 0.5rem;
}

.reset-button {
  margin-left: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  background: #c0392b;
  color: var(--white);
  cursor: pointer;
}

.reset-button:hover {
  background: #e74c3c;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.stats-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-item {
  flex: 1 1 150px;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color: var(--black);
}

.dashboard-item h3,
.dashboard-item p {
  color: var(--black);
}

.dashboard-item p {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.stats-chart {
  flex: 2 1 400px;
}

.stats-chart canvas {
  width: 100% !important;
  height: auto !important;
}


.stats-ips {
  flex: 1 1 100%;
}

.visitors-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.visitors-header h3 {
  font-size: 1.1rem;
  color: var(--yellow);
  margin: 0;
}

#visitorsFilter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #2e7d32;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

#clearFilter {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
}

#clearFilter:hover {
  opacity: 1;
}

.stats-geo-section {
  margin-bottom: 2rem;
}

.stats-geo-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--yellow);
}

#geoChart {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid #333;
}

/* ── Audit log ── */
.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.audit-header h2 {
  margin: 0;
}

.audit-export-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--dark-gray);
  border: 1px solid #555;
  color: #ccc;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-family: var(--body-font);
  cursor: pointer;
  white-space: nowrap;
}
.audit-export-btn:hover {
  color: var(--white);
  border-color: #888;
}

.audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.audit-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.audit-toolbar-left select {
  padding: 0.45rem 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: var(--dark-gray);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.audit-search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.audit-search-wrap i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 0.8rem;
  pointer-events: none;
}

.audit-search-wrap input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: var(--dark-gray);
  color: var(--white);
  font-family: var(--body-font);
  font-size: 0.85rem;
  box-sizing: border-box;
}
.audit-search-wrap input:focus {
  outline: none;
  border-color: #888;
}
.audit-search-wrap input::placeholder { color: #666; }

.audit-count {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audit-empty {
  color: #aaa;
  padding: 1rem 0;
  font-family: var(--body-font);
}

.audit-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--dark-gray);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.audit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.audit-body {
  flex: 1;
  min-width: 0;
}

.audit-action {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.audit-details {
  color: #aaa;
  font-size: 0.8rem;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.audit-user {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
}

.audit-time {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .audit-row {
    flex-wrap: wrap;
  }
  .audit-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px solid #333;
    margin-top: 0.25rem;
  }
  .audit-time {
    margin-left: auto;
  }
}

.login-status {
  font-size: 1rem;
  font-weight: 700;
}
.login-status.ok  { color: #4caf50; }
.login-status.fail { color: #e53935; }

.visit-date-part {
  color: var(--white);
}

.visit-time-part::before {
  content: ' · ';
  color: #666;
}

.visit-time-part {
  color: #aaa;
  font-size: 0.9em;
}

@media (max-width: 480px) {
  .visit-time-part::before {
    content: '';
  }
  .visit-time-part {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }
}

.visitors-table {
  width: 100%;
  border-collapse: collapse;
}

/* Keep the login log table within the contact section width */
.login-log .visitors-table {
  width: 100%;
}

.visitors-table th,
.visitors-table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ccc;
}

.visitors-table td {
  color: var(--white);
}

.visitors-table th {
  background: var(--yellow);
  color: var(--black);
}

.visitors-table tr:nth-child(even) {
  background: var(--dark-gray);
}

.login-log {
  margin-top: 1rem;
}

/* ── User management cards ── */
.user-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}

.user-card {
  background: var(--dark-gray);
  border: 1px solid #444;
  border-radius: 10px;
  overflow: hidden;
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem 0.75rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.user-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  width: fit-content;
}

.role-badge.role-admin {
  background: var(--yellow);
  color: var(--black);
}

.role-badge.role-user {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
}

.user-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  flex-wrap: wrap;
}

.user-action-btn {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body-font);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.user-pw-btn {
  background: #1e4d2b;
  color: #b9f0c8;
}
.user-pw-btn:hover { background: #286637; }

.user-role-btn {
  background: #1a2e4a;
  color: #a8c8f0;
}
.user-role-btn:hover { background: #234070; }

.user-del-btn {
  flex: 0 0 auto;
  background: #4a1a1a;
  color: #f0a8a8;
  padding: 0.6rem 0.85rem;
}
.user-del-btn:hover { background: #6e2222; }

/* Inline password reset form */
.user-pw-form {
  display: none;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #3a3a3a;
  background: #1a1a1a;
}

.user-pw-form.open {
  display: block;
}

.user-pw-form label {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.4rem;
  font-family: var(--body-font);
}

.user-pw-form .form-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.user-pw-form-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.user-pw-save {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 0.9rem;
}
.user-pw-save:disabled { opacity: 0.6; cursor: default; }

.user-pw-cancel {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 0.9rem;
}
.user-pw-cancel:hover { color: #bbb; border-color: #666; }

/* Create form max-width on desktop */
.user-create-form-wrap {
  max-width: 420px;
}

.unique-stats {
  color: var(--white);
  margin-top: 1rem;
  padding-left: 1rem;
}

.unique-stats li {
  list-style: none;
}
/* phone link content */
.phone-icon {
  display: none;
}

.phone-text {
  display: inline;
}

/* mail link content */
.mail-icon {
  display: none;
}

.mail-text {
  display: inline;
}

.logged-in-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--dark-gray);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

.logged-in-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logged-in-name {
  flex: 1;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

.logged-in-logout {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--body-font);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.logged-in-logout:hover {
  color: var(--white);
  border-color: #888;
}

.login-status-cell {
  text-align: center;
  white-space: nowrap;
}

.login-reason {
  display: block;
  font-size: 0.68rem;
  color: #888;
  margin-top: 0.15rem;
  font-style: italic;
}


    .header-button:hover {
      background: #ffce00;
      transform: scale(1.05);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    }

    .hero {
      position: relative;
      width: 100%;
      height: 100vh;
      background: url('../images/erdarbeiten.jpg') center/cover no-repeat;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      text-align: center;
      font-family: var(--header-font);
    }

    .hero::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.5));
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 900px;
      padding: 0 1rem;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .hero-heading {
      position: relative;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-family: 'Montserrat', sans-serif;
      margin-bottom: 1rem;
    }

    .hero-heading::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0.2em;
      width: 100%;
      height: 0.4em;
      z-index: -1;
    }

    .hero-subheading {
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }

    .hero-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
    }

    .hero-form input,
    .hero-form select {
      padding: 0.6rem 1rem;
      font-size: 1rem;
      border: none;
      border-radius: 4px;
    }

    .hero-form button {
      background: var(--yellow);
      color: var(--black);
      border: none;
      border-radius: 4px;
      padding: 0.6rem 1.4rem;
      font-weight: bold;
      cursor: pointer;
    }

    .hero-form button:hover {
      background: #ffce00;
    }

    @media (max-width: 600px) {
      .hero-form {
        flex-direction: column;
      }

      .hero-form input,
      .hero-form select,
      .hero-form button {
        width: 100%;
      }
    }

    .services-modern {
      padding: 2.5rem 2rem;
      background: linear-gradient(#ffd700, #e6b800);
      color: var(--white);
      text-align: center;
    }

  .services-modern h2 {
    font-family: var(--header-font);
    font-size: 2rem;
    margin-bottom: 1.75rem;
    color: var(--white);
  }

  .services-intro {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 0;
  }

  .services-outro {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0;
  }

  .service-category-title {
    font-family: var(--header-font);
    font-size: 2.0rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }

  @media (max-width: 600px) {
    .service-category-title {
      font-size: 1.4rem;
    }
  }

    .swiper {
      padding-bottom: 3rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
      color: var(--white);
    }

    .swiper-pagination-bullet {
      background: var(--white);
      opacity: 0.7;
    }

    .swiper-pagination-bullet-active {
      background: var(--yellow);
      opacity: 1;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }

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

    @media (max-width: 600px) {
      .services-modern {
        padding: 1.75rem 0.9rem 2.25rem;
      }

      .services-modern h2 {
        font-size: 1.6rem;
        margin-bottom: 1.1rem;
      }

      .services-outro {
        font-size: 1.75rem;
        letter-spacing: 1px;
        margin-top: 1.1rem;
      }

      .services-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
      }

      .services-carousel {
        padding-bottom: 2.4rem;
      }

      .services-carousel .swiper-slide {
        padding: 0 0.2rem;
      }

      .swiper-button-next,
      .swiper-button-prev {
        display: none;
      }
    }

.service-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--white);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  z-index: 0;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

    .service-card img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .service-card:hover {
      transform: scale(1.03);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    }

    .service-overlay {
      position: absolute;
      inset: 0;
      padding: 1rem;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      background: linear-gradient(
        to top,
        rgba(72,69,69,0.75) 0%,
        rgba(72,69,69,0.5) 40%,
        rgba(72,69,69,0.1) 80%,
        rgba(72,69,69,0) 100%
      );
      color: white;
      text-align: center;
      z-index: 1;
    }

    .service-overlay h3 {
      margin-bottom: 0.5rem;
      font-size: 1.5rem;
      font-weight: 600;
    }

    @media (max-width: 600px) {
      .service-category-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.9rem;
        padding: 0.65rem 0.8rem;
        border-radius: 14px;
        background: rgba(34, 25, 20, 0.18);
        color: #2a2019;
      }

      .service-card {
        height: 190px;
        border-radius: 18px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
      }

      .service-card::before {
        background: rgba(0, 0, 0, 0.3);
      }

      .service-overlay {
        justify-content: center;
        align-items: flex-end;
        padding: 0.4rem 0.8rem 0.2rem;
        background: linear-gradient(
          to top,
          rgba(26, 19, 15, 0.88) 0%,
          rgba(26, 19, 15, 0.62) 48%,
          rgba(26, 19, 15, 0.1) 100%
        );
      }

      .swiper-button-prev,
      .swiper-button-next {
        display: none;
      }

      .service-overlay h3 {
        font-size: 1rem;
        line-height: 1.35;
        text-align: center;
        margin: 0;
        padding: 0;
        max-width: 90%;
        align-self: center;
        transform: translateY(2px);
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
      }
    }

    .company-info-modern {
      background: var(--light-gray);
      color: var(--bg-color);
      padding: 4rem 2rem;
    }

    .company-info-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      max-width: 1200px;
      margin: auto;
    }

    .company-text {
      flex: 1 1 45%;
    }

    .company-map {
      flex: 1 1 45%;
      min-height: 300px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .company-text h2 {
      font-family: var(--header-font);
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    .company-text .subtitle {
      font-size: 1.1rem;
      color: #555;
      margin-bottom: 1.5rem;
      font-weight: bold;
    }

    .company-text p {
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .company-details p {
      margin-bottom: 1rem;
    }

    .company-details a {
      color: var(--bg-color);
      text-decoration: none;
      font-weight: bold;
    }

    .company-details a:hover {
      text-decoration: underline;
    }

  @media (max-width: 768px) {
    .company-info-container {
      flex-direction: column;
    }

    .company-info-modern {
      padding: 2rem 1rem;
    }

    .company-map {
      height: 250px;
    }
  }

    footer {
      background: rgba(32, 24, 19, 0.84);
      color: var(--text-color);
      text-align: center;
      padding: 2rem 1rem;
      margin-top: auto;
      backdrop-filter: blur(8px);
      border-top: 1px solid rgba(214, 169, 95, 0.2);
    }

    footer a {
      color: var(--yellow);
      text-decoration: none;
      margin: 0 0.5rem;
    }

    #footer-placeholder {
      margin-top: auto;
    }

    .team-modern {
      position: relative;
      padding: 4rem 1rem;
      font-family: 'Poppins', sans-serif;
      text-align: center;
      overflow: hidden;
    }

    .team-modern::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0.8;
      background: url('../images/brunnen.jpg') center/cover no-repeat;
    }

    .team-modern h2 {
      position: relative;
      z-index: 1;
      font-size: 2.5rem;
      margin-bottom: 3rem;
      font-weight: 600;
    }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, 180px);
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      justify-content: center;
      justify-items: center;
    }

    .team-card {
      position: relative;
      z-index: 1;
      background: #fff;
      border-radius: 8px;
      padding: 1rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      max-width: 180px;
      width: 100%;
      transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    .team-card:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
      background: var(--dark-gray);
      color: var(--white);
    }

    .team-card:hover a {
      color: var(--white);
    }

    .team-card .avatar {
      width: 120px;
      height: 120px;
      margin: 0 auto 1rem;
      overflow: hidden;
      border-radius: 50%;
    }

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

    .team-card h3 {
      margin-top: 0.5rem;
      font-size: 1.1rem;
    }

    .team-card .role {
      display: inline-block;
      font-size: 0.9rem;
      margin: 0.25rem 0 0.75rem;
      background: #FFD700;
      color: #000;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
    }

    .team-card .contact {
      font-size: 0.9rem;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .team-card .contact i {
      margin-right: 0.4rem;
    }

    @media (max-width: 600px) {
      .team-modern h2 {
        font-size: 2rem;
      }
      .team-card {
        max-width: 280px;
        margin: 0 auto;
      }
    }

/* New responsive team section with background images */
.team-section {
  position: relative;
  padding: 2rem 1rem;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.team-section h2 {
  text-align: center;
  font-family: var(--header-font);
  margin-bottom: 1.5rem;
  padding-bottom: 4rem;
}

.team-section__grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .team-section__grid {
    grid-template-columns: repeat(2, 2fr);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .team-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .team-section__grid {
    grid-template-columns: 1fr;
  }
  .team-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
  }
}

.team-section__card {
  position: relative;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-section__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.team-section__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(24, 18, 14, 0.2) 58%, rgba(24, 18, 14, 0.82) 100%);
}

.team-section__overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  background: linear-gradient(180deg, rgba(74, 54, 39, 0.88) 0%, rgba(39, 29, 23, 0.94) 100%);
  color: #f8f1e7;
  text-align: center;
  border: 1px solid rgba(214, 169, 95, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.team-section__name {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.team-section__role {
  display: inline-block;
  color: #f1d3a0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-top: 0.45rem;
  background: rgba(214, 169, 95, 0.12);
  border: 1px solid rgba(214, 169, 95, 0.2);
}

.team-section__phone {
  font-size: 1rem;
  margin-top: 0.9rem;
  color: #f8f1e7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.team-section__phone a {
  color: inherit;
  text-decoration: none;
}























    
.contact-section {
  padding: 2rem;
  min-width: 75%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  text-align: center;
  font-family: var(--header-font);
  margin-bottom: 1.5rem;
}

.tabs {
  display: flex;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
}

.tab {
  padding: 0.5rem 1rem;
  background: var(--dark-gray);
  color: var(--white);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--body-font);
}

.tab:not(.active):hover {
  background: #3a3a3a;
}

.tab.active {
  background: var(--white);
  color: var(--black);
  border-bottom-color: var(--yellow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--body-font);
  box-sizing: border-box;
}

.contact-form button {
  align-self: flex-start;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #ffce00;
}

.form-status {
  margin-top: 1rem;
  font-family: var(--body-font);
  font-weight: bold;
}

.form-status.success {
  color: green;
}

.form-status.error {
  color: red;
}

/* password fields with toggle icons */
.password-input {
  position: relative;
  width: 100%;
}

.password-input .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

.password-input input {
  width: 100%;
}

.legal-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-section h2 {
  text-align: center;
  font-family: var(--header-font);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.legal-section h3 {
  font-family: var(--header-font);
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

.legal-section p {
  margin-bottom: 1rem;
}

.legal-section .disclaimer {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.legal-section a {
  color: var(--text-color);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Project gallery styles */
.projects-list {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .projects-list {
    max-width: 100%;
    padding: 1rem;
  }
  .projects-list h2 {
    font-size: 1.5rem;
  }
  .project .swiper {
    max-width: 100%;
  }
  .add-project-section {
    max-width: 100%;
    padding: 1rem;
  }
}

.project {
  margin-bottom: 3rem;
}

.project h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-family: var(--header-font);
}

.project .swiper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.project .swiper-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .project .swiper-slide img {
    height: 180px;
  }
}

.company-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: none;
  font-size: 2rem;
  text-align: center;
  margin-top: 1rem;
  color: var(--text-color);
}


.add-project-section {
  padding: 2rem 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  background: linear-gradient(180deg, rgba(83, 61, 44, 0.92) 0%, rgba(42, 31, 24, 0.96) 100%);
  border: 1px solid rgba(214, 169, 95, 0.2);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.add-project-section h3 {
  margin-bottom: 1.25rem;
  font-family: var(--header-font);
  font-size: 1.5rem;
  color: #f7efe4;
  letter-spacing: 0.02em;
}

.add-project-section .contact-form,
.edit-project-form {
  gap: 1.1rem;
}

.add-project-section label,
.edit-project-form label {
  display: block;
  font-weight: 600;
  color: #f1d7ad;
  letter-spacing: 0.01em;
}

.add-project-section .contact-form input,
.add-project-section .contact-form textarea,
.add-project-section .contact-form select,
.edit-project-form input,
.edit-project-form textarea,
.edit-project-form select {
  margin-top: 0.45rem;
  border: 1px solid rgba(214, 169, 95, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.94);
  color: #2d231d;
  box-shadow: inset 0 1px 2px rgba(33, 24, 18, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.add-project-section .contact-form input:focus,
.add-project-section .contact-form textarea:focus,
.add-project-section .contact-form select:focus,
.edit-project-form input:focus,
.edit-project-form textarea:focus,
.edit-project-form select:focus {
  outline: none;
  border-color: rgba(214, 169, 95, 0.6);
  box-shadow: 0 0 0 4px rgba(214, 169, 95, 0.14);
  transform: translateY(-1px);
}

.add-project-section input[type="file"],
.edit-project-form input[type="file"] {
  padding: 0.9rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.96) 0%, rgba(246, 235, 222, 0.96) 100%);
  border-style: dashed;
  cursor: pointer;
}

.add-project-section input[type="file"]::file-selector-button,
.edit-project-form input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9ae67 0%, #b98545 100%);
  color: #201710;
  font-weight: 700;
  cursor: pointer;
}

.add-project-section .contact-form button,
.edit-project-form button[type="submit"] {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ddb06a 0%, #b98545 100%);
  color: #221811;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.add-project-section .contact-form button:hover,
.edit-project-form button[type="submit"]:hover {
  background: linear-gradient(180deg, #e5bb78 0%, #c28f4d 100%);
  transform: translateY(-2px);
}

.add-project-section .form-status,
.edit-project-form .form-status {
  min-height: 1.25rem;
  color: #f8efe4;
}

.edit-project-form {
  margin-top: 1rem;
  padding: 1.1rem;
  background: rgba(31, 23, 18, 0.44);
  border: 1px solid rgba(214, 169, 95, 0.12);
  border-radius: 20px;
}

.edit-project-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.delete-project-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(221, 176, 106, 0.98) 0%, rgba(185, 133, 69, 0.98) 100%);
  color: #231911;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.delete-project-btn:hover {
  background: linear-gradient(180deg, rgba(231, 191, 124, 0.98) 0%, rgba(199, 144, 77, 0.98) 100%);
}

.remove-image-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #c0392b;
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.remove-image-btn:hover {
  background: #e74c3c;
}



@media (max-width: 600px) {
  .phone-text {
    display: none;
  }
  .phone-icon {
    display: inline;
  }
  .mail-text {
    display: none;
  }
  .mail-icon {
    display: inline;
  }

  .company-map {
    display: block;
    min-height: 260px;
    width: 100%;
  }

  .map-link {
    display: none;
  }

  .company-name,
  #companyNameLink {
    display: none;
  }
}

@media (max-width: 600px) {
  .company-info-modern {
    padding: 2rem 1rem;
  }

  .company-map {
    min-height: 240px;
    border-radius: 18px;
  }

  .map-placeholder {
    min-height: 240px;
    padding: 1.25rem;
  }

  .company-map iframe {
    min-height: 240px;
  }

  .stats-section {
    padding: 1rem;
  }
  .stats-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .stats-title {
    justify-content: space-between;
  }
  .stats-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .stats-controls label {
    align-self: center;
  }
  .stats-controls select {
    flex: 1;
    min-width: 0;
  }
  .stats-controls input[type="datetime-local"] {
    flex: 1;
    min-width: 0;
    margin-left: 0;
  }
  .reset-button {
    width: 100%;
    padding: 0.55rem;
    margin-left: 0;
  }
  .stats-container {
    flex-direction: column;
  }
  /* Dashboard: keep as 3-column row on mobile */
  .stats-dashboard {
    flex-direction: row;
    gap: 0.5rem;
  }
  .dashboard-item {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.4rem;
  }
  .dashboard-item h3 {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-item p {
    font-size: 1.1rem;
  }
  .stats-chart,
  .stats-countries,
  .stats-ips {
    flex: 1 1 100%;
  }
  #geoChart {
    height: 280px;
  }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

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

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(24, 18, 14, 0.18) 62%, rgba(24, 18, 14, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card-title {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: linear-gradient(180deg, rgba(74, 54, 39, 0.88) 0%, rgba(39, 29, 23, 0.94) 100%);
  color: #f8f1e7;
  text-align: center;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border: 1px solid rgba(214, 169, 95, 0.22);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  z-index: 2;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.gallery-modal.open {
  display: flex;
}

.gallery-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(59, 43, 32, 0.96) 0%, rgba(34, 25, 20, 0.98) 100%);
  border: 1px solid rgba(214, 169, 95, 0.18);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28);
}

.gallery-content .project-swiper {
  height: min(70vh, 680px);
}

.gallery-content .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 12, 10, 0.28);
  border-radius: 18px;
  overflow: hidden;
}

.gallery-content .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-content .edit-project-form {
  margin-top: 1.25rem;
}

.gallery-edit-title {
  margin-top: 1.4rem;
  margin-bottom: 0.9rem;
  color: #f7efe4;
  font-family: var(--header-font);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .gallery-content .project-swiper {
    height: min(52vh, 420px);
  }
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--black);
  text-align: center;
  padding: 1rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  display: none;
  padding: 1rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 5000;
}

.cookie-banner button {
  background: var(--yellow);
  color: var(--black);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
}
