/* ============================
   Grundstruktur & Hero-Section
============================ */

@import url("https://use.typekit.net/slm6dwh.css");

@font-face {
  font-family: 'Kormelink';
  font-style: normal;
  src: url('../fonts/WT_Kormelink_Roman_DESK_1.1.woff2');
}

@font-face {
  font-family: 'Kormelink';
  font-style: italic;
  src: url('../fonts/WT_Kormelink_Italic.woff2');
}

body {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    background-color: white;
}

.logo {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 10000;
}

.logo img {
    height: 40px;
    width: auto;
}

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

.menu {
  position: fixed;
  top: clamp(8px, 1vw, 15px);
  left: clamp(8px, 1vw, 15px);

  font-family: "helvetica-neue-lt-pro", sans-serif;
  font-weight: 500;
  font-size: 10pt;
  text-transform: uppercase;
  color: black;

  width: calc((100vw  / 2) - clamp(8px, 1vw, 15px) * 1.5);

  box-sizing: border-box;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;

  column-gap: clamp(5px, 0.1vw, 1000px);
  row-gap: 4px;

  overflow: visible;

  z-index: 9999;

  background-color: white;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mix-blend-mode: luminosity;

  padding-right: 3px;
  padding-left: 88px;
  padding-top: 1.5px;
  padding-bottom: 1.5px;
}

@supports (mix-blend-mode: luminosity) {
  .subsub {
    mix-blend-mode: luminosity;
  }
}

@media (max-width: 1250px) {
  .menu {
    width: calc((100vw) - clamp(8px, 1vw, 15px)*2);
  }
}

.menu > div {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
}

.sub {
  line-height: 1;
  font-style: normal;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.subsub {
  position: relative;
  display: block;
  font-weight: 500;

  background-image: url("https://images.unsplash.com/photo-1723947842784-aa7bfe8cf853?w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  filter: brightness(0.6) contrast(1.2);
}

.menu a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  padding: 0.08rem 0;
  font-style: normal;
  white-space: nowrap;
}

.menu a:hover,
.menu summary:hover {
  font-style: italic;
  font-weight: 500;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 801px) {
  .mobile-menu-button {
    display: none;
  }
}

/* ============================
   erstes Bild
============================ */

.erstes-bild {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
}

.erstes-bild .bild-container-erstes {
  width: 50vw;
  height: calc(100vh - var(--erstes-text-height, 0px));
  position: relative;
  flex-shrink: 0;
}

.erstes-bild .bild-container-erstes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-wrapper-erstes {
  width: 50vw;
  padding: clamp(8px, 0.5vw, 15px);
  box-sizing: border-box;
}

/* ============================
   Bildkonfigurator / Layout
============================ */

.bildkonfigurator-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 15px);
  box-sizing: border-box;
}

.reihe {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: clamp(8px, 1vw, 15px);
  box-sizing: border-box;
}

.reihe:empty {
  display: none;
}

.reihe.small { margin-bottom: clamp(8px, 1vw, 15px); }
.reihe.large { margin-bottom: clamp(50px, 10vw, 100px); }
.erstes-bild { margin-bottom: clamp(50px, 10vw, 100px); }

/* ============================
   Objekt (einzelnes Bild)
============================ */

.objekt {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  margin: 0;
  box-sizing: border-box;
}

.objekt .bild-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.objekt .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.objekt.klein  { width: calc(50% - (clamp(8px,1vw,15px)/2)); }
.objekt.mittel { width: 66vw; }
.objekt.gross  {
  width: calc((100% - 2 * clamp(8px,1vw,15px)) / 3 * 2);
  max-width: 90vw;
  margin-right: auto;
  margin-left: auto;
}

.objekt.links  { margin-right: auto; }
.objekt.rechts { margin-left: auto; }
.objekt.mitte  { margin: 0 auto; }

/* ============================
   Hochkant Klein
============================ */

.reihe.klein-hochkant {
  display: grid;
  width: 100%;
  padding: 0 clamp(8px,1vw,15px);
  gap: clamp(8px,1vw,15px);
  box-sizing: border-box;
  align-items: start;
}

.reihe.klein-hochkant[data-count="1"] {
  grid-template-columns: 1fr;
  justify-items: center;
}

.reihe.klein-hochkant[data-count="1"].spacing-small {
  margin-bottom: clamp(8px, 1vw, 15px);
}

.reihe.klein-hochkant[data-count="1"].spacing-large {
  margin-bottom: clamp(50px, 10vw, 100px);
}

.reihe.klein-hochkant[data-count="2"] {
  grid-template-columns: 1fr 1fr 1fr;
}

.reihe.klein-hochkant[data-count="3"] {
  grid-template-columns: 1fr 1fr 1fr;
}

.reihe.klein-hochkant .objekt.hochkant.klein {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.reihe.klein-hochkant[data-count="1"] .objekt.hochkant.klein {
  width: calc(33.333% - (clamp(8px,1vw,15px)/1.5));
}

.reihe.klein-hochkant[data-count="1"] .objekt.links  { justify-self: start; }
.reihe.klein-hochkant[data-count="1"] .objekt.mitte  { justify-self: center; }
.reihe.klein-hochkant[data-count="1"] .objekt.rechts { justify-self: end; }

/* GEÄNDERT: festes Seitenverhältnis statt auto */
.reihe.klein-hochkant[data-count="1"] .objekt.hochkant.klein .bild-container {
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  overflow: hidden;
}

.reihe.klein-hochkant[data-count="1"] .objekt.hochkant.klein .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reihe.klein-hochkant .objekt.hochkant.klein:not([data-count="1"]) .bild-container {
  aspect-ratio: 3 / 4;
}

.reihe.klein-hochkant .objekt.hochkant.klein:not([data-count="1"]) .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reihe.klein-hochkant.spacing-small {
  margin-bottom: clamp(8px, 1vw, 15px);
}

.reihe.klein-hochkant.spacing-large {
  margin-bottom: clamp(50px, 10vw, 100px);
}

/* ============================
   Hochkant Mittel
============================ */

.reihe.mittel-hochkant {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: clamp(8px, 1vw, 15px);
  margin-bottom: clamp(50px, 10vw, 100px);
  box-sizing: border-box;
}

.reihe.mittel-hochkant .objekt.hochkant.mittel {
  width: calc(50% - (clamp(8px, 1vw, 15px)/2));
  margin: 0;
}

/* GEÄNDERT: festes Seitenverhältnis statt height: auto */
.reihe.mittel-hochkant .objekt.hochkant.mittel .bild-container {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.reihe.mittel-hochkant .objekt.hochkant.mittel .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   Hochkant Groß
============================ */

.reihe.hochkant-gross {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin-bottom: clamp(50px, 10vw, 100px);
  box-sizing: border-box;
}

.objekt.hochkant.gross {
  width: 66vw;
  max-width: 90vw;
  margin: 0 auto;
}

/* NEU: festes Seitenverhältnis */
.reihe.hochkant-gross .objekt.hochkant.gross .bild-container {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.reihe.hochkant-gross .objekt.hochkant.gross .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================
   Quer Klein – eigene Reihe
============================ */

.reihe.quer-klein {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 15px);
  padding: 0 clamp(8px, 1vw, 15px);
  box-sizing: border-box;
  align-items: flex-start;
  margin-bottom: clamp(50px, 10vw, 100px);
}

.reihe.quer-klein > .objekt.quer.klein {
  flex: 0 0 calc(50% - (clamp(8px, 1vw, 15px)/2));
}

.reihe.quer-klein > .objekt.quer.klein.links  { margin-left: 0; margin-right: auto; }
.reihe.quer-klein > .objekt.quer.klein.mitte  { margin: 0 auto; }
.reihe.quer-klein > .objekt.quer.klein.rechts { margin-left: auto; margin-right: 0; }

.reihe.quer-klein[data-count="2"] > .objekt.quer.klein:first-child,
.reihe.quer-klein[data-count="2"] > .objekt.quer.klein:last-child {
  margin-left: 0;
  margin-right: 0;
}

.objekt.quer.klein {
  width: calc(50% - (clamp(8px, 1vw, 15px)/2));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
}

.objekt.quer.klein .bild-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.objekt.quer.klein .bild-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.objekt.quer.klein .text-wrapper {
  padding-top: 0.5em;
  padding-bottom: 1em;
}

/* ============================
   Text & Overlay
============================ */

.text-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: clamp(8px, 1vw, 15px);
  padding-right: clamp(8px, 1vw, 15px);
  padding-top: clamp(8px, 0.5vw, 15px);
  box-sizing: border-box;
  line-height: 13px;
}

.beschreibungconf,
.factsconf,
.availabilityconf {
  margin: 0;
  font-size: 9pt;
  font-family: 'Kormelink', serif;
  font-style: normal;
  text-transform: uppercase;
  color: black;
  box-sizing: border-box;
}

.second-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1em;
}

.left-text {
  flex: 1 1 0;
  min-width: 150px;
  line-height: 13px;
  margin-top: 0.2vw;
}

.right-text {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  line-height: 13px;
}

.factsconf .label { font-style: italic; }

.objekt.hochkant.klein.links .text-wrapper {
  padding-left: 0;
  padding-right: clamp(8px, 1vw, 15px);
}

.objekt.hochkant.klein.rechts .text-wrapper {
  padding-left: clamp(8px, 1vw, 15px);
  padding-right: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.8);
  color: black;
  padding: 1em;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 9pt;
  line-height: 14px;
  font-family: 'Kormelink';
  font-style: normal;
  text-transform: uppercase;
}

a { color: black; font-style: italic; }
.link { font-style: italic; }
.mobil { font-style: normal; }
.availabilityconf:hover { cursor: pointer; font-style: italic; }

/* ============================
   SECTION LABEL
============================ */

.section-label {
  position: fixed;
  left: 15px;
  top: 49.3%;
  transform: translateY(-49.3%);

  font-family: 'Kormelink';
  font-size: 12pt;
  text-transform: lowercase;
  color: black;

  z-index: 9999;

  opacity: 0;
  transition: opacity 0.1s ease;

  font-style: italic;
}

.section-label::before {
  content: "(";
}

.section-label::after {
  content: ")";
}

.section-label.is-active {
  opacity: 1;
}

.gruppe-title {
  display: none;
}
