/* ========================================
   FAM TRAININGSPLAN - Material Design
   Version: 4.0.0 - Clean & Minimal
   ======================================== */

/* === CSS Variables === */
:root {
  /* Primary Colors */
  --primary-50: #e8f4fc;
  --primary-100: #c5e3f6;
  --primary-200: #9fd0f0;
  --primary-300: #79bde9;
  --primary-400: #5aace3;
  --primary-500: #005892;
  --primary-600: #004a7a;
  --primary-700: #003c63;
  --primary-800: #002e4c;
  --primary-900: #001f35;

  /* Neutral Colors - Angepasst an Hauptseite */
  --gray-50: #f2f2f2;  /* Matches parent page background */
  --gray-100: #ededed;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Page Background */
  --page-bg: #f2f2f2;

  /* Material Elevation Shadows */
  --elevation-0: none;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
  --elevation-2: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.08);
  --elevation-3: 0 4px 8px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.1);
  --elevation-4: 0 6px 12px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.12);
  --elevation-5: 0 8px 16px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.14);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius - Material */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--page-bg);
  /* iframe compatibility */
  overflow-x: hidden;
  min-height: auto;
}

/* iframe-specific: prevent scrollbars in parent */
html, body {
  overflow-x: hidden;
  width: 100%;
  background: var(--page-bg);
}

img, picture, video, canvas { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
input, button, textarea, select { font: inherit; }

/* === Layout === */
[x-cloak] { display: none !important; }

/* iframe compatibility: don't force viewport height */
.min-h-screen { 
  min-height: auto; /* Changed from 100vh for iframe */
}

.max-w-7xl { max-width: 80rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === Sizing === */
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }

/* === Spacing === */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pb-3 { padding-bottom: 0.75rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pt-4 { padding-top: 1rem; }
.pl-12 { padding-left: 3rem; }
.pr-12 { padding-right: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-auto { margin-right: auto; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* === Flexbox & Grid === */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* === Typography === */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.underline { text-decoration: underline; }
.underline-offset-2 { text-underline-offset: 2px; }

/* === Colors - Text === */
.text-white { color: #fff; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-primary-500 { color: var(--primary-500); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-900 { color: #7f1d1d; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-violet-700 { color: #6d28d9; }
.text-orange-700 { color: #c2410c; }
.text-pink-700 { color: #be185d; }
.text-slate-700 { color: #334155; }

/* === Colors - Background === */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-50\/50 { background-color: rgba(250, 250, 250, 0.5); }
.bg-gray-50\/80 { background-color: rgba(250, 250, 250, 0.8); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-900 { background-color: var(--gray-700); }
.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-500 { background-color: var(--primary-500); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-violet-50 { background-color: #f5f3ff; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-pink-50 { background-color: #fdf2f8; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }

/* === Borders === */
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-l-4 { border-left: 4px solid; }

.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-100\/50 { border-color: rgba(245, 245, 245, 0.5); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-200\/60 { border-color: rgba(229, 229, 229, 0.6); }
.border-gray-300 { border-color: var(--gray-300); }
.border-primary-100 { border-color: var(--primary-100); }
.border-primary-200 { border-color: var(--primary-200); }
.border-primary-300 { border-color: var(--primary-300); }
.border-primary-500 { border-color: var(--primary-500); }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-500 { border-color: #10b981; }
.border-red-200 { border-color: #fecaca; }
.border-red-500 { border-color: #ef4444; }
.border-amber-100 { border-color: #fef3c7; }
.border-amber-200 { border-color: #fde68a; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-violet-200 { border-color: #ddd6fe; }
.border-orange-200 { border-color: #fed7aa; }
.border-pink-200 { border-color: #fbcfe8; }
.border-slate-200 { border-color: #e2e8f0; }

/* Border Radius - Material */
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-md); }
.rounded-2xl { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* === Material Elevation Shadows === */
.shadow-sm { box-shadow: var(--elevation-1); }
.shadow { box-shadow: var(--elevation-1); }
.shadow-md { box-shadow: var(--elevation-2); }
.shadow-lg { box-shadow: var(--elevation-3); }
.shadow-xl { box-shadow: var(--elevation-4); }
.shadow-2xl { box-shadow: var(--elevation-5); }
.shadow-inner { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06); }

/* Remove all colored glow shadows */
.shadow-primary-500\/30,
.shadow-emerald-500\/30 {
  box-shadow: var(--elevation-2);
}

/* === Background - Seamless iframe integration === */
.bg-gradient-to-br { background: var(--page-bg); }
.from-gray-50 { /* removed */ }
.to-gray-100 { /* removed */ }
.bg-gray-50 { background-color: var(--page-bg); }

/* === iframe Seamless Embed === */
[x-data="trainingsplaner()"] {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* Remove extra padding for tighter iframe fit */
  padding-top: 0;
}

/* Reduce top margin in iframe context */
header.mb-8 {
  margin-top: 0;
}

/* === Effects === */
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.overflow-hidden { overflow: hidden; }

/* === Positioning === */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-1\/2 { top: 50%; }
.left-4 { left: 1rem; }
.right-3 { right: 0.75rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }

/* === Transforms === */
.translate-y-0 { transform: translateY(0); }
.translate-y-2 { transform: translateY(0.5rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* === Transitions === */
.transition {
  transition: color var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.transition-all {
  transition: all var(--transition-base);
}

.transition-colors {
  transition: color var(--transition-fast),
              background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.transition-opacity {
  transition: opacity var(--transition-fast);
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* === Misc === */
.pointer-events-none { pointer-events: none; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* ========================================
   COMPONENT STYLES - Material Design
   ======================================== */

/* === Search Input === */
input[type="search"] {
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="search"]:hover {
  border-color: var(--gray-300);
}

input[type="search"]:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 88, 146, 0.1);
  outline: none;
}

input[type="search"]::-webkit-search-cancel-button { display: none; }

input::placeholder,
.placeholder-gray-400::placeholder {
  color: var(--gray-400);
}

/* === Select/Dropdown === */
select {
  appearance: none;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23737373'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  color: var(--gray-900);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

select:hover {
  border-color: var(--gray-300);
}

select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 88, 146, 0.1);
  outline: none;
}

/* === Buttons - Material Flat === */
button {
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Primary Button */
.bg-primary-500 {
  background-color: var(--primary-500);
  box-shadow: var(--elevation-1);
}

.bg-primary-500:hover,
.hover\:bg-primary-600:hover {
  background-color: var(--primary-600);
  box-shadow: var(--elevation-2);
}

/* Emerald Button */
.bg-emerald-500 {
  box-shadow: var(--elevation-1);
}

.bg-emerald-500:hover {
  background-color: #059669;
  box-shadow: var(--elevation-2);
}

/* Gray Button (Grouping) */
.bg-gray-900 {
  background-color: var(--gray-700);
  box-shadow: var(--elevation-1);
}

/* Outlined/Ghost Buttons */
.bg-white.text-gray-700,
.bg-gray-100.text-gray-700 {
  border: 1px solid var(--gray-200);
  box-shadow: none;
}

.bg-white.text-gray-700:hover,
.bg-gray-100.text-gray-700:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-300);
  box-shadow: var(--elevation-1);
}

/* === Training Cards === */
article.group {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-1);
  overflow: hidden;
  transition: box-shadow var(--transition-base), 
              transform var(--transition-base),
              border-color var(--transition-base);
  /* Sticky Footer Layout */
  display: flex;
  flex-direction: column;
  height: 100%;
}

article.group:hover {
  border-color: var(--gray-300);
  box-shadow: var(--elevation-3);
  transform: translateY(-2px);
}

/* Card Body - grows to push footer down */
article.group > .p-4 {
  flex: 1 1 auto;
}

/* Card Footer - always at bottom */
article .bg-gray-50\/50 {
  background-color: #fafafa;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

/* "Zum Team" Link - no underline */
article.group a[href*="kurabu"],
article.group a[target="_blank"] {
  text-decoration: none;
  border-bottom: none;
}

/* === Filter Panel === */
.bg-white.rounded-2xl.shadow-lg.p-5 {
  border: 1px solid var(--gray-200);
  box-shadow: var(--elevation-1);
}

/* === Filter Chips === */
.bg-primary-500.text-white.rounded-full {
  box-shadow: none;
  font-weight: 500;
}

.bg-primary-500.text-white.rounded-full:hover {
  background-color: var(--primary-600);
}

/* === Status Badges === */
.px-3.py-1\.5.rounded-full {
  border: 1px solid var(--gray-200);
  box-shadow: none;
}

/* Live indicator badge */
.bg-white.rounded-full.shadow-md {
  border: 1px solid var(--gray-200);
  box-shadow: var(--elevation-1);
}

/* Offline badge */
.bg-blue-50.rounded-full {
  border: 1px solid var(--primary-100);
}

/* === Training Type Badges === */
.bg-blue-50.text-blue-700.border-blue-200,
.bg-emerald-50.text-emerald-700.border-emerald-200,
.bg-violet-50.text-violet-700.border-violet-200,
.bg-orange-50.text-orange-700.border-orange-200,
.bg-pink-50.text-pink-700.border-pink-200,
.bg-red-50.text-red-700.border-red-200,
.bg-amber-50.text-amber-700.border-amber-200,
.bg-slate-50.text-slate-700.border-slate-200 {
  font-weight: 500;
}

/* === Note Box (Anmerkung) === */
.bg-amber-50.rounded-xl {
  border: 1px solid #fef3c7;
  box-shadow: none;
}

/* === Toast Notification === */
.fixed.bottom-6.right-6 {
  border: 1px solid var(--gray-200);
  box-shadow: var(--elevation-4);
}

/* === Empty State === */
.text-center.py-16.bg-white {
  border: 1px solid var(--gray-200);
  box-shadow: var(--elevation-1);
}

/* === Error State === */
.border-l-4.border-red-500 {
  border: 1px solid var(--gray-200);
  border-left: 4px solid #ef4444;
  box-shadow: var(--elevation-1);
}

/* === Loading Skeleton === */
.animate-pulse {
  border: 1px solid var(--gray-100);
  box-shadow: none;
}

.animate-pulse > div {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* === Search Highlight === */
mark.highlight {
  background: #fef08a;
  padding: 0 2px;
  border-radius: 2px;
  color: inherit;
}

/* ========================================
   HOVER STATES - Material
   ======================================== */

.hover\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\:bg-gray-100:hover { background-color: var(--gray-100); }
.hover\:bg-gray-200:hover { background-color: var(--gray-200); }
.hover\:bg-primary-100:hover { background-color: var(--primary-100); }
.hover\:bg-primary-600:hover { background-color: var(--primary-600); }

.hover\:border-gray-300:hover { border-color: var(--gray-300); }
.hover\:border-primary-200:hover { border-color: var(--primary-200); }
.hover\:border-primary-300:hover { border-color: var(--primary-300); }

.hover\:text-gray-600:hover { color: var(--gray-600); }
.hover\:text-gray-700:hover { color: var(--gray-700); }
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-red-900:hover { color: #7f1d1d; }

.hover\:shadow-md:hover { box-shadow: var(--elevation-2); }
.hover\:shadow-lg:hover { box-shadow: var(--elevation-3); }
.hover\:shadow-xl:hover { box-shadow: var(--elevation-4); }
.hover\:shadow-2xl:hover { box-shadow: var(--elevation-5); }

.hover\:-translate-y-0\.5:hover { transform: translateY(-1px); }
.hover\:-translate-y-1:hover { transform: translateY(-2px); }

.hover\:opacity-100:hover { opacity: 1; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* ========================================
   FOCUS STATES - Material
   ======================================== */

.focus\:outline-none:focus { outline: none; }

.focus\:ring-2:focus,
.focus\:ring-4:focus,
.focus\:ring-primary-500:focus,
.focus\:ring-primary-500\/20:focus {
  box-shadow: 0 0 0 3px rgba(0, 88, 146, 0.12);
  outline: none;
}

.focus\:border-transparent:focus { border-color: transparent; }
.focus\:bg-white:focus { background-color: #fff; }
.focus\:shadow-lg:focus { box-shadow: var(--elevation-3); }
.focus\:shadow-md:focus { box-shadow: var(--elevation-2); }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
  50% { opacity: 0.5; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* Collapse Animation (Alpine) */
[x-collapse] { overflow: hidden; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:inline { display: inline; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ========================================
   SCROLLBAR - Minimal (iframe compatible)
   ======================================== */

/* Hide scrollbar in iframe context */
html, body {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ========================================
   IFRAME SPECIFIC FIXES
   ======================================== */

/* Prevent horizontal overflow in iframe */
.max-w-7xl {
  overflow-x: hidden;
}

/* Ensure cards don't cause horizontal scroll */
.grid {
  max-width: 100%;
}

/* Toast positioning for iframe */
.fixed.bottom-6.right-6 {
  position: fixed;
  z-index: 9999;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

:focus:not(:focus-visible) { outline: none; }

::selection {
  background-color: var(--primary-100);
  color: var(--primary-900);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  article { break-inside: avoid; border: 1px solid #ddd; }
}

/* ========================================
   STANDORT LINK STYLES
   ======================================== */

/* Standort-Link in der Karte */
.standort-link {
  text-decoration: underline;
  text-decoration-color: var(--gray-300);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.standort-link:hover {
  color: var(--primary-500);
  text-decoration-color: var(--primary-500);
}

/* Prevent standort link from inheriting card hover styles */
article.group .standort-link {
  position: relative;
  z-index: 1;
}