@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@300..800&family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* Kita Pastel Color Palette */
  --kita-blue: #e0f2fe;      /* sky-100 */
  --kita-blue-dark: #0284c7; /* sky-600 */
  --kita-green: #dcfce7;     /* green-100 */
  --kita-green-dark: #16a34a;/* green-600 */
  --kita-yellow: #fef9c3;    /* yellow-100 */
  --kita-yellow-dark: #ca8a04;/* yellow-600 */
  --kita-coral: #fee2e2;     /* red-100 */
  --kita-coral-dark: #dc2626;  /* red-600 */
  
  --bg-gradient-start: #f0fdf4; /* soft mint */
  --bg-gradient-end: #ecfeff;   /* soft sky */
  --card-bg: rgba(255, 255, 255, 0.95);
  
  --font-display: 'Fredoka', sans-serif;
  --font-sans: 'Quicksand', 'Outfit', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: #1e293b; /* slate-800 */
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Die Wolken-Karte (User Snippet with ::before Puffs & Organic Radii) */
.cloud-card {
  position: relative !important;
  min-height: 170px !important;
  background: #ffffff !important;
  padding: 24px 20px !important;
  
  /* Organische Wolkenform über asymmetrische Radien */
  border-radius: 60px 40px 70px 50px !important;
  
  /* Zentrierung des Inhalts */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;

  /* Farbiger Rand & Weicher Schatten */
  border: 4px solid var(--cloud-border, #fbcfe8) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06) !important;
  
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
}

/* Hover-Effekt: Wolke schwebt leicht nach oben */
.cloud-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Wolken-Bögen oben (erzeugt den echten Wolken-Look) */
.cloud-card::before {
  content: '' !important;
  position: absolute !important;
  top: -20px !important;
  left: 35px !important;
  width: 70px !important;
  height: 40px !important;
  background: #ffffff !important;
  border-radius: 50px 50px 0 0 !important;
  border-top: 4px solid var(--cloud-border, #fbcfe8) !important;
  z-index: 1 !important;
}

/* Inhalt über die Wolken-Bögen legen */
.cloud-content {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.cloud-icon {
  font-size: 32px !important;
  margin-bottom: 8px !important;
}

.cloud-card h3 {
  margin: 0 0 4px 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.cloud-card p {
  margin: 0 0 12px 0 !important;
  font-size: 0.85rem !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

.start-btn {
  background: #ffffff !important;
  border: 2px solid var(--cloud-border, #cbd5e1) !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.start-btn:hover {
  background: var(--cloud-border, #f1f5f9) !important;
  color: #0f172a !important;
}

/* --- Verspieltes Anordnen (Zufalls-Look) --- */
.cloud-card:nth-child(even) {
  transform: translateY(12px) rotate(1.5deg);
}

.cloud-card:nth-child(3n) {
  transform: translateY(-8px) rotate(-2deg);
}

.cloud-card:nth-child(5n) {
  transform: translateY(10px) rotate(1deg);
}

/* --- Farb-Varianten für die Ränder --- */
.pink   { --cloud-border: #fbcfe8; }
.blue   { --cloud-border: #bae6fd; }
.green  { --cloud-border: #bbf7d0; }
.yellow { --cloud-border: #fef08a; }
.purple { --cloud-border: #e9d5ff; }

/* Micro-animations & Transitions */
.step-fade-enter {
  opacity: 0;
  transform: translateX(10px);
}
.step-fade-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-scale {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-scale:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* A4 Screen Simulation */
.document-container {
  background: white;
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  padding: 18mm 15mm;
  margin: 2rem auto;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
  box-sizing: border-box;
}

.document-container table {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-collapse: collapse !important;
}

/* Dynamic progress bar styling */
.progress-bar-fill {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom styled inputs */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  border-color: #38bdf8; /* sky-400 */
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

/* Print CSS */
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  /* Hide UI elements */
  .no-print {
    display: none !important;
  }

  /* Reset document container for full-page A4 print */
  .document-container {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  
  /* Avoid page breaks inside table rows, cards and sections */
  tr, .print-avoid-break {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  
  /* Force exact print colors for backgrounds if allowed */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Borders and text alignment updates for printing */
  th {
    background-color: #f1f5f9 !important;
    color: black !important;
  }
}


/* Sweet Kita Floating Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}

@keyframes floatSlower {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-5deg); }
}

.animate-float-slow {
  animation: floatSlow 7s ease-in-out infinite;
}

.animate-float-slower {
  animation: floatSlower 11s ease-in-out infinite;
}

/* Card hover glow & rounded softness */
.card-soft {
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(56, 189, 248, 0.15);
}


/* Cute Küken & Heart SVG Cursors - ONLY on Hovering Interactive Elements */
body.dashboard-mode button:hover,
body.dashboard-mode a:hover,
body.dashboard-mode .kita-glass-card:hover,
body.dashboard-mode .card-soft:hover {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='26' font-size='24'>🐤</text></svg>") 4 4, pointer !important;
}

body.dashboard-mode button:active,
body.dashboard-mode .kita-glass-card:active {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='26' font-size='24'>💖</text></svg>") 4 4, pointer !important;
}

/* Glowing Pastel Orbs & Pulsing Background Animations */
@keyframes orbPulse1 {
  0%, 100% { transform: translate(0px, 0px) scale(1); opacity: 0.45; }
  50% { transform: translate(40px, -30px) scale(1.15); opacity: 0.7; }
}

@keyframes orbPulse2 {
  0%, 100% { transform: translate(0px, 0px) scale(1); opacity: 0.4; }
  50% { transform: translate(-50px, 40px) scale(1.2); opacity: 0.65; }
}

@keyframes orbPulse3 {
  0%, 100% { transform: translate(0px, 0px) scale(1); opacity: 0.35; }
  50% { transform: translate(30px, 50px) scale(1.1); opacity: 0.6; }
}

.glow-orb-1 {
  animation: orbPulse1 12s ease-in-out infinite;
}
.glow-orb-2 {
  animation: orbPulse2 15s ease-in-out infinite;
}
.glow-orb-3 {
  animation: orbPulse3 10s ease-in-out infinite;
}

/* Premium Kita Glassmorphism Cards */
.kita-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.kita-glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.25), 0 10px 20px -5px rgba(16, 185, 129, 0.15);
}

.kita-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s ease;
}

.kita-glass-card:hover::before {
  left: 150%;
}

/* ==========================================================================
   Gentle Background Flying Birds Animations (Multidirectional & Staggered)
   ========================================================================== */
.bird-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -40;
  overflow: hidden;
}

.bg-bird {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.55;
}

/* Group A: Left to Right */
.bird-1  { top: 12%; animation: flyLeftToRight 28s linear -8s infinite, gentleWave 3.5s ease-in-out infinite alternate; }
.bird-3  { top: 32%; transform: scale(1.1); animation: flyLeftToRight 32s linear -19s infinite, gentleWave 4.5s ease-in-out infinite alternate; }
.bird-5  { top: 52%; transform: scale(1.2); animation: flyLeftToRight 26s linear -4s infinite, gentleWave 4s ease-in-out infinite alternate; }
.bird-7  { top: 72%; transform: scale(1.05); animation: flyLeftToRight 34s linear -22s infinite, gentleWave 3.8s ease-in-out infinite alternate; }

/* Group B: Right to Left (Flipped horizontally with scaleX(-1)) */
.bird-2  { top: 22%; animation: flyRightToLeft 36s linear -14s infinite, gentleWave 5s ease-in-out infinite alternate; }
.bird-4  { top: 42%; animation: flyRightToLeft 42s linear -29s infinite, gentleWave 6s ease-in-out infinite alternate; }
.bird-6  { top: 64%; animation: flyRightToLeft 30s linear -11s infinite, gentleWave 5.5s ease-in-out infinite alternate; }
.bird-8  { top: 82%; animation: flyRightToLeft 44s linear -2s infinite, gentleWave 6.5s ease-in-out infinite alternate; }

/* Group C: Diagonal Top-Left to Bottom-Right */
.bird-9  { animation: flyDiagonalDown 32s linear -15s infinite, gentleWave 4.2s ease-in-out infinite alternate; }
.bird-10 { animation: flyDiagonalDown 38s linear -27s infinite, gentleWave 5.2s ease-in-out infinite alternate; }

/* Group D: Diagonal Bottom-Left to Top-Right */
.bird-11 { animation: flyDiagonalUp 34s linear -7s infinite, gentleWave 4.8s ease-in-out infinite alternate; }
.bird-12 { animation: flyDiagonalUp 29s linear -20s infinite, gentleWave 3.6s ease-in-out infinite alternate; }

@keyframes flyLeftToRight {
  0% { left: -60px; }
  100% { left: 108vw; }
}

@keyframes flyRightToLeft {
  0% { left: 108vw; transform: scaleX(-1); }
  100% { left: -60px; transform: scaleX(-1); }
}

@keyframes flyDiagonalDown {
  0% { top: -60px; left: -60px; }
  100% { top: 108vh; left: 108vw; }
}

@keyframes flyDiagonalUp {
  0% { top: 108vh; left: -60px; }
  100% { top: -60px; left: 108vw; }
}

@keyframes gentleWave {
  0% { transform: translateY(0px) rotate(-2deg); }
  100% { transform: translateY(-22px) rotate(3deg); }
}
