/* Cookie-Box -------------------------------------*/
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.99);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: auto;
}
.cookie-box {
  max-width: 720px;
  text-align: left;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  padding: 3rem;
  color: white;
  border-radius: 16px;
  position: relative;
}
.cookie-box p {
  margin-bottom: 1.5rem;
}
.cookie-box a {
  color: white;
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  justify-content: left;
  gap: 1rem;
  margin-top: 3rem;
}
.cookie-btn {
  padding: 0.55rem 1.3rem 0.6rem 1.3rem;
  background: transparent;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.cookie-btn:hover {
  background: white;
  color: black;
}
.cookie-close {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 80px;
  height: auto;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease;
}
.cookie-close:hover {
  transform: scale(1.1);
}

/* Hamburger -------------------------------------*/
.hamburger-menu {
  all: unset;
  position: fixed;
  top: 50px;
  right: 50px;
  width: 80px;
  height: 80px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hamburger-menu:hover {
  transform: scale(1.1);
}
/* Container bleibt klickbar, stellt eine eigene Stacking-Context her */
@property --r {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.99);
    --r: 0px;
    /* radialer Mask-Kreis ab Ecke oben rechts */
    -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, #000 var(--r), transparent calc(var(--r) + 1px));
    mask-image: radial-gradient(circle at 100% 0, #000 0, #000 var(--r), transparent calc(var(--r) + 1px));
    transition: --r 0.8s ease-in-out;
    z-index: 999;
    pointer-events: none;
}

    .menu-overlay.active {
        --r: 150vmax; /* oder 200vmax, wie du magst */
        pointer-events: auto;
    }

.menu-items {
  list-style: none;
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%) translateY(-30px);
  text-align: left;
  font-size: 4rem;
  color: white;
}
.menu-items a {
  display: inline-block;
  position: relative;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease;
  padding-right: 1.2em;
}
    .menu-items a::after {
        content: "→";
        position: absolute;
        right: .4em;
        top: 50%;
        transform: translateY(-50%) translateX(-10px);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        font-size: 0.9em;
        color: var(--theim-red);
    }
.menu-items a:hover {
  transform: translateX(20px);
}
.menu-items a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.menu-items a.current-page {
  color: var(--theim-grey) !important;
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}
.menu-items li {
  opacity: 0;
  transform: translateY(-30px);
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.menu-items li:last-child {
  margin-bottom: 0;
}
.menu-overlay.active .menu-items li:nth-child(5) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.active .menu-items li:nth-child(4) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.active .menu-items li:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.active .menu-items li:nth-child(2) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.active .menu-items li:nth-child(1) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}

/* Contact -----------------------------------------------------------*/
.contact-button {
  all: unset;
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 80px;
  height: 80px;
  z-index: 1000;
  cursor: pointer;
}
.contact-button:hover {
  transform: scale(1.1);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.99);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: grid;
    place-items: center;
    overflow: auto;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
}
.contact-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.contact-overlay.active .contact-box {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.contact-layer {
  width: 100%;
  max-width: 960px;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.contact-form {
  display: block; /* Oder flex ohne align/justify */
}
.contact-box {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  padding-top: 0;
}
.contact-box.hidden {
  display: none;
}
.contact-box.hidden .contact-options-wrapper {
  max-height: 0 !important;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.contact-box.hidden .contact-option {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.contact-box.hidden #contactStart {
  display: none;
}
.contact-box.hidden .contact-box-content {
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: top;
}
.contact-box-content {
  border: 1px solid white;
  background: transparent;
  max-width: max-content;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  margin: auto 0;
  padding-top: 0;
}

.contact-start-button {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: transparent;
  font-size: inherit;
  color: white;
  padding: 1.3rem 2rem;
  cursor: pointer;
  margin: 0 auto;
  line-height: 1;
}
.contact-start-button .arrow {
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}
.contact-start-button:hover .arrow {
  transform: rotate(45deg);
}

.contact-options-wrapper {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.contact-box.expanded .contact-options-wrapper {
  max-height: 500px;
}
.contact-options {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  gap: 0;
}
.contact-option {
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: white;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  padding: 1.3rem 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  margin: 0;
  line-height: 1.2;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-option:hover {
  background: white;
  color: black;
}
.contact-option .arrow {
  padding-left: 0.5rem;
}
.contact-option:hover .arrow {
  color: black;
}
.contact-option:first-child {
  margin-top: -1px;
}
.contact-box.expanded .contact-option {
  opacity: 1;
  visibility: visible;
}

.contact-box.expanded #contactStart {
  opacity: 1;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  visibility: visible;
}

.contact-close {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 80px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease;
}
.contact-close:hover {
  transform: scale(1.1);
}
/* Formular -----------------------------------------------------------*/
.contact-form {
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  gap: 1.5rem;
  color: white;
  padding: 1rem;
  text-align: left;
  max-width: 960px;
  width: 100%;
  transition: opacity 0.4s ease;
  margin-top: 0;
}
.contact-form h2 {
  margin-bottom: 1rem;
  margin-top: 0;
}
.contact-form.active {
  opacity: 1;
  pointer-events: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-form input, .contact-form textarea {
  background: transparent;
  border: 1px solid white;
  padding: 1rem;
  color: white;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: white;
  opacity: 0.8;
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  grid-column: 1 / -1;
  font-family: 'Roobert', sans-serif;
}

.form-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  grid-column: 1 / -1;
}
.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid white;
  width: 16px;
  height: 16px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin-top: 0.3rem;
  padding: 0;
  box-sizing: border-box;
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-checkbox a {
  color: white;
  text-decoration: underline;
}
.form-checkbox span {
  font-size: 0.8rem;
  display: block;
}

.form-submit {
  width: fit-content;
  margin-left: auto;
  padding: 0.8rem 2.2rem;
  background: white;
  color: black;
  border: 1px solid white;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form-submit:hover {
  background: transparent;
  color: white;
}

.form-status {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.98);
    z-index: 10000;
    min-width: clamp(220px, 60vw, 420px);
    text-align: center;
    padding: .9rem 1.2rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    background: #fff;
    color: var(--theim-black);
}

    .form-status.is-visible {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .form-status.is-success {
        background: #fff;
        color: var(--theim-black);
    }

    .form-status.is-error {
        background: var(--theim-red); /* ja, das ist korrekt */
        color: #fff;
    }


textarea, .form-checkbox, .form-submit {
  grid-column: 1 / -1;
}
.extra_field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Play Button --------------------------------------------------------------*/

.play-button-custom {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: transform 0.2s ease;
}

    .play-button-custom:hover {
        transform: scale(1.1);
    }

/* Pfeil Buttons -----------------------------------------------------------*/

.carousel__btn {
    display: grid;
    place-items: center;
    position: static;
    transform: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    font-family: var(--font-ui, 'Roobert', Inter, system-ui, sans-serif);
    font-weight: 700;
    font-size: var(--carousel-btn-size, clamp(38px,3.8vw,52px));
    line-height: 1;
    color: var(--theim-red);
    padding: 8px 4px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

    .carousel__btn .chevron {
        width: 1.2em;
        height: 1.2em;
        stroke: currentColor;
        fill: none;
        stroke-width: 2px;
        vector-effect: non-scaling-stroke;
        stroke-linecap: butt;
        stroke-linejoin: miter;
        shape-rendering: geometricPrecision;
        pointer-events: none;
    }

@media (hover: hover) and (pointer: fine) {
    .carousel__btn:hover {
        color: #fff;
    }
}

    .carousel__btn[aria-disabled="true"], .carousel__btn[disabled] {
        color: var(--theim-grey);
        pointer-events: none;
    }

    .carousel__btn:focus-visible {
        outline: 2px solid var(--theim-red);
        outline-offset: 2px;
    }

/* Vollbild-Dialog ----------------------------------------------------------- */
.img-dialog {
    padding: 0;
    border: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: transparent; /* wir nutzen nur das Backdrop */
}

    .img-dialog::backdrop {
        background: transparent !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .img-dialog.is-opened::backdrop {
        opacity: 1;
    }

    .img-dialog[open]::backdrop {
        opacity: 1;
    }

.img-veil {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 24, 0.99);
    opacity: 0;
    transition: opacity .22s ease;
}

.img-dialog.is-opened .img-veil {
    opacity: 1;
}

.img-dialog__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-out;
    display: none;
}

/* Wenn wir den Fallback nutzen, zeig das Bild */
.img-dialog.is-fallback .img-dialog__img {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .img-dialog__img {
        display: block;
    }
}

/* Effektbild (wie gehabt) */
.img-fx {
    position: fixed;
    left: 0;
    top: 0;
    transform-origin: top left;
    will-change: transform;
    z-index: 100000;
    border-radius: 12px;
    box-shadow: 0 16px 60px rgba(0,0,0,.45);
}

body.modal-open {
    overflow: hidden;
}

/* ========== Breakpoint 1: kleinere Desktops / große Tablets (≤1200px) ========== */
@media (max-width: 1200px) {
  .cookie-close {
  	width: 70px;
  	height: auto;
	top: 40px;
  	right: 40px;
  }
  .hamburger-menu {
  	width: 70px;
  	height: auto;
	top: 40px;
  	right: 40px;
  }
  .contact-button {
 	width: 70px;
  	height: auto;
	bottom: 40px;
  	right: 40px;
  }
  .contact-close {
 	width: 70px;
  	height: auto;
	top: 40px;
  	right: 40px;
  }
  .menu-items {
  font-size: 3.5rem;
  }
    .play-button-custom svg {
        width: 110px;
        height: 110px;
    }
}


/* ========== Breakpoint 2: Tablets quer (≤992px) ========== */
@media (max-width: 992px) {
  .cookie-close {
  	width: 60px;
  height: auto;
  }
  .hamburger-menu {
  width: 60px;
  height: auto;
  }
  .contact-button {
  width: 60px;
  height: auto;
  }
  .contact-close {
  width: 60px;
  height: auto;
  }
  .contact-layer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .menu-items {
    font-size: 3rem;
  }
}


/* ========== Breakpoint 3: Tablets hoch / große Smartphones (≤768px) ========== */
@media (max-width: 768px) {
  .cookie-box {
    max-width: 600px;
  }
  .cookie-close {
	top: 40px;
    right: 40px;
  	width: 50px;
    height: auto;
  }
  .hamburger-menu {
	top: 40px;
    right: 40px;
    width: 50px;
    height: auto;
  }
  .contact-button {
	bottom: 40px;
    right: 40px;
    width: 50px;
    height: auto;
  }
  .contact-close {
    top: 40px;
    right: 40px;
    width: 50px;
    height: auto;
}
.contact-layer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
    .play-button-custom svg {
        width: 100px;
        height: 100px;
    }
}


/* ========== Breakpoint 4: Smartphones (≤576px) ========== */
@media (max-width: 576px) {
  .cookie-box {
    max-width: 500px;
  }
  .cookie-close {
	top: 25px;
    right: 25px;
  	width: 44px;
    height: auto;
  }
  .hamburger-menu {
	top: 25px;
    right: 25px;
    width: 44px;
    height: auto;
  }
  .contact-button {
	bottom: 25px;
    right: 25px;
    width: 44px;
    height: auto;
  }
  .contact-close {
    top: 25px;
    right: 25px;
    width: 44px;
    height: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
    .play-button-custom svg {
        width: 90px;
        height: 90px;
    }
}


/* ========== Breakpoint 5: schmale Smartphones ========== */
@media (max-width: 500px) {
  .cookie-box {
    max-width: 480px;
  }
  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-form h2 {
    max-width: 10ch;
  }
}


/* ========== Breakpoint 6: sehr schmale Smartphones ========== */
@media (max-width: 420px) {
  .cookie-box {
    max-width: 400px;
  }
    .play-button-custom svg {
        width: 80px;
        height: 80px;
    }
}
