/* =============================================
   DESIGN TOKENS & GLOBAL STYLES
   ============================================= */
:root {
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --primary-color: #348a5a; 
  --light-color: #ffffff;
  --accent-color: #f0f7f0;
  --header-h: 72px;
}
html, body { scroll-behavior: smooth; padding-top: var(--header-h);}
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
}

html {
  font-size: 110%;
}

/* 1. VISUAL HIERARCHY: BORDERS */
section#hero,
.hero-section {
border: none;
}

section#services,
.services-grid {
border: none;
}

section#faq,
.faq-item,
section#kontakt,
.kontakt-grid {
border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 2. COLOR ACCENTS */
.beratung-button,
.service-box a,
.navigation a:hover {
background-color: var(--light-color) !important;
color: var(--primary-color) !important;
}

/* 3. TYPOGRAPHY & READABILITY */
body,
p,
.service-box p,
.faq-item p {
font-family: 'Roboto Mono', monospace;
line-height: 1.5;
}

h1,
h2,
h3 {
font-family: 'DIN 1451', sans-serif;
line-height: 1.5;
}

html, body {
margin: 0;
padding: 0;
font-family: var(--font-primary);
}

/* 4. NAVIGATION & MOBILE */
.logo {
  padding: 0;                /* убрать внутренние отступы */
  box-shadow: none;  
  display: inline-block;
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  transition: background 0.3s ease;
  text-decoration: none;   
  background: none !important;/* убираем подчеркивание */
}
.logo img {
  display: block;            /* гасим возможные whitespace */
  height: 3rem;
}

/* Состояние при скролле (пример) */
header.site-header#toolbar.scrolled .logo {
  background: transparent;
}

/* И — на всякий случай — явно гасим подчеркивание для всех ссылок-логотипов */
.logo,
.logo:hover,
.logo:focus {
  text-decoration: none;
}
 /* Elegant Call Button - Global */
/* В template.css */
.call-button {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 4.5rem;
  height: 3.5rem;
  background-color: #348a5a;
  color: #ffffff;
  border-radius: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
  pointer-events: none;
  z-index: 10001;
}
.call-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.call-button:hover {
  background-color: #2c6e49;
  transform: translateY(-2px);
}
.sr-only { /* для доступности */
  position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Скрываем системный заголовок страницы редактирования статьи */
.page-header,          /* обычно используется в Joomla 3.x */
.heading,              /* или другой общий селектор */
h1.page-title {        /* уточните по своему HTML-разметке */
  display: none !important;
}

.icon-pencil,
a.btn.btn-primary.btn-xs {
  display: none !important;
}

/* гасим все ссылки «редактировать статью» */
a.btn.btn-primary.btn-xs,
a[title="Edit Publisher Article"],
a[rel="tooltip"][href*="layout=edit"] {
  display: none !important;
}

/* Mobile menu settings */
@media (max-width: 768px) {
.burger-button {
display: block;
color: var(--primary-color);
}
.navigation {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 45% !important;  /* reduced mobile menu width */
background-color: var(--primary-color);
padding: 2rem 1rem;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
transform: translateX(100%);
transition: transform 0.3s ease;
visibility: hidden; /* hidden by default until burger click */
transition: transform 0.3s ease;
}
.navigation.active {
transform: translateX(0);
visibility: visible; /* show menu when active */
}
.navigation a {
display: block;
margin-bottom: 1rem;
color: var(--light-color) !important;
}
}

/* 5. INTERACTIVE ELEMENTS /
/ Stroke-drawing effect on service and team cards */
.service-box,
.team-member {
position: relative;
overflow: hidden;
}
.service-box::before,
.team-member::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid var(--primary-color);
stroke-dasharray: 800;
stroke-dashoffset: 800;
transition: stroke-dashoffset 0.6s ease-out;
pointer-events: none;
}
.service-box:hover::before,
.team-member:hover::before {
stroke-dashoffset: 0;
}

/* Tooltip on service icons */
.service-box .icon-placeholder {
position: relative;
}
.service-box .icon-placeholder:hover::after {
content: attr(data-tooltip);
position: absolute;
bottom: 110%;
left: 50%;
transform: translateX(-50%);
background: var(--primary-color);
color: var(--light-color);
padding: 0.25rem 0.5rem;
border-radius: 4px;
white-space: nowrap;
font-size: 0.75rem;
opacity: 0.9;
}

/* Scroll-to-top blend-mode for visibility */
#scrollToTop {
mix-blend-mode: difference;
}

/* 6. FEEDBACK & CTA (Modal Form Enhancements) /
/ Highlight fields on focus */
#beratung-modal input:focus,
#beratung-modal textarea:focus {
outline: 2px dashed var(--primary-color);
outline-offset: 2px;
}

/* Modal progress indicator (requires markup) /
/ Add a container with class .modal-progress above form for "Schritt 1 von 2" */
.modal-content .modal-progress {
font-size: 0.9rem;
color: var(--primary-color);
margin-bottom: 1rem;
text-align: center;
font-weight: 500;
}

/* 6. HEADER / TOOLBAR /
/ Logo shading for contrast */
.logo {
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
background: rgba(255, 255, 255, 0.8);
padding: 0rem 0.1rem;
border-radius: 4px;
}

/* Mobile menu settings */
@media (max-width: 768px) {
.burger-button {
display: block;
color: var(--primary-color);
}
.navigation {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 45% !important;  /* reduced mobile menu width */
background-color: var(--primary-color);
padding: 2rem 1rem;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
transform: translateX(100%);
transition: transform 0.3s ease;
visibility: hidden; /* hidden by default until burger click */
transition: transform 0.3s ease;
}
.navigation.active {
transform: translateX(0);
visibility: visible; /* show menu when active */
}
.navigation a {
display: block;
margin-bottom: 1rem;
color: var(--light-color) !important;
}
}

/* 7. ICONOGRAPHY & ILLUSTRATIONS /
/ Standardize icon placeholders to blueprint style */
.icon-placeholder svg {
stroke: var(--primary-color);
stroke-width: 2;
fill: none;
}

/* Callout labels for services */
.callout {
position: absolute;
background: var(--light-color);
border: 1px solid var(--primary-color);
border-radius: 4px;
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
color: var(--primary-color);
}
.callout::before {
content: '';
position: absolute;
width: 0;
height: 0;
border: 5px solid transparent;
border-bottom-color: var(--primary-color);
top: -10px;
left: 10px;
}
/* Highlight fields on focus */
#beratung-modal input:focus,
#beratung-modal textarea:focus {
outline: 2px dashed var(--primary-color);
outline-offset: 2px;
}

/* Modal progress indicator (requires markup) /
/ Add a container with class .modal-progress above form for "Schritt 1 von 2" */
.modal-content .modal-progress {
font-size: 0.9rem;
color: var(--primary-color);
margin-bottom: 1rem;
text-align: center;
font-weight: 500;
}

/* 8. MOBILE UX */
@media (max-width: 768px) {
/* Sticky consultation button */
.beratung-button {
position: sticky;
bottom: 1rem;
background-color: var(--primary-color);
width: auto;           /* natural sizing */
max-width: 280px;      /* cap on width */
margin: 0.5rem auto;   /* centered with vertical spacing */
border-radius: 30px;
text-align: center;
padding: 0.75rem 1.5rem; /* adjusted padding */
}

/* Reduce vertical spacing between sections */
section {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
}

/* =============================================
NEW MODULE STYLES
============================================= */

/* How It Works */
section#how-it-works {
padding: 1rem 1rem;
text-align: center;

}
section#how-it-works .step {
display: inline-block;
width: 22%;
margin: 1%;
vertical-align: top;
text-align: center;
}
section#how-it-works .step h4 {
color: var(--primary-color);
}
section#how-it-works .step p {
font-size: 0.9rem;
}

section#how-it-works .step img {
display: block;
margin: 0 auto 1rem;
width: 60px;
height: auto;
}

section#how-it-works .step {
  float: left;
  width: 22%;
  margin: 1%;
  box-sizing: border-box;
}

/* Сбросим float после контейнера */
section#how-it-works::after {
  content: "";
  display: block;
  clear: both;
}
section[id],
[id].anchor-target {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Медиазапрос для мобилок */
@media (max-width: 768px) {
  section#how-it-works .step {
    width: calc(50% - 2%); /* 2 карточки в ряд с общим отступом */
    margin: 1%;
  }
}




/* Testimonials */
section#testimonials {
  padding: 4rem 2rem;
  background: var(--accent-color);
}
section#testimonials .testimonial {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
section#testimonials .testimonial p {
  font-style: italic;
}
section#testimonials .testimonial .author {
  text-align: right;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Уменьшаем вертикальные отступы у секции */
section#testimonials {
  padding: 2rem 1rem !important;    /* сократили padding сверху/снизу */
}
/* Уменьшаем padding и margin в карточках */
section#testimonials .testimonial {
  margin: 1rem auto !important;    /* уменьшили отступ между карточками */
  padding: 1rem !important;         /* меньше внутреннего отступа */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
/* Уменьшаем размер текста и spacing */
section#testimonials .testimonial p {
  font-size: 0.9rem !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
section#testimonials .testimonial .author {
  font-size: 0.85rem !important;
  margin-top: 0.25rem !important;
}
/* Мобильные экраны */
@media (max-width: 600px) {
  section#testimonials {
    padding: 1.5rem 0.5rem !important;
  }
  section#testimonials .testimonial {
    padding: 0.75rem !important;
    margin: 0.75rem auto !important;
  }
}

section#testimonials .testimonial {
  background: #fff;
  padding: 2rem;
  margin: 0 auto 2rem;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}
/* стрелка-снизу */
section#testimonials .testimonial::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}
section#testimonials .testimonial p {
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  position: relative;
  padding: 1rem 1.5rem;
}
section#testimonials .testimonial p::before,
section#testimonials .testimonial p::after {
  font-family: serif;
  font-size: 3rem;
  color: rgba(0,0,0,0.1);
  position: absolute;
}
section#testimonials .testimonial p::before {
  content: '“';
  top: -10px;
  left: -10px;
}
section#testimonials .testimonial p::after {
  content: '”';
  bottom: -10px;
  right: -10px;
}
section#testimonials .testimonial .author {
  display: block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
  font-size: 0.9rem;
}
/* Увеличиваем ширину карточек Testimonials */
section#testimonials .testimonial {
  max-width: 90% !important;      /* позволяют занимать до 90% ширины */
  width: auto !important;
  margin: 0 auto 2rem !important; /* центрируем и оставляем отступ снизу */
}
/* На планшетах и десктопах можно вернуть фиксированную ширину */
@media (min-width: 768px) {
  section#testimonials .testimonial {
    max-width: 700px !important;  /* чуть больше, чем было 600px */
  }
}

/* Testimonials */

.reviews-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; }
.review-card{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:16px; padding:1rem; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.review-header{ display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.review-author{ font-weight:600; color:#222; }
.review-text{ color:#333; margin:.25rem 0 .5rem; }
.review-date{ color:#666; font-size:.85rem; }
.btn{ display:inline-block; padding:.6rem 1rem; border-radius:999px; background:var(--primary-color); color:#fff; text-decoration:none; }
.btn:hover{ filter:brightness(.95); }
.btn-ghost{ background:transparent; color:var(--primary-color); border:1px solid var(--primary-color); margin-left:.5rem; }

section#testimonials {
padding: 4rem 2rem;
background: var(--accent-color);
}
section#testimonials .testimonial {
max-width: 600px;
margin: 0 auto 2rem;
position: relative;
}
section#testimonials .testimonial p {
font-style: italic;
}
section#testimonials .testimonial .author {
text-align: right;
font-weight: 600;
margin-top: 0.5rem;
}

/* Общая секция 
section#region-coverage {
  background-image: url('/images/bkm_images/map1.png');
  background-repeat: no-repeat;
  background-position: center 80%;
  background-size: cover;
  padding: 3rem 1rem;
  position: relative;
}
*/

section#region-coverage{
  background: transparent;
  padding: 3rem;
}

#region-coverage .section-title{
  text-align:center;
  color: var(--primary-color);
  font-size: 2rem;
  margin: 0 0 .75rem 0;
}

#region-coverage .map-area{
  background-image: url('/images/bkm_images/map1.png');
  background-repeat: no-repeat;
  background-position: center 50%;
  background-size: cover;
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding-top: 7rem;
}


/* Контейнер для цифр на карте 
section#region-coverage .map-container {
  position: relative;
  max-width: 500px;
  height: 200px;
  margin: 0 auto 2rem;
}

/* Цифровые маркеры 
section#region-coverage .region {
  position: absolute;
  background: var(--accent-color);
  color: #000000;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Примерные позиции — настраиваются под карту 
section#region-coverage .region--1 { top: 160%; left: 140%; }
section#region-coverage .region--2 { top: 20%; left: 110%; }
section#region-coverage .region--3 { top: 60%; left: 20%; }
section#region-coverage .region--4 { top: 80%; left: 80%; }*/

/* Список регионов 
section#region-coverage ul {
  max-width: 350px;
  margin: 1rem;
  list-style: none;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9); /* белая подложка с прозрачностью 
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Сами пункты списка */
section#region-coverage ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--primary-color); /* зелёный фирменный */
}

/* Кастомные маркеры */
section#region-coverage ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  line-height: 1;
}

/* Спрятать <img> если оно всё ещё есть в верстке 
section#region-coverage .map-container img {
  display: none;
}*/




/* ---------------------------------------------
   6. HEADER / TOOLBAR
   --------------------------------------------- */
header.site-header#toolbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background-color: transparent !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  z-index: 1000;
  transition: background-color 0.3s ease !important;
  min-height: var(--header-h);
}
header.site-header#toolbar.scrolled {
  background-color: var(--light-color) !important;
}
.toolbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--light-color) !important;
  transition: color 0.3s ease !important;
}
header.site-header#toolbar.scrolled .logo {
  color: var(--primary-color) !important;
}
.navigation {
  margin-left: auto;
}
.navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navigation a {
  color: var(--light-color) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease !important;
}
header.site-header#toolbar.scrolled .navigation a {
  color: var(--primary-color) !important;
}
.navigation a:hover {
  color: var(--accent-color) !important;
}
#scrollToTop {
  box-shadow: none !important;
  transform: none !important;
}


/* ---------------------------------------------
   6. HEADER / TOOLBAR
   --------------------------------------------- */
header.site-header#toolbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background-color: transparent !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background-color 0.3s ease;
}
header.site-header#toolbar.scrolled {
  background-color: var(--light-color) !important;
}

.toolbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--light-color) !important;
  transition: color 0.3s ease;
  filter: drop-shadow(1px 2px 2px rgba(20, 38, 0, 0.4));
}
header.site-header#toolbar.scrolled .logo {
  color: var(--primary-color) !important;
}
.navigation {
  margin-left: auto;
  filter: drop-shadow(1px 2px 2px rgba(20, 38, 0, 0.4));
}
.navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.navigation a {
  color: var(--light-color) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
header.site-header#toolbar.scrolled .navigation a {
  color: var(--primary-color) !important;
}
/* Burger button color on scroll */
header#toolbar.scrolled .burger-button {
  color: var(--primary-color) !important;
}

.navigation a:hover {
  color: var(--accent-color) !important;
}
.burger-button {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--light-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

/* 7. HERO SECTION */ /*
   --------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
}
@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    padding: 3rem 2rem;
  }
  .hero-content {
    max-width: 50%;
    text-align: left;
  }
}
.hero-section img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

section#hero {
  position: relative;
  overflow: hidden; /* важно, чтобы псевдоэлемент не вылезал */
}

section#hero .hero-illustration {
  display: block;
  width: 50%; /* ваш текущий размер */
  position: relative;
}

section#hero .hero-illustration::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* высота зоны размытия */
  /* от прозрачного к цвету фона следующего модуля */
  background: linear-gradient(
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 100%
  );
  pointer-events: none;
}

/* override hero text color for better contrast */
section#hero .text-content,
.hero-section .text-content {
  color: var(--primary-color) !important;
}

/* Hero gallery split layout 
section#hero, .hero-section {
background-color: var(--light-color) !important;
display: flex;
align-items: center;
justify-content: space-between;
padding: 4rem 2rem;
background-image: none !important;
}
section#hero .text-content,
.hero-section .text-content {
width: 50%;
color: var(--primary-color);
}
section#hero .hero-illustration,
.hero-section .hero-illustration {
width: 50%;
}
@media (max-width: 768px) {
section#hero, .hero-section {
flex-direction: column;
}
section#hero .text-content,
section#hero .hero-illustration,
.hero-section .text-content,
.hero-section .hero-illustration {
width: 100%;
}
section#hero .hero-illustration,
.hero-section .hero-illustration {
margin-top: 2rem;
}
}*/

/* ---------------------------------------------
   8. SERVICES
   --------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
}
@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    padding: 0 2rem;
  }
}
.service-box {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Button animation within Services */
.service-box a {
  display: inline-block;
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}
.service-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Button animation for Beratung button */
.beratung-button {
  display: inline-block;
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}
.beratung-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.service-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  /* FINAL MOBILE OVERRIDE FOR SERVICES SECTION */
  #services > div > div {
    display: grid !important;
    grid-template-columns: repeat(2,1fr) !important;
    gap: 1rem !important;
    padding: 0 var(--space-2) !important;
  }
}

/* Увеличенные карточки и изображения для Services */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 0.75rem !important;
  padding: 0 1rem !important;
}
.service-box {
  padding: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-box img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.service-box h3 {
  font-size: 1rem !important;
  margin: 0.5rem 0 !important;
  line-height: 1.2;
}
.service-box p {
  font-size: 0.85rem !important;
  margin: 0 !important;
  line-height: 1.4;
}
.service-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
/* Mobile override */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
}
/* Tablet override */
@media (min-width: 481px) and (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }
}
/* Large screens */
@media (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    padding: 0 1.5rem !important;
  }
}

/* ---------------------------------------------
   9. TEAM CAROUSEL & MODULE OVERRIDES
   --------------------------------------------- */
#team h2,
.team-member h3 {
  color: var(--primary-color) !important;
}
.team-carousel .arrow {
  background: var(--primary-color) !important;
}
#kontakt h2,
.kontakt-grid a,
.faq-question,
#scrollToTop,
.navigation.active a,
header.site-header#toolbar.scrolled .navigation a {
  color: var(--primary-color) !important;
}

/* ---------------------------------------------
   10. TEAM CAROUSEL STRUCTURE
   --------------------------------------------- */
.team-carousel {
  position: relative;
  padding: 2rem 1rem;
}
.team-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
}
.team-grid::-webkit-scrollbar {
  display: none;
}
.team-member {
  flex: 0 0 80%;
  scroll-snap-align: start;
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--light-color);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1003;
}
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }

/* Снижаем отступы модуля */
.team-carousel {
  padding: 1rem 0.5rem;
}
/* Узкий gap и выравнивание по верху */
.team-grid {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  overflow-x: auto;
}
.team-member {
  flex: 0 0 70%;
  max-width: 200px;
  padding: 0.75rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.team-member img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.team-member h3 {
  font-size: 1rem;
  margin: 0.25rem 0;
}
.team-member p {
  font-size: 0.8125rem;
  margin: 0;
  color: #666;
}
.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Десктоп: равномерное распределение и боковые отступы */
@media (min-width: 1024px) {
  .team-carousel {
    padding: 2rem 2rem;
  }
  .team-grid {
    display: flex;
    justify-content: space-between;
    overflow-x: hidden;
    gap: 1rem;
    padding: 0 2rem;
  }
  .team-member {
    flex: 1 1 auto;
    max-width: none;
    margin: 0 0.5rem;
  }
  /* Стрелки чуть меньше */
  .arrow {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
  .arrow.prev { left: 1rem; }
  .arrow.next { right: 1rem; }
}


/* ---------------------------------------------
   11. CONTACT & FAQ
   --------------------------------------------- */
.kontakt-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 1rem;
}
@media (max-width: 768px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-map {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
  }
  .kontakt-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
.faq-item {
  background: var(--light-color);
  margin-bottom: 0.5rem; /* further reduced spacing */
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 1rem 0;
}
.faq-question {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 600;
}
.faq-answer {
  display: none;
  padding-top: 0.5rem;
  color: #333;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ---------------------------------------------
   12. COOKIE NOTICE & MODAL
   --------------------------------------------- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  color: var(--light-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
}
.cookie-notice button {
  background: var(--light-color);
  color: var(--primary-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal[style*="display: flex"] {
  display: flex !important;
}
.modal-content,
.beratung-form {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ---------------------------------------------
   13. SCROLL TO TOP BUTTON
   --------------------------------------------- */
#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  background: none;
  color: var(--primary-color);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.3s ease, color 0.3s ease;
}
#scrollToTop.show {
  display: block !important;
}
#scrollToTop:hover {
  transform: scale(1.1);
}
#scrollToTop.light {
  color: var(--light-color) !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ---------------------------------------------
   14. OFF-CANVAS NAVIGATION (MOBILE)
   --------------------------------------------- */
@media (max-width: 768px) {
  .burger-button {
    display: block !important;
  }
  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100vh;
    background: var(--light-color);
    padding: 2rem 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1001;
	width: 40% !important;
  }
  .navigation.active {
    transform: translateX(0);
  }
  .navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 0;
  }
  .navigation ul li {
    margin-bottom: 1.2rem;
  }
  .navigation a {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .navigation a:hover {
    color: var(--accent-color);
  }
}

/* ---------------------------------------------
   15. DESKTOP NAVIGATION OVERRIDES
   --------------------------------------------- */
@media (min-width: 769px) {
  .burger-button {
    display: none !important;
  }
  .toolbar-container {
    justify-content: space-between !important;
  }
  
  .navigation ul {
  display: flex !important;
  gap: 1.5rem !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation ul li a {
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: none !important;
  background: transparent;
  border: none;
  outline: none;
  font-weight: 500;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  transform: translateZ(0); /* иногда убирает баги в рендеринге */
}

  .navigation ul li a {
  text-shadow: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.navigation a {
  outline: none !important;
  box-shadow: none !important;
}

  .navigation a:focus,
.navigation a:active {
  outline: none !important;
  box-shadow: none !important;
}

.navigation a,
.navigation a:focus,
.navigation a:active {
  outline: none !important;
  box-shadow: none !important;
}


/* FAQ Hover Animation */
.faq-question {
  transition: color 0.3s ease, transform 0.3s ease;
}
.faq-question:hover {
  color: var(--color-secondary);
  transform: translateX(4px);
}

/* Cookie Notice Button Animation */
.cookie-notice button {
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.cookie-notice button:hover {
  background-color: var(--color-surface);
  transform: translateY(-2px);
}

/* End of CSS */

/* 16. 3D-button effect for all buttons */
button, .beratung-button, .service-box a {
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover, .beratung-button:hover, .service-box a:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}
button:active, .beratung-button:active, .service-box a:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Exclude burger-button from 3D effect */
.burger-button {
  box-shadow: none !important;
  transform: none !important;
}

/* Exclude scroll-to-top button from 3D effect */
#scrollToTop,
#scrollToTop:hover,
#scrollToTop:active {
  box-shadow: none !important;
  transform: none !important;
}

/* Light mode for scroll-to-top button when over footer */
#scrollToTop.light {
  color: var(--light-color) !important;
  background-color: transparent !important;
}

/* ====== Блок Примеры ====== */
.projekte-section {
  padding: 10px 20px;
  background: #f9f9f9;
}
.projekte-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #348a5a;
}
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Карточка */
.projekt-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.projekt-card:hover {
  transform: scale(1.02);
}
.projekt-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.projekt-info {
  padding: 15px;
}
.projekt-info h3 {
  margin: 0 0 10px;
  color: #333;
}

/* Кнопка */
.more-btn {
  text-align: center;
  margin-top: 20px;
}
.more-btn a {
  display: inline-block;
  padding: 10px 20px;
  background: #348a5a;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}
.more-btn a:hover {
  background: #2f6f4b;
}

/* ====== Projekte: Mobile ====== */
@media (max-width: 768px) {
  :root { --header-h: 64px;}
  .projekte-section {
    display: block;
    width: 100%;
    padding: 20px 10px;
    background: #f9f9f9;
    box-sizing: border-box;
  }

  .projekte-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #348a5a;
  }

  .projekte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
  }

  .projekt-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
  }

  .projekt-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }

  .projekt-card,
a.projekt-card,
a.projekt-link{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
  transition:transform .2s ease, box-shadow .2s ease;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.projekt-card:hover,
.projekt-card:focus-visible,
a.projekt-card:hover,
a.projekt-card:focus-visible,
a.projekt-link:hover,
a.projekt-link:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 6px 12px rgba(0,0,0,0.15);
  outline:none;
}

  .projekt-info {
    padding: 12px;
    text-align: left;
  }

  .projekt-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
  }

  .more-btn {
    text-align: center;
    margin-top: 15px;
  }

  .more-btn a {
    display: inline-block;
    padding: 10px 20px;
    background: #348a5a;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .more-btn a:hover {
    background: #2f6f4b;
  }
}
@media (max-width: 768px) {
  .projekte-section {
    background: #f9f9f9 !important;
  }

  .projekte-section h2 {
    color: #348a5a !important;
  }

  .projekt-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  }

  .more-btn a {
    background: #348a5a !important;
    color: #fff !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    display: inline-block !important;
  }

  .more-btn a:hover {
    background: #2f6f4b !important;
  }
}
/* Laptop fix: одна колонка на лэптопах */
@media (min-width: 1024px) and (max-width: 1366px) {
  .projekte-grid { grid-template-columns: 1fr !important; }
}
/* Одна колонка для диапазона 820–1280 */
@media (min-width: 820px) and (max-width: 1280px) {
  .projekte-grid { grid-template-columns: 1fr !important; }
}
/* Одна колонка для всех промежуточных экранов (планшеты + лаптопы) */
@media (min-width: 768px) and (max-width: 1280px) {
  .projekte-grid { grid-template-columns: 1fr !important; }
}
/* Одна колонка: планшеты, лаптопы, промежуточные форматы */
@media (min-width: 560px) and (max-width: 1280px) {
  .projekte-grid { grid-template-columns: 1fr !important; }
}
/* REFERENZEN / PROJEKTE — нормальная сетка */
.projekte-section .projekte-grid{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 20px !important;
}

/* ноутбуки и планшеты — 2 колонки */
@media (max-width: 1199px){
  .projekte-section .projekte-grid{
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

/* мобильные — 1 колонка */
@media (max-width: 599px){
  .projekte-section .projekte-grid{
    grid-template-columns: 1fr !important;
  }
}

/* карточки не «ломают» строки */
.projekte-section .projekt-card{ display:block; }
.projekte-section .projekt-card img{
  width:100%;
  height:400px;
  object-fit:cover;
  display:block;
}
/* Грид карточек */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

 Карточка-ссылка 
.projekte-grid .projekt-card {
  display: block;
  text-decoration: none;      
  color: inherit;             
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Ховер/фокус — как у карточки */
.projekte-grid .projekt-card:hover,
.projekte-grid .projekt-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  outline: none;
}

/* Адаптив */
@media (max-width: 992px) {
  .projekte-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projekte-grid { grid-template-columns: 1fr; }
}
/* Отступ прокрутки для якорей референсов */
[id^="ref-"],
.referenz-container[id] {
  scroll-margin-top: calc(var(--header-h) + 22px);
}
  /* === REFERENZEN: убрать синий цвет/подчёркивание у карточек-ссылок (вставить ПОСЛЕДНИМ) === */
.projekte-grid a.projekt-card,
.projekte-grid a.projekt-link {
  text-decoration: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  box-shadow: none !important;
}

.projekte-grid a.projekt-card:link,
.projekte-grid a.projekt-card:visited,
.projekte-grid a.projekt-card:hover,
.projekte-grid a.projekt-card:focus,
.projekte-grid a.projekt-card:active,
.projekte-grid a.projekt-link:link,
.projekte-grid a.projekt-link:visited,
.projekte-grid a.projekt-link:hover,
.projekte-grid a.projekt-link:focus,
.projekte-grid a.projekt-link:active {
  text-decoration: none !important;
  color: inherit !important;
  outline: none !important;
  box-shadow: none !important;
}

/* на всякий случай — если тема подчёркивает текст внутри */
.projekte-grid a.projekt-card .projekt-info,
.projekte-grid a.projekt-card .projekt-info *,
.projekte-grid a.projekt-link .projekt-info,
.projekte-grid a.projekt-link .projekt-info * {
  text-decoration: none !important;
  /*color: inherit !important;*/
}
/* === MOBILE HARD OVERRIDE: Referenzen cards look like cards, not links === */
@media (max-width: 768px) {
  /* сама ссылка-карточка */
  .projekte-grid a.projekt-card,
  .projekte-grid a.projekt-link,
  .projekte-grid a.projekt-card:link,
  .projekte-grid a.projekt-card:visited,
  .projekte-grid a.projekt-card:hover,
  .projekte-grid a.projekt-card:focus,
  .projekte-grid a.projekt-card:active,
  .projekte-grid a.projekt-link:link,
  .projekte-grid a.projekt-link:visited,
  .projekte-grid a.projekt-link:hover,
  .projekte-grid a.projekt-link:focus,
  .projekte-grid a.projekt-link:active {
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* на всякий случай — снимаем подчёркивания у вложенного текста */
  .projekte-grid a.projekt-card *,
  .projekte-grid a.projekt-link * {
    text-decoration: none !important;
    color: inherit !important;
  }
}
/* === Anchor offset: работает и на мобиле, и при загрузке страницы с #hash === 
:root{
  --header-h: 20px;               /* базовая высота хэдера 
  --anchor-offset: calc(var(--header-h) + 10px);
}*/
/* Если у тебя уже есть :root выше — оставь там, но ВАЖНО: этот блок должен идти ПОСЛЕ него */
@media (max-width: 768px){
  :root{ --header-h: 64px; }      /* мобильная высота хэдера */
}

/* 1) Глобально говорим браузеру: при скролле к якорям учитывай верхний отступ 
html{
  scroll-padding-top: var(--anchor-offset);
}*/

/* 2) Fallback для случаев, когда переход по якорю случается до загрузки стилей (Mobile Safari и пр.) 
[id]:target::before{
  content: "";
  display: block;
  height: var(--anchor-offset);
  margin-top: calc(-1 * var(--anchor-offset));
  visibility: hidden;
}*/

/* Tablet off-canvas меню */
@media (min-width: 769px) and (max-width: 1199px){
  .burger-button{ display:block !important; }
  .navigation{
    position: fixed;
    top:0; left:0;
    height:100vh;
    width: 25vw;
    background: var(--light-color);/* можно 50–60vw по вкусу */
    padding: 2rem 1rem;
    box-shadow: 2px 0 12px rgba(0,0,0,.15);
    transform: translateX(-100%);
    
    
  }
  .navigation.active{ transform: translateX(0); }
  .navigation ul{
    display:flex;
    flex-direction: column;
    gap:1rem;
    margin-top:1rem;
  }
  