@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Josefin+Sans:ital,wght@0,100;0,300;0,400;1,300&display=swap');

:root {
  --black:     #000000;
  --white:     #ffffff;
  --pink:      #FCBEFF;
  --purple:    #CEBDFF;
  --blue:      #B0DEF6;
  --gray:      #f8f7f9;
  --gray-mid:  #e8e5ec;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(41,34,51,0.08);
}

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

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; }

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  background: linear-gradient(135deg, #fce4ff 0%, #e8dfff 30%, #CEBDFF 60%, #B0DEF6 100%);
  color: var(--black);
  padding: 56px 0 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
header .eyebrow { color: var(--black); opacity: 0.45; }
header .eyebrow:hover { opacity: 0.85; }
header h1 { color: var(--black); }
header p { color: var(--black); }

/* Sparkle decorations */
.sparkle {
  position: absolute;
  color: var(--black);
  line-height: 1;
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}
.sparkle-1 { font-size: 2rem;   top: 18%; left: 6%;   opacity: 0.18; animation-delay: 0s; }
.sparkle-2 { font-size: 1.1rem; top: 12%; right: 10%; opacity: 0.22; animation-delay: 1.2s; }
.sparkle-3 { font-size: 0.8rem; bottom: 22%; left: 14%; opacity: 0.15; animation-delay: 2.4s; }
.sparkle-4 { font-size: 1.4rem; bottom: 18%; right: 8%; opacity: 0.2;  animation-delay: 0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.35; transform: scale(1.25) rotate(20deg); }
}
header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s;
}
header .eyebrow:hover { opacity: 0.9; }
header h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 10px; }
header p { opacity: 0.55; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pink);
  color: var(--black);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── Filters ── */
.filters {
  padding: 28px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-mid);
  background: linear-gradient(180deg, #f5eeff 0%, var(--white) 100%);
}
.filters select,
.filters input[type="text"] {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  border: 1px solid var(--gray-mid);
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--white);
  color: var(--black);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 180px;
}
.filters select:focus,
.filters input:focus { border-color: var(--purple); }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  padding: 48px 0 64px;
}

/* ── Flip Card ── */
.card-wrapper {
  height: 400px;
  perspective: 1200px;
  cursor: pointer;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}

.card.flipped { transform: rotateY(180deg); }

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Front */
.card-front {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s;
}
.card-wrapper:hover .card-front {
  box-shadow: 0 14px 44px rgba(206,189,255,0.5);
}
.card-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: var(--gray);
  display: block;
  aspect-ratio: 16 / 9;
}
.card-photo-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--black);
  opacity: 0.7;
  aspect-ratio: 16 / 9;
}
.card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.card-name { font-family: 'DM Serif Display', serif; font-size: 1.2rem; }
.card-city { font-size: 0.8rem; opacity: 0.55; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }

/* Back */
.card-back {
  background: linear-gradient(145deg, #fce4ff 0%, #e2d8ff 45%, #c2e8fb 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  gap: 12px;
}
.card-back-sparkle {
  font-size: 1.1rem;
  opacity: 0.4;
  margin-bottom: -4px;
}
.card-back-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--black);
  line-height: 1.2;
}
.card-back-bio {
  font-size: 0.84rem;
  line-height: 1.65;
  opacity: 0.7;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.card-back-bio-empty {
  font-size: 0.82rem;
  opacity: 0.4;
  font-style: italic;
  flex: 1;
}

/* ── Tags ── */
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--black);
}
.tag-format { background: var(--purple); }

/* ── Buttons ── */
.btn {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-pink { background: var(--pink); color: var(--black); }
.btn-sm { padding: 7px 18px; font-size: 0.75rem; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select.form-select {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  background: var(--white);
  color: var(--black);
}
input:focus,
textarea:focus,
select.form-select:focus { border-color: var(--purple); }
textarea { resize: vertical; min-height: 80px; }

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FCBEFF 0%, #CEBDFF 55%, #B0DEF6 100%);
  padding: 24px;
}
.auth-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--black);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 48px rgba(41,34,51,0.18);
}
.auth-card h2 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .subtitle { opacity: 0.55; font-size: 0.88rem; margin-bottom: 32px; }

/* ── Dashboard layout ── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--black);
  color: var(--white);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--pink);
  margin-bottom: 28px;
  padding: 0 12px;
}
.sidebar a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s;
  display: block;
}
.sidebar a:hover,
.sidebar a.active { background: rgba(255,255,255,0.1); }
.sidebar .logout { margin-top: auto; opacity: 0.4; }
.sidebar .logout:hover { opacity: 0.8; }

.dashboard-main {
  padding: 52px 56px;
  background: var(--gray);
  overflow-y: auto;
}
.dashboard-main h2 { font-size: 2rem; margin-bottom: 8px; }
.dashboard-subtitle { opacity: 0.55; font-size: 0.88rem; margin-bottom: 36px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 660px;
}

/* ── Photo upload ── */
.photo-upload-area {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed var(--gray-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
  flex-shrink: 0;
}
.photo-upload-area:hover { border-color: var(--purple); }
.photo-upload-area img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.photo-hint {
  font-size: 0.72rem;
  opacity: 0.45;
  text-align: center;
  line-height: 1.5;
  padding: 12px;
  pointer-events: none;
}

/* ── Style checkboxes ── */
.styles-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.style-checkbox { display: none; }
.style-label {
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-mid);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  letter-spacing: 0.04em;
}
.style-checkbox:checked + .style-label {
  background: var(--purple);
  border-color: var(--purple);
}

/* ── Profile sections ── */
.profile-section { padding: 56px 0; }
.profile-section-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
.bio-text {
  font-size: 1rem;
  line-height: 1.9;
  max-width: 640px;
  white-space: pre-line;
  opacity: 0.85;
}
.approach-box {
  margin-top: 28px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(252,228,255,0.4), rgba(206,189,255,0.25));
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  max-width: 600px;
}
.approach-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}
.approach-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--black);
}
.expertise-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 18px 0;
}
.expertise-strip-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gray);
  border: 1px solid var(--gray-mid);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.yoga-style-tag {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s;
}
.yoga-style-tag:hover { background: var(--purple); border-color: var(--purple); }

/* ── Profile page ── */
.profile-hero {
  background: linear-gradient(135deg, #fce4ff 0%, #e8dfff 30%, #CEBDFF 60%, #B0DEF6 100%);
  color: var(--black);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}
.profile-hero-inner {
  display: flex;
  gap: 44px;
  align-items: flex-end;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.profile-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid var(--pink);
  flex-shrink: 0;
  aspect-ratio: 1;
}
.profile-photo-placeholder {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--black);
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,0.2);
  aspect-ratio: 1;
}
.profile-content {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 24px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 36px;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

/* ── Admin table ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 18px;
  background: var(--gray);
  border-bottom: 1px solid var(--gray-mid);
  font-weight: 400;
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.88rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }

/* ── Toggle ── */
.toggle { position: relative; display: inline-block; width: 38px; height: 21px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-mid);
  border-radius: 999px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--purple); }
.toggle input:checked + .toggle-slider::before { transform: translateX(17px); }

/* ── Alerts ── */
.alert {
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

/* ── Offering cards (Profilseite) ── */
.offering-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(206,189,255,0.4);
}
.offering-card-accent { height: 5px; flex-shrink: 0; }
.offering-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.offering-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  line-height: 1.25;
}
.offering-card-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offering-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 2px;
}
.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* ── Stat cards ── */
.stat-card {
  border-radius: 12px;
  padding: 18px 24px;
  min-width: 110px;
}
.stat-card .stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 4px;
}

/* ── Utilities ── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.mt-2   { margin-top: 8px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mt-8   { margin-top: 32px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.mb-8   { margin-bottom: 32px; }
.text-sm  { font-size: 0.85rem; }
.opacity-60 { opacity: 0.6; }
.w-full { width: 100%; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--gray) 25%, var(--gray-mid) 50%, var(--gray) 75%);
  background-size: 200% 100%;
  animation: skel 1.4s infinite;
  border-radius: 8px;
}
@keyframes skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  header h1 { font-size: 1.9rem; }
  .filters { flex-direction: column; }
  .filters select, .filters input { min-width: auto; width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }
  .sidebar-brand { width: 100%; margin-bottom: 0; }
  .sidebar .logout { margin-top: 0; }
  .dashboard-main { padding: 32px 20px; }
  .form-card { padding: 24px 20px; }
  .auth-card { padding: 32px 22px; }
  .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .profile-hero-inner .card-tags { justify-content: center; }
}
