/* * {outline: 1px solid red;} */

html{
  scroll-padding-top: 3em;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
}

main {
  max-width: min(97%, 700px);
  margin: 80px auto 40px auto;
  padding: 20px;
  text-align: left;
  box-sizing: border-box;
}

.content-section {
  background: white;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 8px;
  /*border: 2px solid var(--color-primary-mid);*/
  box-sizing: border-box;
}

h1 {
  font-size: 2em;
  margin-block: 0 0.5em;
  color: var(--color-primary-mid);
}

h2 {
  font-size: 1.5em;
  margin-block: 0.25em 0.5em;
  color: var(--color-primary-dark);
}

h3 {
  font-size: 1.25em;
  margin-block: 0.25em 0.5em;
  color: var(--color-primary-dark);
}

.image-container {
  text-align: center;
  margin: 20px 0;
}

.image-container  {
  text-align: center;
  margin: 20px 0;
}

.image {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

img.image.responsive-landscape  {
  display: block;
}

img.image.responsive-portrait {
  display: none;
}

p {
  line-height: 1.5em;
}

ol {
  line-height: 1.5em;
}

.unordered-list {
  line-height: 1.5em;
}

.video {
  max-height: 600px;
  width: 100%;
  display: block;
}

.to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  text-align: center;
  line-height: 45px;
  font-size: 24px;
  background-color: var(--color-primary-dark);
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-radius: 8px;
  cursor: pointer;
}

.to-top-btn:hover,
.to-top-btn:focus {
  color: var(--color-primary-light);
  background: var(--color-primary-mid);
}

#top {
  position: relative;
  top: -70px;
  height: 1px;
}

.external-link::after {
  content: "↗";
  margin-left: 0.3em;
  font-size: 0.85em;
  vertical-align: middle;
}

.download-link::after {
  content: "↓";
  margin-left: 0.3em;
  font-size: 0.85em;
  vertical-align: middle;
  display: inline-block;
  text-decoration: none;
}

figcaption {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
  margin-top: 0.5em;
}

.fallback-text {
  display: inline;
}

.home-link .fallback-text {
  display: none;
}

#literatur p {
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 12px;
}

table caption {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
  margin-bottom: 0.5em;
}

#kosbuneu-header {
  display: block;
  font-size: 1rem;
  color: var(--color-primary-mid);
}

.kosbuneu-header-bold {
  font-weight: bold;
}

@media (max-width: 400px) {
  tbody {
    font-size: 0.80em;
  }
}


@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    margin: 60px auto 30px auto;
  }

  .content-section {
    padding: 15px;
  }

  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.2em;
  }

  .image-container {
    margin: 15px 0;
  }

  img.image.responsive-landscape  {
    display: none;
  }
  
  img.image.responsive-portrait {
    display: block;
  }
}
