/* === Fonts === */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
 }
 
[data-theme="dark"] body {
  background: var(--bg-color);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* === Theme Variables === */
:root {
  --footer-bg: #e6e6e6;
  --bg-color: #f5f5f5;
  --section-bg: #f9f9f9;
  --text-color: #333;
  --accent: #0057d9;
  --accent-hover: #003b99;
  --card-bg: #fff;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --text-muted: #888;
  --input-bg: #fff;
  --border-color: #ccc;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --section-bg: #121212;
  --text-color: #e2e2e2;
  --footer-bg: var(--card-bg);
  --card-bg: #2a2a2a;
  --card-shadow: none;
  --text-muted: #aaa;
  --input-bg: #1f1f1f;
  --border-color: #444;
}


/* === Hero Section === */
.hero-modern {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 80px;
  background: linear-gradient(135deg, #002244, #001a33);
  color: white;
  flex-wrap: nowrap;
  min-height: 100vh;
  box-sizing: border-box;
  gap: 1px;
}
.hero-modern .hero-content {
  flex: 0 0 40%;
  max-width: 600px;
  z-index: 2;
  padding-left: 40px;
}
.hero-modern h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  line-height: 1.2;
  
}
.hero-modern p {
  font-size: 1.2em;
  margin-bottom: 25px;
}
.hero-modern .btn {
  margin-right: 10px;
}
.hero-modern .hero-image {
  flex: 0 0 60%;
  width: 100%;
  max-width: 900px;
  max-height: 700px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 3;
}
.hero-modern .hero-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-modern .hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 850px;
  z-index: 0;
  pointer-events: none;
}
.hero-modern::before,
.hero-modern::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.hero-modern::before {
  right: -100px;
  top: -50px;
  width: 700px;
  height: 700px;
  background: rgba(0, 87, 217, 0.2);
}
.hero-modern::after {
  right: -150px;
  width: 1200px;
  height: 700px;
  background: rgba(0, 87, 217, 0.1);
}

/* Canvas, 3D Viewer, iframe */
canvas, model-viewer, iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === Buttons === */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn.light {
  background: #fff;
  color: var(--accent);
}

/* Shine effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}
.btn:hover::before {
  left: 120%;
}

/* === Grid System === */
.grid {
  display: grid;
  gap: 24px;
  justify-content: center;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-modern {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .hero-modern .hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0px;
  z-index: 0;
  pointer-events: none;
  }
  
  .hero-modern .hero-content {
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  .hero-modern h1 {
    font-size: 1.8em;
    margin: 100px 20px 20px 20px;
  }

  .hero-modern p {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .hero-modern .hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-modern .btn {
    flex: 1 1 140px;
    max-width: 180px;
  }

  .hero-modern .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    padding: 0 10px;
    max-height: none;
    margin: 0 auto;
}



  .hero-modern model-viewer {
    width: 100%;
    height: 320px; /* Увеличенная высота модели */
    min-height: 300px;
    max-height: none;
    object-fit: contain;
  }

}


/* === Карточки === */
.card {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}

/* === Vorteile Section === */
.section.vorteile {
  padding: 60px 20px 0px;
  background: var(--section-bg);
  text-align: left;
}

/* Заголовок секции */
.section .section-title {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 2.2em;
  font-weight: 700;
  padding: 22px 40px 22px 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 5px 5px 0;
  margin: 50px 0 !important;
  height: 60px;
  max-width: 740px;
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
}
.section .section-title::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: #fff;
  border-radius: 4px;
}

/* Карточка преимущества */
.vorteil-card {
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 1px 20px rgba(0, 87, 217, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInCard 0.8s forwards;
  text-align: center;
}
.vorteil-card:nth-child(1) { animation-delay: 0s; }
.vorteil-card:nth-child(2) { animation-delay: 0.1s; }
.vorteil-card:nth-child(3) { animation-delay: 0.2s; }
.vorteil-card:nth-child(4) { animation-delay: 0.3s; }
.vorteil-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 10px rgba(0, 87, 217, 0.5),
              0 0 20px rgba(0, 87, 217, 0.7);
}
.vorteil-card img,
.vorteil-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  transition: transform 0.3s;
  display: block;
  color: var(--text-color);
}
.vorteil-card:hover img,
.vorteil-card:hover svg {
  transform: scale(1.1);
  color: var(--accent);
}
.vorteil-card p {
  font-size: 1.05em;
  font-weight: 500;
  margin: 0;
  color: var(--text-color);
}

/* Анимация карточек */
@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Leistungen === */
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
.service-card h3 {
  margin: 15px 0 5px;
}
.service-card p {
  font-size: 0.9em;
  color: #666;
}

/* Услуги как карточки */
.leistungen .vorteil-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}

/* Spacer */
.spacer {
  height: var(--spacer-height, 60px);
}

/* === Musterhaus === */
.section.musterhaus {
  background: linear-gradient(to bottom, #2c1a47); /* как у .galerie */
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.musterhaus h2 {
  font-size: 2.4em;
  color: #fff;
  text-transform: uppercase;
}

.musterhaus h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #ddd;
}

.musterhaus p {
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
  color: #ccc;
}

.musterhaus-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.musterhaus-card {
  width: 280px;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.musterhaus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.musterhaus-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,87,217,0.5);
}

.musterhaus-card:hover img {
  transform: scale(1.05);
}

/* Адаптив */
@media (max-width: 768px) {
  .musterhaus h2 {
    font-size: 1.8em;
  }

  .musterhaus h3 {
    font-size: 1.2em;
  }

  .musterhaus p {
    font-size: 0.95em;
    padding: 0 10px;
  }

  .musterhaus-card {
    width: 90%;
    max-width: 300px;
    height: auto;
  }

  .musterhaus-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* === Slider / Track === */
.slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto 0px;
  max-width: 100%;
}
.slider-track {
  display: flex;
  gap: 20px;
  padding: 10px;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
}
.slider-track img {
  width: 100%;
  max-width: 240px;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* === Slider Arrows === */
.slider-btn,
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  z-index: 10;
  transition: background 0.3s ease;
}
.slider-btn:hover,
.carousel-btn:hover {
  background: var(--accent-hover);
}
.slider-btn.prev,
.carousel-btn.prev { left: 10px; }
.slider-btn.next,
.carousel-btn.next { right: 10px; }

@media (max-width: 768px) {
  .slider-btn,
  .carousel-btn {
    display: none;
  }
}

/* === Galerie Section === */
.section.galerie {
  background: var(--section-bg);
  color: white;
  text-align: center;
  padding-bottom: 30px;
}

.galerie h2 {
  font-size: 2.4em;
  margin-bottom: 10px;
  color: #fff;
  text-transform: uppercase;
}

/* === Gallery Carousel === */
.gallery-carousel-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: visible; /* ✅ позволяет элементу расширяться по высоте */ 
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 0 60px;
}
.gallery-carousel {
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  padding: 70px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

}
.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-grid {
  column-count: 4;
  column-gap: 24px;
  padding: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}


/* === Gallery Item === */
.carousel-item {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 3;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(to bottom, #2c1a47);
  transition: transform 0.4s ease, margin 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
  overflow: hidden;
  padding: 8px;
}
.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}
.carousel-item:hover img {
  transform: scale(1.05);
}
.carousel-item.center {
  transform: scale(1.8);
  margin: 0 30px;
  z-index: 2;
}
.carousel-item.center img {
  box-shadow: none;
}


@media (max-width: 768px) {
   
   .gallery-carousel-wrapper {
    padding: 0 10px; /* уменьшаем отступы */
  }
  
   .carousel-item {
    max-width: 100%;     /* растягиваем */
    width: 100%;         /* принудительно */
    padding: 0;          /* убираем внутренние отступы */
    aspect-ratio: unset; /* можно отключить если мешает */
    border-radius: 0;    /* опционально, если хочешь на весь экран */
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* убираем скругления */
    transform: none !important;
  }
  
  .carousel-btn {
    display: none;
  }
  
   .carousel-item.center {
    transform: none !important;
    margin: 0 !important;
  }
  
  .gallery-carousel {
    padding: 0px 0;
  }
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.2em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 10;
}
.lightbox-close:hover {
  color: var(--accent);
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #2e2e2e;
  border: none;
  width: 36px;
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  z-index: 10;
}
.lightbox-btn:hover {
  background: #444;
}
.lightbox-btn.left { left: 20px; }
.lightbox-btn.right { right: 20px; }
.arrow-icon {
  color: #fff;
  font-size: 1.2em;
  line-height: 1;
}
@media (max-width: 768px) {
  .lightbox-btn {
    display: none;
  }
}

/* === Swipe Hint (на первом элементе карусели) === */
.gallery-carousel {
  position: relative;
}

.gallery-carousel::before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-image: url('/assets/icons/swipe-left.svg');
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 10;
  pointer-events: none;
  opacity: 0.7;
  animation: swipeHintX 2.4s ease-in-out infinite;
}

@keyframes swipeHintX {
  0%   { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  25%  { transform: translateX(-60%) translateY(0); opacity: 0.9; }
  50%  { transform: translateX(-70%) translateY(0); opacity: 0.4; }
  100% { transform: translateX(-50%) translateY(0); opacity: 0; }
}

@media (min-width: 768px) {
  .gallery-carousel::before {
    display: none;
  }
}

/* === Kontakt Section === */
.section.kontakt {
  padding: 50px 20px 50px;
  background: var(--section-bg);
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* выравнивание по вертикали */
  align-items: center;     /* выравнивание по горизонтали */
  text-align: center;      /* выравнивание текста */

}
.kontakt-info h3,
.kontakt-info p,
.kontakt-info a {
  text-align: center;
}

.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0px 80px;
}
.kontakt-form,
.kontakt-info {
  flex: 1 1 0px;
  min-width: 280px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 20px rgba(0, 87, 217, 0.15);
  transition: box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeInCard 0.8s forwards;
}
.kontakt-form { animation-delay: 0.1s; }
.kontakt-info { animation-delay: 0.2s; }
.kontakt-form:hover,
.kontakt-info:hover {
  box-shadow: 0 6px 20px rgba(0, 87, 217, 0.2);
  transform: none;
}

.kontakt-info p {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1em;
}

.kontakt-buttons-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
}

.kontakt-buttons-grid .btn {
  padding: 10px 20px 10px 20px;
  text-align: center;
  flex: 1 1 48%; /* две кнопки в ряд на десктопе */
  max-width: 100%;
}

.kontakt-buttons-grid .btn.full-width-btn {
  flex: 1 1 100%;
}

.full-width-btn {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  gap: 10px;
}


.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1) !important; /* делает иконку белой */

}

[data-theme="light"] .btn-icon {
  filter: none;
}


@media (max-width: 600px) {
  .kontakt-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* Форма */
.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kontakt-form input,
.kontakt-form textarea {
  padding: 12px;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  font-size: 1em;
  background: var(--input-bg, #fff);
  color: var(--text-color);
}
.kontakt-form textarea {
  min-height: 100px;
  resize: vertical;
}
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
  color: var(--text-muted, #888);
}
.kontakt-form label {
  font-size: 0.9em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-color);
}
.kontakt-form input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 3px;
}
.kontakt-form button {
  background: var(--accent);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.kontakt-form button:hover {
  background: var(--accent-hover);
}

/* Информация */
.kontakt-info h3 {
  margin-bottom: 16px;
  font-size: 1.3em;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

/* === Footer === */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 0.95em;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 88px;
  object-fit: contain;
}

.footer-name {
  font-size: 1.1em;
  font-weight: 600;
}

/* Навигация */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  min-width: 120px;
  white-space: normal;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* Ссылки Impressum и Datenschutz в одну строку */
.footer-nav--inline-mobile {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.75em;
  opacity: 0.8;
  flex-wrap: wrap;
}

.footer-nav--inline-mobile a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.footer-nav--inline-mobile a:hover {
  opacity: 1;
}

/* Соцсети */
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.footer-social a {
  color: var(--text-color);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  opacity: 0.6;
}

.footer-social a svg {
  width: 32px;
  height: 32px;
  transition: inherit;
}

.footer-social a:hover svg {
  transform: scale(1.15);
  color: var(--accent, #0057d9);
}

/* Нижняя строка */
.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color: var(--text-muted, #999);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between; /* ✅ ключевое отличие */
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  font-size: 0.95em;
  gap: 8px;
  text-align: center;
}

.footer-bottom-text {
  margin: 0;
  text-align: center;
}

.cookie-settings-link {
  color: var(--text-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95em;
}

.footer-bottom-text,
.cookie-settings-link {
  white-space: normal;
  word-break: break-word;
  font-size: 0.95em;
}

/* Dark Mode */
[data-theme="dark"] .site-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
}

[data-theme="dark"] .footer-nav a:hover {
  color: var(--accent);
}

/* Адаптив */
@media (max-width: 768px) {
    .footer-bottom-row {
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ✅ добавлено */
    text-align: center;
  }

  .footer-bottom-text {
    text-align: left;
    flex: 1;
  }

  .cookie-settings-link {
    flex: 0 0 auto;
    font-size: 0.9em;
  text-decoration: underline;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.2s ease;
  text-align: center;
}


.cookie-settings-link:hover {
  color: var(--accent);
}
  
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    width: 100%;
  }

  .footer-name {
    text-align: center;
  }

   .footer-bottom-row {
    flex-direction: column;
  }

   .footer-bottom-text,
  .cookie-settings-link {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }
  
  .footer-nav {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer-nav a {
    display: block;
  }
}

/* 👉 Для десктопа: на одной строке, по краям */
@media (min-width: 769px) {
  .footer-bottom-row {
    justify-content: space-between;
    flex-wrap: nowrap;
    text-align:  center;
  }

  .footer-bottom-text {
    flex: 1 1 auto;
    text-align:  center;
    text-align:  center;
  }

  .cookie-settings-link {
    flex: 0 0 auto;
    text-align: center;
  }
}

/* === Back to Top Button === */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}
.back-to-top-btn svg {
  stroke: #fff;
}
.back-to-top-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* === Breadcrumbs === */
.breadcrumbs-ribbon {
  margin: 0px 0 50px;
  padding-left: 10px;
  font-size: 0.95em;
}
.breadcrumbs-ribbon ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
   gap: 6px;
}
.breadcrumbs-ribbon li {
  margin-right: 10px;
   white-space: normal;
}
.breadcrumbs-ribbon a {
  padding: 10px 22px 8px 18px;
  background: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  word-break: break-word;
  
    clip-path: polygon(
  0%   0%,
  100%  0%,      /* верхний правый сдвинут влево (примерно) */
  100%  100%,    /* нижний правый */
  0%  100%     /* нижний левый сдвинут вправо */
);


  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.breadcrumbs-ribbon a:hover {
  background: var(--accent);
  color: #fff;
}
.breadcrumbs-ribbon .current {
  background: var(--accent);
  color: #fff;
  pointer-events: none;
}

/* Темная тема */
[data-theme="dark"] .breadcrumbs-ribbon a:not(.current) {
  background: #1a1a1a;
  color: #fff;
  position: relative;
}
[data-theme="dark"] .breadcrumbs-ribbon a:not(.current)::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: transparent;
  clip-path: polygon(
  0%   0%,
  100% 0%,
  calc(100% + 12px) 100%,
  12px 100%
);


  border: 2px solid white;
  z-index: -1;
}
[data-theme="dark"] .breadcrumbs-ribbon a:not(.current):hover {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .breadcrumbs-ribbon a:not(.current):hover::before {
  display: none;
}

/* === Media Queries === */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  #burger { display: block; }



  .kontakt-grid {
    flex-direction: column;
    gap: 50px;
  }
  .kontakt-form,
  .kontakt-info {
    width: 100%;
    min-width: unset;
  }

  .section .section-title {
    font-size: 1.4em;
    padding: 16px 24px 16px 40px;
    justify-content: flex-start;
  }
  .section .section-title::before {
    top: 12px;
    bottom: 12px;
  }
}
@media (max-width: 480px) {
  .section .section-title {
    font-size: 1.2em;
    padding: 12px 20px 12px 36px;
  }
  .breadcrumbs-ribbon a {
    font-size: 0.85em;
    padding: 8px 22px 8px 18px;
    clip-path: none;
       clip-path: polygon(
  0%   0%,
  100%  0%,      /* верхний правый сдвинут влево (примерно) */
  100%  100%,    /* нижний правый */
  0%  100%     /* нижний левый сдвинут вправо */
);

  }
}
/* === Первый блок "О нас" в адаптиве === */
.ueber-uns-intro {
  align-items: center;
  justify-content: center;
  text-align: left;
}

@media (max-width: 768px) {
  .ueber-uns-intro {
    display: flex;
    flex-direction: column;
    text-align: center; /* центрируем текст */
    gap: 30px;
  }

  .ueber-uns-intro > div {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* === Блок страницы "Über uns" === */
.section.ueber-uns {
  padding: 0px 20px 0px;
  background: var(--section-bg);
  text-align: left;
}

/* === Вводный текст под заголовком "Willkommen..." === */
.about-intro-text {
  padding-left: 20px !important;
  padding-right: 20px !important;
  max-width: 100% !important;
  margin-bottom: 20px; /* Отступ между заголовком и абзацем */
}

@media (min-width: 768px) {
  .about-intro-text {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* === Логотип светлой/тёмной темы === */
.logo-theme-wrapper {
  text-align: center;
}

.logo-theme-wrapper img {
  width: 450px; /* адаптивный размер логотипа */
  height: auto;
  margin: 0 auto;
  display: none; /* скрыть все логотипы по умолчанию */
}

/* Показ логотипа в светлой теме */
:root .logo-light {
  display: inline-block !important;
}

/* Скрыть логотип светлой темы в тёмной */
[data-theme="dark"] .logo-light {
  display: none !important;
}

/* Показ логотипа для тёмной темы */
[data-theme="dark"] .logo-dark {
  display: inline-block !important;
}

@media (max-width: 600px) {
  .logo-theme-wrapper img {
    width: 300px; /* уменьшить логотип на мобильных */
  }
}

/* === Завершающий абзац текста внизу страницы === */
.about-closing-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--text-color);
}

@media (max-width: 600px) {
  .about-closing-text {
    font-size: 1.05em;
    padding: 0 10px;
  }
}

/* === Кнопки "Startseite", "Kontakt", "Google Map" === */
.btn-fixed {
  width: 250px !important; /* одинаковая ширина кнопок */
  text-align: center;
  display: inline-block;
}

@media (max-width: 768px) {
  .btn-fixed {
    width: 100% !important; /* во всю ширину на мобилках */
    max-width: 300px;
  }

  .ueber-uns-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}


.page-title-section {
  position: relative;
  background: var(--section-bg);
  padding: 100px 0 0; /* верх: 100px, низ: 0 */
  overflow: hidden;
  min-height: 220px; /* ✅ добавлено */
  text-align: center;
  z-index: 1;
}



/* SVG фон */
.svg-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  overflow: hidden;
  z-index: 0;
}

.page-title-bg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Заголовок страницы */
.page-title {
  font-size: 2.4em;
  font-weight: 700;
  color: var(--text-color); /* ✅ динамический цвет */
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}


@media (max-width: 768px) {
.page-title-section {
    padding: 100px 0 30px;
  }

  .page-title {
    font-size: 1.4em;
  }
}

.html {
  scroll-behavior: smooth;
}

/* Визитка */
.vcard-wrapper {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 40px 40px 40px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards, pulseShadow 6s ease-in-out infinite;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.vcard-wrapper:hover {
  box-shadow: 0 8px 28px rgba(0, 87, 217, 0.25), 0 0 20px rgba(0, 87, 217, 0.2);
  transform: scale(1.01);
}

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  .vcard-wrapper {
    padding: 30px 20px;
    gap: 24px;
  }
}

/* Мобильные (до 480px) */
@media (max-width: 480px) {
  .vcard-wrapper {
    padding: 30px 15px;
    gap: 20px;
  }
}

/* WOW эффект */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseShadow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(0, 87, 217, 0.08);
  }
  50% {
    box-shadow: 0 6px 32px rgba(0, 87, 217, 0.16);
  }
}

/* Верхняя часть */
.vcard-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.vcard-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
  flex: 1;
}

.vcard-avatar {
  width: 190px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--accent);
}

.vcard-name h2 {
  font-size: 2em;
  margin-bottom: 6px;
}
.vcard-name .subtitle {
  color: var(--text-muted);
  font-size: 1em;
}

.vcard-top-wrapper {
  position: relative;
}

@media (max-width: 480px) {
  .vcard-info {
    justify-content: center;
    text-align: center;
  }
}

/* QR */
.vcard-qr {
  text-align: center;

}
.vcard-qr img {
  width: 190px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: inline-block;
}
.qr-caption {
  font-size: 0.9em;
  color: var(--text-muted);
  margin: 25px 4px 0px 4px;
}

/* Контакты */
.vcard-body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.vcard-details {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Показываем/скрываем блоки по устройству */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .vcard-qr.mobile-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
  }

  .vcard-qr.mobile-only img {
    width: 200px;
    max-width: 90%;
  }

  .vcard-body {
    padding-bottom: 0; /* можно оставить без дополнительного места, если QR внутри */
  }
}


.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1em;
  color: var(--text-color);
}

@media (max-width: 480px) {
  .contact-list li {
    justify-content: center;
    text-align: center;
  }
}

.contact-list a {
  color: var(--text-color);
}
.contact-list a:hover {
  text-decoration: underline;
}

/* Кнопки */
.vcard-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 87, 217, 0.3);
}

.full-width-btn {
  width: 100%;
  margin-top: 16px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .vcard-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vcard-info {
    flex-direction: column;
    align-items: center;
  }

  .vcard-avatar {
    width: 180px;
    height: 210px;
  }

  .vcard-name h2 {
    font-size: 1.6em;
  }

  .vcard-qr {
  position: static;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

  .vcard-qr img {
    max-width: 220px;
  }

  .vcard-qr .qr-caption {
    font-size: 0.85em;
  }
  
}
.vcard-share-wrapper {
  position: relative;
  width: 100%;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
  }

  .mobile-only img {
    width: 220px;
    max-width: 90%;
    border-radius: 12px;
  }

  .qr-caption {
    font-size: 0.9em;
    color: var(--text-muted);
    text-align: center;
  }
}


/* Меню "Поделиться" */
.custom-share-menu {
  display: none;
  position: absolute;
  bottom: 100%; /* выше кнопки */
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border-color, #ccc);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  animation: fadeIn 0.3s ease-out;
  white-space: nowrap;
  gap: 18px;
  flex-direction: row;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.custom-share-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95em;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

.custom-share-menu a:hover {
  text-decoration: underline;
}

.share-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* белый */
}

/* Мобильная адаптация: вертикальное меню */
@media (max-width: 768px) {
  .custom-share-menu {
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
  }
}

.copy-tooltip {
  position: absolute;
  bottom: 110%; /* появляется над кнопкой */
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #0057d9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.copy-tooltip.visible {
  opacity: 1;
}


.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; /* чтобы контент не прилипал к краю */
  box-sizing: border-box; /* важно! чтобы padding не выходил за 100% */
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* ❗ блокирует горизонтальный скролл */
}

/* === Контейнер для Impressum-текста === */
.impressum-box {
  background: var(--card-bg); /* Цвет фона блока — используется переменная темы */
  padding: 40px 60px 30px;         /* Внутренние отступы сверху/снизу: 24px, слева/справа: 32px */
  border-radius: 12px;        /* Скругление углов блока */
  box-shadow: 0 1px 20px rgba(0, 87, 217, 0.1); /* Тень вокруг блока */
  transition: box-shadow 0.3s ease; /* Плавное изменение тени при наведении или изменении темы */
  max-width: 900px;           /* Максимальная ширина блока — центрируется */
  margin: auto;             /* Центрирование по горизонтали */
  animation: fadeInCard 0.6s forwards; /* Анимация появления */
  opacity: 0;                 /* Начальное значение прозрачности (для анимации) */
  transform: translateY(5px); /* Начальное смещение вниз (для анимации) */
  margin-top: 50px; /* ✅ Визуальное отделение от хлебных крошек */
  margin-bottom: 50px;

}

/* === Анимация появления блока === */
@keyframes fadeInCard {
  to {
    opacity: 1;              /* Конечная прозрачность */
    transform: translateY(0); /* Возврат к нормальному положению */
  }
}

/* === Общий стиль заголовка на странице === */
.section-title {
  font-size: 2.2em;         /* Размер шрифта заголовка */
  font-weight: 700;         /* Жирность */
  margin-bottom: 5px;      /* Отступ снизу */
  color: var(--accent);     /* Цвет заголовка — фирменный */
}

/* === Контент Impressum и Datenschutz — базовая читаемость === */
.impressum-content strong {
  color: #FFFFFF;     /* Цвет выделенного текста */
}

.impressum-content,
.datenschutz-content {
  line-height: 1.6;         /* Межстрочный интервал */
  font-size: 1em;           /* Базовый размер шрифта */
  color: var(--text-color); /* Цвет текста — из темы */
  background: var(--card-bg); /* Цвет фона блока — используется переменная темы */
  padding-top: 10px;        /* Отступ сверху внутри блока */
  margin: 0em 0 0em;        /* Отступы сверху/снизу */

 }

/* === Заголовки в тексте Impressum (h2, h3) === */
.impressum-content h2{
  font-size: 1.4em;         /* Размер шрифта заголовков */
  font-weight: 700 !important;         /* Жирность */
}

.impressum-content h3 {
  font-size: 1.2em;         /* Размер шрифта заголовков */
  font-weight: 600 !important;         /* Жирность */
}

.impressum-content h4 {
  font-size: 1em;         /* Размер шрифта заголовков */
  font-weight: 500 !important;         /* Жирность */
}

h2, h3, h4 {
  margin-bottom: 1em;
}
p, ul, ol {
  margin-bottom: 1em;
}


@media (max-width: 768px) {
  .impressum-box {
    margin-top: 20px;       /* ✅ Отступ сверху */
    padding: 30px 16px;     /* Уменьшаем отступы на мобильных */
    border-radius: 8px;     /* Меньше скругление для плотного дизайна */
  width: 100%; /* ✅ это ключ к полной ширине */
  box-sizing: border-box;
      
  }

  .section-title {
    font-size: 1.6em;       /* Уменьшаем размер заголовка */
    text-align: center;     /* Центрируем заголовок */
  }

  .impressum-content {
    font-size: 0.95rem;     /* Немного меньше текст */
  }
}

.btn-green {
  background: #1A7F37; /* насыщенно-зелёный */
  color: #fff;
}

.btn-green:hover {
  background: #166c2e; /* тёмно-зелёный при наведении */
  
}

#lightbox {
  display: none;
  /* остальное */
}
#lightbox.active {
  display: flex;
}


.gallery-item video {
  width: 100%; /* немного больше, чем 100% */
  height: auto;
  border-radius: 10px;
  border: 2px solid var(--accent); /* обводка в цвет темы */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.gallery-item:hover video {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 87, 217, 0.4);
  border-color: var(--accent-hover); /* усиленный цвет при наведении */
}

#videoLightbox video {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

address {
  font-style: normal;
}

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.address-lines {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 12px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .contact-address {
    flex-wrap: wrap;
  }

  .address-lines {
    flex-direction: column;
    gap: 2px;
  }
}