* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-dark: #080808;
  --color-light: #efefef;
  --color-text: var(--color-black);
  --color-text-darkmode: var(--color-white);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-background-darkmode: var(--color-black);
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #fff;
    --color-text-alt: #aaa;
    --color-background: #000;
    --color-background-alt: #111;
  }
}

/*
@media (prefers-color-scheme: dark) {
html {
  color: var(--color-text-darkmode);
  background: var(--color-background-darkmode);
 }
}
*/

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
}


img {
  width: 100%;
  height: 100%; /* added for responsiove-image */
}
body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  /*margin-bottom: 6rem;*/
  margin-bottom: 3rem;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
}
.menu a {
  padding: 1rem;
  display: block;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.text {
  /* line-height: 1.7em; */
  line-height: 1.8;
  /*font-size: 1.1em;*/
  /* bis 14.06.2025 1.7 und 1.1 — jetzt 1.8 und 1.2 und mobile etwas grösser */
}

@media only screen and (min-width: 1180px) {
  .text {
    /* font-size: 2.25em; */
    font-size: 1.2rem;
  }
}
@media only screen and (max-width: 1180px) {
  .text {
    /* font-size: 1.625em; */
    font-size: 1.2rem;
  }
}
@media only screen and (max-width: 768px) {
  .text {
    font-size: 1.3rem;
    line-height: 1.6;
  }
}

.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  font-size: 0.8em;
  background: var(--color-light);
  padding: 0 .5rem;
  padding: 0;
  display: inline-block;
  color: var(--color-black);
  
  /*white-space: pre-wrap;*/         /* Zeilenumbrüche ermöglichen */
  /*overflow-wrap: break-word;*/      /* Optional: lange Wörter umbrechen */
}
@media (prefers-color-scheme: dark) {
  .text code {
    background: var(--color-dark);
	color: var(--color-white);
  }
 }
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  padding: unset;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
  background: #222;
  box-shadow: 0 0 0 1.5em #222
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.s5rem;
  line-height: 1.7em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
  transition: all 0.3s ease; /* Sanfte Animation */
}

.text figcaption {
  padding-top: 0.25rem;
  font-size: 0.85em;
  color: var(--color-text-grey);
}
@media (prefers-color-scheme: dark) {
  .text figcaption {
    color: var(--color-code-light-grey);
  }  
}

.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  height: 1px;
  width: 1.5rem;
  width: 100%; /*35rem;*/
  max-width: 35rem;
  margin: 3rem auto;
  background: var(--color-text-grey);
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

/*.video,*/
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
  background: transparent;
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: contain;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 9rem 0 6rem;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p,
.footer svg {
  color: var(--color-text-grey);
  fill: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover,
.footer a:hover svg {
  color: var(--color-text);
  fill: var(--color-text);
}
/*
@media (prefers-color-scheme: dark) {
  .footer a:hover,
  .footer a:hover svg {
    color: var(--color-text-darkmode);
	fill: var(--color-text-darkmode);
  }
}
*/

.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;

  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* optional, falls Elemente in mehreren Zeilen umbrechen sollen */
}

.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .35rem;
  min-width: 1.5rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) {
  .pagination > * {
    border: 1px solid currentColor;
  }
}
.pagination > a.inactive:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
@media (prefers-color-scheme: dark) {
  .pagination > a.inactive:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
  }
 }

.pagination > a.active {
  border: none;
  font-weight: 600;
}
.pagination > a.pagination-prev,
.pagination > a.pagination-next
 {
  border: none;
}
.pagination > span {
  border: none;
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}
.note-date {
  /*color: var(--color-text-grey);*/
  /*font-size: 1rem;*/
  text-transform: lowercase;
}
.note-meta {
  color: var(--color-text-grey);
  font-size: 0.9rem;
  line-height: 1.4em;
}


.stats dl {
	margin: 0 auto;
	max-width: 450px;
	max-width: 100%;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	border-bottom: 1px solid;
	font-size: 0.8em;
	line-height: 1.6em;
	padding-top: 2rem;
}

.stats dt {
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
	margin: 0;
	padding: 0.5rem 0.5rem 0.5rem 0;
	font-weight: 700;
	border-top: 1px solid;
	box-sizing: border-box;
	padding: 0.5rem 0 !important;
}

.stats dd {
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
	margin: 0;
	padding: 0.5rem 0;
	border-top: 1px solid;
}

.stars {
  display: inline-flex;
  gap: 0.1em;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.star {
  color: #ccc; /* Standard: hellgrau */
  transition: color 0.3s ease;
}

.star.half {
  background: linear-gradient(90deg, #ccc 48%, #000 52%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.stars:hover .star.full {
  color: gold;
}

.stars:hover .star.half {
  background: linear-gradient(90deg, gold 48%, #000 52%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

:where(h1) {
  margin-block: 0.67em;
  font-size: 2em;
}

/* https://medienbaecker.com/articles/animate-native-lazy-loading */
@media (scripting: enabled) {
  [loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s;
  }
}
