/* ==========================================================================
   zahn.hamburg — Stylesheet
   Aesthetik: Hamburger Klarheit. Editorial. Warm-mintige Akzente.
   ========================================================================== */

:root {
  --bg: #FBFAF7;
  --bg-elevated: #FFFFFF;
  --bg-soft: #F4F2EC;
  --bg-dark: #1A2826;
  --ink: #15211F;
  --ink-soft: #4A5856;
  --ink-muted: #8A938F;
  --line: #E5E1D6;
  --line-strong: #D4CFC0;

  --accent: #2D5F4F;          /* Hanseatisches Tannengrün */
  --accent-soft: #DCE8E0;
  --accent-bright: #6FB89A;   /* Frisches Mint */
  --gold: #C9A96A;            /* Premium-Akzent (subtil) */
  --gold-soft: #F5EDD9;
  --rose: #E8B4A0;
  --warning: #D97757;

  --shadow-sm: 0 1px 2px rgba(21, 33, 31, 0.04);
  --shadow-md: 0 4px 16px rgba(21, 33, 31, 0.06);
  --shadow-lg: 0 12px 40px rgba(21, 33, 31, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-mark { color: var(--accent); }
.logo-dot { color: var(--accent-bright); }

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px !important;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

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

.hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-soft);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--gold-soft);
  bottom: -150px;
  left: -100px;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(111, 184, 154, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 184, 154, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(111, 184, 154, 0.05); }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.12em;
  background: var(--accent-bright);
  opacity: 0.35;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.55;
}

/* SEARCH BAR */

.search-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 8px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.search-field {
  flex: 1;
  text-align: left;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-field label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-field input {
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  padding: 0;
}

.search-field input::placeholder { color: var(--ink-muted); }

.search-divider {
  width: 1px;
  background: var(--line);
  margin: 12px 0;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  background: var(--accent);
  color: white;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

.search-btn:hover { background: #1F4537; }
.search-btn:active { transform: scale(0.98); }

/* QUICK TAGS */

.quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-right: 4px;
}

.tag {
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */

.search-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar select {
  padding: 11px 36px 11px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5856' stroke-width='2' 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;
  transition: border-color 0.2s;
}

.filter-bar select:hover { border-color: var(--accent); }

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* RESULTS LIST */

.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.praxis-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}

.praxis-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.praxis-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #FEFBF3 0%, var(--bg-elevated) 100%);
}

.praxis-card.featured::before {
  content: 'Empfohlen';
  position: absolute;
  top: -10px;
  left: 22px;
  background: var(--gold);
  color: white;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-row {
  display: flex;
  gap: 18px;
}

.card-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.praxis-card.featured .card-avatar {
  background: var(--gold-soft);
  color: #8A6E2E;
}

.card-body { flex: 1; min-width: 0; }

.card-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.card-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-subname {
  font-size: 13px;
  color: var(--ink-muted);
}

.card-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.card-meta .dot { margin: 0 6px; color: var(--line-strong); }

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-tag {
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  font-weight: 500;
}

.card-tag.primary {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.rating-star {
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

.rating-num { font-weight: 600; color: var(--ink); }
.rating-count { color: var(--ink-muted); font-size: 13px; }

.availability {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  margin-left: auto;
}

.availability::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-bright);
  border-radius: 50%;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* MAP */

.map-wrapper {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

#map {
  height: 640px;
  width: 100%;
}

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 14px;
  background: var(--bg-elevated);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
}

.legend-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pin-featured { background: var(--gold); }
.pin-standard { background: var(--accent); }

/* Custom Leaflet markers */
.custom-pin {
  background: transparent !important;
  border: none !important;
}

.pin-inner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.pin-inner.featured {
  background: var(--gold);
  width: 32px;
  height: 32px;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(201, 169, 106, 0.5);
}

.pin-inner.standard {
  background: var(--accent);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  font-family: var(--sans) !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  font-size: 13px !important;
}

.popup-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.popup-meta { color: var(--ink-muted); font-size: 12px; }

/* ==========================================================================
   DISTRICTS
   ========================================================================== */

.districts {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-intro h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-intro h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-intro p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.district-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 120px;
  transition: all 0.25s;
}

.district-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.district-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.district-count {
  font-size: 13px;
  color: var(--ink-muted);
}

.district-more {
  background: var(--ink);
  color: white;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
  border-color: var(--ink);
}

.district-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services {
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   TRUST
   ========================================================================== */

.trust {
  padding: 100px 0;
  background: var(--bg-dark);
  color: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.trust-text .eyebrow {
  color: var(--accent-bright);
}

.trust-text h2 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: white;
}

.trust-text h2 em {
  font-style: italic;
  color: var(--accent-bright);
}

.trust-text p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.trust-point {
  padding-left: 60px;
  position: relative;
}

.trust-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent-bright);
  font-style: italic;
}

.trust-point h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-point p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 70px 0 30px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 240px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}

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

@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 1fr; }
  .map-wrapper { position: static; }
  #map { height: 420px; }
  .district-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .trust-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 60px 0 40px; }
  .hero-subtitle { font-size: 16px; }
  .search-bar { flex-direction: column; padding: 16px; border-radius: var(--radius-lg); }
  .search-divider { width: 100%; height: 1px; margin: 4px 0; }
  .search-btn { padding: 14px; justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header h2 { font-size: 30px; }
  .section-intro h2 { font-size: 32px; }
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-text h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar select { font-size: 13px; padding: 9px 32px 9px 12px; }
}
