/* Kennzahlen unter den Kundenbewertungen. */
.bd-stats-card {
  background:var(--farbe-weiss);
  border-radius:var(--bd-radius);
  box-shadow:var(--bd-shadow)
}

.bd-stats-card h2 {
  margin:0 0 clamp(16px,3vw,32px)
}

.bd-stats-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(12px,2.5vw,28px);
  padding:0;
  margin:0;
  list-style:none
}

@media(min-width:1101px) {
  .bd-stats-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}

.bd-stat {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:clamp(18px,4vw,48px) clamp(8px,2vw,24px);
  border-radius:var(--bd-submenu-radius);
  background:var(--bd-stat-background);
  color:var(--bd-stat-color,var(--farbe-06));
  text-align:center;
  overflow-wrap:anywhere
}

.bd-stat strong {
  font-size:clamp(36px,5vw,56px);
  font-weight:400;
  line-height:1
}

.bd-stat span {
  font-size:20px;
  font-weight:400;
  line-height:1.25
}

.bd-stat-experience {
  --bd-stat-background:var(--farbe-01);
  --bd-stat-color:var(--farbe-weiss)
}
.bd-stat-websites { --bd-stat-background:var(--farbe-03) }
.bd-stat-customers { --bd-stat-background:var(--farbe-bewertungssterne) }
.bd-stat-rating { --bd-stat-background:var(--farbe-06); --bd-stat-color:var(--farbe-weiss) }

/* Nur Startseite: fünf Leistungskacheln. */
.bd-tile-grid {
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:repeat(9,1fr)
}

.bd-tile {
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:18px 12px;
  font-size:23px;
  font-weight:700;
  line-height:1.2
}

.bd-tile:focus-visible {
  outline-offset:-7px!important
}

.bd-tile-web {
  background:var(--farbe-01);
  grid-column:1;
  grid-row:1/7;
  color:var(--farbe-weiss)!important
}

.bd-tile-caption {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
  width:100%
}
.bd-tile-caption > span {
  display:grid;
  place-items:center;
  flex:none;
  width:26px;
  height:26px;
  background:color-mix(in srgb,currentColor 20%,transparent);
  border-radius:50%
}

.bd-tile-shop {
  background:var(--farbe-03);
  grid-column:1;
  grid-row:7/10;
  color:var(--farbe-06)!important
}

.bd-tile-flyer {
  background:var(--farbe-04);
  grid-column:2;
  grid-row:1/4;
  color:var(--farbe-06)!important
}

.bd-tile-cards {
  background:var(--farbe-02);
  grid-column:2;
  grid-row:4/6;
  color:var(--farbe-06)!important
}

.bd-tile-logo {
  background:var(--farbe-06);
  grid-column:2;
  grid-row:6/10;
  color:var(--farbe-weiss)!important
}

@media(min-width:768px) and (max-width:1100px) {
  .bd-tile-grid {
    height:540px;
    min-height:540px
  }

  .bd-tile {
    font-size:20px;
    padding-bottom:14px
  }

}

@media(max-width:767px) {
  .bd-tile-grid {
    grid-template-rows:none;
    grid-auto-rows:minmax(160px,auto)
  }

  .bd-tile {
    grid-column:auto;
    grid-row:auto;
    padding:12px 5px;
    font-size:clamp(16px,4.7vw,20px);
    overflow-wrap:anywhere
  }

  .bd-tile-web {
    grid-column:1/-1;
    min-height:232px
  }

  .bd-tile-caption > span { width:22px; height:22px }
  .bd-tile-caption svg { width:18px; height:18px }

}

/* Angebotskarten: Kategorie-Farbe und gemeinsame Akzente für alle fünf Leistungen. */
.bd-offer-section {
  --bd-category-color:var(--farbe-01);
  margin-top:20px;
  padding:0 24px
}

.bd-offer-shop {
  --bd-category-color:var(--farbe-03);
}

.bd-offer-logo {
  --bd-category-color:var(--farbe-06);
}

.bd-offer-cards {
  --bd-category-color:var(--farbe-02);
}

.bd-offer-flyer {
  --bd-category-color:var(--farbe-04);
}

.bd-offer-card {
  max-width:1280px;
  margin:auto;
  background:var(--farbe-weiss);
  border-radius:var(--bd-radius);
  box-shadow:var(--bd-shadow);
  overflow:hidden
}

.bd-offer-framed {
  --bd-offer-accent-ratio:.68
}

.bd-offer-framed .bd-offer-card {
  position:relative;
  isolation:isolate
}

.bd-offer-framed .bd-offer-card::after {
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:90px;
  height:170px;
  background:var(--bd-category-color);
  clip-path:polygon(100% 0,100% 100%,0 100%);
  pointer-events:none;
  z-index:-1
}

.bd-offer-intro {
  display:grid;
  grid-template-columns:45% 55%
}

.bd-offer-visual {
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  padding:40px 24px 40px 60px;
  overflow:hidden
}

.bd-offer-visual::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--bd-offer-accent-width,auto);
  height:100%;
  aspect-ratio:var(--bd-offer-accent-ratio,.424);
  background:var(--bd-category-color);
  clip-path:var(--bd-offer-accent-shape,polygon(0 0,100% 0,0 100%));
  pointer-events:none
}

.bd-offer-visual img {
  display:block;
  width:100%;
  height:auto;
  position:relative
}

.bd-offer-copy {
  padding:44px 44px 40px 20px;
  min-width:0
}

.bd-offer-copy h2 {
  font-size:24px;
  line-height:1.3;
  margin:0 0 24px
}

.bd-offer-copy h2::after {
  content:"";
  display:block;
  width:64px;
  height:4px;
  background:var(--farbe-linie);
  margin-top:18px;
  border-radius:2px
}

.bd-offer-copy p {
  margin:0 0 20px
}

.bd-offer-copy .bd-button {
  margin-top:4px
}

.bd-offer-reference {
  display:grid;
  grid-template-columns:300px 1fr;
  gap:36px;
  margin:0 44px;
  padding:32px 0 40px;
  border-top:1px solid var(--farbe-linie);
  align-items:center
}

.bd-reference-image {
  display:block;
  border-radius:12px;
  overflow:hidden
}

.bd-reference-image img {
  display:block;
  width:100%;
  height:auto
}

.bd-reference-copy {
  min-width:0
}

.bd-reference-copy .bd-reference-label {
  font-size:14px;
  font-weight:700;
  color:var(--farbe-06);
  margin:0 0 8px
}

.bd-reference-copy h3 {
  font-size:20px;
  margin:0 0 12px;
  line-height:1.3
}

.bd-reference-copy p {
  margin:0 0 16px
}

.bd-reference-quote {
  margin:20px 0;
  padding:0;
  border:0;
  font-style:italic
}

.bd-reference-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px
}

@media(min-width:768px) and (max-width:1100px) {
  .bd-offer-intro {
    grid-template-columns:40% 60%
  }

  .bd-offer-visual {
    padding-left:36px;
    padding-right:12px
  }

  .bd-offer-copy {
    padding:32px 28px 32px 12px
  }

  .bd-offer-reference {
    grid-template-columns:220px 1fr;
    margin:0 28px;
    gap:24px
  }

}

@media(max-width:767px) {
  .bd-offer-framed {
    --bd-offer-accent-width:100%;
    --bd-offer-accent-ratio:auto;
    --bd-offer-accent-shape:polygon(0 0,100% 0,100% 24%,0 90%)
  }

  .bd-offer-framed .bd-offer-visual {
    padding:40px 24px 24px
  }

  .bd-offer-framed .bd-offer-card::after {
    display:none
  }

  .bd-offer-section {
    margin-top:0;
    padding-inline:0
  }

  .bd-offer-card {
    border-radius:0;
    box-shadow:none
  }

  .bd-offer-intro {
    grid-template-columns:1fr
  }

  .bd-offer-visual {
    padding:32px 24px 24px 44px
  }

  .bd-offer-copy {
    padding:16px 24px 30px
  }

  .bd-offer-copy h2 {
    font-size:22px
  }

  .bd-offer-reference {
    grid-template-columns:1fr;
    margin:0 24px;
    padding:28px 0 32px;
    gap:24px
  }

  .bd-reference-image {
    max-width:450px
  }

  .bd-reference-links {
    flex-direction:column;
    align-items:flex-start
  }

}

.bd-tile-caption svg {
  transform:rotate(90deg)
}

/* SVG-Illustrationen der fünf Leistungskacheln */
.bd-device-stage {
  position:absolute;
  inset:8px 8px 58px;
  display:grid;
  place-items:center;
  grid-template:minmax(0,1fr) / minmax(0,1fr);
  pointer-events:none;
}

.bd-device-scene {
  width:100%;
  height:100%;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.bd-device-scene .device-shell {
  fill:color-mix(in srgb, var(--farbe-01) 96%, var(--farbe-weiss));
}

.bd-device-scene .page { stroke-width:1; }
.bd-device-scene .headline { stroke-width:2; }
.bd-device-scene text {
  fill:currentColor;
  stroke:none;
  font:600 9px/1 var(--schrift-standard, "Trebuchet MS", sans-serif);
}
.bd-device-scene .page text { font-size:8px; letter-spacing:1.2px; }
.bd-device-scene .page .tiny { font-size:5px; letter-spacing:.6px; }
/* Die Shopzeichnung erbt das Dunkelblau der Kachelbeschriftung. */
.bd-shop-scene .shop-tint { fill:currentColor; fill-opacity:.06; }
.bd-shop-scene .shop-product { font-size:12px; }
.bd-shop-scene .shop-cart-disc { fill:var(--farbe-03); }

/* Aufgeschlagener Flyer als Grundzustand für Touch und reduzierte Bewegung. */
.bd-flyer-scene .flyer-paper { fill:var(--farbe-04); }
.bd-flyer-scene .flyer-shade { fill:color-mix(in srgb,var(--farbe-04) 94%,currentColor); }
.bd-flyer-scene .flyer-wash { fill:currentColor; fill-opacity:.07; }
.bd-flyer-scene .flyer-title { font-size:13px; }
.bd-flyer-scene .flyer-subhead { font-size:10px; }
.bd-flyer-scene .flyer-fine { opacity:.6; stroke-width:1; }
.flyer-fold {
  transform-box:view-box;
  transform-origin:0 0;
  transform:skewY(var(--paper-tilt)) scaleX(.98);
}
.flyer-left { --paper-tilt:6deg; --open-delay:740ms; }
.flyer-right { --paper-tilt:9deg; --open-delay:450ms; }
.flyer-cover { opacity:0; }

@media (min-width:768px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .bd-flyer-scene .bd-flight { --assembly-duration:460ms; --lag:0ms; }
  .flyer-fold {
    transform:skewY(0deg) scaleX(-1);
    transition:transform 320ms ease-in;
  }
  .flyer-inside { opacity:0; }
  .flyer-cover { opacity:1; }
  .bd-tile-flyer:is(:hover,:focus-visible) .flyer-fold {
    transform:skewY(var(--paper-tilt)) scaleX(.98);
    transition:transform 540ms cubic-bezier(.45,.05,.23,1) var(--open-delay);
  }
  /* Die bedruckte Seite wechselt, wenn der Flügel fast von der Kante aus zu sehen ist. */
  .bd-tile-flyer:is(:hover,:focus-visible) .flyer-inside,
  .bd-tile-flyer:is(:hover,:focus-visible) .flyer-cover {
    transition:opacity 50ms linear calc(var(--open-delay) + 200ms);
  }
  .bd-tile-flyer:is(:hover,:focus-visible) .flyer-inside { opacity:1; }
  .bd-tile-flyer:is(:hover,:focus-visible) .flyer-cover { opacity:0; }
}

/* Das durchgefärbte Papier deckt die jeweils dahinterliegende Karte ab. */
.bd-card-scene .card-stock { fill:var(--farbe-02); }
.bd-card-scene .card-back { fill:color-mix(in srgb,var(--farbe-02) 94%,currentColor); }
.bd-card-scene .card-rule { opacity:.56; stroke-width:1; }
.bd-card-scene text { font-size:7px; }
.bd-card-scene .card-brand { font-size:13px; }
.bd-card-scene .card-name { font-size:11.5px; }

/* Die Federspitze folgt genau dem Pfad, dessen Kontur sichtbar wird. */
.bd-tile-logo { --ray-start:1.68s; --arrow-start:2.34s; }
.bd-logo-scene .bd-flight { --assembly-duration:390ms; }
.logo-wash { fill:currentColor; fill-opacity:.075; stroke:none; }
.logo-baseline, .logo-guide { stroke-dasharray:2 4; opacity:.3; stroke-width:1; }
.logo-ink { stroke-width:2.5; }
.logo-handles { stroke-width:1; stroke-opacity:.7; }
.logo-nodes, .logo-handles circle, .logo-pen { fill:var(--farbe-06); }
.logo-pen { transform:translate(28px,65px); }

@media (min-width:768px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .bd-logo-scene { --draw-time:1.18s; --draw-delay:440ms; }
  .logo-ink { stroke-dasharray:100; stroke-dashoffset:100; }
  .bd-tile-logo:is(:hover,:focus-visible) .logo-ink {
    animation:bd-logo-draw var(--draw-time) ease-in-out var(--draw-delay) both;
  }
  @supports (offset-path:path("M0 0L1 1")) {
    .logo-pen {
      transform:none;
      offset-path:path("M0 0 C10 -25 34 -34 52 -27 C70 -20 80 -5 80 14 C80 45 57 65 28 65");
      offset-anchor:0px 0px;
      offset-position:0px 0px;
      offset-rotate:0deg;
      transform-box:view-box;
    }
    .bd-tile-logo:is(:hover,:focus-visible) .logo-pen {
      animation:bd-logo-pen var(--draw-time) ease-in-out var(--draw-delay) both;
    }
  }
}
@keyframes bd-logo-draw { to { stroke-dashoffset:0; } }
@keyframes bd-logo-pen { from { offset-distance:0%; } to { offset-distance:100%; } }

.bd-device-scene .page .bd-screen-name { letter-spacing:0; }

/* Ein kurzer Lichtimpuls läuft auf jedem Strahl radial durch den äußeren Bereich. */
.bd-finish-rays path {
  opacity:0;
  stroke-width:2.2;
  stroke-dasharray:1 110;
}
.bd-finish-rays path:nth-child(even) {
  --ray-stagger:40ms;
  stroke-width:1.55;
}

.bd-tile-flyer {
  --ray-start:1.3s;
  --arrow-start:1.96s;
}

@media (prefers-reduced-motion:no-preference) {
  .bd-illustrated-link:is(:hover,:focus-visible) .bd-finish-rays path {
    animation:bd-finish-ray 560ms cubic-bezier(.18,.6,.4,1) calc(var(--ray-start,950ms) + var(--ray-stagger,0ms)) both;
  }
}

@keyframes bd-finish-ray {
  0%   { opacity:0; stroke-dasharray:1 110; stroke-dashoffset:-36; }
  18%  { opacity:1; stroke-dasharray:13 110; stroke-dashoffset:-43; }
  62%  { opacity:1; stroke-dasharray:18 110; stroke-dashoffset:-72; }
  100% { opacity:0; stroke-dasharray:3 110; stroke-dashoffset:-97; }
}

.bd-flight {
  transform-box:fill-box;
  transform-origin:center;
  transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.91);
  opacity:0;
  transition:transform 490ms cubic-bezier(.45,.02,.78,.56),
             opacity 400ms ease-in;
}

.from-left         { --dx:-280px; --dy:-45px; --turn:-12deg; --lag:0ms; }
.from-right        { --dx:285px;  --dy:44px;  --turn:10deg;  --lag:90ms; }
.from-top          { --dx:18px;   --dy:-280px;--turn:-8deg;  --lag:65ms; }
.from-bottom       { --dx:-55px;  --dy:270px; --turn:12deg;  --lag:50ms; }
.from-bottom-left  { --dx:-240px; --dy:220px; --turn:-14deg; --lag:145ms; }
.from-bottom-right { --dx:200px;  --dy:250px; --turn:13deg;  --lag:115ms; }
.from-top-right    { --dx:210px;  --dy:-230px;--turn:9deg;   --lag:175ms; }

.bd-illustrated-link:is(:hover,:focus-visible) .bd-flight {
  transform:translate(0,0) rotate(0) scale(1);
  opacity:1;
  transition:transform var(--assembly-duration) cubic-bezier(.19,.89,.28,1.095) var(--lag),
             opacity 440ms ease-out var(--lag);
}

/* Gehäuse und zugehörige Seiteninhalte schweben nach der Montage gemeinsam. */
.bd-illustrated-link:is(:hover,:focus-visible) .bd-float {
  animation:bd-device-float var(--cycle,5s) ease-in-out 950ms infinite alternate both;
}
.bd-device-scene .tablet {
  --float-x:1.8px; --float-y:2.8px; --cycle:3.9s;
}
.bd-device-scene .phone {
  --float-x:-1.6px; --float-y:-3px; --cycle:3.3s;
}
@keyframes bd-device-float {
  from { transform:translate(0,0); }
  to { transform:translate(var(--float-x,1px),var(--float-y,-2px)); }
}

@media (min-width:1101px) {
  .bd-shop-scene { transform:scale(.93); }
  /* Nur die gemeinsame Kante der beiden rechten Kacheln verschieben. */
  .bd-tile-grid { --card-extra-height:20px; }
  .bd-tile-cards { margin-bottom:calc(0px - var(--card-extra-height)); }
  .bd-tile-logo { margin-top:var(--card-extra-height); }
}

@media (min-width:768px) and (max-width:1100px) {
  .bd-illustrated-link .bd-device-scene {
    position:absolute;
    inset:0;
    margin:auto;
    width:92%;
    height:92%;
  }
}

@media (max-width:767px) {
  .bd-device-stage { inset:6px 10px 42px; }
}

/* Die illustrierten Kacheln verlinken auf ihre Angebotsseiten. */
.bd-site .bd-illustrated-link {
  --assembly-duration:750ms;
  padding-inline:25px;
}

.bd-illustrated-link .bd-tile-caption {
  justify-content:space-between;
  text-align:start;
}

.bd-illustrated-link .bd-tile-caption > span {
  width:38px;
  height:38px;
}

@media (min-width:768px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .bd-illustrated-link:is(:hover,:focus-visible) .bd-tile-caption > span {
    animation:bd-homepage-arrow 380ms ease-in-out var(--arrow-start,1.6s) both;
  }
}

@keyframes bd-homepage-arrow {
  0%, 100% { transform:translateX(0); }
  48% { transform:translateX(7px); }
  77% { transform:translateX(-1.5px); }
}

@media (max-width:767px) {
  .bd-site .bd-illustrated-link {
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    align-items:stretch;
    row-gap:12px;
    padding-block:10px 20px;
  }
  .bd-illustrated-link .bd-device-stage {
    position:relative;
    inset:auto;
    min-height:0;
  }
  .bd-illustrated-link .bd-device-scene {
    position:absolute;
    inset:0;
    margin:auto;
    width:100%;
    height:100%;
    max-width:230px;
    max-height:155px;
    transform:scale(1.07);
  }
  :is(.bd-tile-shop,.bd-tile-flyer,.bd-tile-cards,.bd-tile-logo).bd-illustrated-link .bd-device-scene {
    max-height:100%;
    transform:none;
  }
  .bd-illustrated-link .bd-tile-caption > span { width:34px; height:34px; }
}

@media (max-width:767px), (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce) {
  .bd-site .bd-illustrated-link .bd-flight {
    opacity:1;
    transform:none;
    transition:none;
  }
  .bd-site .bd-illustrated-link .bd-float,
  .bd-site .bd-illustrated-link .bd-finish-rays path {
    animation:none;
  }
}

@media (max-width:400px) {
  .bd-site .bd-tile-cards.bd-illustrated-link { padding-inline:14px; }
}

@media (max-width:370px) {
  .bd-site .bd-tile-shop.bd-illustrated-link { padding-inline:16px; }
}
