:root {
  --edoc-navy: #071a2d;
  --edoc-panel: #10263a;
  --edoc-green: #79d51c;
  --edoc-green-dark: #59a80d;
  --edoc-text: #f5f8fb;
  --edoc-muted: #b8c4cf;
  --edoc-border: rgba(121, 213, 28, 0.28);
}

body:has(.edoc-community) main.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 34px 0 80px;
  color: var(--edoc-text);
  background: radial-gradient(circle at 82% 8%, rgba(121, 213, 28, .09), transparent 28%), #07111d;
}

body:has(.edoc-community) main.site-main > .page-header,
body:has(.edoc-community) main.site-main > .page-content {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

body:has(.edoc-community) main.site-main > .page-header .entry-title {
  color: #fff;
}

body:has(.edoc-community) .edoc-community {
  width: 100%;
}

@media (min-width: 1051px) {
  header .header-inner {
    width: min(1400px, calc(100% - 36px)) !important;
    max-width: 1400px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 18px !important;
  }

  header .header-inner .site-branding {
    flex: 0 0 auto !important;
  }

  header .header-inner .site-branding img {
    max-width: 185px !important;
    height: auto !important;
  }

  header .header-inner nav.site-navigation {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  header .header-inner nav.site-navigation ul.menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 3px !important;
  }

  header .header-inner nav.site-navigation ul.menu > li {
    flex: 0 0 auto !important;
  }

  header .header-inner nav.site-navigation ul.menu > li > a {
    padding: 8px 5px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  header .header-inner nav.site-navigation ul.menu > li.edoc-cart-menu > a {
    padding: 7px 9px !important;
  }
}

.edoc-community {
  width: min(100% - 32px, 1100px);
  margin: 44px auto;
  color: var(--edoc-text);
}

.edoc-community__hero,
.edoc-community__panel,
.edoc-community-hub__cards a {
  border: 1px solid var(--edoc-border);
  background: linear-gradient(145deg, rgba(16, 38, 58, .98), rgba(7, 26, 45, .98));
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.edoc-community__hero {
  padding: clamp(28px, 6vw, 64px);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.edoc-community__hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 213, 28, .28), transparent 68%);
}

.edoc-community__eyebrow {
  color: var(--edoc-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.edoc-community h1,
.edoc-community h2,
.edoc-community h3 {
  color: #fff;
  line-height: 1.08;
}

.edoc-community__hero h1,
.edoc-community__hero h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  margin: 12px 0 16px;
  max-width: 850px;
}

.edoc-community__hero p {
  color: var(--edoc-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 760px;
  margin: 0;
}

.edoc-community__panel {
  padding: clamp(22px, 4vw, 40px);
}

.edoc-community__button,
.edoc-community button,
.edoc-community input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  color: #07131f !important;
  background: var(--edoc-green) !important;
  font-weight: 800;
  text-decoration: none;
}

.edoc-community__button:hover,
.edoc-community button:hover,
.edoc-community input[type="submit"]:hover {
  color: #07131f !important;
  background: #92ef34 !important;
}

.edoc-reviews__summary {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 14px;
  color: var(--edoc-text);
  background: var(--edoc-green-dark);
}

.edoc-reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 24px;
  align-items: start;
}

/* Kundenbewertungen als Abschluss der Startseite */
.edoc-home-reviews {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 20px;
  color: var(--edoc-text);
  background:
    radial-gradient(circle at 82% 12%, rgba(121, 213, 28, .16), transparent 28%),
    linear-gradient(180deg, #07111d 0%, #091a2a 100%);
}

.edoc-home-reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 54px 54px;
}

.edoc-home-reviews__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.edoc-home-reviews__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.edoc-home-reviews__eyebrow {
  color: var(--edoc-green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.edoc-home-reviews h2 {
  max-width: 760px;
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.edoc-home-reviews__head p {
  max-width: 720px;
  margin: 0;
  color: var(--edoc-muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.edoc-home-reviews__summary {
  padding: 24px;
  border: 1px solid var(--edoc-border);
  border-radius: 16px;
  background: rgba(16, 38, 58, .88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.edoc-home-reviews__voices .glsr-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.edoc-home-reviews__voices .glsr-review {
  height: 100%;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid rgba(121, 213, 28, .24) !important;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 43, 64, .98), rgba(8, 25, 40, .98));
  color: #f5f8fb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.edoc-home-reviews__voices .glsr-review-title,
.edoc-home-reviews__voices .glsr-review-author {
  color: #fff;
  font-weight: 800;
}

.edoc-home-reviews__voices .glsr-review-content,
.edoc-home-reviews__voices .glsr-review-date {
  color: var(--edoc-muted);
}

.edoc-home-reviews .glsr-star {
  color: var(--edoc-green);
}

.edoc-home-reviews__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.edoc-home-reviews__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--edoc-green);
  border-radius: 8px;
  background: var(--edoc-green);
  color: #07131f !important;
  font-weight: 900;
  text-decoration: none !important;
}

.edoc-home-reviews__button:hover,
.edoc-home-reviews__button:focus-visible {
  border-color: #9aef49;
  background: #9aef49;
  color: #07131f !important;
}

.edoc-home-reviews__button--ghost {
  background: transparent;
  color: #fff !important;
}

.edoc-home-reviews__empty {
  margin: 0;
  color: var(--edoc-muted);
}

.edoc-community .glsr-review {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.edoc-community .glsr-review:last-child {
  border-bottom: 0;
}

.edoc-community .glsr-star {
  color: var(--edoc-green);
}

.edoc-community input,
.edoc-community textarea,
.edoc-community select {
  width: 100%;
  color: #f7fbff;
  background: #071827;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

/* bbPress forum in EDOC CI */
.edoc-community #bbpress-forums,
body.bbpress #bbpress-forums {
  color: var(--edoc-text);
  font-size: 1rem;
}

.edoc-community #bbpress-forums a,
body.bbpress #bbpress-forums a {
  color: var(--edoc-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.edoc-community #bbpress-forums a:hover,
.edoc-community #bbpress-forums a:focus-visible,
body.bbpress #bbpress-forums a:hover,
body.bbpress #bbpress-forums a:focus-visible {
  color: #a6f15a;
}

.edoc-community #bbpress-forums .bbp-search-form,
body.bbpress #bbpress-forums .bbp-search-form {
  float: none;
  width: min(100%, 520px);
  margin: 0 0 24px auto;
}

.edoc-community #bbpress-forums #bbp-search-form,
body.bbpress #bbpress-forums #bbp-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.edoc-community #bbpress-forums #bbp-search-form input,
body.bbpress #bbpress-forums #bbp-search-form input {
  min-height: 48px;
  margin: 0;
}

.edoc-community #bbpress-forums ul.bbp-forums,
.edoc-community #bbpress-forums ul.bbp-topics,
.edoc-community #bbpress-forums ul.bbp-replies,
body.bbpress #bbpress-forums ul.bbp-forums,
body.bbpress #bbpress-forums ul.bbp-topics,
body.bbpress #bbpress-forums ul.bbp-replies {
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--edoc-border);
  border-radius: 14px;
  background: #0a1d2e;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

.edoc-community #bbpress-forums li.bbp-header,
.edoc-community #bbpress-forums li.bbp-footer,
body.bbpress #bbpress-forums li.bbp-header,
body.bbpress #bbpress-forums li.bbp-footer {
  border: 0;
  background: #132c42;
  color: #fff;
  font-weight: 800;
}

.edoc-community #bbpress-forums li.bbp-body ul.forum,
.edoc-community #bbpress-forums li.bbp-body ul.topic,
body.bbpress #bbpress-forums li.bbp-body ul.forum,
body.bbpress #bbpress-forums li.bbp-body ul.topic {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0b2033;
  color: var(--edoc-muted);
  transition: background .2s ease;
}

.edoc-community #bbpress-forums li.bbp-body ul.forum:hover,
.edoc-community #bbpress-forums li.bbp-body ul.topic:hover,
body.bbpress #bbpress-forums li.bbp-body ul.forum:hover,
body.bbpress #bbpress-forums li.bbp-body ul.topic:hover {
  background: #102b41;
}

.edoc-community #bbpress-forums .bbp-forum-title,
.edoc-community #bbpress-forums .bbp-topic-permalink,
body.bbpress #bbpress-forums .bbp-forum-title,
body.bbpress #bbpress-forums .bbp-topic-permalink {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.edoc-community #bbpress-forums .bbp-forum-content,
.edoc-community #bbpress-forums .bbp-topic-meta,
.edoc-community #bbpress-forums .bbp-template-notice,
body.bbpress #bbpress-forums .bbp-forum-content,
body.bbpress #bbpress-forums .bbp-topic-meta,
body.bbpress #bbpress-forums .bbp-template-notice {
  color: var(--edoc-muted);
}

.edoc-community #bbpress-forums .bbp-template-notice,
body.bbpress #bbpress-forums .bbp-template-notice {
  padding: 12px 16px;
  border: 1px solid var(--edoc-border);
  border-radius: 10px;
  background: rgba(121, 213, 28, .08);
}

.edoc-community #bbpress-forums fieldset.bbp-form,
body.bbpress #bbpress-forums fieldset.bbp-form {
  margin: 24px 0 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--edoc-border);
  border-radius: 14px;
  background: linear-gradient(145deg, #10263a, #091a2a);
}

.edoc-community #bbpress-forums fieldset.bbp-form legend,
body.bbpress #bbpress-forums fieldset.bbp-form legend {
  padding: 0 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.edoc-community #bbpress-forums label,
body.bbpress #bbpress-forums label {
  color: #eef6fc;
  font-weight: 700;
}

.edoc-community #bbpress-forums input[type="text"],
.edoc-community #bbpress-forums input[type="search"],
.edoc-community #bbpress-forums input[type="password"],
.edoc-community #bbpress-forums textarea,
.edoc-community #bbpress-forums select,
body.bbpress #bbpress-forums input[type="text"],
body.bbpress #bbpress-forums input[type="search"],
body.bbpress #bbpress-forums input[type="password"],
body.bbpress #bbpress-forums textarea,
body.bbpress #bbpress-forums select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #061522;
  color: #fff;
}

.edoc-community #bbpress-forums .quicktags-toolbar,
body.bbpress #bbpress-forums .quicktags-toolbar {
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0;
  background: #132c42;
}

.edoc-community #bbpress-forums .quicktags-toolbar input.button,
body.bbpress #bbpress-forums .quicktags-toolbar input.button {
  width: auto;
  min-height: 34px;
  margin: 4px 2px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: #0a1d2e !important;
  color: #fff !important;
}

.edoc-community #bbpress-forums button[type="submit"],
.edoc-community #bbpress-forums input[type="submit"],
body.bbpress #bbpress-forums button[type="submit"],
body.bbpress #bbpress-forums input[type="submit"] {
  width: auto;
  min-width: 150px;
  color: #07131f !important;
  background: var(--edoc-green) !important;
}

.edoc-community #bbpress-forums div.bbp-reply-header,
.edoc-community #bbpress-forums div.bbp-topic-header,
body.bbpress #bbpress-forums div.bbp-reply-header,
body.bbpress #bbpress-forums div.bbp-topic-header {
  border: 0;
  background: #132c42;
  color: #fff;
}

.edoc-community #bbpress-forums div.reply,
.edoc-community #bbpress-forums div.topic,
body.bbpress #bbpress-forums div.reply,
body.bbpress #bbpress-forums div.topic {
  background: #0b2033;
  color: var(--edoc-text);
}

@media (max-width: 700px) {
  .edoc-community #bbpress-forums .bbp-search-form,
  body.bbpress #bbpress-forums .bbp-search-form {
    width: 100%;
  }

  .edoc-community #bbpress-forums #bbp-search-form,
  body.bbpress #bbpress-forums #bbp-search-form {
    grid-template-columns: 1fr;
  }

  .edoc-community #bbpress-forums li.bbp-header,
  .edoc-community #bbpress-forums li.bbp-footer,
  body.bbpress #bbpress-forums li.bbp-header,
  body.bbpress #bbpress-forums li.bbp-footer {
    display: none;
  }

  .edoc-community #bbpress-forums li.bbp-body ul.forum,
  .edoc-community #bbpress-forums li.bbp-body ul.topic,
  body.bbpress #bbpress-forums li.bbp-body ul.forum,
  body.bbpress #bbpress-forums li.bbp-body ul.topic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 18px;
  }

  .edoc-community #bbpress-forums li.bbp-forum-info,
  .edoc-community #bbpress-forums li.bbp-topic-title,
  body.bbpress #bbpress-forums li.bbp-forum-info,
  body.bbpress #bbpress-forums li.bbp-topic-title {
    width: auto;
  }

  .edoc-community #bbpress-forums li.bbp-forum-topic-count,
  .edoc-community #bbpress-forums li.bbp-forum-reply-count,
  .edoc-community #bbpress-forums li.bbp-topic-voice-count,
  .edoc-community #bbpress-forums li.bbp-topic-reply-count,
  body.bbpress #bbpress-forums li.bbp-forum-topic-count,
  body.bbpress #bbpress-forums li.bbp-forum-reply-count,
  body.bbpress #bbpress-forums li.bbp-topic-voice-count,
  body.bbpress #bbpress-forums li.bbp-topic-reply-count {
    width: auto;
    min-width: 38px;
  }

  .edoc-community #bbpress-forums li.bbp-forum-freshness,
  .edoc-community #bbpress-forums li.bbp-topic-freshness,
  body.bbpress #bbpress-forums li.bbp-forum-freshness,
  body.bbpress #bbpress-forums li.bbp-topic-freshness {
    display: none;
  }
}

.edoc-community-hub__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.edoc-community-hub__cards a {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 28px;
  color: var(--edoc-text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.edoc-community-hub__cards a:hover {
  transform: translateY(-4px);
  border-color: var(--edoc-green);
}

.edoc-community-hub__cards strong {
  color: var(--edoc-green);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.edoc-community-hub__cards span {
  color: var(--edoc-muted);
}

.edoc-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  color: #07131f !important;
  background: var(--edoc-green, #79d51c);
  border: 3px solid rgba(7, 26, 45, .85);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  text-decoration: none !important;
}

.edoc-chat__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .25);
}

.edoc-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.edoc-action-grid a {
    min-height: 150px;
    padding: 28px;
    border: 1px solid rgba(122, 213, 27, .38);
    border-radius: 18px;
    background: linear-gradient(145deg, #172638, #0d1927);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .22);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.edoc-action-grid a:hover,
.edoc-action-grid a:focus-visible {
    color: #fff;
    border-color: #7ad51b;
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(91, 187, 18, .18);
}

.edoc-action-grid strong,
.edoc-action-grid span {
    display: block;
}

.edoc-action-grid strong {
    margin-bottom: 12px;
    color: #7ad51b;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.edoc-suite-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 28px;
    border-radius: 16px;
}

.edoc-stage2-fields {
    clear: both;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(122, 213, 27, .4);
    border-radius: 14px;
    background: #142231;
    color: #fff;
}

.edoc-stage2-fields input {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid #7ad51b;
    border-radius: 8px;
    background: #fff;
    color: #0b1724;
}

.edoc-stage2-deposit {
    margin-bottom: 0 !important;
}

.edoc-ptc-visual,
.edoc-product-card__media--ptc {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 20%, rgba(122, 213, 27, .24), transparent 42%), linear-gradient(145deg, #172638, #07111d);
    color: #fff;
    text-align: center;
}

.edoc-ptc-visual span,
.edoc-product-card__media--ptc span {
    color: #7ad51b;
    font-size: 3rem;
    line-height: 1;
}

.edoc-ptc-visual strong,
.edoc-product-card__media--ptc strong {
    color: #fff;
    font-size: clamp(2.6rem, 8vw, 5rem);
    letter-spacing: .08em;
    line-height: 1;
}

.edoc-ptc-visual small,
.edoc-product-card__media--ptc small {
    color: #b8c4cf;
    font-weight: 700;
    letter-spacing: .12em;
}

.edoc-ptc-photo {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    object-position: center 48%;
    border-radius: 16px;
}

.edoc-product-card__media--ptc {
    padding: 0;
    overflow: hidden;
}

.edoc-product-card__media--ptc img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    object-position: center 48%;
}

@media (max-width: 700px) {
    .edoc-action-grid {
        grid-template-columns: 1fr;
    }
}

.edoc-vehicle-listing > a {
    position: relative;
    display: block;
    overflow: hidden;
}

.edoc-sold-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #d71920;
    color: #fff;
    font-size: clamp(1rem, 2.3vw, 1.45rem);
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
    transform: rotate(-5deg);
}

.edoc-sold-badge--hero {
    position: relative;
    top: auto;
    left: auto;
    width: max-content;
    margin-bottom: 18px;
    padding: 13px 30px;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
}

.edoc-vehicle-sold-message {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 8px;
    background: #d71920;
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
}

.edoc-chat strong,
.edoc-chat small {
  display: block;
  line-height: 1.15;
}

.edoc-chat small {
  font-size: .72rem;
  margin-top: 3px;
}

@media (max-width: 780px) {
  .edoc-reviews__grid,
  .edoc-community-hub__cards {
    grid-template-columns: 1fr;
  }

  .edoc-home-reviews__head,
  .edoc-home-reviews__voices .glsr-reviews {
    grid-template-columns: 1fr;
  }

  .edoc-home-reviews__summary {
    padding: 20px;
  }

  .edoc-home-reviews__actions,
  .edoc-home-reviews__button {
    width: 100%;
  }

  .edoc-community {
    width: min(100% - 20px, 1100px);
    margin: 24px auto;
  }

  .edoc-chat {
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }

  .edoc-chat small {
    display: none;
  }
}

