:root {
  --orange: #16b8c4;
  --orange2: #62d6e0;
  --kfr-cyan: #16b8c4;
  --kfr-cyan-dark: #087f91;
  --kfr-cyan-soft: #e6f8fa;
  --kfr-cyan-line: #bcecf1;
  --kfr-cyan-glow: rgba(22, 184, 196, 0.18);
}

.side-nav a.active,
.side-nav button.active,
.side-nav [data-action].active {
  background: var(--kfr-cyan-soft) !important;
  color: var(--kfr-cyan-dark) !important;
  box-shadow: inset 4px 0 0 var(--kfr-cyan) !important;
}

.account-avatar,
.profile-pill span,
.account-welcome > span {
  background: var(--kfr-cyan-soft);
  color: var(--kfr-cyan-dark) !important;
}

.hero h1 em { color: var(--orange2); }

.quick-tags button:hover,
.filter-tabs button.active,
.filter-tabs button:hover,
.hero-action-primary,
.hero-search-card label button,
.empty-state button,
.status-card button,
.submit-button,
.shop-card:hover .shop-cta,
.shop-fav.active,
.package-card a,
.more-shops-card button {
  background: var(--kfr-cyan);
}

.shop-cta,
.review-cta {
  border-color: var(--kfr-cyan);
  color: var(--kfr-cyan-dark);
}

.benefit-strip span,
.panel-item > span,
.terms-flow span,
.more-shops-card > span {
  background: var(--kfr-cyan-soft);
  color: var(--kfr-cyan-dark);
}

.aside-orb {
  background: var(--kfr-cyan-soft);
  color: var(--kfr-cyan-dark);
}

.auth-tabs button.active::after,
.progress i { background: var(--kfr-cyan); }

.package-card.is-featured {
  border-color: rgba(22, 184, 196, 0.58);
  box-shadow: 0 14px 34px var(--kfr-cyan-glow);
}

.package-card .package-badge {
  border-color: rgba(22, 184, 196, 0.3);
  background: var(--kfr-cyan-soft);
  color: var(--kfr-cyan-dark);
}

.side-nav a:focus-visible,
.side-nav button:focus-visible {
  outline-color: rgba(22, 184, 196, 0.5);
}

.terms-actions button:hover {
  border-color: var(--kfr-cyan);
  color: var(--kfr-cyan-dark);
  background: #f2fcfd;
}

@media (max-width: 760px) {
  html { scroll-padding-bottom: 86px; }
  body,
  .app-shell { background: #f3f7f9; }
  .sidebar { position: relative; padding: 12px 16px 7px; border-bottom: 0; background: #fff; backdrop-filter: none; }
  .brand { height: 40px; justify-content: center; }
  .verbund-mark { color: var(--kfr-cyan); }
  .brand strong { font-size: 24px; }
  .side-nav:first-of-type { position: fixed; z-index: 60; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 7px; overflow: visible; border: 1px solid rgba(188, 236, 241, 0.9); border-radius: 22px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18); backdrop-filter: blur(18px); }
  .side-nav:first-of-type a { width: 100%; height: 52px; min-width: 0; padding: 6px 3px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 0; border-radius: 15px; box-shadow: none; font-size: 9px; line-height: 1.05; text-align: center; }
  .side-nav:first-of-type a:nth-child(n + 5), .side-nav.secondary, .side-bottom { display: none; }
  .side-nav:first-of-type a .mp-icon { width: 20px; height: 20px; }
  .side-nav:first-of-type a.active { border-color: transparent; background: var(--kfr-cyan-soft) !important; color: var(--kfr-cyan-dark) !important; box-shadow: none !important; }
  .side-nav:first-of-type [data-action="own-shop"] { background: transparent !important; color: #111827 !important; }
  .side-nav:first-of-type [data-action="own-shop"].active { background: var(--kfr-cyan-soft) !important; color: var(--kfr-cyan-dark) !important; }
  .content { padding: 5px 12px calc(104px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 10px; }
  .top-search { height: 48px; border: 1px solid #e4ecef; border-radius: 16px; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06); }
  .top-actions { display: none; }
  .hero { min-height: 246px; margin-bottom: 16px; padding: 20px 17px; border-radius: 24px; background-position: 58% center; box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16); }
  .hero h1 { max-width: 305px; font-size: clamp(28px, 8.1vw, 35px); }
  .hero-copy > p:not(.eyebrow) { max-width: 315px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .hero-actions { margin-bottom: 0; }
  .hero-actions button { min-height: 42px; padding-inline: 14px; border-radius: 13px; font-size: 11px; }
  .hero-action-primary { box-shadow: 0 9px 22px rgba(22, 184, 196, 0.3); }
  .hero-benefits { display: none; }
  .hero-search-card { margin-top: 12px; padding: 16px; border-radius: 20px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1); }
  .hero-search-card h2 { margin-bottom: 3px; font-size: 18px; }
  .hero-search-card > p { margin-bottom: 12px; font-size: 12px; }
  .hero-search-card label { min-height: 48px; }
  .quick-tags { gap: 7px; margin-top: 10px; }
  .quick-tags button { min-height: 34px; padding: 7px 11px; }
  .quick-tags button:nth-child(n + 4) { display: none; }
  .hero-gastro-cta { margin-top: 12px; padding-top: 12px; }
  .hero-gastro-cta strong { font-size: 12px; }
  .hero-gastro-cta span { display: none; }
  .hero-gastro-cta button { min-height: 34px; padding-inline: 12px; }
  .shops-panel { padding-top: 0; }
  .section-head { margin-bottom: 11px; }
  .section-head h2 { max-width: 260px; font-size: 20px; letter-spacing: -0.025em; }
  .section-head p { font-size: 12px; }
  .section-head > button { color: var(--kfr-cyan-dark); font-size: 11px; }
  .filter-tabs { gap: 7px; margin-bottom: 13px; overflow-x: auto; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs button { flex: 0 0 auto; height: 36px; border-color: #dfe8eb; background: #fff; }
  .filter-tabs button.active { border-color: var(--kfr-cyan); color: #fff; box-shadow: 0 7px 18px var(--kfr-cyan-glow); }
  .shop-grid { gap: 12px; }
  .shop-card { grid-template-columns: 116px minmax(0, 1fr); min-height: 150px; border-color: #e3eaed; border-radius: 20px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07); }
  .shop-image { min-height: 150px; }
  .shop-body { padding: 12px; gap: 6px; }
  .shop-title-row h3 { font-size: 16px; }
  .shop-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #5d6878; }
  .shop-meta span { background: #f2f7f8; }
  .shop-cta { min-height: 36px; border: 0; background: var(--kfr-cyan-soft); color: var(--kfr-cyan-dark); }
  .shop-card:active { transform: scale(0.99); }
  .more-shops-card { background: linear-gradient(135deg, #0d2730, #123b46); }
  .more-shops-card > span { background: var(--kfr-cyan-soft); color: var(--kfr-cyan-dark); }
  .benefit-strip { display: none; }
  .dashboard { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .dash-card { display: none; border-color: #e3eaed; border-radius: 20px; box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05); }
  .dash-card:first-child, .dash-card:nth-child(2) { display: block; }
  .dash-card:first-child { background: linear-gradient(145deg, #0f2e38, #174754); color: #fff; }
  .dash-card:first-child p, .dash-card:first-child h3, .dash-card:first-child h4 { color: inherit; }
  .live-panel { border-color: #dfeaec; box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12); }
  .account-dialog, .lead-dialog { width: calc(100vw - 16px); margin: auto; }
  .dialog-shell, .lead-dialog-shell { border-radius: 24px; }
  .dialog-content { padding: 25px 18px 22px; }
  input, textarea, button { font-size: 16px; }
  .quick-tags button, .filter-tabs button, .hero-actions button, .shop-cta, .side-nav:first-of-type a { font-size: revert; }
}

@media (max-width: 390px) {
  .content { padding-inline: 10px; }
  .sidebar { padding-inline: 12px; }
  .hero { min-height: 230px; padding: 17px 15px; }
  .hero h1 { font-size: 27px; }
  .hero-action-secondary { display: none; }
  .hero-search-card { padding: 14px; }
  .shop-card { grid-template-columns: 102px minmax(0, 1fr); }
  .shop-title-row h3 { font-size: 15px; }
}

.side-nav [data-action="own-shop"] .mp-icon {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h16l-1.4-5H5.4L4 10Z'/%3E%3Cpath d='M5 10v9h14v-9'/%3E%3Cpath d='M9 19v-5h6v5'/%3E%3Cpath d='M4 10c0 1.4 1.1 2.5 2.5 2.5S9 11.4 9 10c0 1.4 1.1 2.5 2.5 2.5S14 11.4 14 10c0 1.4 1.1 2.5 2.5 2.5S19 11.4 19 10'/%3E%3C/svg%3E") !important;
}

/* Hochwertiger Laufzeitrechner */
#gastroAssistant.gastro-assistant--exact {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 32px 34px;
  border: 1px solid rgba(22, 184, 196, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fdfe 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

#gastroAssistant .gastro-assistant-mascot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
}

#gastroAssistant .kfr-mascot-img {
  width: min(100%, 178px);
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(15, 23, 42, 0.12));
}

#gastroAssistant .gastro-assistant-body {
  min-width: 0;
}

#gastroAssistant .gastro-assistant-body > h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

#gastroAssistant .gastro-assistant-intro {
  max-width: 760px;
  margin: 10px 0 24px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

#gastroAssistant .gastro-duration-calculator {
  display: grid;
  gap: 16px;
}

#gastroAssistant .gastro-duration-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#gastroAssistant .gastro-duration-result > div {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #e3edf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

#gastroAssistant .gastro-duration-result > div:last-child {
  border-color: rgba(22, 184, 196, 0.35);
  background: linear-gradient(135deg, rgba(22, 184, 196, 0.14), rgba(98, 214, 224, 0.05));
}

#gastroAssistant .gastro-duration-result span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#gastroAssistant .gastro-duration-result strong {
  display: block;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

#gastroAssistant .gastro-duration-label {
  margin: 4px 0 -8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

#gastroAssistant .gastro-duration-slider {
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
}

#gastroAssistant .gastro-duration-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--kfr-cyan) 0 var(--range-progress), #dfe9ec var(--range-progress) 100%);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

#gastroAssistant .gastro-duration-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -8px;
  appearance: none;
  -webkit-appearance: none;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--kfr-cyan);
  box-shadow: 0 5px 16px rgba(22, 184, 196, 0.38), 0 0 0 1px rgba(22, 184, 196, 0.25);
}

#gastroAssistant .gastro-duration-slider::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #dfe9ec;
}

#gastroAssistant .gastro-duration-slider::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--kfr-cyan);
}

#gastroAssistant .gastro-duration-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--kfr-cyan);
  box-shadow: 0 5px 16px rgba(22, 184, 196, 0.38);
}

#gastroAssistant .gastro-duration-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(22, 184, 196, 0.2), 0 5px 16px rgba(22, 184, 196, 0.38);
}

#gastroAssistant .gastro-duration-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -12px;
  color: #7b8999;
  font-size: 12px;
  font-weight: 700;
}

#gastroAssistant .gastro-duration-hint {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 184, 196, 0.2);
  border-radius: 15px;
  background: var(--kfr-cyan-soft);
  color: #145b65;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

#gastroAssistant #durationLeadButton {
  width: 100%;
  min-height: 56px;
  padding: 14px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #16b8c4, #0796a8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(22, 184, 196, 0.27);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#gastroAssistant #durationLeadButton:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 36px rgba(22, 184, 196, 0.34);
}

#gastroAssistant #durationLeadButton:active {
  transform: translateY(0);
}

@media (max-width: 900px) {
  #gastroAssistant.gastro-assistant--exact {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }
  #gastroAssistant .gastro-assistant-mascot { min-height: 170px; }
  #gastroAssistant .gastro-assistant-body > h3 { font-size: 32px; }
}

@media (max-width: 680px) {
  #gastroAssistant.gastro-assistant--exact {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
  }
  #gastroAssistant .gastro-assistant-mascot { min-height: 0; }
  #gastroAssistant .kfr-mascot-img { width: 110px; }
  #gastroAssistant .gastro-assistant-body > h3 { font-size: 28px; }
  #gastroAssistant .gastro-assistant-intro { margin-bottom: 18px; font-size: 14px; }
  #gastroAssistant .gastro-duration-result { grid-template-columns: 1fr 1fr; gap: 10px; }
  #gastroAssistant .gastro-duration-result > div { padding: 15px; border-radius: 16px; }
  #gastroAssistant .gastro-duration-result span { font-size: 10px; }
  #gastroAssistant .gastro-duration-result strong { font-size: 25px; }
}
