/* ============================================ */
/* Callejear.de — Main Stylesheet              */
/* Extracted from inline <style> for caching   */
/* ============================================ */

:root {
  --primary: #1a56db;
  --primary-light: #e8f0fe;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--gray-900); line-height: 1.6; background: var(--gray-50); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Score bars */
.score-bar { height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.score-bar-fill.excellent { background: var(--success); }
.score-bar-fill.good { background: #22c55e; }
.score-bar-fill.average { background: var(--warning); }
.score-bar-fill.poor { background: var(--danger); }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: var(--primary-light); color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }

/* Cards */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.25rem; margin-bottom: 1rem; }
.card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--gray-700); }

/* Data rows */
.data-row { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; }
.data-row:last-child { border-bottom: none; }
.data-label { color: var(--gray-500); }
.data-value { font-weight: 600; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* POI items */
.poi-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.85rem; }
.poi-name { flex: 1; }
.poi-distance { color: var(--gray-500); font-size: 0.8rem; white-space: nowrap; margin-left: 0.5rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--gray-500); padding: 0.75rem 0; }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs span { margin: 0 0.25rem; }

/* Map */
.street-map { margin-bottom: 1.25rem; }
.street-map-inner { width: 100%; height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); background: var(--gray-100); }

/* Hero tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.htag { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; background: #fff; border: 1px solid var(--gray-200); color: var(--gray-700); }
.htag .htag-emoji { font-size: 0.95rem; }

/* Leben card */
.leben-card { background: var(--gray-50); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.leben-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--gray-900); }
.leben-card p { font-size: 0.9rem; color: var(--gray-700); line-height: 1.65; }

/* Narrative text */
.narrative-text { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 0.75rem; }

/* FAQ */
.faq-section { margin: 1.5rem 0; }
.faq-section h2 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--gray-900); }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 0.5rem; background: #fff; }
.faq-item summary { padding: 0.85rem 1rem; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--gray-700); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--gray-500); font-weight: 400; flex-shrink: 0; margin-left: 0.75rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 1rem 1rem; font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================ */
/* HEADER                                       */
/* ============================================ */
.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-logo { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.site-logo span { color: var(--primary); }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--gray-700); transition: background 0.15s, color 0.15s; }
.site-nav a:hover { background: var(--gray-100); text-decoration: none; color: var(--primary); }

/* ============================================ */
/* HERO SECTION (Home)                          */
/* ============================================ */
.page-hero { padding: 3rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; line-height: 1.25; }
.page-hero .hero-sub { color: var(--gray-500); font-size: 1rem; max-width: 560px; margin: 0 auto 2rem; line-height: 1.6; }
@media (min-width: 768px) { .page-hero h1 { font-size: 2.25rem; } }

/* ============================================ */
/* STAT PILLS (inline stats row)                */
/* ============================================ */
.stat-pills { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.stat-pill { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--gray-200); border-radius: 24px; padding: 0.5rem 1rem; }
.stat-pill .sp-num { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.stat-pill .sp-label { font-size: 0.8rem; color: var(--gray-500); }

/* ============================================ */
/* PAGE HEADER (Land, Gemeinde, Ranking...)      */
/* ============================================ */
.page-header { padding: 1.25rem 0 0.75rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.page-header .ph-sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* ============================================ */
/* SECTION TITLE                                */
/* ============================================ */
.section-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin: 1.75rem 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title .st-icon { font-size: 1.1rem; }
.section-title .st-count { font-size: 0.8rem; font-weight: 500; color: var(--gray-500); background: var(--gray-100); padding: 0.15rem 0.5rem; border-radius: 10px; }

/* ============================================ */
/* CARD LINK (clickable cards)                  */
/* ============================================ */
.card-link { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.5rem; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(26,86,219,0.08); text-decoration: none; }
.card-link .cl-title { font-weight: 600; font-size: 0.95rem; color: var(--gray-900); }
.card-link .cl-meta { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.15rem; }
.card-link .cl-right { text-align: right; white-space: nowrap; }
.card-link .cl-right .cl-score { font-size: 1rem; font-weight: 700; color: var(--primary); }
.card-link .cl-right .cl-score-label { font-size: 0.7rem; color: var(--gray-500); }

/* ============================================ */
/* GRID CARD (visual stat cards)                */
/* ============================================ */
.grid-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.grid-card .gc-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.grid-card .gc-value { font-size: 1.4rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.grid-card .gc-label { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.2rem; }

/* ============================================ */
/* SEARCH/FILTER BAR                            */
/* ============================================ */
.filter-bar { position: relative; margin-bottom: 1rem; }
.filter-bar input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; background: #fff; outline: none; transition: border-color 0.15s; }
.filter-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.filter-bar input::placeholder { color: var(--gray-300); }
.filter-bar .fb-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--gray-300); font-size: 0.9rem; pointer-events: none; }

/* ============================================ */
/* STREET LIST ITEM (Gemeinde page)             */
/* ============================================ */
.street-item { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--gray-100); text-decoration: none; color: inherit; transition: background 0.1s; gap: 0.5rem; }
.street-item:last-child { border-bottom: none; }
.street-item:hover { background: var(--primary-light); text-decoration: none; }
.street-item .si-name { font-weight: 500; font-size: 0.9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.street-item .si-badges { display: flex; gap: 0.4rem; align-items: center; flex-shrink: 0; }
.street-item .si-score { font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 4px; padding: 0.15rem 0.4rem; min-width: 28px; text-align: center; }
.street-item .si-price { font-size: 0.75rem; color: var(--gray-500); }

/* ============================================ */
/* RANK LIST (Rankings page)                    */
/* ============================================ */
.rank-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.rank-item:last-child { border-bottom: none; }
.rank-pos { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; background: var(--gray-100); color: var(--gray-700); }
.rank-pos.gold { background: #fef3c7; color: #92400e; }
.rank-pos.silver { background: #f1f5f9; color: #475569; }
.rank-pos.bronze { background: #fce7d6; color: #9a3412; }
.rank-info { flex: 1; min-width: 0; }
.rank-info a { font-weight: 600; font-size: 0.9rem; }
.rank-value { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); white-space: nowrap; }

/* ============================================ */
/* TAG CHIPS                                    */
/* ============================================ */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.tag-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: transform 0.1s, box-shadow 0.1s; }
.tag-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.08); text-decoration: none; }
.tag-chip.tc-blue { background: var(--primary-light); color: #1e40af; }
.tag-chip.tc-green { background: #d1fae5; color: #065f46; }
.tag-chip.tc-purple { background: #ede9fe; color: #5b21b6; }
.tag-chip .tc-icon { font-size: 0.9rem; }

/* ============================================ */
/* EMPTY STATE                                  */
/* ============================================ */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--gray-500); font-size: 0.9rem; }

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 2.5rem 0 2rem; margin-top: 3rem; font-size: 0.8rem; }
.site-footer a { color: var(--gray-300); transition: color 0.15s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-brand span { color: #60a5fa; }
.footer-desc { color: var(--gray-500); line-height: 1.6; margin-bottom: 0.75rem; }
.footer-links h4 { color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #374151; color: var(--gray-500); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ============================================ */
/* UTILS                                        */
/* ============================================ */
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.hidden { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
