*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font: inherit;
  text-wrap-mode: wrap;
  max-width: 100%;
}
.long-word {
  hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word; /* für ältere Browser */
  word-break: break-word; /* Safari-Fallback */
}

@font-face {
  font-family: AncizarSans;
  src: url("assets/fonts/Ancizar_Sans/AncizarSans-VariableFont_wght.ttf");
}

a {
  color: inherit;
  text-decoration: none;
}

.link {
  color: var(--primary);
  /* text-decoration: underline; */
}

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

:root {
  color-scheme: light;
  --black: #000;
  --gray: #333;
  --white: #fff;
  --bg: var(--white);
  --primary: #b52835;
  --secondary: #718d8b;
  --heading-color: #5c7371;
  --border-c: #f2f4f4;
  --anim-time: 0.5s;
  scroll-behavior: smooth;
  font-weight: 100;
  font-family: AncizarSans;
}

::selection {
  background-color: var(--secondary);
  color: var(--white);
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  font-size: 1.25rem;
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 100%;
  max-width: 1000px;
  height: 100%;
  opacity: 0.15;
  filter: blur(0.5rem);

  /* Weißer Hintergrund */
  background-color: var(--white);

  /* Bild */
  background-image: url("./assets/logos/Dr-Arvid-Thiele_Logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-attachment: fixed;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  padding: 0.5em 2ch;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn.primary:hover {
  background-color: color-mix(in srgb, var(--primary), #000 20%);
}
.btn.secondary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn.secondary:hover {
  background-color: color-mix(in srgb, var(--secondary), #000 20%);
}
.btn.square {
  padding: 0.5em;
  aspect-ratio: 1;
}

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

.title {
  font-size: 2.5rem;
}
.subtitle {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.sub {
  font-size: 1.5rem;
}

.gray {
  color: var(--gray);
}

.margin-b {
  margin-block: 1rem;
}

.center {
  align-items: center;
  justify-content: center;
}
.flex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.no-wrap {
  flex-wrap: nowrap;
}
.col {
  flex-direction: column;
}
.grow {
  flex-grow: 1;
}

.grid {
  display: grid;
}
.cols {
  grid-template-columns: var(--cols, repeat(12, 1fr));
}
.rows {
  grid-template-rows: var(--rows, repeat(12, 1fr));
}
.col-span-all {
  grid-column: 1 / -1;
}
.col-span-rest {
  grid-column: auto / -1;
}

.fill {
  width: 100%;
  height: 100%;
}
.cover {
  object-fit: cover;
}
.cover.top {
  object-position: top;
}

.inline-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1ch;
  --sep: attr(data-sep);
}
.inline-list li:not(:last-child)::after {
  content: var(--sep);
  width: fit-content;
  display: inline-block;
  margin-left: 1ch;
}
.color-list {
  padding-left: 2ch;
  list-style-type: square;
}
.color-list li {
  margin-block: 0.25rem;
}
.color-list li:nth-child(2n)::marker {
  color: var(--secondary);
}
.color-list li:nth-child(2n + 1)::marker {
  color: var(--primary);
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-c);
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(175, 175, 175, 0.3);
  border-radius: 3px;
}

.part {
  margin-block: 2rem;
}
.part :not(h1, h2, h3, h4) {
  line-height: 130%;
}
.part :is(h1, h2, h3, h4) {
  margin-bottom: 0.5rem;
}
.subpart {
  margin-block: 0.75rem;
}

.text-heading {
  color: var(--heading-color);
}

h1,
h2,
h3,
h4,
h5,
.heading {
  font-weight: 300;
  letter-spacing: 0.1rem;
  color: var(--heading-color);
}

/* Standard-Pfeil entfernen */
details summary::-webkit-details-marker {
  display: none;
}
details summary::marker {
  content: "";
}

/* Eigenes Symbol davor */
details summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  text-align: center;
  margin-right: 0.3em;
  font-weight: 400;
  font-size: 1.5rem;
}
details[open] summary::before {
  content: "–";
}
/* @starting-style{
  details[open]{
    height: 0;
  }
} */

strong {
  font-weight: 600;
}
table {
  border-spacing: 1.5ch 0.5em;
}
table th {
  text-align: start;
}

header {
  position: fixed;
  top: 0;
  height: 3rem;
  width: 100%;
  background-color: var(--bg);
}
header * {
  height: 100%;
}
header nav {
  display: flex;
  justify-content: start;
  gap: 3rem;
}
header nav #subpages {
  gap: 1rem;
  list-style: none;
  display: flex;
}
header nav #burger {
  aspect-ratio: 1;
  display: none;
  cursor: pointer;
}
@media (max-width: 690px) {
  header nav #subpages {
    position: fixed;
    height: fit-content;
    flex-direction: column;
    gap: 0;
    left: 9rem;
    top: 3rem;
    display: none;
  }
  header:has(#nav-open:checked) nav #subpages {
    display: flex;
  }
  header nav #burger {
    display: block;
  }
}

aside {
  position: fixed;
  top: 6rem;
}
aside nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
aside nav ul a {
  display: flex;
  isolation: isolate;
  overflow: hidden;
}
aside nav ul a p {
  z-index: -1;
  width: 0;
  pointer-events: none;
  transform: translateX(-100%);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  aside nav ul a:hover p {
    transition: transform var(--anim-time) ease;
  }
}
aside nav ul a:hover p {
  width: fit-content;
  margin-left: 0.5ch;
  z-index: -1;
  pointer-events: revert;
  transform: translateX(0%);
  overflow: hidden;
}

main {
  margin-inline: auto;
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 1050px);
  padding-inline: 55px;
  gap: 3rem;
}
#untertitel {
  width: 50%;
  place-self: start;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 4rem;
  padding-inline: 2ch;
  display: flex;
  justify-content: center;

  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
footer div {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  gap: 1.25rem;
  flex-wrap: wrap;
}
footer nav ul {
  gap: 2ch;
  list-style: none;
  display: flex;
}
