/*
 Theme Name:      Papillon-Physio
 Theme URI:       https://papillon-physio.de   /* при желании укажешь реальный URL 
 Description:     Praxis Berlin
 Version:         1.0.0
 Author:          Evgeniia Kushnir
 Author URI:      https://vivid-webstudio.com
 Text Domain:     papillon-physio
 Domain Path:     /languages
 Tested up to:    6.5
 Requires at least: 6.2
 Requires PHP:    7.4
 License:         GNU General Public License v2 or later
 License URI:     https://www.gnu.org/licenses/gpl-2.0.html
*/

body {
  margin: 0;
  background: repeating-linear-gradient(
    to right,
    #a89b87 0px,
    #a89b87 20px,
    #1c1c1c 20px,
    #1c1c1c 25px
  );
  font-family: "Poppins", sans-serif;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

@font-face {
  font-family: "Cookie";
  src: url("fonts/cookie.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Parisienne";
  src: url("fonts/parisienne.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.container {
  width: 80%;
  margin: 0 auto;
}

.empfang {
  padding: 30px;
  position: relative;
  height: 700px; /* можно изменить под нужную высоту */
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin: 30px auto;
  background-image: url("img/praxis.jpeg");
  background-size: cover; /* чтобы было видно полностью */
  background-repeat: no-repeat;
  background-position: center;
}

.image-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.4em;
  line-height: 1.4;
  color: #fff7f1;
  max-width: 90%;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.image-text span {
  font-family: "Cookie";
  font-size: 2em;
}

.menu-container,
#impressum {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff7f1;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  width: 80%;
  margin: 30px auto;
}

#impressum p {
  text-align: center;
}

.logo-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: left;
}

.papillon h1 {
  font-family: "Parisienne";
  font-size: 3.5em;
  font-weight: 400;
  margin: 0;
  color: #1f1f1c;
}

.kontakt-1 h3 {
  font-family: "Parisienne";
  font-size: 3em;
}

.about h2,
.team h2 {
  font-family: "Cookie", cursive;
  font-size: 2.85em;
  text-align: left;
}

.kontakt-1 h4 {
  font-family: "Cookie", cursive;
  font-size: 2em;
}

.papillon h2 {
  text-align: center;
  font-size: 2.5em;
  font-family: "Cookie", cursive;
  font-weight: 400;
  margin: 5px 0 0;
  color: #444;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.nav-links a,
.contacts a {
  text-decoration: none;
  font-size: 1.45em;
  color: #c7808f;
  padding-bottom: 4px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}

.footer-right .nav-links a {
  color: #fff7f1;
}

.nav-links a:hover {
  text-shadow: 2px 2px 3px rgba(190, 190, 190, 0.7);
  scale: 1.05;
}

.termin-menu {
  background-color: #c7808f;
  border-radius: 1.45rem;
  color: #fff7f1;
  padding: 10px;
}

.schwerpunkte-section,
.kontakt,
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff7f1;
  padding: 30px;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin: 30px auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 2rem;
  margin: 30px auto;
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 1rem;
  /* рамка‑градиент */
  background: linear-gradient(#fff7f1, #fff7f1) padding-box,
    linear-gradient(135deg, var(--accent) 0%, #f0d7bc 100%) border-box;
  border: 4px solid transparent;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

/* иконка */
.card-icon {
  font-size: 3.5em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
}

/* плавное появление при скролле */
.card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.card.reveal {
  opacity: 1;
  transform: none;
}

.kontakt-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.kontakt-2 {
  margin-top: 25px;
}

.kontakt-1 .butterfly-wrapper {
  display: flex;
  justify-content: center;
}

footer {
  background-color: #c7808f;
  color: #fff7f1;
}

footer .container {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-menu {
  display: flex;
  flex-direction: column;
}

.therapie {
  margin: 30px 0 30px 0;
}

.praxis-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem;
}

.praxis-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.praxis-gallery img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.lightbox-controls {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.lightbox-button,
.lightbox-close {
  background: none;
  border: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
  padding: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.5em;
}

#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #6ca6af;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  font-size: 1.2em;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #5b95a0;
}

/* Бабочка */
.butterfly-wrapper {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

.butterfly-wrapper.fly {
  animation: fadeIn 2s ease-in-out forwards, fly 6s ease-in-out infinite;
  animation-delay: 0s, 2s;
}

.butterfly {
  width: 100px;
  height: 100px;
  background: url("img/papillon1.png") no-repeat center/contain;
  animation: flap 0.4s infinite ease-in-out;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fly {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-15px, -20px) rotate(-4deg);
  }
  50% {
    transform: translate(0px, -10px) rotate(0deg);
  }
  75% {
    transform: translate(15px, -15px) rotate(4deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes flap {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.95);
  }
}

.team-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.team-foto {
  height: 250px;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  display: block;
  flex-shrink: 0;
}

.mitarbeiter {
  margin-bottom: 30px;
}

.card h4 {
  font-family: "Cookie", cursive;
  font-size: 2em;
}

.therapie-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
}

.therapie-section .card {
  width: 600px; /* 👈 Одинаковая ширина */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Адаптивность */
@media (max-width: 1000px) {
  .menu-container {
    padding: 20px;
  }

  .butterfly {
    width: 200px;
    height: 200px;
  }

  .papillon h1 {
    font-size: 5em;
  }

  .papillon h2 {
    font-size: 4em;
  }

  .cards {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }

  .logo-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .nav-links a {
    font-size: 2.3em;
  }

  .image-text span,
  h3 {
    font-size: 3em;
  }

  .contact {
    font-size: 1.2em;
  }

  .kontakt,
  .kontakt-wrapper {
    text-align: center;
    justify-content: center;
  }

  .kontakt-2 {
    margin-top: 25px;
  }

  .card h4,
  .card-title,
  .mitarbeiter-title {
    font-size: 3.25em;
  }

  .card-text {
    font-size: 2em;
  }

  h2 {
    font-size: 2.85em !important;
  }

  .card li {
    font-size: 2em;
  }
  .praxis-gallery {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .team-wrapper {
    justify-content: center;
    flex-wrap: wrap;
  }

  .team-foto {
    height: 350px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }

  h3 {
    font-size: 2em;
  }

  .year {
    font-size: 1.5em;
  }

  #scrollTopBtn {
    padding: 1.8rem 2.2rem;
    border-radius: 70px;
    font-size: 1.5em;
  }

  .kontakt-1 h4 {
    font-size: 3em;
  }
}
.kontakt-2 iframe {
  height: 700px;
}

@media (min-width: 768px) {
  .kontakt-2 iframe {
    height: 600px;
  }
}

/* ==== Цветовая схема через CSS‑переменные  ==== */
:root {
  --accent-rose: #c7808f;
  --accent-teal: #6ca6af;
  --light-bg: #fff7f1;
  --dark-bg: #1c1c1c;
}

/* ==== Общая «заглушка» для невидимых элементов ==== */
.revealable {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.revealable.reveal {
  opacity: 1;
  transform: none;
}

/* ==== Шапка / меню — лёгкий «стеклянный» эффект ==== */
.menu-container {
  backdrop-filter: blur(8px) saturate(1.1);
  background: rgba(255, 247, 241, 0.85); /* прежний цвет, но полупрозрачный */
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==== Нав‑ссылки: анимированное подчёркивание ==== */
.nav-links a {
  position: relative;
  text-decoration: none;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ==== Заголовки секций ==== */
.about h2,
.kontakt h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25em;
}
.about h2::after,
.kontakt h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-teal));
  border-radius: 2px;
}

/* ==== Карточки уже настроены. Ниже — блок с картой ==== */
.kontakt-2 > div {
  /* ваш div-обёртка карты */
  transition: transform 0.25s;
}
.kontakt-2 > div:hover {
  transform: scale(1.02) rotate(-0.3deg);
}

/* ===== Papillon – Price Table ===== */
.pp-prices {
  /* Локальные переменные (можно подправить при желании) */
  --pp-bg: var(--light-bg, #fff7f1);
  --pp-text: #1c1c1c;
  --pp-muted: #6b7280;
  --pp-line: #ece7e2;
  --pp-head: #f7efe8;
  --pp-radius: 12px;
  --pp-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  --pp-accent-1: var(--accent-rose, #c7808f);
  --pp-accent-2: var(--accent-teal, #6ca6af);
}

/* Заголовок и поиск */
.pp-prices__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-weight: 600;
  color: var(--pp-text);
}

.pp-prices__label {
  display: block;
  font-size: 0.95rem;
  color: var(--pp-muted);
  margin-bottom: 0.35rem;
}

.pp-prices__search {
  width: 100%;
  max-width: 540px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: #fff;
  color: var(--pp-text);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pp-prices__search:focus {
  border-color: #d9d2cb;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Таблица */
.pp-prices__wrap {
  margin-top: 12px;
}
.pp-prices__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: transparent;
}
.pp-prices__table th,
.pp-prices__table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--pp-line);
  text-align: left;
  color: var(--pp-text);
}
.pp-prices__table thead th {
  background: var(--pp-head);
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
}
.pp-prices__table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Служебная серая строка-разделитель (если захочешь секции) */
.pp-prices__section {
  background: linear-gradient(90deg, var(--pp-head), #fff);
  font-weight: 600;
  color: var(--pp-muted);
}

/* Примечание */
.pp-prices__note {
  color: var(--pp-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Подчёркивание цен акцентом при ховере строки */
.pp-prices__table tbody tr:hover td:last-child {
  text-shadow: 0 0 0 transparent;
  background-image: linear-gradient(
    90deg,
    var(--pp-accent-1),
    var(--pp-accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Мобильная «карточная» раскладка */
@media (max-width: 640px) {
  .pp-prices__table thead {
    display: none;
  }
  .pp-prices__table,
  .pp-prices__table tbody,
  .pp-prices__table tr,
  .pp-prices__table td {
    display: block;
    width: 100%;
  }

  .pp-prices__table tr {
    background: var(--pp-bg);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    box-shadow: var(--pp-shadow);
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .pp-prices__table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: none;
    padding: 0.6rem 0;
  }
  .pp-prices__table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--pp-muted);
  }
  /* Последняя строка в карточке без нижнего отступа */
  .pp-prices__table td:last-child {
    padding-bottom: 0.2rem;
  }
}

/* «Экранридер-только» утилита (если используешь <caption> или скрытые подписи) */
.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;
}

/* Печать: убираем карточки и тени, делаем ч/б */
@media print {
  .pp-prices__search,
  .pp-prices__label {
    display: none !important;
  }
  .pp-prices__table thead {
    display: table-header-group !important;
  }
  .pp-prices__table,
  .pp-prices__table tr,
  .pp-prices__table td {
    display: table !important;
  }
  .pp-prices__table tr {
    box-shadow: none;
    border: none;
  }
  .pp-prices__table th,
  .pp-prices__table td {
    color: #000 !important;
  }
}

/* === Mobile boost для прайс-таблицы (≤640px) === */
@media (max-width: 640px) {
  /* Чуть крупнее весь блок */
  .pp-prices { font-size: 1.125rem; } /* ≈ +12.5% ко всем текстам внутри */

  /* Заголовок и подсказки */
  .pp-prices__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .pp-prices__label,
  .pp-prices__note,
  .pp-prices__small { font-size: 0.95rem; line-height: 1.5; }

  /* Поисковая строка — выше и крупнее */
  .pp-prices__search {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  /* Карточная раскладка таблицы — больше отступы и кегль */
  .pp-prices__table tr { padding: 0.5rem 1rem; }
  .pp-prices__table td {
    padding: 0.9rem 0;
    line-height: 1.45;
    gap: 1.25rem;
    font-size: 1rem;
  }
  .pp-prices__table td::before { font-weight: 600; font-size: 1em; }
}
/* Необязательно: сделать контейнер шире на телефоне */
@media (max-width: 640px) {
  .container { width: 92%; } /* вместо 80% */
}
