body {
  font-family: 'Exo 2', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: #333;
}

section {
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

#header {
  text-align: center;
  padding: 1px 0;
}

#header__name {
  font-size: 2.5em;
}

#header__profession {
  font-size: 1.5em;
  color: #666;
}

#contact table {
  margin: 0 auto;
  width: auto;
}

#contact td {
  padding: 5px 10px;
  vertical-align: middle;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

td, th {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  padding: 5px 0;
}

a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-word;
}

a:hover {
  text-decoration: underline;
}

aside {
  color: #666;
}

#footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: #666;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1px;
  margin: auto;
}

.image-container {
  flex: 1 0 30%;
  margin: 10px;
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-container:hover .image-hover,
.image-container:active .image-hover {
  opacity: 1;
}

.image-container:hover .image,
.image-container:active .image {
  opacity: 0;
}

.image-container:active {
  transform: scale(1.03);
}

.caption {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.2em;
  text-align: center;
}

/* SIBLING FADE: fade out siblings around a hovered item */
.sibling-fade { visibility: hidden; }
.sibling-fade > * { visibility: visible; }
.sibling-fade > * { transition: opacity 150ms linear 100ms, transform 150ms ease-in-out 100ms; }
.sibling-fade:hover > * { opacity: 0.4; transform: scale(0.9); }
.sibling-fade > *:hover {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0ms, 0ms;
  position: relative;
}

/* Tooltip Styles */
.sibling-fade > *:hover::after {
  content: attr(data-tooltip);
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  background-color: #000;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.75em;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  width: auto;
  max-width: 90vw;
  text-align: center;
  z-index: 999;
}

/* Presentational Styles */
html {
  min-height: 100%;
}

body {
  padding: 10px;
  max-width: 80em;
  margin: 0 auto;
  width: 100%;
}

.sibling-fade {
  display: flex;
  flex-wrap: wrap;
}

.sibling-fade > * {
  background: black;
  padding: 1em;
  flex: auto;
  margin: 0.3em;
  text-align: center;
  color: #ffffff;
  font-size: 1.5em;
  text-decoration: none;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  padding: 1px;
  margin: auto;
}

.card {
  flex: 1 0 31%;
  z-index: 0;
  margin: 10px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.icon {
  width: 80px;
  height: 80px;
}

.card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  transition: opacity 0.3s ease;
  opacity: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.card:hover .icon,
.card:focus .icon,
.card:focus-within .icon,
.card:active .icon {
  transform: scale(0);
  opacity: 0;
}

.card:hover .card-content,
.card:focus .card-content,
.card:focus-within .card-content,
.card:active .card-content {
  opacity: 1;
}

tinytext {
  font-size: 8px;
  display: block;
  color: #333;
  word-break: break-word;
}

.header-profession {
  color: #666;
}

.section-splitter {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 35px 0;
}

pre#tiresult {
  display: block;
  max-width: 100%;
  min-height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: pre;
  box-sizing: border-box;
}

/* MOBILE */
@media (max-width: 768px) {
  section {
    padding: 14px;
    margin: 10px;
  }

  body {
    padding: 0;
    max-width: 100%;
  }

  section:first-of-type > div {
    align-items: center !important;
    gap: 10px;
  }

  section:first-of-type > div > div:first-child {
    min-width: 0;
    flex: 1;
  }

  section:first-of-type img {
    height: 42px !important;
    width: auto;
  }

  section:first-of-type h1 {
    font-size: 1.15rem !important;
    line-height: 1.1 !important;
    word-break: break-word;
  }

  section:first-of-type a div {
    width: 36px !important;
    height: 36px !important;
    border-width: 2px !important;
    font-size: 20px !important;
  }

  #header__name {
    font-size: 2em;
  }

  #header__profession {
    font-size: 1.2em;
  }

  table, th, td {
    display: block;
    width: 100%;
  }

  th, td {
    padding: 10px 0;
    text-align: left;
  }

  #contact table {
    width: 100%;
  }

  #contact td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  ul li {
    padding: 10px 0;
  }

  .contact-info {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
  }

  .card {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    height: auto;
    min-height: 145px;
    padding: 10px 4px;
    cursor: pointer;
    overflow: hidden;
    align-items: center;
  }

  .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px auto;
  }

  .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    text-align: center;
    padding: 0 4px;
  }

  .card:hover .icon,
  .card:focus .icon,
  .card:focus-within .icon,
  .card:active .icon {
    transform: scale(0);
    opacity: 0;
  }

  .card:hover .card-content,
  .card:focus .card-content,
  .card:focus-within .card-content,
  .card:active .card-content {
    opacity: 1;
  }

  .card-content h3 {
    font-size: 0.8rem;
    margin: 0 0 6px 0;
  }

  .card-content span,
  .card-content p {
    font-size: 0.62rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  tinytext {
    font-size: 6px;
  }

  #abstract p {
    font-size: 1.4em;
    line-height: 1.5;
  }

  .image-gallery {
    flex-direction: column;
    align-items: center;
  }

  .image-container {
    flex: 0 0 100%;
    margin: 12px 0;
    max-width: 100%;
    width: 100%;
  }

  .caption {
    font-size: 1.35em;
  }

  .sibling-fade > * {
    font-size: 1.05em;
    padding: 0.8em;
  }

  .sibling-fade > *:hover::after {
    bottom: 20px;
    max-width: 90vw;
  }

  .header-like {
    margin-bottom: 30px !important;
  }

  .header-secondary {
    margin-top: 30px !important;
  }

  .header-name {
    font-size: 1.5em;
  }

  .header-profession {
    font-size: 1.05em;
    line-height: 1.4;
    padding: 0 10px;
  }

  pre#tiresult {
    font-size: 6px !important;
    line-height: 1 !important;
    padding: 6px 4px !important;
  }

  .section-splitter {
    margin: 25px 0;
  }
}

/* SEHR KLEINE DISPLAYS */
@media (max-width: 480px) {
  section:first-of-type h1 {
    font-size: 1rem !important;
  }

  .card {
    min-height: 140px;
    padding: 8px 3px;
  }

  .icon {
    width: 34px;
    height: 34px;
  }

  .card-content h3 {
    font-size: 0.72rem;
  }

  .card-content span,
  .card-content p {
    font-size: 0.55rem;
  }

  tinytext {
    font-size: 5px;
  }

  #abstract p {
    font-size: 1.5em;
  }

  pre#tiresult {
    font-size: 5px !important;
  }
}