/* 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; */
	font-size: 3rem;
}

.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;
	color: var(--black);
}

@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;
}

/* Details Styles */
.wp-block-pullquote {
	padding: 1rem 0;
}
blockquote {
	background: var(--white);
	padding: 2rem;
}

/* Details Styles */
details {
	border-radius: 12px;
	background: var(--white);
	margin-bottom: 1rem;
}
details::details-content {
	background: var(--white);
}
details[open]::details-content {
	padding: 2rem 2.5rem;
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}
details > summary {
	display: flex;
	align-items: center;
	font-weight: bold;
	font-size: var(--h3-size);
	padding: 2rem;
	border-radius: 12px;
}
details > summary::marker {
	font-size: 0;
	letter-spacing: 0;
	color: var(--blue);
	margin-right: 1rem;
}
details > summary:before {
	content: "";
	display: inline-block;
	width: 2rem;
	height: 2rem;
	margin-right: 1rem;
	transform: rotate(90deg);
	transform-origin: center;
	background-size: contain;
	background-image: url('../icons/chevron-right.svg');
	background-repeat: no-repeat;
	background-position: center center;
	transition: all 300ms;
}
details[open] > summary:before {
	transform: rotate(-90deg);
}
details[open] > *:not(summary) {
	margin-top: 0;
}
details[open] > summary {
	border-bottom: 1px solid var(--blue-10);
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}

/* Card Group Block Styles */
.card {
	margin: 0;
	border: none;
	background: var(--white);
	border-radius: 16px;
	text-decoration: none;
	padding: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card:hover {
	cursor: pointer;
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.card .card__link {
	padding: 1.5rem;
	position: relative;
	text-decoration: none;
	display: block;
	border-radius: 16px;
}

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

.card .card__thumbnail img {
	width: 100%;
	border-radius: 8px;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4/3;
}

.card .card__title {
	font-size: 1.5rem;
	margin: 0.5rem 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;
}

/* Latest Posts Block Styles */
.latest-posts h2, .latest-projects h2  {
	margin: 0px;
}

.latest-posts .sidenote, .latest-projects .sidenote {
	font-size: var(--h3-size);
	font-weight: bold;
	color: var(--grey);
}

@media (max-width: 768px) {
	.latest-posts .g-col {
		justify-content: flex-start;
	}
}

/* Latest Posts Projects Styles */
.latest-projects .card__link {
	padding: 0;
}

.latest-projects .card__title {
	margin-top: 0;
}

.latest-projects .card .card__content {
	padding: 1.5rem;
}

.latest-projects .card .card__thumbnail img {
	aspect-ratio: 16/9;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}


/* Latest Posts List Layout – Listendarstellung */
.latest-posts-list .card--list {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	align-items: flex-start;
	padding: 0;
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin: 0;
}

.latest-posts-list .card__link {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	padding: 0;
}

.latest-posts-list .card__media {
	width: 200px;
	flex-shrink: 0;
}

.latest-posts-list .card__media img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 1/1;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.latest-posts-list .card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 2rem;
}

.latest-posts-list .card__title {
	margin: 0 0 0.75rem 0;
	font-size: 1.5rem;
	color: var(--royal-blue);
}

.latest-posts-list .card__description {
	margin: 0 0 0.75rem 0;
}

.latest-posts-list .card__category {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--grey);
	margin-bottom: 0.25rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.latest-posts-list .card__date {
	font-size: 0.9rem;
	color: var(--grey);
}

.card__meta {
	display: flex;
	align-items: center;
	margin-top: auto;
	font-size: 0.9rem;
	color: var(--grey);
	gap: 1rem;
}

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

.card__meta .card__date {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--black);
}

.card__date,
.card__meta .card__date {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
}

@media (max-width: 768px) {
  .latest-posts-list .card--list {
	flex-direction: column;
  }
  
  .latest-posts-list .card__link {
	  flex-direction: column;
  }
  
  .latest-posts-list .card__media {
	width: 100%;
  }
  .latest-posts-list .card__title {
	  font-size: 1.25rem;
  }
  .latest-posts-list .card__description {
	  font-size: 0.9rem;
  }
  .latest-posts .card__meta {
	  font-size: 0.75rem;
	  flex-direction: column;
	  align-items: start;
	  gap: 0.25rem;
  }
  .card__meta .card__category, .card__meta .card__date {
	  font-size: 0.75rem;
  }
  .latest-posts-list .card__media img {
	aspect-ratio: 16/9;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	border-bottom-left-radius: 0;
  }

  .latest-posts-list .card__content {
	padding: 1.5rem;
  }
}