/* pSEO Template — JWI Design System v2 */
/* Matches JWI Homepage: glassmorphic navbar, animated hero, Apple-like aesthetic */

:root {
  --brand: #008CC9;
  --brand-dark: #006a9a;
  --brand-light: #e6f4fb;
  --text: rgba(0,0,0,0.85);
  --text-muted: rgba(0,0,0,0.5);
  --text-light: rgba(0,0,0,0.35);
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --border: rgba(0,0,0,0.08);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --max-w: 70rem;
  --font: -apple-system, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Animations ---- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splash-dance {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 15px) scale(0.95); }
  75% { transform: translate(15px, 25px) scale(1.02); }
}
@keyframes splash-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 600; font-size: 1.1rem; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.15s;
}
.brand:hover { color: var(--brand); }
.brand svg { height: 1.75rem; width: auto; flex-shrink: 0; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a {
  font-size: 0.875rem; color: var(--text-muted);
  transition: color 0.15s;
}
.navbar-links a:hover { color: var(--brand); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 500px 500px at 20% 30%, rgba(0,140,201,0.06), transparent),
    radial-gradient(ellipse 400px 400px at 80% 70%, rgba(0,140,201,0.04), transparent),
    var(--bg);
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 48rem;
  margin-left: auto; margin-right: auto;
  animation: fade-in-up 0.6s ease-out both;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
  animation: fade-in-up 0.6s ease-out 0.15s both;
}

/* ---- Trust Bar ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--text-muted); font-weight: 500;
}
.trust-item svg { color: var(--brand); flex-shrink: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.8125rem; color: var(--text-light);
  padding: 1.5rem 0 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---- Stats Bar ---- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; padding: 2rem 0;
}
.stat-item {
  text-align: center; padding: 1.25rem;
  background: var(--bg-alt); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- Section Headers ---- */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: 1.375rem; font-weight: 700; color: var(--text);
}
.section-header .count {
  font-size: 0.75rem; color: var(--text-light); font-weight: 500;
  white-space: nowrap;
}

/* ---- Content ---- */
main { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem 3rem; }

.intro { padding: 2rem 0; color: var(--text-muted); line-height: 1.8; }
.intro h2, .intro h3 { color: var(--text); margin: 1.5rem 0 0.75rem; }
.intro ul { padding-left: 1.5rem; }
.intro li { margin-bottom: 0.5rem; }

.content { padding: 1rem 0 2rem; color: var(--text-muted); line-height: 1.8; }
.content h2, .content h3 { color: var(--text); margin: 1.5rem 0 0.75rem; }
.content ul { padding-left: 1.5rem; }
.content li { margin-bottom: 0.5rem; }

/* ---- Listing Cards ---- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.listing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.2s;
}
.listing-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.listing-card h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.6875rem; font-weight: 600;
  background: #dcfce7; color: #15803d;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
}
.badge::before {
  content: ''; width: 0.375rem; height: 0.375rem;
  background: #22c55e; border-radius: 50%;
}
.meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.meta a { color: var(--brand); }
.rating { color: #f59e0b; letter-spacing: 1px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand); color: #fff;
  padding: 0.625rem 1.5rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-top: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,140,201,0.25);
}
.cta-btn:hover {
  background: var(--brand-dark); color: #fff;
  box-shadow: 0 6px 20px rgba(0,140,201,0.35);
}
.cta-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---- Price Table ---- */
.prices { overflow-x: auto; margin-bottom: 2rem; }
.prices table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.prices th {
  text-align: left; padding: 0.75rem 1rem;
  background: var(--bg-alt); color: var(--text-muted);
  font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.prices td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.prices .fair { color: #15803d; font-weight: 600; }
.prices .warning { color: #dc2626; font-weight: 500; }

/* ---- FAQ ---- */
.faq-section { padding-bottom: 2rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.5rem; overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-question {
  padding: 1rem 1.25rem; cursor: pointer;
  font-weight: 600; font-size: 0.9375rem;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-question::after {
  content: '+'; font-size: 1.25rem; color: var(--text-light);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer {
  max-height: 0; overflow: hidden;
  padding: 0 1.25rem; color: var(--text-muted);
  font-size: 0.875rem; line-height: 1.7;
  transition: max-height 0.3s, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 500px; padding: 0 1.25rem 1rem;
}

/* ---- Nearby Cities ---- */
.nearby-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-bottom: 2rem;
}
.nearby-card {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nearby-card:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.nearby-card .state-tag {
  font-size: 0.6875rem; color: var(--text-light);
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center; padding: 3rem 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.cta-section h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- Care Costs (Pflege) ---- */
.care-costs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.care-cost-card {
  padding: 1.5rem; text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.care-cost-card .grade { font-size: 0.75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.care-cost-card .cost { font-size: 1.75rem; font-weight: 700; color: var(--brand); margin: 0.5rem 0; }
.care-cost-card .period { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Consumer Protection Widget ---- */
.consumer-widget { position: fixed; bottom: 1rem; right: 1rem; z-index: 40; }
.consumer-toggle {
  background: var(--brand); color: #fff;
  border: none; padding: 0.625rem 1.25rem;
  border-radius: 9999px; font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,140,201,0.3);
  transition: background 0.15s;
}
.consumer-toggle:hover { background: var(--brand-dark); }
.consumer-panel {
  position: absolute; bottom: 3.5rem; right: 0;
  width: 340px; max-height: 0; overflow: hidden;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  transition: max-height 0.3s, padding 0.3s;
  padding: 0 1.25rem;
}
.consumer-panel.open { max-height: 600px; padding: 1.25rem; }
.consumer-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.tip {
  display: flex; gap: 0.75rem; margin-bottom: 0.75rem;
  align-items: flex-start;
}
.tip-icon {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700;
}
.tip-text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
.tip-text strong { color: var(--text); }

/* ---- Footer (JWI-style) ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer-brand svg { height: 1.25rem; width: auto; opacity: 0.4; }
.footer-brand span { font-size: 0.875rem; color: var(--text-light); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-light); transition: color 0.15s; }
.footer-links a:hover { color: var(--brand); }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100; transform: translateY(100%);
  transition: transform 0.3s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: 0.8125rem; color: var(--text-muted); min-width: 200px; }
.cookie-text a { color: var(--brand); }
.cookie-buttons { display: flex; gap: 0.5rem; }
.cookie-btn {
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  transition: all 0.15s;
}
.cookie-btn-accept { background: var(--brand); color: #fff; border-color: var(--brand); }
.cookie-btn-accept:hover { background: var(--brand-dark); }
.cookie-btn-decline { background: var(--bg); color: var(--text-muted); }
.cookie-btn-decline:hover { border-color: var(--text-light); }

/* ---- Homepage ---- */
.home-hero {
  position: relative;
  padding: 10rem 1.5rem 5rem; text-align: center;
  background:
    radial-gradient(ellipse 600px 600px at 25% 30%, rgba(0,140,201,0.07), transparent),
    radial-gradient(ellipse 500px 500px at 75% 70%, rgba(0,140,201,0.05), transparent),
    var(--bg);
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fade-in-up 0.6s ease-out both;
}
.home-hero h1 span { color: var(--brand); }
.home-hero .subtitle {
  font-size: 1.125rem; color: var(--text-muted);
  max-width: 36rem; margin: 0 auto 2.5rem;
  animation: fade-in-up 0.6s ease-out 0.15s both;
}
.home-hero .cta-btn {
  animation: fade-in-up 0.6s ease-out 0.3s both;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; padding: 3rem 0;
}
.feature-card {
  padding: 2rem; background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.feature-icon {
  width: 3rem; height: 3rem;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
  transition: background 0.15s, color 0.15s;
}
.feature-card:hover .feature-icon { background: var(--brand); color: #fff; }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-muted); }

.cities-section { padding: 3rem 0; }
.cities-section h2 { text-align: center; font-size: 1.5rem; margin-bottom: 2rem; }
.cities-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
}
.city-pill {
  display: inline-flex; padding: 0.5rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.city-pill:hover {
  border-color: var(--brand); color: var(--brand);
  background: var(--brand-light);
}

/* ---- Schema Badge ---- */
.schema-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-light);
  border: 1px solid rgba(0,140,201,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem; color: var(--brand);
  font-weight: 600;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.scroll-indicator svg { color: var(--text-light); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .consumer-panel { width: calc(100vw - 2rem); right: -0.5rem; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .navbar-links { gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
