:root {
  --ash-primary: #2563eb;
  --ash-primary-hover: #1d4ed8;
  --ash-text: #334155;
  --ash-heading: #172033;
  --ash-muted: #64748b;
  --ash-border: #e2e8f0;
  --ash-surface-soft: #f1f5f9;
  --ash-page-bg: #f8fafc;
  --ash-surface: #ffffff;
  --ash-success: #15803d;
  --ash-radius-sm: 12px;
  --ash-radius: 16px;
  --ash-radius-lg: 24px;
  --ash-shadow: 0 18px 48px rgb(15 23 42 / 8%);
}

html { scroll-behavior: smooth; }
body.appshome-theme { background: var(--ash-page-bg); color: var(--ash-text); }
body.appshome-theme :where(h1,h2,h3,h4,h5,h6) { color: var(--ash-heading); letter-spacing: -.02em; }
body.appshome-theme a { text-underline-offset: 3px; }
body.appshome-theme :focus-visible { outline: 3px solid rgb(37 99 235 / 30%); outline-offset: 3px; }
body.appshome-theme .site-main { min-height: 60vh; }

/* Blocksy header refinements without replacing its builder. */
body.appshome-theme [data-header*="type-1"] .ct-header-text,
body.appshome-theme [data-header*="type-1"] .site-title { font-weight: 800; letter-spacing: -.035em; }
body.appshome-theme [data-header*="type-1"] .menu > li > a { font-weight: 650; }
body.appshome-theme [data-header*="type-1"] { border-bottom: 1px solid var(--ash-border); background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); }

.ash-shell { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.ash-eyebrow { margin: 0; color: var(--ash-primary); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ash-text-link { color: var(--ash-primary); font-weight: 750; text-decoration: none; }
.ash-text-link:hover { color: var(--ash-primary-hover); }
.ash-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ash-primary); border-radius: 12px; background: var(--ash-primary); color: #fff !important; font-weight: 750; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.ash-button:hover { transform: translateY(-1px); background: var(--ash-primary-hover); border-color: var(--ash-primary-hover); }
.ash-button--secondary { border-color: var(--ash-border); background: #fff; color: var(--ash-heading) !important; }
.ash-button--secondary:hover { background: var(--ash-surface-soft); border-color: #cbd5e1; }
.ash-setup-message { padding: 24px; border: 1px dashed var(--ash-border); border-radius: var(--ash-radius); background: #fff; color: var(--ash-muted); }

.ash-home-hero { position: relative; overflow: hidden; padding: clamp(62px, 9vw, 118px) 0 clamp(66px, 9vw, 110px); background:
  radial-gradient(circle at 88% 10%, rgb(37 99 235 / 13%), transparent 30%),
  radial-gradient(circle at 5% 90%, rgb(14 165 233 / 10%), transparent 32%),
  linear-gradient(180deg, #fff, #f8fbff); }
.ash-home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--ash-border); }
.ash-home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.ash-home-hero__copy h1 { max-width: 850px; margin: 12px 0 20px; font-size: clamp(2.65rem, 6vw, 5.1rem); line-height: .99; }
.ash-home-hero__lead { max-width: 760px; margin: 0 0 28px; color: #526074; font-size: clamp(1.08rem, 2.2vw, 1.34rem); line-height: 1.65; }
.ash-hero-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 760px; padding: 8px; border: 1px solid #dbe5f2; border-radius: 16px; background: rgb(255 255 255 / 94%); box-shadow: 0 18px 45px rgb(37 99 235 / 9%); }
.ash-hero-search input { min-height: 52px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 14px !important; color: var(--ash-heading); }
.ash-hero-search input:focus { outline: 0; }
.ash-hero-search button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--ash-primary); color: #fff; font-weight: 750; cursor: pointer; }
.ash-hero-search button:hover { background: var(--ash-primary-hover); }
.ash-home-hero__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--ash-muted); font-size: .92rem; }

.ash-home-hero__visual {
  position: relative;
  isolation: isolate;
  min-height: 450px;
  overflow: visible;
}

.ash-visual-orbit {
  position: absolute;
  z-index: 0;
  inset: 34px 12px 22px 38px;
  border: 1px dashed rgb(37 99 235 / 25%);
  border-radius: 50%;
  transform: rotate(-7deg);
  pointer-events: none;
}

.ash-visual-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 2px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(
      rgb(255 255 255 / 98%),
      rgb(255 255 255 / 98%)
    ) padding-box,
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8 58%,
      #14b8a6
    ) border-box;
  box-shadow:
    0 14px 34px rgb(23 32 51 / 15%),
    0 4px 12px rgb(37 99 235 / 13%);
  color: var(--ash-heading);
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    box-shadow .22s ease,
    filter .22s ease;
}

.ash-visual-card:hover {
  filter: brightness(1.02);
  box-shadow:
    0 18px 42px rgb(23 32 51 / 18%),
    0 6px 16px rgb(37 99 235 / 17%);
}

.ash-visual-card:not(.ash-visual-card--main) > span {
  color: var(--ash-primary);
  font-size: .86em;
  font-weight: 850;
}

/*
 * Die zentrale Karte liegt im Hintergrund.
 * Die kleinen Labels mit z-index: 5 überlagern ihre Ränder.
 */
.ash-visual-card--main {
  top: 120px;
  right: 48px;
  bottom: auto;
  left: 48px;
  z-index: 1;
  min-height: 150px;
  padding: 25px;
  border-radius: 24px;


  background:
    linear-gradient(
      135deg,
      rgb(255 255 255 / 95%),
      rgb(241 245 249 / 93%)
    ) padding-box,
    linear-gradient(
      135deg,
      rgb(37 99 235 / 78%),
      rgb(29 78 216 / 68%) 58%,
      rgb(20 184 166 / 58%)
    ) border-box;
  
  
  box-shadow:
    0 18px 50px rgb(23 32 51 / 11%),
    0 5px 18px rgb(37 99 235 / 9%);
  transform: rotate(-1.5deg);
}

.ash-visual-card--main .ash-visual-logo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;

  display: block;
  position: relative;

  /* Kein blauer Hintergrund im Logo-Container. */
  background-color: transparent !important;

  /*
   * Wir verwenden das horizontale AppsHome-Logo,
   * zeigen aber nur das linke Symbol.
   */
  background-image: url("../images/appshome-logo-header-600.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: 250px auto !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  overflow: hidden;
}

/*
 * Falls in front-page.php innerhalb von .ash-visual-logo noch ein <img> vorhanden ist,
 * wird es ausgeblendet: Das Bild wird oben als Hintergrund gesetzt.
 */
.ash-visual-card--main .ash-visual-logo img {
  display: block;
  width: 100%;
  height: 100%;

  opacity: 0 !important;
  visibility: hidden !important;

  object-fit: contain;
  pointer-events: none;
}
.ash-visual-card--main strong {
  display: block;
  font-size: 1.45rem;
}

.ash-visual-card--main span {
  display: block;
  margin-top: 4px;
  color: var(--ash-muted);
  font-weight: 500;
}

/* Self-hosted – mittig über dem oberen Rand. */
.ash-visual-card--five {
  top: 88px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}

/* Geprüft – obere rechte Ecke. */
.ash-visual-card--one {
  top: 88px;
  right: 2px;
  transform: rotate(15deg);
}

/* VPS – obere linke Ecke. */
.ash-visual-card--four {
  top: 86px;
  right: auto;
  bottom: auto;
  left: 2px;
  transform: rotate(-14deg);
}

/* Backup – über der linken Seite der Hauptkarte. */
.ash-visual-card--six {
  top: 205px;
  left: -2px;
  transform: rotate(-8deg);
}

/* Cloudflare – über der rechten Seite der Hauptkarte. */
.ash-visual-card--seven {
  top: 205px;
  right: -2px;
  transform: rotate(8deg);
}

/* Docker – über dem unteren linken Rand. */
.ash-visual-card--two {
  top: 255px;
  bottom: auto;
  left: 46px;
  transform: rotate(-6deg);
}

/* Proxmox – über dem unteren rechten Rand. */
.ash-visual-card--three {
  top: 255px;
  right: 46px;
  bottom: auto;
  transform: rotate(6deg);
}

.ash-home-section { padding: clamp(62px, 8vw, 100px) 0; }
.ash-home-section--categories { padding-top: clamp(50px, 7vw, 82px); }
.ash-home-section--tinted { border-block: 1px solid var(--ash-border); background: #f1f5fb; }
.ash-section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.ash-section-heading h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.ash-section-heading p:not(.ash-eyebrow) { max-width: 720px; margin: 10px 0 0; color: var(--ash-muted); }
.ash-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ash-category-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 76px; padding: 14px 16px; border: 1px solid var(--ash-border); border-radius: var(--ash-radius); background: #fff; color: var(--ash-heading); font-weight: 750; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.ash-category-card:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 14px 30px rgb(15 23 42 / 6%); color: var(--ash-primary); }
.ash-category-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #eff6ff; color: var(--ash-primary); font-size: 1.2rem; }
.ash-category-card__arrow { color: #94a3b8; }

.ash-home-cta-section { padding-top: 10px; }
.ash-home-cta { display: flex; justify-content: space-between; gap: 36px; align-items: center; padding: clamp(30px, 5vw, 58px); border-radius: 26px; background: linear-gradient(135deg, #172033, #1e3a5f); color: #dbeafe; box-shadow: var(--ash-shadow); }
.ash-home-cta h2 { margin: 8px 0 12px; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.ash-home-cta p:not(.ash-eyebrow) { max-width: 720px; margin: 0; color: #bfdbfe; }
.ash-home-cta .ash-button { flex: 0 0 auto; background: #fff; border-color: #fff; color: #172033 !important; }

.ash-page { padding: clamp(48px, 7vw, 88px) 0; }
.ash-page-header { max-width: 820px; margin-bottom: 34px; }
.ash-page-header h1 { margin: 7px 0 13px; font-size: clamp(2.2rem, 5vw, 4rem); }
.ash-page-header p { color: var(--ash-muted); font-size: 1.1rem; }
.ash-page-header--catalog { padding: clamp(26px, 5vw, 46px); border: 1px solid var(--ash-border); border-radius: var(--ash-radius-lg); background: linear-gradient(135deg, #fff, #eff6ff); max-width: none; }

/* Core catalog and application templates are deliberately repeated here as theme-level polish. */
.ash-catalog__controls { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr) minmax(190px, .42fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.ash-control input[type="search"], .ash-control select { width: 100%; min-height: 50px; border: 1px solid var(--ash-border); border-radius: 12px; background: var(--ash-surface); color: var(--ash-heading); padding: 0 15px; box-shadow: none; }
.ash-control input[type="search"]:focus, .ash-control select:focus { outline: 3px solid rgb(37 99 235 / 14%); border-color: var(--ash-primary); }
.ash-control--check { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 14px; border: 1px solid var(--ash-border); border-radius: 12px; background: var(--ash-surface); white-space: nowrap; }
.ash-control--check input { width: 18px; height: 18px; }
.ash-catalog__summary { color: var(--ash-muted); margin: 0 0 18px; }
.ash-catalog__empty, .ash-empty-note { padding: 28px; border: 1px dashed var(--ash-border); border-radius: var(--ash-radius); text-align: center; color: var(--ash-muted); background: var(--ash-surface); }
.ash-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ash-app-card { display: flex; flex-direction: column; min-width: 0; min-height: 290px; padding: 22px; border: 1px solid var(--ash-border); border-radius: var(--ash-radius); background: var(--ash-surface); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ash-app-card:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: 0 16px 38px rgb(15 23 42 / 7%); }
.ash-app-card[hidden] { display: none !important; }
.ash-app-card__top { display: flex; gap: 15px; align-items: flex-start; }
.ash-app-card__logo { flex: 0 0 60px; width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #e0e7ff, #dbeafe); color: var(--ash-primary); font-size: 1.12rem; font-weight: 800; text-decoration: none; }
.ash-app-card__logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; background: #fff; }
.ash-app-card__heading { min-width: 0; }
.ash-app-card h3 { font-size: 1.2rem; margin: 2px 0 7px; }
.ash-app-card h3 a { color: var(--ash-heading); text-decoration: none; }
.ash-app-card h3 a:hover { color: var(--ash-primary); }
.ash-app-card__badges, .ash-app-card__terms { display: flex; flex-wrap: wrap; gap: 6px; }
.ash-badge, .ash-app-card__terms span { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: var(--ash-surface-soft); color: #475569; font-size: .74rem; font-weight: 700; }
.ash-badge--verified { background: #dcfce7; color: var(--ash-success); }
.ash-app-card__description { margin: 18px 0 16px; color: #526074; line-height: 1.6; }
.ash-app-card__terms { margin-top: auto; }
.ash-app-card__footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ash-border); }
.ash-app-card__stats { display: flex; gap: 11px; color: var(--ash-muted); font-size: .82rem; }

.ash-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ash-guide-card { overflow: hidden; border: 1px solid var(--ash-border); border-radius: var(--ash-radius); background: var(--ash-surface); transition: transform .18s ease, box-shadow .18s ease; }
.ash-guide-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgb(15 23 42 / 7%); }
.ash-guide-card__media { display: block; aspect-ratio: 16 / 9; background: var(--ash-surface-soft); overflow: hidden; }
.ash-guide-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ash-guide-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ash-muted); font-weight: 700; }
.ash-guide-card__body { padding: 21px; }
.ash-guide-card__meta { margin-bottom: 8px; color: var(--ash-muted); font-size: .8rem; }
.ash-guide-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.ash-guide-card h3 a { color: var(--ash-heading); text-decoration: none; }
.ash-guide-card p { margin: 0; color: var(--ash-muted); }

.ash-app-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--ash-border); border-radius: 24px; background: linear-gradient(135deg, #fff 15%, #eff6ff); }
.ash-app-hero__logo { width: 128px; height: 128px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--ash-border); border-radius: 28px; background: #fff; color: var(--ash-primary); font-size: 2rem; font-weight: 800; box-shadow: 0 18px 40px rgb(15 23 42 / 8%); }
.ash-app-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ash-app-hero h1 { margin: 8px 0 10px; }
.ash-app-hero__lead { max-width: 780px; margin: 0; color: #526074; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.ash-app-hero__badges, .ash-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ash-app-actions { margin-top: 22px; }
.ash-app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; align-items: start; margin-top: 34px; }
.ash-app-main { min-width: 0; }
.ash-prose { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--ash-border); border-radius: 20px; background: #fff; }
.ash-prose > :first-child { margin-top: 0; }
.ash-app-sidebar { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--ash-border); border-radius: 18px; background: #fff; }
.ash-app-sidebar h2 { font-size: 1.22rem; margin: 0 0 14px; }
.ash-facts { margin: 0; }
.ash-facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--ash-border); }
.ash-facts dt { color: var(--ash-muted); }
.ash-facts dd { margin: 0; color: var(--ash-heading); font-weight: 700; text-align: right; }
.ash-feature-list { display: grid; gap: 8px; margin-top: 18px; color: var(--ash-success); font-weight: 700; }
.ash-related-guides { margin-top: 44px; }

@media (max-width: 1040px) {
  .ash-home-hero__inner { grid-template-columns: 1fr; }
  .ash-home-hero__visual { min-height: 430px; max-width: 620px; width: 100%; margin-inline: auto; }
  .ash-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ash-catalog__controls { grid-template-columns: 1fr 1fr; }
  .ash-app-grid, .ash-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ash-app-layout { grid-template-columns: 1fr; }
  .ash-app-sidebar { position: static; }
}

@media (max-width: 720px) {
  .ash-shell { width: min(100% - 28px, 1280px); }
  .ash-home-hero { padding-top: 50px; }
  .ash-home-hero__copy h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .ash-hero-search { grid-template-columns: 1fr; }
  .ash-hero-search button { width: 100%; }
  .ash-home-hero__visual {
    min-height: 360px;
    max-width: 520px;
    margin-inline: auto;
  }

  .ash-visual-orbit {
    inset: 28px 4px 16px;
  }

  .ash-visual-card:not(.ash-visual-card--main) {
    gap: 6px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 11.5px;
  }

  .ash-visual-card--main {
    top: 108px;
    right: 18px;
    left: 18px;
    min-height: 116px;
    padding: 18px;
    border-radius: 19px;
  }

  .ash-visual-card--main .ash-visual-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;

    background-size: 191px auto !important;
    background-position: left center !important;

    border-radius: 0 !important;
  }

  .ash-visual-card--main strong {
    font-size: 1.08rem;
  }

  .ash-visual-card--main span {
    font-size: .82rem;
  }

  .ash-visual-card--five {
    top: 72px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg) scale(.9);
  }

  .ash-visual-card--one {
    top: 76px;
    right: 0;
    transform: rotate(11deg) scale(.84);
    transform-origin: right center;
  }

  .ash-visual-card--four {
    top: 75px;
    left: 0;
    transform: rotate(-11deg) scale(.84);
    transform-origin: left center;
  }

  .ash-visual-card--six {
    top: 190px;
    left: 0;
    transform: rotate(-7deg) scale(.82);
    transform-origin: left center;
  }

  .ash-visual-card--seven {
    top: 190px;
    right: 0;
    transform: rotate(7deg) scale(.82);
    transform-origin: right center;
  }

  .ash-visual-card--two {
    top: 218px;
    left: 20px;
    transform: rotate(-5deg) scale(.85);
    transform-origin: left center;
  }

  .ash-visual-card--three {
    top: 218px;
    right: 20px;
    transform: rotate(5deg) scale(.85);
    transform-origin: right center;
  }
  .ash-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ash-category-grid, .ash-app-grid, .ash-guide-grid { grid-template-columns: 1fr; }
  .ash-catalog__controls { grid-template-columns: 1fr; }
  .ash-home-cta { align-items: flex-start; flex-direction: column; }
  .ash-home-cta .ash-button { width: 100%; }
  .ash-app-card { min-height: 0; padding: 18px; }
  .ash-app-hero { grid-template-columns: 1fr; padding: 24px; }
  .ash-app-hero__logo { width: 92px; height: 92px; border-radius: 21px; }
  .ash-app-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* SeiMeister hero logo override */
.ash-visual-card--main .ash-visual-logo {
    display: grid !important;
    place-items: center !important;
    background-image: none !important;
    background-color: var(--ash-surface-soft) !important;
    border: 1px solid var(--ash-border) !important;
    border-radius: 18px !important;
    overflow: hidden;
}

.ash-visual-card--main .ash-visual-logo span {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

