/* Card Group Block Styles */
.card {
    margin: 0;
    border: none;
    background: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    cursor: pointer;
    transform: translateY(-5px);
}

.card:has(.card__link) {
    padding: 0;
}

.card .card__link {
    position: relative;
    text-decoration: none;
    display: block;
}

.card .card__link:focus {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.card .card__thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.card .card__footer {
    padding: 1.5rem;
}
.card .card__title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    flex: 1;
}

.card .card__title a {
    text-decoration: none;
    font-weight: bold;
}

.card .card__category {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin: 1.5rem 0 0 0;
}

.card .card__description {
    margin: 0.5rem 0;
}

.card .card__date {
    font-weight: normal;
    font-size: 1rem;
}

.card button {
    margin-top: 1rem;
}

.card .card__header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin: 0 0 0.5rem 0;
}


/* Post Styles */

.post-header {
  background: var(--white);
  padding: 4rem;
}
@media (max-width: 768px) {
  .post-header {
    padding: 1rem 0 3rem 0;
  }
}
@media (min-width: 768px) {
  .post-meta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .post-header .post-category, .post-header .meta-date {
    text-align: right;
  }
}
.post-header h1, .post-header p {
  margin: 0px;
}
.post-header p {
  font-size: 1.35rem;
}
.post-header img {
  width: 100%;
}
.post-header h1 {
  margin: 0 0 0.5rem 0;
}
.post-header .post-thumbnail {
    overflow: hidden;
}
.post-header .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.post-header .post-category {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey);
  margin: 0 0 0.5rem 0;
}
.post-header .author {
  font-size: 1.25rem
}
.post-header .meta-date {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .post-header .post-thumbnail img {
    aspect-ratio: 1/1;
  }
}

.post-content {
  padding: 3rem 0;
}
.post-list {
  justify-content: space-between;
  justify-items: flex-start;
}
.post-list .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Subpage Heading Block Styles */
.khm-subpage-heading {
  margin-bottom: 2rem;
}
.khm-subpage-heading .g-col {
  background: var(--white);
  padding: 2rem;
}
.khm-subpage-heading .post-thumbnail {
  margin-bottom: 2rem;
}
.khm-subpage-heading .post-thumbnail img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 768px) {
  .khm-subpage-heading .post-thumbnail img {
    aspect-ratio: 1 / 1;
  }
}
.khm-subpage-heading h1, .khm-subpage-heading p {
  margin: 0px;
}
.khm-subpage-heading p {
  font-size: 1.35rem;
}

/* Hero Block Styles */
.khm-hero-block {
  display: flex;
  justify-content: space-between;
}

.khm-hero-block__image {
  margin: 0px;
}
.khm-hero-block__image img {
    width: 100%;
    height: auto;
    height: 500px;
    object-fit: cover;
}

.khm-hero-block__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 3rem;
}

.khm-hero-block__headings {
  flex-grow: 0;
  align-self: flex-start;
}
.khm-hero-block__headings h1 {
  font-size: var(--hero-size);
  line-height: 100%;
  margin-top: 0px;
  margin-bottom: 10px;
}
.khm-hero-block__headings .long-headline {
  font-size: var(--h1-size);
}
.khm-hero-block__headings p {
  font-size: 1.75rem;
  margin: 0px;
  margin-top: 1rem;
}

.additional-info h4 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey);
  margin: 0px;
}
.additional-info p {
  margin: 0px;
  margin-top: 0.25rem;
  font-size: 1.75rem;
}

.khm-hero-block__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .khm-hero-block__headings h1 {
    font-size: var(--h1-size);
  }
  .khm-hero-block__headings p {
    font-size: 1.25rem;
  }
  .additional-info h4 {
    font-size: 1rem;
  }
  .additional-info p {
    font-size: 1.25rem;
  }
  .khm-hero-block__footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Latest Posts Block Styles */
.khm-latest-posts {
  padding-top: 2rem;
}
.khm-latest-posts h2 {
  margin: 0px;
}
.khm-latest-posts .post-category {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey);
  margin: 1rem 0 0.25rem 0;
}
.khm-latest-posts .post-teaser {
  margin-bottom: 2rem;
}
.khm-latest-posts .post-teaser h3 {
  font-size: 1.5rem;
  margin: 0.25rem 0;
}
.khm-latest-posts .post-teaser h3 a {
  text-decoration: none
}
.khm-latest-posts .post-teaser .post-thumbnail {
    overflow: hidden;
}
.khm-latest-posts .post-teaser .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 1s ease;
}
.khm-latest-posts .post-teaser .post-thumbnail img:hover {
  transform: scale(1.15);
}
.khm-latest-posts .post-teaser .date {
  font-size: 1rem;
}
@media (max-width: 768px) {
  .khm-latest-posts .g-col {
    justify-content: flex-start;
  }
}


/* Archive Styles */
.post-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.year {
  padding: 1rem 0;
  border-right: 4px solid var(--sand);
}
@media (max-width: 768px) {
    .year {
        border-right: none;
        border-bottom: 4px solid var(--sand);
    }
}
.year h2 {
  margin: 0;
}

/* Falls du nur zwischen den Beiträgen (aber nicht unter dem letzten)
   eine Linie möchtest, kannst du es so belassen */
.archive-item-2col:not(:last-child) .archive-item__inner {
  border-bottom: 1px solid var(--lightgrey);
}

.archive-item__inner {
  display: flex;
  align-items: center;   
  gap: .5rem;
  padding: 0 0 0 1rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.archive-item__inner:hover {
  background: var(--white);
}

.archive-item__inner h3 {
  margin: 0;
  font-size: 1.125rem;
  text-decoration: none;
}

/* Hover-Stil nur für den Titel */
.archive-item__inner:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--indian-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Animation für das Icon beim Hover */
.archive-item__inner:hover .archive-item__icon .icon {
  transition: all 0.25s ease-out;
  transform: translateX(10px);
}

.archive-item__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  width: 100%;
}

.archive-item__thumb {
  flex: 0 0 auto;
  width: 72px; 
  height: 72px; 
  overflow: hidden; 
  display: flex; 
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
    .archive-item__thumb {
      width: 40px; 
      height: 40px;
    }
    
    .archive-item__content {
      padding: .75rem;
    }
    
    .archive-item__inner {
      padding: 0;
    }
}

.archive-item__thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Falls du unterschiedliche Abstände oben/unten möchtest, kannst du das hier lassen. */
.archive-item__info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
}

.archive-item__date {
  display: block;
  font-size: 0.875rem;
  color: var(--grey);
}

.archive-item__icon {
  margin-left: 1rem;
}

.archive-item__icon .icon {
  width: 36px;
  height: 36px;
  fill: none;
  color: var(--grey);
}