/* ========================================
   TIERERLEBNISPFAD BRAND - Family Trail Styles
   Familien-Card-Layout Design System
   ======================================== */

/* Design Tokens */
:root {
  /* Familien-freundliche Farbpalette */
  --family-primary: 142 50% 35%;
  --family-primary-light: 142 45% 45%;
  --family-accent: 32 90% 55%;
  --family-accent-dark: 32 85% 45%;
  --family-soft: 45 60% 97%;
  --family-text: 142 25% 20%;
  --family-muted: 142 15% 55%;
  --family-success: 142 60% 40%;
  --family-info: 200 70% 50%;
  
  /* Background variations */
  --family-bg: 40 20% 98%;
  --family-bg-alt: 45 30% 95%;
  --family-card-bg: 0 0% 100%;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-focus: 0 0 0 3px hsl(var(--family-accent) / 0.4);
  
  /* Typography */
  --font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.family-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.family-hero-bg {
  position: absolute;
  inset: 0;
  /* Illustrative placeholder gradient - mountains & nature theme */
  background: 
    linear-gradient(135deg, 
      hsl(142 45% 35%) 0%, 
      hsl(142 40% 45%) 25%,
      hsl(95 45% 50%) 50%,
      hsl(142 35% 40%) 75%,
      hsl(142 50% 30%) 100%
    );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Decorative elements */
.family-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 120% auto;
  opacity: 0.3;
}

.family-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsla(142, 40%, 20%, 0.3) 0%,
    hsla(142, 35%, 25%, 0.4) 50%,
    hsla(142, 30%, 20%, 0.5) 100%
  );
}

.family-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  color: white;
}

.family-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  color: white;
}

.family-hero-teaser {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb in Hero */
.family-hero .breadcrumb {
  margin-bottom: var(--space-lg);
}

/* ========================================
   CONTAINER & SECTIONS
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: hsl(var(--family-bg-alt));
}

.section-cta {
  background: hsl(var(--family-primary) / 0.05);
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: hsl(var(--family-text));
  margin-bottom: var(--space-xl);
  text-align: center;
}

/* ========================================
   INFO CARDS (3-Column Layout)
   ======================================== */

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: hsl(var(--family-card-bg));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.info-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--family-primary) / 0.1);
  color: hsl(var(--family-primary));
  flex-shrink: 0;
}

.info-card-icon.icon-family {
  background: hsl(var(--family-accent) / 0.15);
  color: hsl(var(--family-accent-dark));
}

.info-card-icon.icon-location {
  background: hsl(var(--family-info) / 0.15);
  color: hsl(var(--family-info));
}

.info-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--family-text));
  margin: 0;
}

/* Meta List */
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.meta-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: hsl(var(--family-text));
  border-bottom: 1px solid hsl(var(--family-primary) / 0.1);
}

.meta-list li:last-child {
  border-bottom: none;
}

.meta-list li svg {
  color: hsl(var(--family-primary));
  flex-shrink: 0;
}

.elevation-row {
  display: flex;
  gap: var(--space-lg);
}

.elevation-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
}

.elevation-item:first-child svg {
  color: hsl(var(--family-success));
}

.elevation-item:last-child svg {
  color: hsl(var(--family-accent));
}

/* Badge (Schwierigkeit) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-easy {
  background: hsl(142 60% 90%);
  color: hsl(142 60% 30%);
}

.badge-medium {
  background: hsl(45 80% 90%);
  color: hsl(45 80% 30%);
}

.badge-hard {
  background: hsl(0 70% 92%);
  color: hsl(0 60% 40%);
}

/* Suitability List */
.suitability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suitability-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: hsl(var(--family-text));
}

.suitability-item svg {
  color: hsl(var(--family-success));
  flex-shrink: 0;
}

/* Start Location & Transport */
.start-location {
  font-size: 1.1rem;
  color: hsl(var(--family-text));
  margin-bottom: var(--space-md);
}

.transport-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transport-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: hsl(var(--family-muted));
}

.transport-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-block {
  background: hsl(var(--family-card-bg));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.feature-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--family-primary));
  margin-bottom: var(--space-lg);
}

.feature-title svg {
  flex-shrink: 0;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: hsl(var(--family-text));
}

.checklist li svg {
  flex-shrink: 0;
  color: hsl(var(--family-success));
  margin-top: 2px;
}

/* Badge Group (Infrastructure) */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.infrastructure-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: hsl(var(--family-primary) / 0.1);
  color: hsl(var(--family-primary));
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
}

.infrastructure-badge svg {
  flex-shrink: 0;
}

/* Requirements List */
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
  color: hsl(var(--family-muted));
}

.requirements-list li svg {
  flex-shrink: 0;
  color: hsl(var(--family-info));
}

/* ========================================
   HIGHLIGHTS (Chips)
   ======================================== */

.chips-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: hsl(var(--family-accent) / 0.15);
  color: hsl(var(--family-accent-dark));
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.chip svg {
  flex-shrink: 0;
  color: hsl(var(--family-accent));
}

/* ========================================
   DESCRIPTION
   ======================================== */

.description-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: hsl(var(--family-text));
}

.description-content p {
  margin-bottom: var(--space-lg);
}

.description-content p:last-child {
  margin-bottom: 0;
}

.description-content a {
  color: hsl(var(--family-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.description-content a:hover {
  color: hsl(var(--family-primary-light));
}

/* ========================================
   SEASON
   ======================================== */

.season-info {
  text-align: center;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: hsl(var(--family-success) / 0.15);
  color: hsl(var(--family-success));
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.season-note {
  font-size: 0.95rem;
  color: hsl(var(--family-muted));
  max-width: 500px;
  margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  min-width: 48px;
}

.btn:focus-visible {
  outline: 3px solid hsl(var(--family-accent));
  outline-offset: 2px;
}

.btn-primary {
  background: hsl(var(--family-primary));
  color: white;
}

.btn-primary:hover {
  background: hsl(var(--family-primary-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  background: hsl(var(--family-bg-alt));
  color: hsl(var(--family-text));
  border: 1px solid hsl(var(--family-primary) / 0.2);
}

.btn-secondary:hover {
  background: hsl(var(--family-primary) / 0.1);
  border-color: hsl(var(--family-primary) / 0.3);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--family-primary));
  border: 2px solid hsl(var(--family-primary));
}

.btn-outline:hover {
  background: hsl(var(--family-primary));
  color: white;
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  min-height: 44px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.related-link {
  text-align: center;
}

/* ========================================
   STICKY CTA (Mobile)
   ======================================== */

.sticky-cta {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: hsl(var(--family-card-bg));
  padding: var(--space-md);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 100;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: hsl(var(--family-text));
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .toast {
    bottom: 40px;
  }
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--family-primary));
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-md);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 3px solid hsl(var(--family-accent));
  outline-offset: 2px;
}

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

@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .family-hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .family-hero-bg,
  .family-hero-overlay {
    display: none;
  }
  
  .family-hero-content {
    color: black;
  }
  
  .family-hero-content h1 {
    color: black;
    text-shadow: none;
  }
  
  .sticky-cta,
  .cta-buttons,
  .section-cta,
  .related-link,
  #header-placeholder,
  #footer-placeholder {
    display: none !important;
  }
  
  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
  
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .info-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
  
  .badge {
    border: 1px solid currentColor;
  }
  
  a[href]::after {
    content: none;
  }
}

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

@media (max-width: 639px) {
  .family-hero {
    min-height: 45vh;
    padding: 6rem 1rem 3rem;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  main {
    padding-bottom: 80px; /* Space for sticky CTA */
  }
}
