#home .badge{
  width:60px;
  background-color: #fd7e14!important;
  font-size:100%;
  font-weight:normal;
}
.homecard-disabled {
  opacity: 0.55;
  filter: grayscale(0.8);
  background-color: #f1f3f5 !important;
  pointer-events: none;
  cursor: not-allowed;
}
#imageCarousel img {
  object-fit: cover;
  height: 400px;
}
.teaser-text {
  white-space: normal;
  line-height: 1.6;
}

.teaser-text .toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
    opacity: 0.7;
    font-size: 0.875rem;
}

.teaser-text .toggle-link:hover {
    opacity: 1;
}

.teaser-text .toggle-icon {
    font-size: 0.75em;
}

.card{
  margin:5px;
}
.homecard, .homecard:visited, .homecard a {
  text-decoration: none!important;
}
#projektCards .card-img,
#projektCards .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.submission-placeholder {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);


  color: rgba(255,255,255,0.96);
  font: 600 1rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);

  --c1: #68c7df;
  --c2: #8fd3a3;
  --c3: #d8df7b;
  --c4: #e4a261;
  --c5: #c86c7a;

  background: linear-gradient(135deg, var(--c1), var(--c2) 28%, var(--c3) 52%, var(--c4) 76%, var(--c5));
}

.submission-placeholder .label {
  position: relative;
  z-index: 10;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.submission-placeholder .poly {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

/* große Facetten */
.submission-placeholder .p1 {
  background: rgba(255,255,255,0.16);
  clip-path: polygon(0 0, 38% 0, 22% 34%, 0 48%);
}

.submission-placeholder .p2 {
  background: rgba(255,255,255,0.10);
  clip-path: polygon(38% 0, 72% 0, 58% 28%, 22% 34%);
}

.submission-placeholder .p3 {
  background: rgba(0,0,0,0.08);
  clip-path: polygon(72% 0, 100% 0, 100% 42%, 58% 28%);
}

.submission-placeholder .p4 {
  background: rgba(255,255,255,0.08);
  clip-path: polygon(0 48%, 22% 34%, 58% 28%, 44% 72%, 0 100%);
}

.submission-placeholder .p5 {
  background: rgba(0,0,0,0.10);
  clip-path: polygon(58% 28%, 100% 42%, 100% 100%, 44% 72%);
}

.submission-placeholder .p6 {
  background: rgba(255,255,255,0.07);
  clip-path: polygon(22% 34%, 44% 72%, 0 100%);
}
.card-item:nth-child(4n + 1) .submission-placeholder {
--c1: #63c7e8; /* helles Cyanblau */
--c2: #5bb8e6; /* leicht tiefer */
--c3: #4aa3dc; /* mittleres Blau */
--c4: #3a86c8; /* kräftiger */
--c5: #2c6aa8; /* dunkles Blau */
}

.card-item:nth-child(4n + 2) .submission-placeholder {
--c1: #63c7e8; /* helles Cyanblau */
--c2: #5bb8e6; /* leicht tiefer */
--c3: #4aa3dc; /* mittleres Blau */
--c4: #3a86c8; /* kräftiger */
--c5: #2c6aa8; /* dunkles Blau */
}

.card-item:nth-child(4n + 3) .submission-placeholder {
--c1: #63c7e8; /* helles Cyanblau */
--c2: #5bb8e6; /* leicht tiefer */
--c3: #4aa3dc; /* mittleres Blau */
--c4: #3a86c8; /* kräftiger */
--c5: #2c6aa8; /* dunkles Blau */
}

.card-item:nth-child(4n + 4) .submission-placeholder {
 --c1: #63c7e8; /* helles Cyanblau */
--c2: #5bb8e6; /* leicht tiefer */
--c3: #4aa3dc; /* mittleres Blau */
--c4: #3a86c8; /* kräftiger */
--c5: #2c6aa8; /* dunkles Blau */
}
.card-item:nth-child(2n) .p2 {
  clip-path: polygon(38% 0, 72% 0, 65% 35%, 25% 30%);
}

.card-item:nth-child(2n) .p4 {
  clip-path: polygon(0 48%, 25% 30%, 60% 25%, 50% 80%, 0 100%);
}

/* Variante B */
.card-item:nth-child(3n) .p3 {
  clip-path: polygon(72% 0, 100% 0, 100% 50%, 50% 20%);
}

.card-item:nth-child(3n) .p5 {
  clip-path: polygon(60% 25%, 100% 50%, 100% 100%, 40% 75%);
}
.submission-placeholder .poly {
  opacity: 0.25;
}
.card-item:nth-child(odd) .poly {
  transform: scale(1.05) rotate(120deg);
}


#projektCards h3 {
  line-height: 1.2;
  min-height: calc(2 * 1.2em);
  font-size:180%
}
.card-header #joker{
  background-color:#ffc107;
  width: 3.5em;
  height: 3.5em;
  transform: scale(1.05) rotate(20deg);
  position:absolute;
  top:-5px;
  right:-5px;
  webkit-border-radius: 100px;
  border-radius: 100px;
  padding-left:8px;
  padding-top:7px
}
.card-header #joker svg {
  color:white
}
.icon-gold {
    height: 34px;
    fill: #fff;
}
.progress-bar.bg-warning {
  color:black
}
#projektCards h3 {

}

#projektCards .card-header {
  border:none
}
#projektCards .card-item{
      margin-top: 15px !important;
}
.slider-label{
	width:90%;
}
.slider-value{
  display:block;
  padding: 4px 4px;
  border-radius: 100px;
  background-color: #ffc107;
  color: #e61414;
  font-size: 15px;
	width:30px;
	height:30px;
	text-align:center;

}

#main:has(#home) > .section > .c-grid > #DIH {
  grid-column: 1 / -1;
}

.project-overview {
  padding: 2.5rem 2rem;
  border-left: 4px solid #ad2835;
  background: linear-gradient(110deg, #f5f7f7 0%, #fff 72%);
}

.project-eyebrow {
  margin-bottom: 0.45rem;
  color: #ad2835;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-overview h1 {
  margin-bottom: 0.65rem;
  color: #263238;
  font-size: 2.25rem;
  font-weight: 600;
}

.project-intro {
  max-width: 760px;
  color: #526168;
  font-size: 1rem;
}

#home {
  padding-top: 1rem !important;
  padding-bottom: 3rem !important;
}

#home .project-list-heading {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dfe5e6;
}

#home .project-list-heading h2 {
  margin-bottom: 0.25rem;
  color: #263238;
  font-size: 1.5rem;
  font-weight: 600;
}

#home .project-list-heading p {
  color: #647178;
}

#home .project-filters {
  margin-bottom: 1.25rem !important;
}

#home .project-filters .form-control,
#home .project-filters .form-select {
  min-height: 46px;
  border-color: #cbd4d6;
  border-radius: 6px;
  background-color: #fff;
}

#home .project-filters .form-control:focus,
#home .project-filters .form-select:focus {
  border-color: #ad2835;
  box-shadow: 0 0 0 0.2rem rgba(173, 40, 53, 0.14);
}

#home .card-item {
  margin-top: 0;
}

#home .homecard {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e0e5e6;
  border-radius: 8px;
  background-color: #fff;
  color: #263238;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(31, 45, 50, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#home .homecard:hover {
  transform: translateY(-3px);
  border-color: #c9d2d4;
  color: #263238;
  box-shadow: 0 10px 24px rgba(31, 45, 50, 0.12);
}

#home .homecard:focus-visible {
  outline: 3px solid rgba(173, 40, 53, 0.45);
  outline-offset: 3px;
}

#home .homecard .card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 12px;
  background-color: #f3f5f5;
}

#home .homecard .card-img-top {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#home .homecard .submission-card,
#home .homecard .submission-placeholder {
  width: 100%;
  height: 100%;
}

#home .homecard .submission-placeholder {
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

#home #projektCards h3 {
  min-height: 2.6em;
  margin-bottom: 0.75rem;
  color: #263238;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

#home .homecard .card-body {
  flex: 1;
  padding: 1.25rem;
  border-top: 1px solid black;
}

#home .homecard .card-body p {
  margin-top: 0.45rem;
  color: #58666c;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  .project-overview {
    margin-top: 1.5rem !important;
    padding: 1.5rem 1.25rem;
  }

  .project-overview h1 {
    font-size: 1.8rem;
  }
}
