/* =========================================================
   tremendous4 Films – gemeinsames Stylesheet

   Bereinigte und reparierte Fassung
   ========================================================= */


/* =========================================================
   Variablen
   ========================================================= */

:root {
  --color-background: #ffffff;
  --color-text: #707070;
  --color-text-dark: #404040;
  --color-border: #b8b8b8;
  --color-border-light: #ececec;
  --color-hover: #fafafa;

  --color-status-realisiert: #707070;
  --color-status-vorbereitung: #95805b;
  --color-status-entwicklung: #c3c3c3;

  --font-light: "Jost-300-Light", sans-serif;
  --font-book: "Jost-400-Book", sans-serif;
  --font-medium: "Jost-500-Medium", sans-serif;

  --content-width: 1200px;
  --detail-content-width: 1100px;
  --detail-content-padding: clamp(24px, 4vw, 56px);
}


/* =========================================================
   Schriften
   ========================================================= */

@font-face {
  font-family: "Jost-300-Light";
  src:
    url("../fonts/Jost-300-Light.ttf") format("truetype"),
    url("../fonts/Jost-300-Light.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost-400-Book";
  src:
    url("../fonts/Jost-400-Book.ttf") format("truetype"),
    url("../fonts/Jost-400-Book.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost-500-Medium";
  src:
    url("../fonts/Jost-500-Medium.ttf") format("truetype"),
    url("../fonts/Jost-500-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   Reset und Grundlayout
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.home-page {
  scroll-snap-type: y proximity;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  background-color: var(--color-background);
  color: var(--color-text);

  font-family: var(--font-light);
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.44rem;
  letter-spacing: 0;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  font-family: var(--font-light);
  font-weight: normal;
}

[hidden],
.hidden {
  display: none !important;
}


/* =========================================================
   Überschriften
   ========================================================= */

h1 {
  font-family: var(--font-book);
  font-weight: normal;
}

h2 {
  font-family: var(--font-book);
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 1.27px;
}

h3 {
  font-family: var(--font-book);
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.44rem;
}

h4 {
  font-family: var(--font-medium);
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.44rem;
}

h2 + p,
p + p {
  margin-top: 20px;
}

@media screen and (min-width: 48em) {
  h2 + p,
  p + p {
    margin-top: 24px;
  }
}


/* =========================================================
   Links
   ========================================================= */

a {
  color: inherit;
  font-family: var(--font-light);
  text-decoration: none;
}

p a {
  color: #000000;
}


/* =========================================================
   Barrierefreie Hilfsklassen
   ========================================================= */

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  margin: -1px !important;
  padding: 0 !important;

  overflow: hidden !important;

  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;
  border: 0 !important;
}

.gtm-noscript {
  display: none;
  visibility: hidden;

  width: 0;
  height: 0;

  border: 0;
}


/* =========================================================
   Allgemeine Seitenbreite
   ========================================================= */

.wrapper {
  width: 93%;
  max-width: 100%;

  margin: 0 auto;
  padding: 0 20px;
}

main {
  display: block;
  padding-top: 64px;
}

@media screen and (min-width: 48em) {
  .wrapper {
    width: 82%;
  }

  main {
    padding-top: 129px;
  }
}


/* =========================================================
   Menüschalter
   ========================================================= */

#menu-switch {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;

  opacity: 0;
  clip-path: inset(50%);

  white-space: nowrap;
  border: 0;
}


/* =========================================================
   Header
   ========================================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;

  width: 100%;

  background-color: rgba(255, 255, 255, 0.95);
}

html.js.home-page header {
  transform: translateY(-100%);

  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

html.js.home-page header.visible {
  transform: translateY(0);

  opacity: 1;
  pointer-events: auto;
}

header .wrapper {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-flow: row wrap;
}

header .wrapper .logo {
  max-width: 215px;
  padding: 30px 0;
}

header .wrapper .logo img {
  display: block;
}

@media screen and (min-width: 48em) {
  header .wrapper .logo {
    max-width: 343px;
    padding: 50px 0;
  }
}


/* =========================================================
   Header-Einblendeanimation
   ========================================================= */

html.js.home-page header .logo,
html.js.home-page header label[for="menu-switch"] {
  transform: translateY(-20px);

  opacity: 0;

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

html.js.home-page header.visible .logo {
  transform: translateY(0);

  opacity: 1;
  transition-delay: 0.1s;
}

html.js.home-page header.visible label[for="menu-switch"] {
  transform: translateY(0);

  opacity: 1;
  transition-delay: 0.2s;
}


/* =========================================================
   Vollbild-Menü
   ========================================================= */

header nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  visibility: hidden;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  background-color: #ffffff;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

#menu-switch:checked + header nav {
  visibility: visible;

  opacity: 1;

  transition:
    opacity 0.5s ease,
    visibility 0s linear 0s;
}

header nav ul {
  margin: 0;
  padding: 11px 0 0;

  list-style: none;
}

@media screen and (min-width: 48em) {
  header nav ul {
    padding-top: 21px;
  }
}


/* =========================================================
   Menü-Icon
   ========================================================= */

label[for="menu-switch"] {
  position: relative;

  display: block;

  width: 32px;
  height: 32px;

  overflow: hidden;

  cursor: pointer;
  text-indent: 100%;
  white-space: nowrap;
}

label[for="menu-switch"] span,
label[for="menu-switch"] span::before,
label[for="menu-switch"] span::after {
  position: absolute;

  display: block;

  width: 4px;
  height: 4px;

  border-radius: 50%;
  background-color: #000000;
}

label[for="menu-switch"] span {
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  transition:
    width 0.35s ease,
    height 0.35s ease,
    border-radius 0.35s ease;
}

label[for="menu-switch"] span::before,
label[for="menu-switch"] span::after {
  content: "";

  top: 50%;

  opacity: 1;

  transition:
    transform 0.25s ease,
    opacity 0.1s ease;
}

label[for="menu-switch"] span::before {
  transform: translate(-8px, -50%);
}

label[for="menu-switch"] span::after {
  transform: translate(8px, -50%);
}

#menu-switch:checked + header .wrapper label[for="menu-switch"] {
  position: absolute;
  right: 20px;
  z-index: 11;
}

#menu-switch:checked + header .wrapper label[for="menu-switch"] span {
  width: 16px;
  height: 16px;

  border-radius: 50%;
}

#menu-switch:checked + header .wrapper label[for="menu-switch"] span::before {
  transform: translate(-20px, -50%);
  opacity: 0;
}

#menu-switch:checked + header .wrapper label[for="menu-switch"] span::after {
  transform: translate(28px, -50%);
  opacity: 0;
}

#menu-switch:focus-visible + header label[for="menu-switch"] {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}


/* =========================================================
   Menülinks
   ========================================================= */

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: 25px;
  padding: 150px 0;
}

.menu > a {
  position: relative;

  display: inline-block;
  width: fit-content;

  margin: 5px 0;
  padding: 20px 0;

  color: var(--color-text);

  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 1.27px;
  text-align: center;
}

.menu > a::after {
  content: "";

  position: absolute;
  bottom: 12px;
  left: 50%;

  display: block;

  width: 0;
  height: 1px;

  background-color: #000000;

  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.menu > a:hover::after,
.menu > a:focus-visible::after {
  left: 0;
  width: 100%;
}


/* =========================================================
   Menü-Einblendanimation
   ========================================================= */

#menu-switch:checked + header .menu > a,
#menu-switch:checked + header .menu .language-switcher-language-url,
#menu-switch:checked + header .menu .icony {
  animation: menu-in 0.65s both;
}

#menu-switch:checked + header .menu > a:nth-child(1) {
  animation-delay: 0.1s;
}

#menu-switch:checked + header .menu > a:nth-child(2) {
  animation-delay: 0.2s;
}

#menu-switch:checked + header .menu > a:nth-child(3) {
  animation-delay: 0.3s;
}

#menu-switch:checked + header .menu .language-switcher-language-url {
  animation-delay: 0.4s;
}

#menu-switch:checked + header .menu .icony {
  animation-delay: 0.5s;
}

@keyframes menu-in {
  from {
    transform: translateX(-1em);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* =========================================================
   Sprachauswahl
   ========================================================= */

.language-switcher-language-url {
  margin: 0;
  padding: 0;
}

.switcher {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 40px 0 15px;

  list-style: none;
  text-transform: uppercase;
}

.switcher__item {
  position: relative;
  list-style: none;
}

.switcher .is-active > a {
  pointer-events: none;

  cursor: default;
  text-decoration: none;
}

.links a {
  position: relative;
  display: inline-block;
}

.links a::after {
  content: "";

  position: absolute;
  bottom: -4px;
  left: 50%;

  display: block;

  width: 0;
  height: 1px;

  background-color: #000000;

  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.links a:hover::after,
.links a:focus-visible::after {
  left: 0;
  width: 100%;
}


/* =========================================================
   Social-Media-Icon
   ========================================================= */

.icony {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;
}

.icony__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 27px 10px;

  line-height: 0;
  vertical-align: top;
}

.icony__item svg {
  display: block;
}


/* =========================================================
   Intro
   ========================================================= */

#intro {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  scroll-snap-align: start;

  background-color: #000000;
  color: #ffffff;

  text-align: center;

  pointer-events: none;

  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.logo-start {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 14px;
}

.logo-start img {
  display: block;

  width: min(72vw, 700px);
  max-width: 700px;

  margin: 0 auto;
}


/* =========================================================
   Intro-Pfeil
   ========================================================= */

.scroll-arrow-container {
  position: absolute;
  bottom: 40px;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  color: inherit;

  cursor: pointer;
  pointer-events: auto;

  text-decoration: none;

  animation: bounce 1.5s infinite;
}

.scroll-arrow-container:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 8px;
}

.scroll-arrow {
  width: 22px;
  height: 22px;

  opacity: 0.9;

  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;

  transform: rotate(45deg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(10px);
  }

  60% {
    transform: translateY(5px);
  }
}

@media screen and (max-width: 768px) {
  #intro .logo-start img {
    max-width: 80%;
  }
}

@media screen and (max-width: 480px) {
  #intro .logo-start img {
    max-width: 90%;
  }
}


/* =========================================================
   Footer
   ========================================================= */

.sheet__footer {
  position: relative;

  margin: 105px 0 5px;
  padding: 80px 0;

  text-align: center;
}

.footie > a,
.footie > span,
.footie-mobile > a,
.footie-mobile > span {
  display: inline-block;

  margin: 28px 4px;
  color: inherit;
}

.footie > a,
.footie-mobile > a {
  position: relative;
  font-weight: normal;
}

.footie > a::after,
.footie-mobile > a::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 50%;

  display: block;

  width: 0;
  height: 1px;

  background-color: #000000;

  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.footie > a:hover::after,
.footie > a:focus-visible::after,
.footie-mobile > a:hover::after,
.footie-mobile > a:focus-visible::after {
  left: 0;
  width: 100%;
}

.contact p,
.footie a,
.footie-mobile a {
  line-height: 1.8rem;
}

.contact-logo {
  display: block;

  width: 50px;

  margin: 0 auto;
  padding: 0 0 14px;
}

.contact-logo img {
  display: block;
  width: 100%;
}

@media screen and (min-width: 48em) {
  .footie-mobile {
    display: none;
  }
}

@media screen and (max-width: 47.999em) {
  .footie {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  .contact-logo-wrap {
    flex-basis: 100%;
    max-width: 100%;
  }
}


/* =========================================================
   Startseiten-Hauptbereich und Einblendeanimation
   ========================================================= */

.home-page #main {
  display: block;

  width: 100%;

  scroll-margin-top: 90px;
  scroll-snap-align: start;

  padding:
    clamp(35px, 6vw, 70px)
    0
    clamp(80px, 10vw, 130px);
}

.sheet__content {
  opacity: 1;
  transform: none;
}

html.js.home-page .sheet__content {
  transform:
    translate3d(0, 140px, 0)
    scale(0.98);

  transform-origin: center top;

  backface-visibility: hidden;

  opacity: 0;
  will-change: transform, opacity;

  transition:
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1s ease;
}

html.js.home-page .sheet__content.main-visible {
  transform:
    translate3d(0, 0, 0)
    scale(1);

  opacity: 1;
}


/* =========================================================
   Projektbereich
   ========================================================= */

.projects {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
   Projektfilter
   ========================================================= */

.projects-filter {
  display: none;
}

html.js .projects-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  width: 100%;

  margin: 0 0 clamp(55px, 8vw, 90px);
  padding: 0;
}


/* =========================================================
   Einheitliche Bedienelemente
   ========================================================= */

.projects-filter__button,
.button-80 {
  -webkit-appearance: none;
  appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-width: 0;
  min-height: 44px;

  margin: 0;
  padding: 9px 15px;

  border: 1px solid var(--color-border);
  border-radius: 4px;

  background-color: #ffffff;
  color: var(--color-text);

  font-family: var(--font-light);
  font-size: 0.84rem;
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;

  box-shadow: none;

  cursor: pointer;
  pointer-events: auto;

  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.projects-filter__button:hover,
.button-80:hover {
  border-color: #777777;
  background-color: var(--color-hover);
  color: var(--color-text-dark);
}

.projects-filter__button:focus-visible,
.button-80:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

.projects-filter__button.is-active,
.projects-filter__button[aria-pressed="true"] {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: #ffffff;
}


/* =========================================================
   Anzahl im Filterbutton
   ========================================================= */

.projects-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-width: 21px;
  height: 21px;

  margin: 0;
  padding: 0 6px;

  border-radius: 999px;

  background-color: rgba(112, 112, 112, 0.1);
  color: inherit;

  font-family: inherit;
  font-size: 0.72rem;
  font-weight: inherit;
  line-height: 1;
}

.projects-filter__button.is-active .projects-filter__count,
.projects-filter__button[aria-pressed="true"] .projects-filter__count {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}


/* =========================================================
   Projekt-Grid
   ========================================================= */

.projects .category {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: clamp(20px, 2.2vw, 32px);
  row-gap: clamp(48px, 6vw, 76px);

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;
}


/* =========================================================
   Projektkarte
   ========================================================= */

.projects .project-card {
  min-width: 0;

  margin: 0;
  padding: 0;

  animation: project-card-in 280ms ease both;
}

.projects .project-card__link {
  display: block;

  color: inherit;
  text-decoration: none;
}

.projects .project-card__link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 5px;
}

.projects .categoryteaser {
  position: relative;

  width: 100%;
  aspect-ratio: 60 / 85;

  overflow: hidden;

  background-color: #f4f4f4;
}

.projects .categoryteaser.border,
.projects .categoryteaser#border,
#border {
  border: 1px solid var(--color-border-light);
}

.projects .project_inner_wrap {
  position: relative;

  width: 100%;
  height: 100%;
}

.projects .project_inner_wrap img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);

  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects .project_inner_wrap::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-color: rgba(0, 0, 0, 0);

  transition:
    background-color 300ms ease;
}

.projects .project-card__link:hover .project_inner_wrap img {
  transform: scale(1.018);
}

.projects .project-card__link:hover .project_inner_wrap::after {
  background-color: rgba(0, 0, 0, 0.08);
}

.projects .project-card .categoryteaser::before {
  content: none;
  display: none;
}


/* =========================================================
   Projekttitel und Status
   ========================================================= */

.projects .project-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  padding: 13px 1px 0;
}

.projects .project-card__title {
  min-width: 0;
  margin: 0;

  color: #646464;

  font-family: var(--font-book);
  font-size: 0.88rem;
  font-weight: normal;
  line-height: 1.45;
}

.projects .project-card__status {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;

  gap: 7px;

  margin: 2px 0 0;

  color: #8b8b8b;

  font-family: var(--font-light);
  font-size: 0.68rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.projects .project-card__status::before {
  content: "";

  flex: 0 0 auto;

  width: 6px;
  height: 6px;

  border-radius: 50%;
}

.projects
  .project-card[data-status="realisiert"]
  .project-card__status::before {
  background-color: var(--color-status-realisiert);
}

.projects
  .project-card[data-status="vorbereitung"]
  .project-card__status::before {
  background-color: var(--color-status-vorbereitung);
}

.projects
  .project-card[data-status="entwicklung"]
  .project-card__status::before {
  background-color: var(--color-status-entwicklung);
}

@keyframes project-card-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =========================================================
   Projektbereich – Tablet
   ========================================================= */

@media screen and (max-width: 820px) {
  .projects .category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   Projektbereich – Smartphone
   ========================================================= */

@media screen and (max-width: 560px) {
  .home-page #main {
    padding-top: 25px;
  }

  html.js .projects-filter {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    width: 100%;

    margin-bottom: 50px;
    padding: 0;

    overflow: visible;
  }

  .projects-filter__button {
    grid-column: auto;

    width: 100%;
    min-width: 0;
    height: 72px;

    padding: 8px 10px;

    white-space: normal;
  }

  .projects .category {
    grid-template-columns: 1fr;
    row-gap: 44px;
  }

  .projects .project-card__meta {
    padding-top: 12px;
  }

  html.js.home-page .sheet__content {
    transform:
      translate3d(0, 80px, 0)
      scale(0.99);
  }
}

@media screen and (max-width: 360px) {
  .projects-filter__button {
    padding-right: 7px;
    padding-left: 7px;

    font-size: 0.78rem;
  }

  .projects-filter__count {
    min-width: 20px;
    height: 20px;

    padding: 0 5px;
  }
}


/* =========================================================
   Allgemeine Buttons
   ========================================================= */

.button-80 {
  text-decoration: none;
  transform: none;
}

.button-80:active {
  border-color: var(--color-text);
  background-color: #f5f5f5;
  color: var(--color-text-dark);
}

.button-80:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}


/* =========================================================
   Cookie-Banner
   ========================================================= */

.cookies-eu-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;

  width: 100%;

  padding: 20px;

  background-color: #ffffff;
  color: #000000;

  font-family: var(--font-light);
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 1.44rem;
  text-align: center;
}

.cookies-eu-banner a {
  text-decoration: underline;
}

.cookies-eu-banner button {
  margin: 0 5px;
  padding: 2px 4px;

  border: 1px solid #000000;
  border-radius: 3px;

  background-color: #ffffff;
  color: #000000;

  font-family: var(--font-light);
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 1rem;

  cursor: pointer;

  transition:
    background-color 0.1s ease,
    color 0.1s ease,
    border-color 0.1s ease;
}


/* =========================================================
   Tabellenlisten
   ========================================================= */

.tablelist {
  width: calc(100% - 40px);
  max-width: var(--detail-content-width);

  margin: 0 auto;

  padding-right: var(--detail-content-padding);
  padding-left: var(--detail-content-padding);
}

.tablelist__wrap {
  width: 100%;
  max-width: none;

  margin-right: 0;
  margin-left: 0;
}

.tablelist__items {
  margin: 0;
  border-bottom: 0;
}

.tablelist__item {
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 769px) {
  .cont-text {
    margin-top: 32px;
  }
}

@media screen and (max-width: 768px) {
  .cont-text {
    margin-top: 19px;
  }
}


/* =========================================================
   Corner-Komponente
   ========================================================= */

.corner {
  padding-bottom: 45px;
}

.zhl {
  vertical-align: top;
}

#corner__link a {
  flex: 0 0 30%;

  font-family: var(--font-medium);
  font-size: 0.9rem;
  line-height: 1.44rem;
}

.corner__body a {
  color: inherit;
}

.corner__body a:not(.button) {
  position: relative;
}

.corner__body a:not(.button)::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 50%;

  display: block;

  width: 0;
  height: 1px;

  background-color: #000000;

  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.corner__body a:not(.button):hover::after,
.corner__body a:not(.button):focus-visible::after {
  left: 0;
  width: 100%;
}

@media screen and (min-width: 769px) {
  .corner {
    display: flex;
    padding: 0 0 45px;
  }

  .corner__body {
    padding-top: 14px;
    padding-left: 30px;
  }

  .corner__body3 {
    padding-top: 0;
    padding-left: 30px;
  }

  .corner__body3 img {
    width: 75%;
  }

  .corner__contact {
    padding-left: 258px;
  }

  .corner__cap {
    flex: 0 0 30%;
  }

  .corner__cap2 {
    flex: 0 0 29.7%;
    margin-top: 14px;
  }

  .corner__cap3 {
    flex: 0 0 30%;
    margin-top: 14px;
  }

  .corner img {
    margin-top: 39px;
  }

  .display {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .corner__body,
  .corner__body3,
  .corner__contact {
    margin-top: 20px;
  }

  .screen {
    display: none;
  }

  .corner img {
    margin: 24px 0 36px;
    padding: 0;
  }
}


/* =========================================================
   Stamp-Komponente
   ========================================================= */

.stamp {
  width: 100%;
  max-width: 1682px;

  margin: 0 auto;
  padding: 73px 0 0;
}

.stamp__wrapper {
  display: flex;

  margin-right: 92px;
  margin-left: 92px;
}

@media screen and (min-width: 769px) {
  .stamp__body {
    padding-right: 3%;
  }

  .stamp__image {
    flex: 0 0 25%;
  }
}

@media screen and (max-width: 768px) {
  .stamp {
    padding-top: 36px;
  }

  .stamp__wrapper {
    flex-wrap: wrap;

    margin-right: 20px;
    margin-left: 20px;
  }

  .stamp__body {
    order: 2;
  }

  .stamp__image {
    order: 1;
    padding-bottom: 15px;
  }

  .stamp .category {
    width: 100%;
    max-width: 100%;

    padding-right: 8px;
    padding-left: 8px;
  }
}


/* =========================================================
   Video
   ========================================================= */

video {
  display: block;

  width: 100%;
  max-width: 800px;

  margin-right: auto;
  margin-left: auto;

  padding: 28px;
}

.video-caption p {
  display: block;

  width: 100%;
  max-width: 800px;

  margin-right: auto;
  margin-left: auto;

  padding-right: 28px;
  padding-left: 28px;

  font-family: var(--font-medium);
  font-size: 0.9rem;
  line-height: 1.44rem;
}

.video-caption form {
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 769px) {
  video {
    margin-top: 84px;
  }
}

@media screen and (max-width: 768px) {
  video {
    margin-top: 30px;
  }
}


/* =========================================================
   Roman-Präsentation
   ========================================================= */

.book {
  clear: both;

  width: 100%;
  max-width: 1682px;

  margin: clamp(3.5rem, 6vw, 5.5rem) auto 0; /* margin: oben rechts/links unten;*/
  padding: 0;

  background-color: transparent;
}

.book__inner {
  padding-top: clamp(3rem, 5vw, 4.5rem); /* clamp(Mindestwert, flexibler Wert, Höchstwert) */
  border-top: 1px solid #e8e3dc;
}


/* Buchcover */

.book__cover {
  flex: 0 0 25%;

  margin: 0;
  padding: 0;
}

.book__cover-link {
  display: block;

  width: 100%;

  color: inherit;
  text-decoration: none;
}

.book__cover img {
  display: block;

  width: 100%;
  max-width: 210px;
  height: auto;

  margin-top: 18px;
  margin-right: 0;
  margin-left: auto;
  padding: 0;

  border: 0;

  box-shadow:
    0 10px 24px rgba(40, 31, 23, 0.08),
    0 28px 50px rgba(40, 31, 23, 0.11);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.book__cover-link:hover img {
  transform: translateY(0px); /* Animation */

  box-shadow:
    0 12px 28px rgba(40, 31, 23, 0.1),
    0 32px 58px rgba(40, 31, 23, 0.14);
}


/* Buchinformationen */

.book__content {
  flex: 1 1 auto;

  min-width: 0;

  padding-top: 0;
  padding-right: 3%;
}

.book__label {
  margin: 0 0 1rem;

  color: #a31a1a;

  font-family: var(--font-medium);
  font-size: 0.74rem;
  font-weight: normal;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.book__content h2 {
  margin: 0 0 1.1rem;
  padding: 0;

  color: #5e5e5e;

  font-family: var(--font-medium);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: normal;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.book__author {
  margin: 0 0 2rem;

  color: #777777;

  font-size: inherit;
  line-height: 1.7;
}

.book__text {
  max-width: 31rem;
  margin: 0 0 2.2rem;

  color: #777777;

  font-size: inherit;
  line-height: 1.75;
}

.book__actions {
  display: flex;
  flex-wrap: wrap;

  gap: 0.75rem;

  margin: 0;
  padding: 0;
}


/* =========================================================
   Einheitlicher Inhaltsrand auf Smartphones
   ========================================================= */

@media screen and (max-width: 700px) {
  :root {
    --mobile-content-gutter: 32px;

    --mobile-content-width:
      calc(
        100vw
        - var(--mobile-content-gutter)
        - var(--mobile-content-gutter)
      );
  }

  html:not(.home-page) .projects,
  html:not(.home-page) .stamp__wrapper,
  html:not(.home-page) .tablelist,
  html:not(.home-page) .book,
  html:not(.home-page) video,
  html:not(.home-page) .video-caption p {
    width: var(--mobile-content-width);
    max-width: none;

    margin-right:
      calc(
        50%
        - 50vw
        + var(--mobile-content-gutter)
      );

    margin-left:
      calc(
        50%
        - 50vw
        + var(--mobile-content-gutter)
      );

    box-sizing: border-box;
  }

  html:not(.home-page) .projects,
  html:not(.home-page) .stamp__wrapper,
  html:not(.home-page) .tablelist,
  html:not(.home-page) video,
  html:not(.home-page) .video-caption p {
    padding-right: 0;
    padding-left: 0;
  }

  html:not(.home-page) .projects .category,
  html:not(.home-page) .stamp .category,
  html:not(.home-page) .tablelist__wrap,
  html:not(.home-page) .projects-filter {
    width: 100%;
    max-width: none;

    margin-right: 0;
    margin-left: 0;

    padding-right: 0;
    padding-left: 0;
  }

  html:not(.home-page) .projects .project-card__meta {
    padding-right: 0;
    padding-left: 0;
  }

  html:not(.home-page) .stamp__wrapper {
    flex-wrap: wrap;
  }

  html:not(.home-page) .tablelist {
    margin-top: 0;
  }

  html:not(.home-page) .book {
    margin-top: 3.5rem;
    margin-bottom: 6rem;

    padding: 0;
  }

  html:not(.home-page) .book__inner {
    display: grid;

    grid-template-columns: 1fr;
    gap: 2.75rem;

    width: 100%;
    max-width: none;

    margin: 0;
    padding: 3rem 0 0;

    border-top: 1px solid #e8e3dc;
  }

  html:not(.home-page) .book__cover {
    width: min(64vw, 230px);

    margin-right: auto;
    margin-left: auto;

    padding: 0;

    flex: none;
  }

  html:not(.home-page) .book__cover img {
    width: 100%;
    max-width: none;
  }

  html:not(.home-page) .book__content {
    padding: 0;
    text-align: center;
  }

  html:not(.home-page) .book__text {
    margin-right: auto;
    margin-left: auto;
  }

  html:not(.home-page) .book__actions {
    justify-content: center;
  }
}


/* =========================================================
   Filmübersicht unter dem festen Header
   ========================================================= */

@media screen and (max-width: 560px) {
  html.films-page main {
    padding-top: 76px;
  }
}


/* =========================================================
   Scrollbalken auf allen Seiten ausblenden
   ========================================================= */

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;

  display: none;
}


/* =========================================================
   Reduzierte Bewegung
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.home-page {
    scroll-snap-type: none;
  }

  html.js.home-page header,
  html.js.home-page header .logo,
  html.js.home-page header label[for="menu-switch"],
  header nav,
  label[for="menu-switch"] span,
  label[for="menu-switch"] span::before,
  label[for="menu-switch"] span::after,
  .scroll-arrow-container,
  html.js.home-page .sheet__content,
  .projects .project-card,
  .projects .project_inner_wrap img,
  .projects .project_inner_wrap::after,
  .projects-filter__button,
  .button-80,
  .book__cover img {
    animation: none !important;
    transition: none !important;
  }

  .projects .project-card__link:hover .project_inner_wrap img,
  .book__cover-link:hover img,
  .book__cover-link:focus-visible img {
    transform: none;
  }
}