/* =========================================================
   Monas Club der kleinen Raupen — Hauptstylesheet
   ========================================================= */

/* ─── Lokale Webfonts (DSGVO-konform, kein Google CDN) ──── */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/nunito-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/nunito-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Custom Properties ─────────────────────────────────── */
:root {
  /* Brand */
  --primary:    #a8528a;
  --primary-dk: #8c3f72;
  --primary-lt: #c47aaa;

  /* Surfaces */
  --bg:      #ffffff;
  --bg-alt:  #faf7fb;
  --card:    #ffffff;
  --gray-lt: #f3f4f6;
  --gray:    #e5e7eb;
  --white:   #ffffff;

  /* Text */
  --text:       #1f2937;
  --text-muted: #6b7280;

  /* Effects */
  --shadow:    0 2px 12px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .16);
  --radius:    12px;
  --radius-sm: 8px;
  --transition: .25s ease;

  /* Layout */
  --nav-h: 68px;
  --container-max: 1440px;

  /* Type Scale (fluid) — Base raised to 18px for better readability on high-res screens */
  --fs-xs:   1rem;                     /* 16px */
  --fs-sm:   1.0625rem;                /* 17px */
  --fs-base: 1.125rem;                /* 18px */
  --fs-md:   clamp(1.25rem, 2.2vw, 1.5rem);
  --fs-lg:   clamp(1.4rem,  2.8vw, 1.8rem);
  --fs-xl:   clamp(1.65rem, 3.5vw, 2.2rem);
  --fs-2xl:  clamp(1.9rem,  4.2vw, 2.8rem);
  --fs-3xl:  clamp(2.2rem,  5vw,   3.8rem);

  /* Spacing Scale (fluid) */
  --space-xs:  clamp(0.25rem, 0.75vw, 0.5rem);
  --space-sm:  clamp(0.5rem,  1vw,    0.75rem);
  --space-md:  clamp(0.75rem, 1.5vw,  1.25rem);
  --space-lg:  clamp(1.5rem,  3vw,    2.25rem);
  --space-xl:  clamp(2rem,    5vw,    3.5rem);
  --space-2xl: clamp(3rem,    7vw,    5.5rem);
  --space-3xl: clamp(4rem,    9vw,    7rem);

  /* Aliases kept for compatibility with plan snippets */
  --green:    #a8528a;
  --green-dk: #8c3f72;
  --green-lt: #c47aaa;
}

[data-theme="dark"] {
  --bg:         #1e1430;
  --bg-alt:     #261a3e;
  --card:       #2e2248;
  --white:      #1e1430;
  --gray-lt:    #382e54;
  --gray:       #4a3e6a;
  --text:       #f0ecf5;
  --text-muted: #b5a8cc;
  --shadow:     0 2px 12px rgba(0, 0, 0, .35);
  --shadow-md:  0 8px 24px rgba(0, 0, 0, .45);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox: native Scrollbar verstecken */
}

/* ─── Native Scrollbar ausblenden (Webkit) ───────────────── */
::-webkit-scrollbar { display: none; }

/* ─── Custom Scrollbar ───────────────────────────────────── */
#custom-scrollbar {
  position: fixed;
  top: 0;
  right: 4px;
  width: 8px;
  height: 100vh;
  z-index: 9998;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .35s ease;
}
#custom-scrollbar.sb-visible { opacity: 1; }

@media (hover: none) {
  #custom-scrollbar { display: none; }
}

#custom-scrollbar-thumb {
  position: absolute;
  width: 100%;
  min-height: 32px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    var(--primary-lt)  0%,
    var(--primary)    25%,
    var(--primary-dk) 50%,
    var(--primary)    75%,
    var(--primary-lt) 100%
  );
  background-size: 100% 300%;
  background-position: 0% 0%;
  box-shadow:
    0 0  6px rgba(168, 82, 138, .55),
    0 0 18px rgba(168, 82, 138, .25);
  cursor: grab;
  animation: scrollbarShimmer 3s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
#custom-scrollbar-thumb:hover {
  transform: scaleX(1.45);
  box-shadow:
    0 0 10px rgba(168, 82, 138, .85),
    0 0 28px rgba(168, 82, 138, .5);
}
#custom-scrollbar-thumb.sb-dragging { cursor: grabbing; }

@keyframes scrollbarShimmer {
  0%   { background-position: 0%   0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0%   0%; }
}

body {
  font-family: 'Nunito', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
}

/* ─── Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ─── Globale Focus-Sichtbarkeit (WCAG 2.4.7) ───────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Form-Felder: eigener Fokus-Stil, kein outline doppeln */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 82, 138, .15);
}

/* ─── Scroll Progress Bar ───────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-lt));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 82, 138, .35);
}

.btn-secondary {
  background: var(--gray-lt);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--gray);
}

.btn-large {
  padding: .9rem 2.2rem;
  font-size: var(--fs-md);
}

/* ─── Navigation ────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* Transparent over hero — white text */
#navbar .nav-links a,
#navbar .theme-toggle,
#navbar .hamburger {
  color: #fff;
}

#navbar .nav-cta .btn-primary {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
}

#navbar .nav-cta .btn-primary:hover {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

/* Scrolled — glassmorphism */
#navbar.scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, .1);
}

[data-theme="dark"] #navbar.scrolled {
  background: rgba(22, 16, 31, .82);
}

#navbar.scrolled .nav-links a,
#navbar.scrolled .theme-toggle,
#navbar.scrolled .hamburger {
  color: var(--text);
}

#navbar.scrolled .nav-cta .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

#navbar.scrolled .nav-cta .btn-primary:hover {
  background: var(--primary-dk);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0, 0, 0, .5));
}

#navbar.scrolled .nav-logo img {
  filter: none;
}

[data-theme="dark"] #navbar.scrolled .nav-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0, 0, 0, .5));
}

/* ─── Legal-Seiten: kein dunkler Hero → Navbar sofort im "scrolled"-Stil ─── */
body.page-legal #navbar {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

body.page-legal #navbar .nav-links a,
body.page-legal #navbar .theme-toggle,
body.page-legal #navbar .hamburger {
  color: var(--text);
}

body.page-legal .nav-logo img {
  filter: none;
}

[data-theme="dark"] body.page-legal #navbar {
  background: rgba(30, 20, 40, .97);
}

[data-theme="dark"] body.page-legal #navbar .nav-links a,
[data-theme="dark"] body.page-legal #navbar .theme-toggle,
[data-theme="dark"] body.page-legal #navbar .hamburger {
  color: var(--text);
}

[data-theme="dark"] body.page-legal .nav-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0, 0, 0, .5));
}

.nav-links {
  display: flex;
  gap: .05rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: .42rem .52rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  background: rgba(168, 82, 138, .12);
  color: var(--primary) !important;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: .48rem 1rem;
  font-size: var(--fs-base);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(168, 82, 138, .15);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.icon-moon { display: block; }
.icon-sun  { display: none; }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .5rem;
  padding: .3rem .5rem;
  cursor: pointer;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

#navbar.scrolled .lang-dropdown-trigger {
  background: var(--gray-lt);
  border-color: transparent;
  color: var(--text);
}

.lang-dropdown-trigger:hover {
  background: rgba(255, 255, 255, .3);
}

#navbar.scrolled .lang-dropdown-trigger:hover {
  background: var(--gray);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  transition: transform .2s;
  flex-shrink: 0;
  stroke: currentColor;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-flag {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-flag--de {
  background: linear-gradient(to bottom, #000 33.3%, #d00 33.3% 66.6%, #fc0 66.6%);
}

.lang-flag--tr {
  background: #e30a17;
}

.lang-flag--ar {
  background: linear-gradient(to bottom, #006c35 33.3%, #fff 33.3% 66.6%, #000 66.6%);
}

.lang-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--card);
  border-radius: .75rem;
  box-shadow: var(--shadow-md);
  padding: .4rem;
  min-width: 84px;
  z-index: 1100;
  flex-direction: column;
  gap: .2rem;
}

.lang-dropdown.open .lang-dropdown-panel {
  display: flex;
}

.lang-dropdown-panel .lang-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .5rem;
  border-radius: .4rem;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background var(--transition);
}

.lang-dropdown-panel .lang-btn:hover {
  background: var(--gray-lt);
}

.lang-dropdown-panel .lang-btn--active {
  color: var(--primary);
  font-weight: 700;
}

.lang-label {
  font-size: var(--fs-base);
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, .2);
}

#navbar.scrolled .hamburger:hover {
  background: var(--gray-lt);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ─── Mobile Navigation ─────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 1001;
  overflow-y: auto;
  padding: 4rem 2rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .btn {
  margin-top: .5rem;
}

.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}

.lang-switcher--mobile {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.lang-switcher--mobile .lang-btn {
  background: var(--gray-lt);
  border: none;
  border-radius: .5rem;
  padding: .4rem .6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-family: inherit;
  transition: background var(--transition);
}

.lang-switcher--mobile .lang-btn:hover {
  background: var(--gray);
}

.lang-switcher--mobile .lang-btn--active {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ─── Hero (#ueber-mich) ────────────────────────────────── */
#ueber-mich {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

#ueber-mich::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(140, 63, 114, .82) 0%, rgba(22, 16, 31, .65) 100%);
  z-index: 1;
}

#ueber-mich .container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: var(--space-2xl);
  width: 90%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
  color: #fff;
}

.hero-subtitle {
  font-size: var(--fs-md);
  opacity: .92;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: .38rem .9rem;
  font-size: var(--fs-base);
  font-weight: 600;
}

.hero-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 360px;
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .3));
  animation: floatLogo 7s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── Hero Butterfly Layer ──────────────────────────────── */
.butterfly-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.butterfly {
  position: absolute;
  color: rgba(255, 255, 255, 0.28);
}

.butterfly svg {
  display: block;
}

.butterfly-wings {
  animation: flapWings 1.2s ease-in-out infinite;
}

.butterfly--large {
  width: 130px;
  bottom: 18%;
  right: 8%;
  animation: flyPath1 18s ease-in-out infinite;
}

.butterfly--large .butterfly-wings {
  animation-duration: 1.6s;
}

.butterfly--s1 {
  width: 60px;
  top: 20%;
  left: 9%;
  animation: flyPath2 13s ease-in-out infinite 2.5s;
}

.butterfly--s1 .butterfly-wings { animation-duration: 1.1s; animation-delay: .3s; }

.butterfly--s2 {
  width: 48px;
  top: 46%;
  left: 28%;
  animation: flyPath3 15s ease-in-out infinite 5s;
}

.butterfly--s2 .butterfly-wings { animation-duration: 1.25s; animation-delay: .6s; }

.butterfly--s3 {
  width: 54px;
  top: 10%;
  right: 24%;
  animation: flyPath4 11s ease-in-out infinite 1s;
}

.butterfly--s3 .butterfly-wings { animation-duration: 1.0s; animation-delay: .1s; }

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

@keyframes flyPath1 {
  0%   { translate:   0px   0px;  rotate:  0deg; }
  25%  { translate: -28px -22px;  rotate: -3deg; }
  50%  { translate: -14px -38px;  rotate:  2deg; }
  75%  { translate:  12px -20px;  rotate: -2deg; }
  100% { translate:   0px   0px;  rotate:  0deg; }
}

@keyframes flyPath2 {
  0%   { translate:   0px   0px;  rotate:  0deg; }
  33%  { translate:  32px -25px;  rotate:  4deg; }
  66%  { translate:  15px  12px;  rotate: -3deg; }
  100% { translate:   0px   0px;  rotate:  0deg; }
}

@keyframes flyPath3 {
  0%   { translate:   0px   0px;  rotate:  0deg; }
  40%  { translate: -22px -32px;  rotate:  3deg; }
  70%  { translate:  28px -16px;  rotate: -3deg; }
  100% { translate:   0px   0px;  rotate:  0deg; }
}

@keyframes flyPath4 {
  0%   { translate:   0px   0px;  rotate:  0deg; }
  30%  { translate: -16px  22px;  rotate: -3deg; }
  65%  { translate: -32px   6px;  rotate:  2deg; }
  100% { translate:   0px   0px;  rotate:  0deg; }
}

/* ─── Section Defaults ──────────────────────────────────── */
section {
  padding: var(--space-2xl) 0;
}

/* ─── Über mich (Ramona) ────────────────────────────────── */
#ueber-ramona {
  background: var(--bg);
}

.ueber-ramona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.ueber-ramona-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.ueber-ramona-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--primary-light, rgba(140, 63, 114, .1));
  color: var(--primary);
  border: 1px solid rgba(140, 63, 114, .2);
  border-radius: 100px;
  padding: .35rem .9rem;
  font-size: var(--fs-base);
  font-weight: 600;
}

[data-theme="dark"] .badge {
  background: rgba(140, 63, 114, .2);
  border-color: rgba(140, 63, 114, .4);
  color: #e8b4d8;
}

.ueber-ramona-img {
  display: flex;
  justify-content: center;
}

.ueber-ramona-img img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

@media (max-width: 768px) {
  .ueber-ramona-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .ueber-ramona-img {
    order: -1;
  }

  .ueber-ramona-img img {
    max-width: 280px;
  }
}

/* Alternating backgrounds */
#vorteile,
#qualifikationen,
#hausregeln,
#bewertungen,
#kontakt {
  background: var(--bg);
}

#tagesablauf,
#galerie,
#faq,
#verfuegbarkeit {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  margin-bottom: .5rem;
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-intro {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Vorteile ──────────────────────────────────────────── */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .vorteile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .vorteile-grid { grid-template-columns: 1fr; }
}

.vorteil-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.vorteil-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vorteil-icon {
  font-size: var(--fs-2xl);
  margin-bottom: .75rem;
}

.vorteil-card h3 {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--text);
}

.vorteil-card p {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

/* ─── Tagesablauf ───────────────────────────────────────── */
.tagesablauf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.tagesablauf-text .section-label,
.tagesablauf-text .section-title {
  text-align: left;
}

.tagesablauf-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--gray);
  align-items: flex-start;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-time {
  min-width: 140px;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--primary);
  padding-top: .15rem;
  flex-shrink: 0;
}

.timeline-content {
  min-width: 0;
}

.timeline-content h4 {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: .25rem;
  color: var(--text);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

/* ─── Qualifikationen ───────────────────────────────────── */
.qualifikationen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .qualifikationen-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .qualifikationen-grid { grid-template-columns: 1fr; }
}

.qualifikation-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.qualifikation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.qualifikation-icon {
  font-size: var(--fs-2xl);
  margin-bottom: .6rem;
}

.qualifikation-card h3 {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--text);
}

.qualifikation-card p {
  color: var(--text-muted);
  font-size: var(--fs-base);
}

/* ─── Galerie ───────────────────────────────────────────── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.galerie-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

button.galerie-item {
  border: none;
  background: none;
  padding: 0;
  display: block;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.galerie-item:hover img {
  transform: scale(1.07);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2001;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ─── Hausregeln ────────────────────────────────────────── */
.hausregeln-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hausregeln-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.hausregeln-text .section-label,
.hausregeln-text .section-title {
  text-align: left;
}

.hausregeln-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: .5rem auto 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray);
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.2rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition), background-color 0.12s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.faq-question:hover {
  color: var(--primary);
  background-color: rgba(168, 82, 138, 0.06);
}

.faq-question:active {
  transform: scale(0.985) translateY(1px);
  background-color: rgba(168, 82, 138, 0.13);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.10);
}

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.25s ease, color var(--transition);
  line-height: 1;
}

.faq-item.open .faq-question {
  color: var(--primary);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: max-height 0.32s ease, padding-bottom 0.32s ease;
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.75;
}

.faq-answer p {
  margin-bottom: .4rem;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* ─── Bewertungen ───────────────────────────────────────── */
.bewertungen-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bewertungen-header p {
  color: var(--text-muted);
  margin-top: .5rem;
}

.bewertungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bewertungen-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-inline: auto;
}

.bewertung-source {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.bewertung-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bewertung-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bewertung-stars {
  color: #f59e0b;
  font-size: var(--fs-base);
  margin-bottom: .75rem;
  letter-spacing: .1em;
}

.bewertung-text {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.bewertung-author {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--primary);
}

/* ─── Verfügbarkeit ─────────────────────────────────────── */
.verfuegbarkeit-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-2xl);
  align-items: center;
}

.verfuegbarkeit-text .section-label,
.verfuegbarkeit-text .section-title {
  text-align: left;
}

.verfuegbarkeit-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.verfuegbarkeit-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* Kalender-Platzhalter (bis Google Calendar eingebunden wird) */
.kalender-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  aspect-ratio: 688 / 1024;
  max-width: 340px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  padding: 2rem;
  text-align: center;
}

.kalender-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.7;
}

.kalender-placeholder p {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.kalender-placeholder p span {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── Kontakt ───────────────────────────────────────────── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.kontakt-info {
  max-width: 600px;
  margin-inline: auto;
}

.kontakt-info .section-label,
.kontakt-info .section-title {
  text-align: left;
}

.kontakt-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.kontakt-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kontakt-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.kontakt-label {
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: .2rem;
  color: var(--text);
}

.kontakt-value {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.kontakt-value a {
  color: var(--primary);
  text-decoration: none;
}

.kontakt-value a:hover {
  text-decoration: underline;
}

.kontakt-form {
  background: var(--card);
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: .4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 82, 138, .15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ─── Footer ────────────────────────────────────────────── */
#footer {
  background: #1a0e24;
  color: #c0b0cc;
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  margin-bottom: .75rem;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #fff;
  margin-bottom: .25rem;
}

.footer-slogan {
  font-size: var(--fs-base);
  color: #9080a0;
  font-style: italic;
}

.footer-col h3 {
  font-size: var(--fs-base);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.footer-col ul a {
  color: #9080a0;
  text-decoration: none;
  font-size: var(--fs-base);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--primary-lt);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-base);
  color: #9080a0;
  margin-bottom: .55rem;
}

.footer-contact-item a {
  color: #9080a0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--primary-lt);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--fs-base);
  color: #9080a0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #9080a0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-lt);
}

/* ─── Back To Top ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(168, 82, 138, .4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 500;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--primary-dk);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ─── Cookie Banner ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 2rem));
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.75rem;
  z-index: 1500;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 3px solid var(--primary);
}

.cookie-banner p {
  flex: 1;
  min-width: 200px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RTL Support ───────────────────────────────────────── */
[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .faq-question {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .tagesablauf-text .section-label,
[dir="rtl"] .tagesablauf-text .section-title,
[dir="rtl"] .hausregeln-text .section-label,
[dir="rtl"] .hausregeln-text .section-title,
[dir="rtl"] .verfuegbarkeit-text .section-label,
[dir="rtl"] .verfuegbarkeit-text .section-title,
[dir="rtl"] .kontakt-info .section-label,
[dir="rtl"] .kontakt-info .section-title {
  text-align: right;
}

[dir="rtl"] .timeline-item,
[dir="rtl"] .kontakt-item {
  flex-direction: row-reverse;
  text-align: right;
}

/* ─── Legal-Seiten: Typografie & Lesbarkeit ───────────────────────────────── */
.legal-page h1.section-title {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary);
}

.legal-page h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
}

.legal-page p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
  color: var(--text);
}

.legal-page ul {
  margin: .5rem 0 1.25rem 1.5rem;
  padding: 0;
  list-style: disc;
}

.legal-page ul li {
  margin-bottom: .4rem;
  line-height: 1.75;
  color: var(--text);
}

.legal-page a {
  color: var(--primary);
  text-underline-offset: 3px;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page code {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  background: rgba(0, 0, 0, .05);
  padding: .1em .4em;
  border-radius: 4px;
  color: var(--primary);
}

[data-theme="dark"] .legal-page code {
  background: rgba(255, 255, 255, .08);
}

[dir="rtl"] .lang-dropdown-panel {
  right: auto;
  left: 0;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-features {
    justify-content: center;
  }

  .tagesablauf-grid  { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hausregeln-grid   { grid-template-columns: 1fr; }
  .hausregeln-img    { max-width: 320px; margin: 0 auto; }
  .verfuegbarkeit-grid { grid-template-columns: 1fr; }
  .verfuegbarkeit-img  { max-width: 320px; }
  .kontakt-grid      { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .vorteile-grid        { grid-template-columns: 1fr; }
  .qualifikationen-grid { grid-template-columns: 1fr; }
  .bewertungen-grid     { grid-template-columns: 1fr; }
  .galerie-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid          { grid-template-columns: 1fr; }
  .footer-bottom        { flex-direction: column; text-align: center; }
  .cookie-banner        { flex-direction: column; gap: 1rem; }
  .cookie-actions       { width: 100%; }
  .cookie-actions .btn  { flex: 1; justify-content: center; }

  [dir="rtl"] .faq-question { flex-direction: row; }

  .timeline-time { min-width: 110px; font-size: var(--fs-xs); }
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .hero-bg img  { animation: none; }
  .hero-image img { animation: none; }
  .butterfly-layer { display: none; }
  .reveal-up    { opacity: 1; transform: none; }
  #custom-scrollbar-thumb { animation: none; }
}
