@font-face{
  font-family:trade gothic lt std;
  font-style:normal;
  font-weight:400;
  src:local('Trade Gothic LT Std'),
  url(https://ucc-dealmaker.ch/font/trade-gothic-lt-std-58a78e64434a9.woff) format('woff')
}

@font-face{
  font-family:trade gothic lt std;
  font-style:normal;
  font-weight:700;
  src:local('Trade Gothic LT Std'),
  url(https://ucc-dealmaker.ch/font/trade-gothic-lt-std-bold.woff) format('woff')
}

@font-face{font-family:avenir;font-style:normal;font-weight:400;src:local('Avenir'),url(https://ucc-dealmaker.ch/font/avenir_roman_12.woff) format('woff')}




:root{
  --ucc-primary-red: #E60000;
  --ucc-primary-black: #171a19;
  --ucc-primary-white: #FFFFFF;
  --ucc-secondary-blue: #192d3b;
  --ucc-secondary-teal: #a1dec9;
  --ucc-secondary-grey: #d4e0de;

  --background: var(--ucc-primary-white);
  --text-color: var(--ucc-primary-black);
  --shadow: 23, 26, 25;
  --border: var(--ucc-primary-black);
}

body {
  font-family: "Avenir";
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: var(--background);
}

h1, h2, h3, a, a {
  font-family: "Trade Gothic LT Std";
  font-style: normal;
  font-weight: normal;
}


.container {
  width: 90%;
  /*max-width: 1200px;*/
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
}

header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

header h1 {
  text-align: right;
  font-weight: bold;
  font-size: 3em;
}

header img {
  width: 20%;
  max-width: 300px;
  /*filter: brightness(0) invert(1);*/
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  margin-bottom: 20px;
  justify-content: center;
}

form > div:nth-of-type(2) div, .popup_div form > div{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* Allgemeine Option-Styling */
.option {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  padding: 10px 10px 0px 10px;
}

/* Bilder in Optionen */
.checkbox-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt für alle Optionen */
.option:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(var(--shadow), 0.2);
}

/* Visuelles Feedback für die ausgewählte Option */
.option[data-selected="true"] {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(var(--shadow), 0.4);
  background-color: rgba(var(--shadow), 0.1); /* Optional: leicht blauer Hintergrund */
}

.option[data-selected="true"] .checkbox-image {
  transform: scale(1.1);
}


/* Styles for the select, input, and button */
select,
input,
button, textarea {
  font-size: 1rem;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label:has(~ input:required) {
  font-weight: bold;
}
label:has(~ input:required):after {
  content: '*';
}


/* Hover effects */
select:hover,
input:hover,
button:hover {
  border-color: var(--ucc-secondary-teal);
  box-shadow: 0 4px 8px rgba(var(--shadow), 0.2);
}

/* Focus effects */
select:focus,
input:focus {
  border-color: var(--border);
  box-shadow: 0 4px 8px rgba(var(--shadow), 0.3);
}

/* Button-specific styling */
button {
  background-color: var(--ucc-primary-red);
  color: var(--ucc-primary-white);
  border: none;
  box-shadow: 0 4px 8px rgba(var(--shadow), 0.3);
  cursor: pointer;
}

button[title] {
  cursor: not-allowed;
}

button:hover {
  background-color: var(--text-color);
  color: var(--background)
}


/* Rounded styling for select and input */
select {
  appearance: none; /* Removes default browser styling */
  background-color: var(--background);
  cursor: pointer;
  padding-right: 30px;
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

/* Align button to match input/select */
form button {
  padding: 10px 20px;
  margin-top: 10px;
  font-weight: bold;
  transition: transform 0.2s ease;
}


/* Horizontal Accordion Styling */
.accordion {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.accordion-item {
  border: 3px solid var(--ucc-secondary-grey);
  max-width: 300px;
  flex-shrink: 0;
  transition: max-width 0.3s ease, flex-grow 0.3s ease;
  margin: 10px 30px;
  padding-top: 150px;
}

.accordion-item.active {
  max-width: 100%;
  width: 600px;
  flex-grow: 1;
  padding: 10px 0px;
}



.accordion-item.active .head > div{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.accordion-item.active .head .thumbnail-container {
  text-align: center;
  max-height: 400px; /* Erhöht, um Platz für größere Bilder zu schaffen */
  overflow: hidden; /* Verhindert Überlauf des Bildes */
  z-index: 10;
}

.accordion-item .head img {
  max-width: 250px;
  height: auto;
  object-fit: contain; /* Skaliert das Bild, ohne es zu beschneiden */
}

.accordion-item.active .head > div:first-child {
  align-items: center;
  height: 100%;
}

.accordion-item.active .head .thumbnail-container img {
  height: 500px;
  object-fit: cover;
  object-position: calc(50% + 30px) -50px;
  max-height: 500px; /* Begrenzung der Bildhöhe */
}


.accordion-item:nth-child(3).active .head .thumbnail-container img {
  max-width: 400px;
  object-position: calc(50% + 50px) -50px;
}

.accordion-item .head button {
  width: 100%;
  background-color: var(--ucc-secondary-blue);
  border-radius: 0;
  box-shadow: none;
  font-size: 2em;
}

.accordion-item.active .head h2 {
  color: var(--ucc-primary-red);
  margin: 0px;
  font-weight: bold;
  font-size: 2em;
}

.accordion-item.active .head {
  position: relative;
}

.accordion-item.active .head > div:first-child > div:first-child {
  padding-left: 100px;
}

.accordion-item.active .border-red {
  border: 1px solid var(--ucc-primary-red);
  position: absolute;
  width: 70%;
  height: 55%;
  top: 80px; /* Zentriert vertikal durch 10% Abstand nach oben */
  left: 80px; /* Zentriert horizontal durch 10% Abstand nach links */
  box-sizing: border-box; /* Bezieht den Rahmen in die Dimensionen ein */
}

.accordion-item ul li::marker {
  color: var(--ucc-primary-red);
}

.accordion-item footer {
  margin-left: 40px;
  margin-right: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.accordion-item footer p {
  color: var(--ucc-primary-red);
  font-size: 2em;
  margin: 0;
  padding-right: 20px;
  max-width: 550px;
}

.accordion-item:not(.active) .head > div{
  margin: 0px 30px;
}


.accordion-item .accordion-content .details {
  display: none;
}

.accordion-item.active .accordion-content .details{
  display: block;
}

.config {
  display: block;
  margin-left: 40px;
}


.popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 0%);
  border: 1px solid #ddd;
  background-color: white;
  padding: 20px;
  z-index: 1000;
  width: 35%;
  min-width: 250px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.banner {
  width: calc(100% + 42px);
  margin-left: -21px;
  margin-right: -21px;
  margin-top: -21px;
  margin-bottom: 20px;
}

.close_banner {
  height: 21px;

  margin: 0px;
  padding: 0px;
  top: -22px;
  position: relative;
  left: -22px;
  width: calc(100% + 43px);
}

.close_banner span {
  position: absolute;
  right: 5px;
  top: -5px;
  cursor: pointer;
}

.popup button[type=clear] {
  margin-top: 20px;
  background-color: var(--ucc-primary-black);
}

.popup button[type=clear]:hover{
  background-color: var(--ucc-primary-red);
}

ul ul li{
  margin-left: 10px;
}






@media (max-width: 768px) {
  .accordion {
    flex-direction: column; /* Switch to vertical layout on mobile */
  }

  .accordion-item {
    flex: none; /* Resets horizontal stretching */
    width: 98% !important; /* Ensures full-width items in vertical mode */
    max-width: none;
    margin: 10px 0px;
  }

  .accordion-item:not(.active) > .accordion-content {
    display: none;
  }

  .accordion-item:not(.active) .thumbnail-container img {
    width: 100%;
  }

  .accordion-item.active .head > div:first-child > div:first-child {
    padding-left: 10px;
  }
  .accordion-item.active .border-red {
    top: 100px;
  }

  header {
    display: flex;
    flex-wrap: wrap;
  }

  header img {
    width: 100%;
  }

  header h1 {
    margin-right: 10px;
  }
}
