/* === V Vortex Design System === */

/* Font Import - Fallback auf Inter + Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* V Vortex Palette */
  --primary: #051A24;
  --primary-dark: #0D212C;
  --primary-light: #E0EBF0;
  --accent: #1a3a4a;
  --accent-hover: #0D212C;

  /* Status-Farben bleiben fuer Logik */
  --success: #16a34a;
  --success-light: #f0fdf4;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;

  /* Kuehle Grays */
  --gray-50: #f8fafb;
  --gray-100: #f1f4f6;
  --gray-200: #e2e8ed;
  --gray-300: #c9d3da;
  --gray-500: #5e7282;
  --gray-700: #2d3e48;
  --gray-900: #0D212C;

  /* V Vortex Text */
  --text-primary: #051A24;
  --text-secondary: #273C46;
  --text-muted: #5e7282;
  --text-light: #F6FCFF;
  --text-light-muted: #E0EBF0;

  /* Design Tokens — V Vortex Reference */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-pill: 50px;
  --shadow: 0 2px 6px rgba(5,26,36,0.08), 0 10px 30px rgba(5,26,36,0.06);
  --shadow-lg: 0 10px 30px rgba(5,26,36,0.10), 0 2px 6px rgba(5,26,36,0.08);
  --shadow-xl: 0 20px 60px rgba(5,26,36,0.08), 0 30px 80px rgba(5,26,36,0.05);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Entrance Animations === */
@keyframes vortexFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.vx-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-animate.vx-visible {
  opacity: 1;
  transform: translateY(0);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--primary); }

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

/* === Buttons — V Vortex Pill Style === */
.btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(5,26,36,0.14), 0 4px 8px rgba(5,26,36,0.08); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: var(--primary);
  color: var(--text-light);
  box-shadow: 0 10px 30px rgba(5,26,36,0.18), 0 2px 6px rgba(5,26,36,0.12);
}
.btn-primary:hover { background: var(--accent); color: var(--text-light); }
.btn-success { background: var(--success); color: white; box-shadow: 0 10px 30px rgba(22,163,74,0.18); }
.btn-success:hover { background: #15803d; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 18px; font-size: 0.8rem; }

/* === Navbar === */
.navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(5, 26, 36, 0.06), 0 1px 3px rgba(5, 26, 36, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: 0;
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.nav-btn {
  color: var(--text-light) !important;
}

.nav-user {
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

/* === Hero === */
.hero {
  background: var(--primary);
  color: var(--text-light);
  padding: 52px 20px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(39, 60, 70, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  animation: vortexFadeIn 0.6s ease both;
}

.hero p {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: 0.01em;
  animation: vortexFadeIn 0.6s ease 0.1s both;
}

.hero .btn {
  animation: vortexFadeIn 0.8s ease 0.3s both;
  background: var(--text-light);
  color: var(--primary);
  font-weight: 600;
  padding: 16px 40px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.hero .btn:hover {
  background: var(--text-light-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.hero-search {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.search-fields {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 140px;
  text-align: left;
}

.search-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.search-field input, .search-field select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gray-900);
}
.search-field select { padding-right: 38px; }

.search-field input:focus, .search-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-search {
  padding: 12px 28px;
  min-width: 120px;
}

/* === Sections === */
.section {
  padding: 56px 0 80px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* === Property Grid === */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

@media (max-width: 640px) {
  .property-grid { grid-template-columns: 1fr; gap: 20px; }
}

.property-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  color: inherit;
  box-shadow: 0 18px 48px rgba(5,26,36,0.06);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(5,26,36,0.12);
  border-color: transparent;
}

.property-card-image {
  height: 280px;
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 640px) {
  .property-card-image { height: 240px; }
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-card-image img {
  transform: scale(1.06);
}

.property-placeholder-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.property-placeholder-img.large {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  font-size: 4rem;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 6px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-height: 500px;
  box-shadow: 0 18px 48px rgba(5,26,36,0.08);
}

.gallery-main {
  height: 500px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery-thumb {
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.gallery-thumb img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    max-height: none;
    border-radius: var(--radius);
  }
  .gallery-main { height: 280px; }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    height: 80px;
  }
}

.property-type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}

.property-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.property-location {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.property-meta {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.property-meta span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* === Card Footer / Preis === */
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: auto;
}

.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.pc-price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.pc-price-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pc-price-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.property-price {
  font-size: 1rem;
  color: var(--text-secondary);
}

.property-price strong {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

/* === Search Page === */
.search-page {
  display: flex;
  min-height: calc(100vh - 64px);
}

.search-sidebar {
  width: 280px;
  background: white;
  padding: 24px;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.search-sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.filter-group input, .filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
}
.filter-group select { padding-right: 38px; }

.filter-group input:focus, .filter-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.price-range {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-range input { flex: 1; }

.search-results {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-header h2 { font-size: 1.3rem; }
#result-count { color: var(--gray-500); font-size: 0.9rem; }

.search-map-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-map {
  height: 300px;
  border-radius: var(--radius);
  z-index: 1;
  transition: height 0.3s ease;
}

.search-map.expanded {
  height: 600px;
}

.map-toggle-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}

.map-toggle-btn:hover {
  background: var(--gray-100);
}

.no-results {
  text-align: center;
  color: var(--gray-500);
  padding: 40px;
}

/* === Property Detail === */
.property-page {
  padding: 24px 0 120px;
  background: var(--primary);
  min-height: 100vh;
}

.property-page .container {
  max-width: 1280px;
  padding-top: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  color: rgba(246,252,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.back-link:hover {
  color: white;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.property-info h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: 28px 0 8px 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-light);
}

.property-location-detail {
  color: rgba(246,252,255,0.5);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.property-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 18px 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(5,26,36,0.03);
}

.feature {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.feature {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.feature strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Sektionen auf dunklem Hintergrund: Features bleibt hell */
.property-page .property-features {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.property-page .feature {
  color: rgba(246,252,255,0.5);
}

.property-page .feature strong {
  color: var(--text-light);
}

/* Sektions-Cards — V Vortex */
.property-amenities,
.property-description,
.property-reviews,
.property-map-section {
  margin-top: 32px;
  margin-bottom: 0;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(0,0,0,0.15);
}

.property-description h2,
.property-amenities h2,
.property-reviews h2,
.property-map-section h2 {
  color: rgba(246,252,255,0.5);
  border-bottom-color: rgba(255,255,255,0.08);
}

.property-page .property-description {
  color: rgba(246,252,255,0.65);
}

.property-page .amenity-badge {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(246,252,255,0.7);
}

.property-page .amenity-badge:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.property-description h2,
.property-amenities h2,
.property-reviews h2,
.property-map-section h2 {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.property-description {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.property-map {
  height: 240px;
  border-radius: 14px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.1);
}

.property-map-section {
  padding-bottom: 12px;
}

/* === Booking Widget — V Vortex === */
.booking-widget {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(5,26,36,0.08), 0 30px 80px rgba(5,26,36,0.05);
  padding: 28px;
  position: sticky;
  top: 92px;
  border: 1px solid var(--gray-200);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking-widget::-webkit-scrollbar {
  display: none;
}

.booking-widget-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.booking-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.booking-per-night {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: white;
  transition: all var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 26, 36, 0.08);
}

/* === Globaler Select-Style: Custom Chevron, kein Browser-Default-Pfeil === */
/* Wirkt überall, auch in Filter-Leisten, Admin-Forms, Status-Selects usw. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  cursor: pointer;
  font-family: var(--font-body);
}

select:hover:not(:disabled) {
  border-color: var(--gray-400);
}

select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* IE 10+: native Pfeil ausblenden */
select::-ms-expand {
  display: none;
}

/* Optionen (limitiert per Browser, aber zumindest Padding+Farben) */
select option {
  padding: 8px 12px;
  background: white;
  color: var(--text-primary);
  font-size: 0.92rem;
}

select option:checked {
  background: var(--primary-light, #f1f5f9);
  color: var(--primary);
  font-weight: 600;
}

.booking-summary {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
}

.summary-row span:last-child {
  font-weight: 700;
}

.booking-summary {
  border-top: 1px solid var(--gray-200);
  padding-top: 8px;
}

.btn-book {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.booking-login-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 12px;
}

/* === Kalender (aus ical-kalender uebernommen, an Design angepasst) === */
.kalender-container {
  margin-bottom: 20px;
}

.kalender-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kalender-nav span {
  font-weight: 600;
  font-size: 1rem;
}

.kalender-btn {
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.kalender-wochentage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.kalender-tage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.kalender-tag {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  transition: background 0.15s;
}

.kalender-tag.leer { cursor: default; }

.kalender-tag.frei { background: var(--success-light); color: var(--success); }
.kalender-tag.frei:hover { background: #dcfce7; transform: scale(1.12); box-shadow: 0 2px 8px rgba(22,163,74,0.15); }

.kalender-tag.belegt {
  background: var(--danger-light);
  color: var(--danger);
  cursor: not-allowed;
  opacity: 0.7;
}

.kalender-tag.vergangen {
  color: var(--gray-300);
  cursor: not-allowed;
}

.kalender-tag.heute {
  border: 2px solid var(--primary);
  font-weight: 700;
}

.kalender-tag.ausgewaehlt {
  background: var(--primary) !important;
  color: white !important;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(5,26,36,0.2);
}

.kalender-legende {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.legende-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legende-frei, .legende-belegt, .legende-ausgewaehlt {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legende-frei { background: var(--success-light); border: 1px solid var(--success); }
.legende-belegt { background: var(--danger-light); border: 1px solid var(--danger); }
.legende-ausgewaehlt { background: var(--primary); }

/* === Auth Pages === */
.auth-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--gray-50);
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Messages === */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  display: none;
}

.message.success, .message.erfolg {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #86efac;
  display: block;
}

.message.error, .message.fehler {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fca5a5;
  display: block;
}

/* === Badges === */
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }

/* === Dashboard === */
.dashboard-page {
  padding: 48px 0;
}

.dashboard-page h1 {
  margin-bottom: 32px;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dashboard-card {
  background: white;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  border: 1px solid var(--gray-300);
  box-shadow: 0 0 24px rgba(0,0,0,0.12);
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
}

.dashboard-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.profile-info {
  font-size: 0.95rem;
}

.profile-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.booking-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.booking-header h3 {
  font-size: 1.05rem;
}

.booking-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}

/* === Admin Panel (basierend auf admin-panel/public/css/style.css) === */
.admin-sidebar {
  width: 250px;
  background: #1a1a2e;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 100vh;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  font-size: 1.3rem;
  white-space: nowrap;
}

.sidebar-nav {
  list-style: none;
  padding: 10px 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  border-left: 3px solid transparent;
  color: white;
}

.nav-item:hover { background: rgba(255,255,255,0.08); }

.nav-item.aktiv {
  background: rgba(255,255,255,0.12);
  border-left-color: var(--primary);
}

.nav-icon { font-size: 1.1rem; min-width: 20px; text-align: center; }
.nav-text { font-size: 0.9rem; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.sidebar-link:hover { color: white; }

.admin-hauptbereich {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: white;
  padding: 16px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar h1 { font-size: 1.3rem; font-weight: 600; }

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray-500);
  display: none;
}

.admin-inhalt {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  text-align: center;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

/* Subtiler Akzent-Strich oben (faden ein bei Hover) */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Einheitlicher dezenter Hover-Effekt fuer ALLE KPI-Karten */
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 12px -4px rgba(15, 23, 42, 0.08),
    0 14px 28px -8px rgba(15, 23, 42, 0.12);
  border-color: var(--gray-300);
}
.stat-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Dashboard-KPIs: kompakter, gleichmaessige Verteilung */
.dashboard-kpis {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}
.dashboard-kpis .stat-card {
  padding: 16px 18px;
}
.dashboard-kpis .stat-number {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.dashboard-kpis .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.dashboard-kpis .stat-number--text {
  font-size: 1.15rem;
  line-height: 1.2;
}
.dashboard-kpis .stat-sub {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--gray-500, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Klickbare KPI-Cards: cursor (Akzentstrich + lift macht der .stat-card-Default) */
.stat-card.kpi-clickable {
  cursor: pointer;
}
.stat-card.kpi-attention {
  border-color: #f59e0b;
  background: #fffbeb;
}
.stat-card.kpi-attention .stat-number {
  color: #f59e0b;
}

/* === Admin: Immobilie bearbeiten (Card-Layout) === */
.prop-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--gray-200, #e2e8ed);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 5;
}
.prop-edit-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  min-width: 0;
}
.prop-edit-crumb-sep {
  color: var(--gray-300, #c9d3da);
}
.prop-edit-crumb-current {
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prop-edit-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.link-button {
  background: transparent;
  border: none;
  color: var(--gray-500, #64748b);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.link-button:hover {
  background: var(--gray-100, #f1f4f6);
  color: var(--primary, #051A24);
}

.prop-edit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

/* Property-Kalender-Toolbar (Buchungen-Tab) */
.prop-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #1e293b);
}
.prop-cal-toolbar #prop-cal-titel {
  min-width: 160px;
  text-align: center;
}

/* Admin-Kalender — voller Container, kompakte feste Tag-Höhe */
#prop-cal-tage .kalender-tag {
  aspect-ratio: auto;
  height: 56px;
  font-size: 0.92rem;
  font-weight: 500;
}
#prop-cal-tage {
  gap: 3px;
}
#prop-cal-wochentage {
  margin-bottom: 6px;
  font-size: 0.78rem;
}

/* Tab-Leiste im Bearbeiten-Form */
.prop-edit-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gray-200, #e2e8ed);
}
.prop-edit-tab {
  padding: 11px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500, #64748b);
  cursor: pointer;
  margin-bottom: -1px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.prop-edit-tab:hover {
  color: var(--primary, #051A24);
  background: var(--gray-50, #f8fafb);
}
.prop-edit-tab.aktiv {
  color: var(--primary, #051A24);
  border-bottom-color: var(--primary, #051A24);
  font-weight: 600;
}
.prop-edit-tab-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prop-edit-card {
  background: #fff;
  border: 1px solid var(--gray-200, #e2e8ed);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.prop-edit-card-head {
  margin-bottom: 18px;
  position: relative;
}
.prop-edit-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  letter-spacing: -0.005em;
}
.prop-edit-card-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--gray-500, #64748b);
}
.prop-edit-count {
  color: var(--gray-500, #64748b);
  font-weight: 400;
  font-size: 0.92em;
}

.prop-edit-grid {
  display: grid;
  gap: 16px;
}
.prop-edit-grid-2 { grid-template-columns: repeat(2, 1fr); }
.prop-edit-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .prop-edit-grid-2,
  .prop-edit-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .prop-edit-grid-2,
  .prop-edit-grid-4 { grid-template-columns: 1fr; }
}
.form-group--span2 { grid-column: span 2; }
@media (max-width: 600px) { .form-group--span2 { grid-column: span 1; } }

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gray-500, #64748b);
}

.prop-edit-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300, #c9d3da);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
  line-height: 1.55;
  color: var(--text-primary, #1e293b);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.prop-edit-textarea:focus {
  outline: none;
  border-color: var(--primary, #051A24);
  box-shadow: 0 0 0 3px rgba(5, 26, 36, 0.08);
}

.prop-edit-upload {
  display: block;
  margin-top: 14px;
  padding: 18px;
  border: 1.5px dashed var(--gray-300, #c9d3da);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.prop-edit-upload:hover {
  border-color: var(--primary, #051A24);
  background: var(--gray-50, #f8fafb);
}
.prop-edit-upload input[type="file"] { display: none; }
.prop-edit-upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-primary, #1e293b);
}
.prop-edit-upload-icon {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--primary, #051A24);
  line-height: 1;
  margin-bottom: 2px;
}
.prop-edit-upload-meta {
  color: var(--gray-500, #64748b);
  font-size: 0.78rem;
}

/* Card mit globaler Einstellung — visuell hervorgehoben */
.prop-edit-card--global {
  background: linear-gradient(180deg, #fffbeb 0%, #fffefa 100%);
  border-color: #fcd34d;
}
.global-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f59e0b;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.prop-edit-global-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.45;
}

/* Collapsible Card (Erweitert) */
.prop-edit-card--collapsible .prop-edit-card-head {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  padding-right: 28px;
}
.prop-edit-card-chevron {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gray-500, #64748b);
  transition: transform 0.2s;
}
.prop-edit-card--collapsible.expanded .prop-edit-card-chevron {
  transform: rotate(180deg);
}
.prop-edit-card--collapsible .prop-edit-card-body {
  display: none;
  margin-top: 18px;
}
.prop-edit-card--collapsible.expanded .prop-edit-card-body {
  display: block;
}

.prop-edit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* Ghost-Button-Style (falls noch nicht definiert in unserem Bereich) */
.btn-ghost {
  background: transparent;
  color: var(--gray-600, #475569);
  border: 1px solid var(--gray-300, #c9d3da);
}
.btn-ghost:hover {
  background: var(--gray-50, #f8fafb);
  color: var(--primary, #051A24);
  border-color: var(--primary, #051A24);
}

/* === Admin: Amenity-Editor === */
.amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 36px;
  align-items: center;
}
.amenity-empty {
  color: var(--gray-500, #64748b);
  font-size: 0.85rem;
  font-style: italic;
}
.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 4px;
  background: var(--gray-100, #f1f4f6);
  border: 1px solid var(--gray-200, #e2e8ed);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-primary, #1e293b);
  font-weight: 500;
  cursor: grab;
  user-select: none;
  transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
}
.amenity-pill:active { cursor: grabbing; }
.amenity-pill.dragging {
  opacity: 0.35;
  transform: scale(0.95);
}
.amenity-pill.drag-over {
  border-color: var(--primary, #051A24);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(5, 26, 36, 0.15);
}
.amenity-drag-handle {
  color: #94a3b8;
  font-size: 0.75rem;
  letter-spacing: -3px;
  padding: 0 4px 0 6px;
  line-height: 1;
  cursor: grab;
}
.amenity-pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}
.amenity-sugg-icon {
  font-size: 0.95rem;
  line-height: 1;
  margin-right: 4px;
}
.amenity-pill-remove {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--gray-500, #64748b);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.amenity-pill-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}
.amenity-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.amenity-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--gray-300, #c9d3da);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.amenity-input:focus {
  outline: none;
  border-color: var(--primary, #051A24);
  box-shadow: 0 0 0 3px rgba(5, 26, 36, 0.08);
}
.amenity-sugg-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.amenity-sugg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.amenity-sugg-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: #fff;
  border: 1px dashed var(--gray-300, #c9d3da);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--gray-600, #475569);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.amenity-sugg-btn:hover {
  background: var(--primary, #051A24);
  border-color: var(--primary, #051A24);
  border-style: solid;
  color: #fff;
}

/* === Admin: Immobilien als Card-Grid === */
.admin-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1500px) { .admin-properties-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .admin-properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .admin-properties-grid { grid-template-columns: 1fr; } }

.admin-prop-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200, #e2e8ed);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}
.admin-prop-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 12px -4px rgba(15, 23, 42, 0.08),
    0 14px 28px -8px rgba(15, 23, 42, 0.12);
  border-color: var(--gray-300, #c9d3da);
}

.admin-prop-card.inactive {
  opacity: 0.75;
  background: #f8fafb;
}
.admin-prop-card.inactive .admin-prop-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}
.admin-prop-inactive-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-prop-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--gray-100, #f1f4f6);
  overflow: hidden;
}
.admin-prop-clickable {
  cursor: pointer;
}
.admin-prop-title.admin-prop-clickable:hover {
  color: var(--primary, #051A24);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bearbeiten-Overlay auf Bild bei Hover */
.admin-prop-edit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 26, 36, 0.55);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}
.admin-prop-card:hover .admin-prop-edit-overlay {
  opacity: 1;
}
.admin-prop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-prop-card:hover .admin-prop-image img {
  transform: scale(1.04);
}

.admin-prop-type-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--primary, #051A24);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-prop-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.admin-prop-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.005em;
}
.admin-prop-loc {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-prop-meta {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-top: 2px;
}
.admin-prop-price {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200, #e2e8ed);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.05rem;
  color: var(--primary, #051A24);
  flex-wrap: wrap;
}
.admin-prop-price strong {
  font-size: 1.15rem;
}
.admin-prop-price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-right: 2px;
}
.admin-prop-price-unit {
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
  font-weight: 400;
}
.admin-prop-discount-badge {
  display: inline-block;
  padding: 2px 7px;
  margin-left: 4px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-prop-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200, #e2e8ed);
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-prop-actions .btn-sm {
  font-size: 0.82rem;
  padding: 7px 12px;
}
.admin-prop-actions .btn-primary {
  flex: 1;
}
.admin-prop-actions .btn-ghost {
  flex: 1;
  background: transparent;
  color: var(--gray-600, #475569);
  border: 1px solid var(--gray-300, #c9d3da);
}
.admin-prop-actions .btn-ghost:hover {
  background: var(--gray-50, #f8fafb);
  color: var(--primary, #051A24);
  border-color: var(--primary, #051A24);
}
.admin-prop-actions .btn-icon-only {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Dashboard Sub-Tabs — full-width verteilt */
.dash-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0;
}
.dash-tab {
  position: relative;
  flex: 1;
  padding: 12px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dash-tab:hover {
  color: var(--primary);
  background: var(--gray-50);
}
.dash-tab.aktiv {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.dash-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Tab-Content nimmt verfuegbaren Vertikalplatz */
#dash-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#dash-tab-content > .admin-sektion,
#dash-tab-content > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Empty-State sauber zentrieren */
#dash-tab-content .admin-sektion > p[style*="text-align:center"] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.admin-sektion {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.admin-sektion h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a2e;
}

/* Collapsible Admin-Sektion (z.B. iCal-Links) */
.admin-sektion-collapsible {
  padding: 0;
  overflow: hidden;
}

.admin-sektion-collapsible > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background 0.15s;
}

.admin-sektion-collapsible > summary::-webkit-details-marker { display: none; }
.admin-sektion-collapsible > summary::marker { content: ''; }

.admin-sektion-collapsible > summary:hover {
  background: var(--gray-50);
}

.admin-sektion-collapsible > summary > h2 {
  margin: 0;
}

.admin-sektion-collapsible .collapsible-chevron {
  display: inline-flex;
  align-items: center;
  color: var(--gray-500);
  transition: transform 0.2s ease;
}

.admin-sektion-collapsible[open] .collapsible-chevron {
  transform: rotate(180deg);
}

.admin-sektion-collapsible[open] > summary {
  border-bottom: 1px solid var(--gray-200);
}

.admin-sektion-collapsible .collapsible-content {
  padding: 20px 24px;
}

/* === Toggle-Switch === */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 30px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success, #16a34a);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
  filter: brightness(0.95);
}

.admin-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-tabelle th {
  background: var(--gray-50);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
}

.admin-tabelle td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
}

.admin-tabelle tr:hover { background: var(--gray-50); }

.status-select {
  padding: 4px 28px 4px 8px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.8rem;
  background-size: 10px;
  background-position: right 8px center;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* Admin iCal (aus admin-panel uebernommen) */
.modul-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modul-toolbar select {
  padding: 8px 38px 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  background-color: white;
}

/* Custom-Select in Modul-Toolbar: nimmt den restlichen Platz neben Button(s) */
.modul-toolbar .custom-select {
  flex: 1 1 0;
  min-width: 200px;
  width: auto;
}

.admin-liste {
  list-style: none;
}

.admin-liste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 8px;
}

.admin-liste .quelle {
  font-weight: 600;
  color: var(--primary);
}

.admin-liste .url-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  word-break: break-all;
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Amenity Badges === */
.property-amenities {
  margin-bottom: 32px;
}

.property-amenities h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.amenity-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.amenity-badge:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.amenity-icon {
  font-size: 1.1rem;
}

/* === Reviews === */
.property-reviews {
  margin-bottom: 32px;
}

.property-reviews h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.reviews-score-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.reviews-score-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reviews-score-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-score-info strong {
  font-size: 1rem;
}

.reviews-score-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.review-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: all var(--transition);
}

.review-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.review-author {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-country {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.review-rating {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* === Externe Bewertungs-Badges (Booking.com / Airbnb) === */
.ext-ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ext-rating-badge {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: white;
}
.ext-rating-badge.booking { background: #003580; }
.ext-rating-badge.airbnb  { background: #FF5A5F; }

.ext-rating-logo {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.94);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  /* Farbe wird per inline-style gesetzt (logo-Hintergrund weiss, Text in Markenfarbe) */
}
.ext-rating-badge.booking .ext-rating-logo { color: #003580; }
.ext-rating-badge.airbnb  .ext-rating-logo { color: #FF5A5F; }

.ext-rating-info { min-width: 0; }
.ext-rating-score {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.ext-rating-label {
  font-size: 0.82rem;
  opacity: 0.92;
  margin-top: 1px;
}

/* Admin-Editor: kleine Logos in den Card-Headern */
.prop-edit-card-head .ext-rating-logo {
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
  color: #fff !important;
  background: var(--primary); /* wird von inline-style ueberschrieben */
}

/* Rueckwaertskompatibilitaet: alte .booking-badge-Klassen bleiben funktional */
.booking-badge {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: #003580; border-radius: var(--radius); color: white; margin-bottom: 16px;
}
.booking-badge-logo {
  width: 44px; height: 44px; background: white; color: #003580; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; flex-shrink: 0;
}
.booking-badge-score { font-size: 1.3rem; font-weight: 700; }
.booking-badge-label { font-size: 0.85rem; opacity: 0.9; }

/* === Star Rating === */
.star-rating {
  display: flex;
  gap: 4px;
  font-size: 1.8rem;
  cursor: pointer;
}

.star-rating .star {
  color: var(--gray-300);
  transition: color 0.15s;
}

.star-rating .star.active {
  color: #f59e0b;
}

.star-rating .star:hover {
  color: #f59e0b;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-form-card {
  margin-top: 24px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.review-form-card h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* === Edit Images Grid === */
.edit-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.edit-img-thumb {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: visible;
  border: 2px solid var(--gray-200);
  cursor: grab;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.edit-img-thumb:active { cursor: grabbing; }

.edit-img-thumb.drag-over {
  border-color: var(--primary);
  transform: scale(1.05);
}

.edit-img-thumb.dragging {
  opacity: 0.4;
}

.edit-img-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  border: 2px solid white;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}

.edit-img-thumb:hover .edit-img-delete {
  opacity: 1;
}

.edit-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-img-nr {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
}

/* === Discount Pricing === */
.price-discount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-original {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.price-new {
  color: var(--danger);
  font-weight: 700;
  font-size: 1.2rem;
}

.price-savings {
  background: var(--success-light);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* === Lightbox === */
/* ========================================
   PREMIUM LIGHTBOX / CINEMATIC GALLERY
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 10000;
  transition: background 0.5s cubic-bezier(0.22,1,0.36,1), backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.lb-open {
  background: rgba(2,6,10,0.96);
  backdrop-filter: blur(24px) saturate(0.8);
  -webkit-backdrop-filter: blur(24px) saturate(0.8);
}

/* Vignette + subtle warm gradient for cinematic depth */
.lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(20,30,40,0.15) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lightbox.lb-open::before { opacity: 1; }

/* Close Button — minimal, elegant */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.15);
}

/* Navigation Arrows — frosted glass, refined */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  font-size: 1.2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  padding: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.94);
  transition-duration: 0.1s;
}

.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* Main Image — large, cinematic */
.lightbox-content {
  max-width: 94vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1);
  box-shadow:
    0 24px 72px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.04);
}

.lightbox.lb-open .lightbox-content img {
  opacity: 1;
  transform: scale(1);
}

/* Counter — editorial style */
.lightbox-counter {
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

/* Thumbnail Strip — premium */
.lightbox-thumbs {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  max-width: 65vw;
  overflow-x: auto;
  padding: 8px 20px;
  background: rgba(2,6,10,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent 0px, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0px, black 24px, black calc(100% - 24px), transparent 100%);
}

.lightbox-thumbs::-webkit-scrollbar { display: none; }

.lb-thumb {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
  border: 2px solid transparent;
}

.lb-thumb:hover {
  opacity: 0.65;
}

.lb-thumb.active {
  opacity: 1;
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

/* Gallery "more" overlay */
.gallery-more {
  position: relative;
  cursor: pointer;
}

.gallery-more-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-main, .gallery-thumb { cursor: pointer; }
.gallery-main img:hover, .gallery-thumb img:hover { opacity: 0.9; }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next { width: 34px; height: 34px; font-size: 1rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-content img { max-width: 96vw; max-height: 68vh; border-radius: 4px; }
  .lightbox-thumbs { max-width: 90vw; bottom: 10px; padding: 6px 12px; border-radius: 12px; }
  .lb-thumb { width: 40px; height: 30px; border-radius: 4px; }
  .lightbox-close { width: 34px; height: 34px; font-size: 1rem; top: 14px; right: 14px; }
}

/* === Footer — V Vortex === */
.footer {
  background: transparent;
  padding: 24px;
  font-size: 0.85rem;
}

.footer .container {
  background: #F6FCFF;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  box-shadow: 0 20px 60px rgba(5,26,36,0.04);
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .property-detail-grid { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 40px 0 60px; }
  .section-title { font-size: 1.4rem; margin-bottom: 28px; }
  .search-fields { flex-direction: column; }
  .property-grid { grid-template-columns: 1fr; }
  .property-detail-grid { grid-template-columns: 1fr; gap: 20px; }

  .booking-widget {
    position: static;
    border-radius: 16px;
  }

  .property-amenities,
  .property-description,
  .property-reviews,
  .property-map-section {
    padding: 20px;
    border-radius: 14px;
    margin-top: 16px;
  }

  .amenities-grid { grid-template-columns: 1fr; }

  .gallery-grid { border-radius: 14px; }
  .gallery-main { height: 260px; }

  .property-info h1 { font-size: 1.5rem; margin-top: 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  /* Search */
  .search-page { flex-direction: column; }
  .search-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--gray-200); }

  /* Admin */
  .admin-sidebar {
    position: fixed;
    z-index: 100;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .admin-sidebar.offen { transform: translateX(0); }
  .sidebar-toggle { display: block; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }

  .admin-tabelle { font-size: 0.8rem; }
  .admin-tabelle th, .admin-tabelle td { padding: 8px 6px; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 16px; height: 60px; }
  .nav-logo { font-size: 1.1rem; }
  .nav-links { top: 60px; }
  .container { padding: 0 12px; }
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 1.4rem; }
  .btn { padding: 10px 20px; font-size: 0.82rem; }
  .btn-book { width: 100%; }
  .property-features { flex-direction: column; gap: 8px; }
  .booking-dates { flex-direction: column; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .footer .container { padding: 20px; border-radius: var(--radius); }
  .payment-method-option { padding: 10px !important; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-content img, .lb-thumb, .lightbox-prev, .lightbox-next, .lightbox-close {
    transition-duration: 0.01s !important;
  }
}

/* === Error States === */
.error-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.error-state h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.error-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.error-state .btn {
  margin-top: 8px;
}

/* Admin page: body uses flex */
body:has(.admin-sidebar) {
  display: flex;
  min-height: 100vh;
}

/* === Zahlungsoptionen === */
.payment-method-option {
  transition: all 0.2s;
}

.payment-method-option:hover {
  border-color: var(--primary) !important;
  background: var(--primary-light);
}

.payment-method-option:has(input:checked) {
  border-color: var(--primary) !important;
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

.payment-method-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* === Custom Select Dropdown === */
.custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Original <select> wird visuell verdrängt, bleibt aber funktional im DOM */
.custom-select > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: white;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-select-trigger:hover:not(:disabled) {
  border-color: var(--gray-400);
}

.custom-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: var(--gray-50);
}

.custom-select.open > .custom-select-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 26, 36, 0.08);
}

.custom-select-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-chevron {
  display: flex;
  align-items: center;
  color: var(--gray-500);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: background 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option:hover {
  background: var(--gray-100);
}

.custom-select-option.selected {
  background: rgba(5, 26, 36, 0.06);
  color: var(--primary);
  font-weight: 600;
}

.custom-select-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.custom-select-option.disabled:hover {
  background: transparent;
}

/* === Site Footer (Legal-Links, auf allen Seiten via main.js injiziert) === */
.site-footer {
  background: #f8fafb;
  color: var(--gray-600, #475569);
  border-top: 1px solid var(--gray-200, #e2e8ed);
  padding: 32px 24px 24px;
  margin-top: 64px;
  font-size: 0.88rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer-brand strong {
  color: var(--primary, #051A24);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer-tagline {
  color: var(--gray-500, #64748b);
  font-size: 0.8rem;
}

.site-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--gray-600, #475569);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-links a:hover {
  color: var(--primary, #051A24);
  text-decoration: underline;
}

.site-footer-copyright {
  color: var(--gray-500, #64748b);
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Den alten ib-footer ausblenden falls noch im HTML — wird per JS ersetzt */
.ib-footer { display: none; }

/* === Legal-Pages (Impressum, Datenschutz, AGB) === */
.legal-page {
  min-height: calc(100vh - 200px);
  padding: 100px 20px 60px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  padding: 48px 56px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.legal-content {
  font-size: 0.96rem;
  color: var(--text-primary, #1e293b);
  line-height: 1.7;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  margin: 24px 0 8px;
}

.legal-content p {
  margin: 12px 0;
}

.legal-content ul, .legal-content ol {
  margin: 12px 0;
  padding-left: 26px;
}

.legal-content li {
  margin: 6px 0;
}

.legal-content strong {
  color: #1e293b;
}

.legal-content a {
  color: var(--primary, #0e1c24);
  text-decoration: underline;
  text-decoration-color: rgba(14, 28, 36, 0.35);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration-color: var(--primary, #0e1c24);
}

.legal-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.legal-content blockquote {
  border-left: 3px solid #cbd5e1;
  padding: 4px 16px;
  margin: 16px 0;
  color: #64748b;
}

@media (max-width: 700px) {
  .legal-container {
    padding: 32px 24px;
  }
  .legal-content h1 {
    font-size: 1.6rem;
  }
}

/* === OAuth-Buttons (Google etc.) === */
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  font-family: var(--font-body, inherit);
}

.btn-oauth:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn-oauth:active {
  transform: translateY(1px);
}

.btn-oauth svg {
  flex-shrink: 0;
}

.oauth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.oauth-divider span {
  padding: 0 12px;
}

/* Auf hellen Seiten anderer Divider */
body:not(.auth-page--dark) .oauth-divider::before,
body:not(.auth-page--dark) .oauth-divider::after {
  background: #e2e8f0;
}

/* === Cookie-Hinweis (Premium-Toast unten links, kompakt) === */
.cookie-hint {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -4px rgba(15, 23, 42, 0.12),
    0 20px 48px -8px rgba(15, 23, 42, 0.18);
  animation: cookie-hint-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body, inherit);
}

.cookie-hint-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cookie-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.cookie-hint-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.cookie-hint-text {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
  letter-spacing: -0.005em;
}

.cookie-hint-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-hint-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 116, 139, 0.3);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.cookie-hint-link:hover {
  color: var(--primary, #051A24);
  border-bottom-color: var(--primary, #051A24);
}

.cookie-hint-dismiss {
  padding: 8px 18px;
  background: var(--primary, #051A24);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cookie-hint-dismiss:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -2px rgba(5, 26, 36, 0.35);
}

.cookie-hint-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.cookie-hint-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary, #051A24);
}

.cookie-hint-leaving {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s ease-out;
}

@keyframes cookie-hint-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .cookie-hint {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* === Error-Pages (404, 500) === */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.error-container {
  max-width: 540px;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary, #0e1c24);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  opacity: 0.85;
}

.error-container h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}

.error-container p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 28px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.error-actions .btn-secondary:hover {
  background: #e2e8f0;
}
