/* =====================================================
   БЛОК 0 — ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   Используются на ВСЕХ страницах сайта
===================================================== */

:root {
  --mint: #2fc2a9;          /* основной мятный цвет */
  --bg-light: #ffffff;     /* светлый фон */
  --bg-dark: #0e0e0e;      /* тёмный фон */
  --text-light: #ffffff;  /* текст на тёмном фоне */
  --text-dark: #111111;   /* текст на светлом фоне */
  --muted: #777777;       /* вторичный текст */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none;
}

/* =====================================================
   БЛОК 1 — HERO (ГЛАВНЫЙ ЭКРАН)
   Только для index.html
===================================================== */

.hero {
  position: relative;
  min-height: 100svh; /* всегда ровно экран */
  background: url("images/hero-light.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

body.theme-dark .hero {
  background-image: url("images/hero-dark.jpg");
}

/* затемнение картинки */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* верхняя панель внутри hero */
.hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* логотип */
.logo {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.logo span {
  color: var(--mint);
}

/* блок управления: тема + язык */
.controls {
  display: grid;
  grid-template-columns: 48px 48px;
  grid-template-rows: 48px 48px;
  gap: 6px;
}

.controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

/* языки DE / RU */
.lang {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* контент hero (текст + кнопка) */
.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: clamp(20px, 5vh, 56px);
}

.hero-text {
  max-width: 560px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
}

.hero-text p {
  font-size: clamp(15px, 2.2vw, 18px);
}

/* =====================================================
   БЛОК 2 — КНОПКИ (WhatsApp, Цены, Работы)
   Используется на ВСЕХ страницах
===================================================== */

.cta,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--mint);
  color: #000000;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover,
.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =====================================================
   БЛОК 3 — УСЛУГИ / КАРТОЧКИ
   index.html, preise.html, leistungen.html
===================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  padding: 80px 24px;
}

.service-card {
  text-align: center;
}

.service-card img {
  width: 100%;
  border-radius: 18px;
}

/* =====================================================
   БЛОК 4 — НАВИГАЦИОННЫЕ КНОПКИ
   (Цены / Наши работы)
===================================================== */

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 20px 80px;
  flex-wrap: wrap;
}

/* =====================================================
   БЛОК 5 — СОЦИАЛЬНЫЕ СЕТИ
===================================================== */

.socials {
  text-align: center;
  padding: 60px 20px;
}

.socials h2 {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.social-icons img {
  width: 28px;
  height: 28px;
}

/* инверсия иконок в тёмной теме */
body.theme-dark .social-icons img {
  filter: invert(1);
}

/* =====================================================
   БЛОК 6 — ФУТЕР
===================================================== */

.footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 28px 20px;
  text-align: center;
}

body.theme-dark .footer {
  border-color: rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.copy {
  font-size: 14px;
  color: var(--muted);
}

/* =====================================================
   БЛОК 7 — ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   impressum.html / datenschutz.html
===================================================== */

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-page h1 {
  margin-bottom: 24px;
}

.legal-page h2 {
  margin-top: 28px;
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--mint);
}

/* =====================================================
   БЛОК 8 — АДАПТИВ (МОБИЛЬНЫЕ УСТРОЙСТВА)
===================================================== */

@media (max-width: 768px) {

  .hero-text {
    text-align: left;
  }

  .hero-content {
    align-items: flex-start;
  }

  .cta,
  .action-btn {
    min-width: 100%;
  }

}
