* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f7fa;
  color: #1f2f3a;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  padding-bottom: 96px;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #dbeaf1;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.topbar {
  min-height: 74px;
  background: #ffffff;
  border-bottom: 1px solid #dbe6ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 72px);
}

.brand {
  display: flex;
  align-items: center;
  width: min(210px, 54vw);
  min-width: 0;
}

.brand-logo {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.login-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #40525f;
  white-space: nowrap;
  min-width: 0;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.profile-login[hidden],
.auth-user[hidden],
.message-button[hidden],
.mein-bereich-button[hidden],
.home-button[hidden],
.message-button-wrap:has(> .message-button[hidden]) {
  display: none !important;
}

.profile-login,
.message-button,
.mein-bereich-button,
.home-button,
.logout-button,
.text-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.profile-login,
.message-button,
.mein-bereich-button,
.home-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bad4df;
  border-radius: 50%;
  background: #eaf5f9;
  color: #17617a;
  text-decoration: none;
}

.profile-login:hover,
.profile-login:focus-visible,
.message-button:hover,
.message-button:focus-visible,
.mein-bereich-button:hover,
.mein-bereich-button:focus-visible,
.home-button:hover,
.home-button:focus-visible,
.logout-button:hover,
.logout-button:focus-visible {
  border-color: #17617a;
  box-shadow: 0 0 0 3px rgba(23, 97, 122, 0.12);
  outline: 0;
}

.profile-login svg,
.message-button svg,
.mein-bereich-button svg,
.home-button svg,
.logout-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.logout-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bad4df;
  border-radius: 50%;
  background: #ffffff;
  color: #17617a;
}

.text-button {
  background: transparent;
  color: #17617a;
  font-weight: 700;
  padding-inline: 0;
}

.auth-message {
  min-width: 0;
  max-width: 180px;
  color: #60727e;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-message[data-type="success"] {
  color: #17617a;
}

.auth-message[data-type="error"] {
  color: #b33535;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e7f3f8;
  color: #17617a;
  font-weight: 800;
}

.search-strip {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #d9edf5;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.search-form {
  flex: 1 1 620px;
  width: min(720px, 100%);
  max-width: 760px;
  min-height: 40px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #c5dbe6;
  box-shadow: 0 6px 18px rgba(37, 83, 104, 0.08);
  overflow: hidden;
}

.search-field {
  min-width: 0;
  flex: 0 1 150px;
  padding: 6px 14px;
  border-right: 1px solid #d5e2e9;
  display: grid;
  gap: 2px;
}

.search-field span {
  color: #617482;
  font-size: 10px;
}

.search-text {
  flex: 1;
  min-width: 180px;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2f3a;
  font: inherit;
  min-width: 0;
}

.search-field.compact {
  flex-basis: 110px;
}

.find-button {
  margin: 0 6px 0 10px;
  min-width: 76px;
  height: 30px;
  border: 0;
  border-radius: 18px;
  background: #17617a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.quick-actions {
  display: none !important;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 36px;
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) minmax(150px, 180px);
  gap: 12px;
}

.panel {
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 8px;
}

.visual-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.visual-panel img {
  height: 150px;
  border-radius: 7px;
  filter: saturate(0.78) contrast(0.98);
}

.visual-copy {
  position: static;
  margin-top: 12px;
  color: #1f4556;
}

.visual-copy strong {
  display: block;
  font-size: 17px;
  line-height: 1.18;
  margin-bottom: 8px;
}

.visual-copy span {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.content {
  min-width: 0;
}

.hero-band {
  height: 184px;
  position: relative;
  overflow: hidden;
  background: #dcebf2;
  margin-bottom: 14px;
  border-radius: 8px;
}

.hero-band img {
  height: 100%;
  filter: saturate(0.7) contrast(0.95);
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 75, 95, 0.82), rgba(23, 75, 95, 0.45), rgba(23, 75, 95, 0.12));
}

.hero-text {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 24px;
  max-width: 560px;
  color: #ffffff;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text p {
  margin: 0;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.market-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
}

.categories {
  padding: 12px 12px 14px;
  align-self: start;
}

.panel-title-row,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.categories .panel-title-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.panel-title-row h2,
.section-title-row h2,
.right-rail h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  min-width: 0;
}

.panel-title-row a,
.section-title-row a {
  color: #17617a;
  font-size: 11px;
  white-space: nowrap;
}

.categories section {
  border-top: 1px solid #e4eef4;
  padding: 9px 0;
}

.categories section:first-child {
  border-top: 0;
  padding-top: 0;
}

.categories h3 {
  margin: 0 0 7px;
  font-size: 12px;
}

.categories a {
  display: block;
  padding: 3px 0;
  color: #2f4350;
  font-size: 12px;
}

.categories a:hover,
.quick-actions a:not(.mein-bereich-button):not(.message-button):hover,
.panel-title-row a:hover,
.section-title-row a:hover {
  color: #0c6f92;
  text-decoration: underline;
}

.listings {
  min-width: 0;
}

.gallery {
  padding: 12px;
  margin-bottom: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  min-width: 0;
}

.mini-card img {
  height: 78px;
  border: 1px solid #dce8ef;
  border-radius: 7px;
  filter: saturate(0.78) contrast(0.96);
}

.mini-card .listing-image-fallback,
.listing-card .listing-image-fallback {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce8ef;
  background: linear-gradient(135deg, #eaf5f9, #f8fbfd);
  color: #17617a;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-card .listing-image-fallback {
  height: 78px;
  border-radius: 7px;
  font-size: 22px;
}

.mini-card span {
  display: block;
  min-height: 34px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mini-card strong,
.listing-card strong {
  color: #17617a;
  font-size: 13px;
}

.recommendations {
  min-width: 0;
}

.section-title-row {
  margin: 0 0 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.listing-card {
  position: relative;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  overflow: hidden;
}

.listing-card img {
  height: 118px;
  filter: saturate(0.78) contrast(0.96);
}

.listing-card .listing-image-fallback {
  height: 118px;
  border-width: 0 0 1px;
  border-radius: 0;
  font-size: 28px;
}

.listing-card button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid #c9dbe5;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2b4c5d;
  cursor: pointer;
}

.listing-card div {
  padding: 9px 10px 12px;
}

.listing-card small {
  display: block;
  color: #667986;
  font-size: 11px;
  margin-bottom: 4px;
}

.listing-card h3 {
  margin: 0 0 8px;
  min-height: 46px;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.right-rail {
  align-self: start;
  padding: 12px;
  position: sticky;
  top: 18px;
}

.right-rail article {
  margin-top: 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.right-rail img {
  height: 126px;
  margin-bottom: 9px;
  border-radius: 7px;
  filter: saturate(0.78) contrast(0.96);
}

.rail-placeholder {
  height: 126px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce8ef;
  border-radius: 7px;
  background: linear-gradient(135deg, #eaf5f9, #f8fbfd);
  color: #17617a;
  font-size: 34px;
  font-weight: 900;
}

.right-rail h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.18;
}

.right-rail strong {
  color: #17617a;
}

.rail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.rail-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #eaf5f9;
  color: #155d75;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 7px;
  overflow-wrap: normal;
  word-break: normal;
}

.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid #dbe6ee;
  color: #40525f;
}

.image-crop-modal[hidden] {
  display: none;
}

.image-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 31, 43, 0.52);
}

.image-crop-dialog {
  width: min(620px, 100%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  padding: 16px;
}

.image-crop-head,
.image-crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-crop-head button {
  width: 34px;
  height: 34px;
  border: 1px solid #bad4df;
  border-radius: 50%;
  background: #ffffff;
  color: #17617a;
  cursor: pointer;
  font-size: 22px;
}

.image-crop-frame {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #eaf5f9;
}

.image-crop-frame.is-cover {
  aspect-ratio: 14 / 5.2;
}

.image-crop-frame.is-profile {
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
}

.image-crop-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-control {
  display: grid;
  gap: 6px;
  color: #536977;
  font-size: 12px;
  font-weight: 800;
}

.upload-progress {
  height: 8px;
  overflow: hidden;
  margin: 12px 0;
  border-radius: 999px;
  background: #eaf5f9;
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #17617a;
  transition: width 160ms ease;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  align-items: end;
  gap: 10px 24px;
}

.footer-brand,
.footer-contact,
.footer-note {
  min-width: 0;
}

.footer-brand strong {
  display: block;
  color: #17617a;
  font-size: 15px;
  line-height: 1.2;
}

.footer-brand span {
  display: block;
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  color: #17617a;
  font-size: 12px;
  font-weight: 800;
}

.footer-links a {
  color: #17617a;
}

.footer-links a:hover {
  color: #0c6f92;
  text-decoration: underline;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 44px;
}

.legal-panel {
  padding: clamp(20px, 4vw, 34px);
}

.legal-panel small {
  color: #17617a;
  font-weight: 800;
}

.legal-panel h1 {
  margin: 6px 0 18px;
  color: #1f2f3a;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
}

.legal-panel h2 {
  margin: 24px 0 8px;
  color: #1f2f3a;
  font-size: 18px;
  line-height: 1.25;
}

.legal-panel p,
.legal-panel address {
  margin: 0;
  color: #40525f;
  font-style: normal;
  line-height: 1.55;
}

.legal-panel a {
  color: #17617a;
  font-weight: 800;
}

.legal-panel a:hover {
  color: #0c6f92;
  text-decoration: underline;
}

.account-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 42px;
  display: grid;
  gap: 12px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: #ffffff;
}

.account-hero small {
  color: #17617a;
  font-weight: 800;
}

.account-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: 0;
}

.account-hero p {
  max-width: 650px;
  margin: 0;
  color: #40525f;
  line-height: 1.45;
}

.account-state {
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cfe2ea;
  color: #17617a;
  font-weight: 800;
  line-height: 1.35;
}

.login-required,
.account-form {
  padding: 22px;
}

.login-required h2 {
  margin: 0 0 8px;
}

.login-required p {
  margin: 0;
  color: #40525f;
  line-height: 1.45;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form[hidden],
.login-required[hidden],
.provider-fields[hidden],
.profile-dashboard[hidden] {
  display: none;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.profile-card {
  min-width: 0;
  padding: 0;
}

.public-profile-preview {
  overflow: hidden;
  border-bottom: 1px solid #dce8ef;
  background: #ffffff;
}

.profile-cover-preview {
  position: relative;
  height: clamp(300px, 36vw, 420px);
  background: linear-gradient(135deg, #d8edf4, #f8fbfd);
  background-size: cover;
  background-position: center;
}

.profile-cover-preview.has-image {
  background-color: #d8edf4;
}

.profile-preview-body {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  padding: 0 34px 24px;
}

.profile-avatar-wrap {
  position: relative;
  width: 184px;
  height: 184px;
  margin-top: -72px;
}

.profile-avatar-preview {
  width: 184px;
  height: 184px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: #17617a;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 83, 104, 0.14);
}

.profile-avatar-preview.has-image svg {
  display: none;
}

.profile-avatar-preview svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-preview-copy {
  min-width: 0;
  padding: 12px 0 4px;
}

.profile-preview-copy h2 {
  margin: 0;
  color: #1f2f3a;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-preview-copy strong {
  display: block;
  margin-top: 4px;
  color: #17617a;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.profile-preview-copy p {
  margin: 6px 0 0;
  color: #60727e;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.profile-media-button {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bad4df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #17617a;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  padding: 0 12px;
  box-shadow: 0 8px 18px rgba(37, 83, 104, 0.12);
}

.profile-media-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-media-button:hover,
.profile-media-button:focus-visible {
  background: #17617a;
  color: #ffffff;
  outline: 0;
}

.cover-media-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.avatar-media-button {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.avatar-media-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.main-profile-card {
  grid-row: span 2;
}

.profile-card-head,
.form-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.profile-card-head small {
  color: #17617a;
  font-weight: 800;
}

.profile-card-head h2,
.form-topline h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.form-topline p {
  margin: 6px 0 0;
  color: #60727e;
  line-height: 1.4;
}

.role-badge,
.counter-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf5f9;
  color: #17617a;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.profile-facts,
.rate-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.profile-facts div,
.rate-summary div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.profile-facts dt,
.rate-summary dt {
  color: #60727e;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-facts dd,
.rate-summary dd {
  margin: 0;
  color: #1f2f3a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-tags span {
  border-radius: 999px;
  background: #edf6fa;
  color: #155d75;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.profile-service-tags {
  margin-top: 9px;
}

.profile-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  border-top: 1px solid #dce8ef;
  border-bottom: 1px solid #dce8ef;
  background: #ffffff;
  overflow-x: auto;
}

.profile-category-tab {
  min-height: 52px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #536977;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

.profile-category-tab:hover,
.profile-category-tab:focus-visible,
.profile-category-tab.is-active {
  color: #17617a;
  outline: 0;
}

.profile-category-tab.is-active {
  border-bottom-color: #17617a;
}

.profile-category-panels {
  padding: 18px 24px 24px;
  min-height: 380px;
}

.profile-category-panel {
  display: none;
  min-width: 0;
}

.profile-category-panel.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-post-card,
.profile-gallery-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 83, 104, 0.05);
}

.profile-post-card small,
.profile-gallery-head small {
  color: #17617a;
  font-weight: 800;
}

.profile-post-card p {
  margin: 7px 0 0;
  color: #40525f;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.profile-editor-card {
  grid-column: 1 / -1;
}

.profile-editor-head,
.profile-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-editor-head {
  justify-content: space-between;
}

.profile-editor-toolbar {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.profile-editor-toolbar label {
  display: grid;
  gap: 4px;
  color: #536977;
  font-size: 11px;
  font-weight: 800;
}

.profile-editor-toolbar select,
.profile-editor-toolbar input[type="color"] {
  min-height: 34px;
  border: 1px solid #c5dbe6;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2f3a;
  font: inherit;
  padding: 0 10px;
}

.profile-editor-toolbar input[type="color"] {
  width: 54px;
  padding: 3px;
}

#aboutPostEditor {
  width: 100%;
  min-height: 170px;
  margin-top: 12px;
  border: 1px solid #c5dbe6;
  border-radius: 8px;
  background: #ffffff;
  color: #40525f;
  font: inherit;
  line-height: 1.55;
  outline: 0;
  padding: 14px;
  resize: vertical;
}

#aboutPostEditor:focus {
  border-color: #17617a;
  box-shadow: 0 0 0 3px rgba(23, 97, 122, 0.12);
}

.profile-post-save {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #17617a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 18px;
  box-shadow: 0 4px 6px -1px rgba(23, 97, 122, 0.15), 0 2px 4px -1px rgba(23, 97, 122, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-post-save:hover {
  background: #124d61;
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -1px rgba(23, 97, 122, 0.2), 0 2px 4px -1px rgba(23, 97, 122, 0.15);
}

.profile-post-save:active {
  transform: translateY(0);
}

/* Edit button styling (outline) */
#editAboutPostButton {
  background: transparent;
  border: 1px solid #17617a;
  color: #17617a;
  box-shadow: none;
}

#editAboutPostButton:hover {
  background: rgba(23, 97, 122, 0.05);
  color: #124d61;
  border-color: #124d61;
  transform: translateY(-1px);
}

#editAboutPostButton:active {
  transform: translateY(0);
}

.profile-post-preview {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dce8ef;
}

.profile-editor-area[hidden] {
  display: none;
}

.profile-editor-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.profile-post-cancel {
  min-height: 38px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-post-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}

.profile-post-cancel:active {
  transform: translateY(0);
}

.profile-gallery-section {
  margin: 0;
  grid-column: 1 / -1;
}

.profile-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-gallery-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.profile-gallery-preview span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #d8edf4;
  background-size: cover;
  background-position: center;
}

.profile-gallery-preview em {
  grid-column: 1 / -1;
  color: #60727e;
  font-style: normal;
  font-size: 12px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 10px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: #40525f;
  font-weight: 800;
  line-height: 1.35;
}

.dashboard-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dashboard-item,
.empty-state {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.dashboard-item strong,
.empty-state strong {
  display: block;
  color: #1f2f3a;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-item span,
.empty-state span {
  display: block;
  margin-top: 5px;
  color: #60727e;
  font-size: 12px;
  line-height: 1.35;
}

.small-action,
.edit-button {
  min-height: 34px;
  border: 1px solid #bad4df;
  border-radius: 18px;
  background: #eaf5f9;
  color: #17617a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0 13px;
  white-space: nowrap;
}

.account-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #dce8ef;
}

.account-form.is-locked input:disabled,
.account-form.is-locked select:disabled,
.account-form.is-locked textarea:disabled {
  background: #eef5f8;
  color: #516774;
  cursor: not-allowed;
}

.account-form.is-locked .choice-card,
.account-form.is-locked .checkbox-grid label {
  background: #f1f7fa;
}

.account-form fieldset:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-form legend {
  margin-bottom: 12px;
  color: #1f2f3a;
  font-size: 16px;
  font-weight: 800;
}

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

.form-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label,
.full-label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.account-form label span,
.full-label span {
  color: #536977;
  font-size: 12px;
  font-weight: 800;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="tel"],
.account-form input[type="number"],
.account-form input[type="file"],
.account-form select,
.account-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c5dbe6;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2f3a;
  font: inherit;
  outline: 0;
  padding: 11px 12px;
}

.account-form input[type="file"] {
  padding: 9px 10px;
}

.account-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: #17617a;
  box-shadow: 0 0 0 3px rgba(23, 97, 122, 0.12);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #cfe2ea;
  border-radius: 8px;
  background: #f8fbfd;
}

.choice-card input {
  grid-row: span 2;
  margin-top: 2px;
}

.choice-card span {
  color: #1f2f3a;
  font-size: 14px;
}

.choice-card small {
  color: #60727e;
  line-height: 1.35;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px;
  border-radius: 8px;
  background: #f8fbfd;
  border: 1px solid #dce8ef;
  line-height: 1.35;
}

.checkbox-grid input {
  margin-top: 2px;
  flex: 0 0 auto;
}

.compact-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.rate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.full-label {
  margin-top: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.save-button {
  min-height: 42px;
  border: 0;
  border-radius: 22px;
  background: #17617a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 22px;
}

.save-status {
  color: #60727e;
  font-weight: 800;
}

.save-status[data-type="success"] {
  color: #17617a;
}

.save-status[data-type="error"] {
  color: #b33535;
}

@media (max-width: 900px) {
  .topbar {
    padding-inline: 24px;
  }

  .page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-note,
  .right-rail {
    display: none;
  }

  .form-grid,
  .rate-grid,
  .checkbox-grid,
  .compact-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .main-profile-card {
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .topbar {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-block: 10px;
  }

  .login-area {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    white-space: nowrap;
  }

  .auth-user {
    flex-wrap: nowrap;
  }

  .auth-message {
    max-width: none;
  }

  .search-strip {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .search-form {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 40px;
    border-radius: 24px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    overflow: hidden;
    padding: 3px 6px 3px 3px !important;
  }

  .search-field,
  .search-field.compact,
  .search-text {
    flex: 1 1 40% !important;
    min-width: 0 !important;
    border-right: 1px solid #d5e2e9 !important;
    border-bottom: none !important;
    padding: 2px 8px !important;
    gap: 0px !important;
  }

  .search-form > .search-field:nth-child(2) {
    border-right: none !important;
  }

  .find-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 68px !important;
    height: 32px !important;
    margin: 0 0 0 6px !important;
    grid-column: auto !important;
    border-radius: 16px !important;
    font-size: 13px !important;
  }

  .quick-actions {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 24px, 720px);
    margin-top: 12px;
  }

  .content {
    display: flex;
    flex-direction: column;
  }

  .page-shell .hero-band {
    order: 3;
    margin: 18px 0 0;
  }

  .market-layout {
    grid-template-columns: 1fr;
    order: 1;
  }

  .categories {
    order: 2;
  }

  .listings {
    order: 1;
  }

  .categories nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .categories section {
    border-top: 0;
    padding: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
  }

  .brand {
    width: min(180px, 50vw);
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .hero-band {
    height: 250px;
  }

  .hero-text {
    left: 18px;
    right: 18px;
    top: 22px;
  }

  .hero-text h1 {
    font-size: 31px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .categories nav,
  .mini-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .mini-card img,
  .listing-card img,
  .mini-card .listing-image-fallback,
  .listing-card .listing-image-fallback {
    height: 170px;
  }

  .listing-card h3 {
    min-height: 0;
  }

  .account-shell {
    width: min(100% - 16px, 720px);
    margin-top: 14px;
  }

  .account-hero,
  .login-required,
  .account-form {
    padding: 16px;
  }

  .account-hero,
  .choice-row,
  .profile-facts,
  .rate-summary,
  .form-grid,
  .form-grid.two-columns,
  .rate-grid,
  .checkbox-grid,
  .compact-checks {
    grid-template-columns: 1fr;
  }

  .account-hero {
    display: grid;
  }

  .account-state {
    max-width: none;
  }
}


/* =========================================================
   Mein Bereich: Profilseite + Einstellungen
   ========================================================= */

.profile-dashboard.account-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.google-place-autocomplete {
  width: 100%;
  min-width: 0;
  display: block;
}

.profile-dashboard.account-layout[hidden] {
  display: none;
}

.account-settings-button {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bad4df;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #17617a;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 83, 104, 0.12);
}

.account-settings-button:hover,
.account-settings-button:focus-visible,
.account-settings-button.is-active {
  background: #17617a;
  color: #ffffff;
  outline: 0;
}

.account-settings-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-sidebar {
  position: absolute;
  z-index: 9;
  top: 60px;
  right: 12px;
  width: min(300px, calc(100vw - 48px));
  padding: 12px;
  align-self: start;
  box-shadow: 0 18px 44px rgba(37, 83, 104, 0.18);
}

.account-sidebar[hidden] {
  display: none;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #dce8ef;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbfd, #eaf5f9);
  min-width: 0;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #17617a;
  color: #ffffff;
}

.sidebar-avatar svg,
.nav-icon svg,
.shortcut-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile strong {
  color: #1f2f3a;
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-profile span {
  margin-top: 3px;
  color: #60727e;
  font-size: 12px;
  line-height: 1.25;
}

.account-nav {
  display: grid;
  gap: 7px;
}

.account-nav-item {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #40525f;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.account-nav-item:hover,
.account-nav-item:focus-visible {
  background: #f1f8fb;
  border-color: #cfe2ea;
  color: #17617a;
  outline: 0;
}

.account-nav-item.is-active {
  background: #eaf5f9;
  border-color: #bad4df;
  color: #17617a;
  box-shadow: 0 8px 22px rgba(37, 83, 104, 0.08);
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  color: #17617a;
  border: 1px solid #dce8ef;
}

.account-nav-item span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-counter {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #17617a;
  color: #ffffff;
  font-size: 11px;
  padding: 0 7px;
}

.account-content {
  min-width: 0;
  display: grid;
  min-height: 550px;
}

.account-tab-panel {
  display: none;
  min-width: 0;
}

.account-tab-panel.is-active {
  display: grid;
  gap: 16px;
}

.account-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.account-section-title small {
  color: #17617a;
  font-weight: 800;
}

.account-section-title h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.overview-grid .main-profile-card {
  grid-column: 1 / -1;
  grid-row: auto;
}

.account-tab-panel[data-account-panel="overview"] .account-section-title,
.account-tab-panel[data-account-panel="overview"] .dashboard-shortcut-card {
  display: none;
}

.dashboard-shortcut-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-shortcut-card:hover,
.dashboard-shortcut-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bad4df;
  box-shadow: 0 10px 24px rgba(37, 83, 104, 0.1);
  outline: 0;
}

.shortcut-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #eaf5f9;
  color: #17617a;
  border: 1px solid #bad4df;
}

.dashboard-shortcut-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-shortcut-card span {
  display: block;
  margin-top: 6px;
  color: #60727e;
  line-height: 1.4;
}

.account-content .account-form,
.account-content .provider-summary {
  margin: 0;
}

.account-content .provider-summary[hidden],
.account-content .account-form[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .profile-story-grid {
    grid-template-columns: 1fr;
  }

  .profile-category-panel.is-active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-nav-item {
    min-height: 42px;
  }

  .account-section-title h2 {
    font-size: 19px;
  }

  .profile-cover-preview {
    height: 210px;
  }

  .profile-preview-body {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 14px 16px;
  }

  .profile-avatar-wrap,
  .profile-avatar-preview {
    width: 126px;
    height: 126px;
  }

  .profile-avatar-wrap {
    margin-top: -42px;
  }

  .profile-preview-copy h2 {
    font-size: 26px;
  }

  .profile-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-category-tabs {
    padding-inline: 8px;
  }

  .profile-category-tab {
    min-height: 48px;
    padding-inline: 12px;
  }

  .profile-category-panels {
    padding: 12px;
  }
}

.profile-link-card {
  cursor: pointer;
}

.profile-link-card:focus-visible {
  outline: 3px solid rgba(23, 97, 122, 0.22);
  outline-offset: 3px;
}

.public-profile-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 18px auto 40px;
}

.public-profile-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.public-profile-card .empty-state {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(37, 83, 104, 0.08);
}

.public-profile-card .empty-state strong {
  display: block;
  font-size: 20px;
  color: #1f2f3a;
  margin-bottom: 8px;
}

.public-profile-card .empty-state span {
  display: block;
  color: #60727e;
  margin-bottom: 20px;
}

.public-profile-header-wrap {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(37, 83, 104, 0.05);
  margin-bottom: 16px;
}

.public-profile-cover {
  position: relative;
  height: clamp(200px, 28vw, 300px);
  background-color: #d9edf5;
  overflow: hidden;
}

.public-profile-cover img,
.public-profile-avatar img,
.public-profile-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.public-profile-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 32px 24px;
}

.public-profile-avatar-container {
  position: relative;
  margin-top: -84px;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  z-index: 10;
}

.public-profile-avatar {
  width: 100%;
  height: 100%;
  border: 6px solid #ffffff;
  border-radius: 50%;
  background: #17617a;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-profile-avatar .chat-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 52px;
}

.verified-avatar-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ffffff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 12;
}

.public-profile-header-info {
  flex-grow: 1;
  margin-bottom: 8px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.profile-name-row h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.verified-badge-icon {
  flex-shrink: 0;
}

.profile-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: #64748b;
  margin-bottom: 12px;
}

.profile-location-row svg {
  flex-shrink: 0;
}

.profile-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-service-tags span {
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.2s;
}

.profile-service-tags span:hover {
  background: #bae6fd;
}

/* --- Topbar Link Styling --- */
.nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #17617a;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link-with-icon:hover {
  background: #f0f7f9;
  color: #0f3f51;
}

.nav-link-with-icon svg {
  width: 18px;
  height: 18px;
  color: #17617a;
  flex-shrink: 0;
}

.public-profile-tabs {
  display: flex;
  border-top: 1px solid #f1f5f9;
  padding: 0 32px;
  background: #ffffff;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.public-profile-tabs::-webkit-scrollbar {
  display: none;
}

.public-profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.public-profile-tab svg {
  flex-shrink: 0;
}

.public-profile-tab:hover {
  color: #17617a;
}

.public-profile-tab.active {
  color: #17617a;
}

.public-profile-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #17617a;
}

.public-profile-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 0;
  background: transparent;
}

.public-profile-side {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.public-profile-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Content & Sidebar Card Base --- */
.profile-post-card {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.05);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.card-title-row h2,
.card-title-row h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.card-edit-trigger-btn {
  background: none;
  border: none;
  color: #17617a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.card-edit-trigger-btn:hover {
  color: #0f3f51;
  background: #f0f7f9;
}

.post-card-content {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}

.post-card-content p {
  margin: 0;
}

.public-profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-profile-gallery span {
  aspect-ratio: 1;
  border-radius: 8px;
  background-color: #d9edf5;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.public-profile-gallery span:hover {
  transform: scale(1.02);
}

/* --- Inline Post Creator Style --- */
.inline-post-creator-card {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.05);
  margin-bottom: 16px;
}

.creator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #17617a;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-header strong {
  font-size: 15px;
  color: #0f172a;
}

.creator-fields {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  margin-bottom: 10px;
}

.creator-fields input,
.creator-fields select,
.inline-post-creator-card textarea,
.card-edit-form textarea,
.card-edit-form input,
.card-edit-form select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s;
}

.creator-fields input:focus,
.creator-fields select:focus,
.inline-post-creator-card textarea:focus,
.card-edit-form textarea:focus,
.card-edit-form input:focus,
.card-edit-form select:focus {
  border-color: #17617a;
  box-shadow: 0 0 0 3px rgba(23, 97, 122, 0.15);
  background: #ffffff;
}

.inline-post-creator-card textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  margin-bottom: 12px;
  font-family: inherit;
  line-height: 1.5;
}

.creator-actions, .edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-post-save.primary-btn {
  background: #17617a;
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.profile-post-save.primary-btn:hover {
  background: #0f3f51;
}

.profile-post-cancel {
  background: #e2e8f0;
  color: #475569;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.profile-post-cancel:hover {
  background: #cbd5e1;
}

/* --- Filter Chips --- */
.post-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.filter-chip.active {
  background: #17617a;
  border-color: #17617a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(23, 97, 122, 0.2);
}

/* --- Post Cards Feed --- */
.feed-post-card {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.05);
  margin-bottom: 16px;
}

.feed-post-card .post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.feed-post-card .post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-post-card .post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #17617a;
  flex-shrink: 0;
}

.feed-post-card .post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-post-card .post-author-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: #0f172a;
}

.feed-post-card .post-meta-details {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 1px;
}

.feed-post-card .meta-bullet {
  margin: 0 4px;
  color: #cbd5e1;
}

.feed-post-card .category-badge {
  font-weight: 700;
  color: #17617a;
}

.feed-post-card .owner-post-controls {
  display: flex;
  gap: 8px;
}

.feed-post-card .owner-post-controls button {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.feed-post-card .owner-post-controls .edit-post-btn:hover {
  color: #17617a;
  background: #f1f5f9;
}

.feed-post-card .owner-post-controls .delete-post-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.feed-post-card .post-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.feed-post-card .post-text-content {
  font-size: 14.5px;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.feed-post-card .post-inline-availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feed-post-card .post-inline-availability-badge svg {
  flex-shrink: 0;
}

.feed-post-card .expand-post-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #17617a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.feed-post-card .expand-post-text:hover {
  color: #0f3f51;
}

.feed-post-card .post-footer {
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  justify-content: space-between;
}

.feed-post-card .post-footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.feed-post-card .post-footer-action-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.feed-post-card .post-footer-action-btn.active {
  color: #17617a;
}

.feed-post-card .post-stats {
  display: flex;
  gap: 12px;
}

.feed-post-card .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 13px;
}

/* --- Sidebar Card Widget Styling --- */
.intro-card.sidebar-widget {
  background: #ffffff;
  border: 1px solid #cfe0e9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.05);
  margin-bottom: 16px;
}

.sidebar-info-rows {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-info-rows li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sidebar-row-icon {
  width: 20px;
  height: 20px;
  color: #17617a;
  margin-top: 2px;
  flex-shrink: 0;
}

.sidebar-info-rows li small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 1px;
}

.sidebar-info-rows li strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 600;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-primary-btn {
  width: 100%;
  height: 42px;
  background: #17617a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.sidebar-primary-btn:hover {
  background: #0f3f51;
}

.sidebar-secondary-btn {
  width: 100%;
  height: 42px;
  background: #ffffff;
  color: #17617a;
  border: 1px solid #17617a;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  transition: background 0.2s;
}

.sidebar-secondary-btn:hover {
  background: #f0f7f9;
}

.response-note {
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.4;
}

.checklist-items li svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.switch-to-tab-link {
  background: none;
  border: none;
  color: #17617a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.switch-to-tab-link:hover {
  color: #0f3f51;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .public-profile-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Hide text, show only icons for nav links in topbar on mobile */
  .nav-link-with-icon span {
    display: none;
  }
  
  .nav-link-with-icon svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .quick-actions {
    gap: 14px !important;
  }

  .public-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px 20px;
    gap: 16px;
  }
  
  .public-profile-avatar-container {
    width: 140px;
    height: 140px;
    margin-top: -70px;
  }
  
  .public-profile-header-info {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-name-row h1 {
    font-size: 26px;
  }
  
  .public-profile-tabs {
    padding: 0 16px;
    gap: 10px;
  }
  
  .public-profile-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  /* Tab Bar: display only icons, stretch side-by-side, no scroll */
  .public-profile-tabs {
    justify-content: space-around;
    padding: 0;
    gap: 0;
    overflow-x: visible;
  }
  
  .public-profile-tab {
    flex: 1;
    justify-content: center;
    padding: 14px 0;
    margin: 0;
    border-radius: 0;
  }
  
  .public-profile-tab span {
    display: none;
  }
  
  .public-profile-tab svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }
}

/* =========================================================
   FIX: Startseite breiter, luftiger, Anzeigen stärker mittig
   Für betreuo.de / index.html
   ========================================================= */

:root {
  --home-max-width: 1520px;
  --home-wide-gap: 22px;
  --home-side-width: 230px;
  --home-card-radius: 10px;
}

.topbar {
  padding-inline: clamp(28px, 5vw, 96px) !important;
}

.search-strip {
  justify-content: center !important;
  gap: 24px !important;
  padding: 14px clamp(28px, 5vw, 96px) !important;
}

.search-form {
  width: min(900px, 100%) !important;
  max-width: 940px !important;
}

.page-shell {
  width: min(var(--home-max-width), calc(100vw - 96px)) !important;
  max-width: var(--home-max-width) !important;
  margin: 22px auto 64px !important;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: var(--home-wide-gap) !important;
  align-items: start !important;
}

.visual-panel,
.right-rail {
  position: sticky !important;
  top: 20px !important;
  padding: 14px !important;
  border-radius: var(--home-card-radius) !important;
}

.visual-panel img {
  height: 178px !important;
  border-radius: 9px !important;
}

.visual-copy strong {
  font-size: 18px !important;
}

.visual-copy span {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.right-rail h2 {
  font-size: 15px !important;
  margin-bottom: 4px !important;
}

.rail-grid {
  gap: 10px !important;
}

.rail-grid a {
  min-height: 52px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

.content {
  width: 100% !important;
  min-width: 0 !important;
}

.hero-band {
  height: auto !important;
  margin-bottom: 18px !important;
  border-radius: 12px !important;
}

.hero-text {
  left: 34px !important;
  top: 30px !important;
  max-width: 650px !important;
}

.hero-text h1 {
  font-size: clamp(36px, 3.4vw, 54px) !important;
  line-height: 1.02 !important;
}

.hero-text p {
  max-width: 620px !important;
  font-size: 17px !important;
}

.market-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.categories {
  padding: 16px !important;
  border-radius: var(--home-card-radius) !important;
}

.categories h3 {
  font-size: 13px !important;
  margin-bottom: 8px !important;
}

.categories a {
  padding: 4px 0 !important;
  font-size: 13px !important;
  line-height: 1.28 !important;
}

.gallery {
  padding: 16px !important;
  margin-bottom: 20px !important;
  border-radius: var(--home-card-radius) !important;
}

.panel-title-row h2,
.section-title-row h2 {
  font-size: 15px !important;
}

.mini-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}

/* Card Layouts with Circular Profile Pictures */
.mini-card,
.listing-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid #dce8ef !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px rgba(37, 83, 104, 0.06) !important;
  position: relative !important;
  min-height: 0 !important;
}

.mini-card {
  width: 100% !important;
  max-width: 240px !important;
}

/* Make image circular and center it */
.mini-card img,
.mini-card .listing-image-fallback {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto 12px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.12) !important;
  filter: none !important;
  flex-shrink: 0 !important;
}

.listing-card img,
.listing-card .listing-image-fallback {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto 12px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 83, 104, 0.12) !important;
  filter: none !important;
  flex-shrink: 0 !important;
}

.mini-card .listing-image-fallback {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #e8f4f8, #cce4ee) !important;
  color: #17617a !important;
}

.listing-card .listing-image-fallback {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #e8f4f8, #cce4ee) !important;
  color: #17617a !important;
}

.mini-card-location {
  font-size: 11px !important;
  color: #718096 !important;
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  font-weight: 500 !important;
}

/* Adjust card inner text spacing */
.mini-card span {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
  width: 100% !important;
}

.mini-card strong {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  color: #17617a !important;
}

.card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;
}

.listing-card div {
  padding: 0 !important;
  margin-top: 4px !important;
  width: 100% !important;
}

.listing-card h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  margin: 4px 0 !important;
  min-height: 0 !important;
}

.listing-card small {
  display: block !important;
  font-size: 11px !important;
  color: #a0aec0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.listing-card strong {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  color: #17617a !important;
}

/* Adjust heart button positioning in listing card */
.listing-card button[aria-label='Angebot merken'] {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: #ffffff !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #e2e8f0 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
  font-size: 16px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.listing-card button[aria-label='Angebot merken']:hover {
  color: #e53e3e !important;
  background: #fff5f5 !important;
  border-color: #feb2b2 !important;
}

.footer-inner {
  width: min(var(--home-max-width), calc(100vw - 96px)) !important;
  max-width: var(--home-max-width) !important;
}

/* Header Right & Quick Actions */
.header-right {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.header-right.loaded {
  opacity: 1 !important;
}

.topbar .quick-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  color: #17617a !important;
}

/* Collapsible Categories (Details/Summary Accordion) */
.categories-details {
  display: block !important;
}

/* On desktop, keep the details content visible regardless of 'open' attribute */
.categories-details .categories-nav {
  display: flex !important;
}

/* Hide native summary arrows */
.categories-details > summary::-webkit-details-marker {
  display: none !important;
}
.categories-details > summary {
  list-style: none !important;
  outline: none !important;
}

.categories-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: default !important;
}

.categories-summary .toggle-icon {
  display: none !important;
}

/* Sidebar & Layout Wrappers */
.left-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.main-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  min-width: 0 !important;
}

/* Hero Image Optimization */
.hero-band {
  height: auto !important;
  background: transparent !important;
}

.hero-band img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  filter: none !important;
}

.hero-band::after {
  display: none !important;
}

/* Redesigned Categories Sidebar */
.categories-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-top: 12px !important;
}

.category-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  color: #4a5568 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.category-btn:hover {
  background: #f7fafc !important;
  color: #17617a !important;
}

.category-btn.active {
  background: #e8f4f8 !important;
  color: #17617a !important;
  font-weight: 600 !important;
}

.category-btn.sub-item {
  padding-left: 32px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.category-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 12px 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #a0aec0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-top: 1px solid #edf2f7 !important;
  margin-top: 8px !important;
}

.category-icon {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
}

.categories h2 {
  margin: 0 0 4px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
}

@media (min-width: 1600px) {
  :root {
    --home-max-width: 1600px;
    --home-side-width: 250px;
    --home-wide-gap: 26px;
  }

  .page-shell {
    width: min(var(--home-max-width), calc(100vw - 140px)) !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  .market-layout {
    grid-template-columns: 240px minmax(0, 1fr) !important;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
  }
}

@media (max-width: 1280px) {
  .page-shell {
    width: min(1180px, calc(100vw - 48px)) !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .market-layout {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }

  .hero-band {
    height: auto !important;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(960px, calc(100vw - 32px)) !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }

  .right-rail {
    display: none !important;
  }

  .care-note {
    display: block !important;
  }

  .market-layout {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding-inline: 20px !important;
  }

  .search-strip {
    padding: 12px 16px !important;
  }

  .page-shell {
    width: min(100% - 24px, 760px) !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }

  .left-sidebar,
  .main-content {
    display: contents !important;
  }

  .care-note,
  .right-rail {
    display: none !important;
  }

  .page-shell .hero-band {
    height: auto !important;
    order: 2 !important;
    margin: 12px 12px 0 12px !important;
    border-radius: 8px !important;
  }

  .hero-band.mobile-only {
    height: auto !important;
    margin: 12px 12px 0 12px !important;
    border-radius: 8px !important;
    order: 0 !important;
  }

  .market-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    order: 3 !important;
  }

  .categories {
    order: 1 !important;
  }

  .categories-summary {
    cursor: pointer !important;
    padding: 12px 16px !important;
    background: #f7fafc !important;
    border-radius: 8px !important;
  }

  .categories-summary .toggle-icon {
    display: inline-block !important;
    font-size: 12px !important;
    color: #4a5568 !important;
    transition: transform 0.2s ease !important;
  }

  .categories-details[open] .toggle-icon {
    transform: rotate(180deg) !important;
  }

  .categories {
    padding: 0 !important;
    overflow: hidden !important;
  }

  .categories-details[open] .categories-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 10px 12px 12px !important;
  }

  .categories-details:not([open]) .categories-nav {
    display: none !important;
  }

  .category-header {
    grid-column: span 1 !important;
    border-top: none !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 2px !important;
  }

  .category-btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  .category-btn.sub-item {
    padding-left: 20px !important;
    font-size: 12px !important;
  }

  .category-btn span {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.25 !important;
  }

  .listings {
    order: 3 !important;
  }

  .mini-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mini-card img,
  .mini-card .listing-image-fallback,
  .listing-card img,
  .listing-card .listing-image-fallback {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 8px !important;
  }

  /* Hide search fields on mobile except 'Was suchst du?' and 'Ort' */
  .search-form > .search-field:nth-child(3) /* Umkreis */ {
    display: none !important;
  }

  .search-form > .search-field {
    border-bottom: none !important;
    border-right: 1px solid #d5e2e9 !important;
  }
  
  .search-form > .search-field:nth-child(2) {
    border-right: none !important;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 16px) !important;
    margin-top: 10px !important;
  }

  .hero-band {
    height: auto !important;
  }

  .categories-nav {
    grid-template-columns: 1fr !important;
  }

  .category-header {
    grid-column: span 1 !important;
  }

  .mini-grid,
  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .mini-card img,
  .mini-card .listing-image-fallback,
  .listing-card img,
  .listing-card .listing-image-fallback {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 8px !important;
  }

  .gallery,
  .categories {
    padding: 14px !important;
  }


}

.public-profile-main .profile-category-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.public-profile-cover,
.public-profile-avatar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Responsive visibility utilities */
.mobile-only {
  display: none !important;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom);
  transition: bottom 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

@media (min-width: 901px) {
  .mobile-bottom-nav {
    bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
  transition: color 0.15s;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-nav-item.active {
  color: #17617a;
}

/* FAB (+) styling */
.mobile-nav-fab {
  position: relative;
  height: auto;
  overflow: visible;
}

.fab-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #17617a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(23, 97, 122, 0.35);
  transform: translateY(-12px);
  transition: transform 0.2s, background 0.15s;
}

.fab-circle svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.mobile-nav-item:active .fab-circle {
  transform: translateY(-12px) scale(0.92);
  background: #124d62;
}

/* Adjust page shell and footer margins to prevent bottom nav overlaying content */
@media (max-width: 900px) {
  body {
    padding-bottom: 74px; /* Space for the bottom nav */
  }
  .site-footer {
    padding-bottom: 90px !important;
  }
  .account-settings-button {
    display: none !important;
  }
  .quick-actions {
    display: none !important;
  }
}

/* --- Universal Auth Modal --- */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 31, 43, 0.65);
  backdrop-filter: blur(4px);
}
.auth-dialog {
  width: min(400px, 100%);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: authModalFadeIn 0.2s ease-out;
}
@keyframes authModalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.auth-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #121f2b;
  margin: 0;
}
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
}
.auth-tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
}
.auth-tab-btn.active {
  color: #17617a;
  border-bottom: 2px solid #17617a;
  margin-bottom: -2px;
}
.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.auth-input-group input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  outline: 0;
  transition: border-color 0.15s;
}
.auth-input-group input:focus {
  border-color: #17617a;
}
.auth-submit-btn {
  background: #17617a;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-submit-btn:hover {
  background: #124d62;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.auth-divider:not(:empty)::before {
  margin-right: .5em;
}
.auth-divider:not(:empty)::after {
  margin-left: .5em;
}
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.auth-google-btn:hover {
  background: #f8fafc;
}
.auth-google-btn svg {
  width: 18px;
  height: 18px;
}
.auth-modal-error {
  color: #e11d48;
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* Screen reader only utility class for invisible SEO headings */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Custom Geolocation Pre-Prompt Modal --- */
.location-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 31, 43, 0.65);
  backdrop-filter: blur(4px);
  animation: authModalFadeIn 0.25s ease-out;
}
.location-dialog {
  width: min(380px, 100%);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.location-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f7f9;
  color: #17617a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.location-modal-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.location-dialog h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1f2f3a;
}
.location-dialog p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.location-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.location-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.location-btn-allow {
  background: #17617a;
  color: #ffffff;
  border: none;
}
.location-btn-allow:hover {
  background: #124d62;
}
.location-btn-deny {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.location-btn-deny:hover {
  background: #f8fafc;
}
