/*
Silktide Consent Manager - https://silktide.com/consent-manager/

Styles are at risked of being overridden by styles coming from the site the consent manager is used on.
To help prevent this, global wrapper elements are prefixed with "#silktide-"
*/

/* --------------------------------
Global Styles - These elements exist in the main DOM and styling is limited to positioning and animation
-------------------------------- /
/ Wrapper (Global) */
#silktide-wrapper {
--focus: none;
--boxShadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.08);/* im bestehenden Block #silktide-wrapper die Zeile ersetzen */
--fontFamily: "Poppins";
--primaryColor: #122138;
--backgroundColor: #ffffff;
--textColor: #111111;
--backdropBackgroundColor: #00000040;
--backdropBackgroundBlur: none;
--cookieIconColor: #111111;
--cookieIconBackgroundColor: #ffffff;
position: fixed;
bottom: 0;
right: 0;
width: 100%;
height: 100%;
z-index: 99999;
pointer-events: none;
border: 0px;
display: flex;
justify-content: center;
align-items: center
}

/* Backdrop (Global) */
#silktide-backdrop-global {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: auto;
border: 0px;
display: none;
}

/* --------------------------------
Links
-------------------------------- */
#silktide-wrapper a {
all: unset;
display: inline-block;
color: var(--primaryColor);
text-decoration: underline;
}

#silktide-wrapper a:hover {
cursor: pointer;
color: var(--textColor);
}

/* --------------------------------
Focus Styles
-------------------------------- */
#silktide-wrapper a:focus,
#silktide-wrapper #silktide-banner button:focus,
#silktide-wrapper #silktide-modal button:focus,
#silktide-wrapper #silktide-cookie-icon:focus {
outline: none;
box-shadow: var(--focus);
border-radius: 8px;
}

#silktide-wrapper #silktide-cookie-icon:focus {
border-radius: 50%;
}

/* --------------------------------
General Styles
-------------------------------- */

#silktide-wrapper .st-button {
color: var(--backgroundColor);
background-color: var(--primaryColor);
border: 2px solid var(--primaryColor);
padding: 12px 18px;
text-decoration: none;
text-align: center;
display: inline-block;
font-size: 15px;
line-height: 22px;
cursor: pointer;
border-radius: 12px;
transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}

#silktide-wrapper .st-button--primary {
}

#silktide-wrapper .st-button--primary:hover {
background-color: var(--backgroundColor);
color: var(--primaryColor);
}

#silktide-wrapper .st-button--secondary {
background-color: var(--backgroundColor);
color: var(--primaryColor);
border-color: #e5e7eb;
}

#silktide-wrapper .st-button--secondary:hover {
background-color: #f5f5f5;
color: var(--primaryColor);
border-color: #d1d5db;
}


/* --------------------------------
Banner
-------------------------------- */
#silktide-banner {
font-family: var(--fontFamily);
color: var(--textColor);
background-color: var(--backgroundColor);
box-sizing: border-box;
padding: 28px;
border-radius: 16px;
pointer-events: auto;
border: 1px solid #eef0f2;
position: fixed;
bottom: 16px;
right: 16px;
width: 600px;
max-width: calc(100% - 32px);
transform: translate(0, -8px);
opacity: 0;
animation: silktide-slideInDown 300ms ease-out forwards;
animation-delay: 0.2s;
box-shadow: var(--boxShadow);
}

#silktide-banner:focus {
border-radius: 16px;
text-shadow: none;
}

#silktide-banner.center {
top: 50%;
left: 50%;
bottom: auto;
right: auto;
position: fixed;
transform: translate(-50%, calc(-50% - 8px));
animation: silktide-slideInDown-center 300ms ease-out forwards;
}

#silktide-banner.bottomLeft {
bottom: 16px;
left: 16px;
position: fixed;
}

#silktide-banner.bottomCenter {
bottom: 16px;
left: 50%;
position: fixed;
transform: translate(-50%, -8px);
animation: silktide-slideInDown-bottomCenter 300ms ease-out forwards;
}

#silktide-banner .preferences {
display: flex;
gap: 6px;
border: none;
padding: 0px;
background-color: transparent;
color: var(--primaryColor);
cursor: pointer;
font-size: 15px;
}

#silktide-banner .preferences span {
display: block;
white-space: nowrap;
text-decoration: underline;
}

#silktide-banner .preferences span:hover {
color: var(--textColor);
}

#silktide-banner .preferences:after {
display: block;
content: '›';
text-decoration: none;
}

#silktide-banner p {
font-size: 15px;
line-height: 22px;
margin: 0px 0px 14px;
}

#silktide-banner a {
display: inline-block;
color: var(--primaryColor);
text-decoration: underline;
background-color: var(--backgroundColor);
}

#silktide-banner a:hover {
color: var(--textColor);
}

#silktide-banner .actions {
display: flex;
gap: 12px;
flex-direction: column;
margin-top: 18px;
}

@media (min-width: 600px) {
#silktide-banner .actions {
flex-direction: row;
align-items: center;
}
}

#silktide-banner .actions-row {
display: flex;
gap: 12px;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-grow: 1;
}

/* --------------------------------
Modal
-------------------------------- */
#silktide-modal {
display: none;
pointer-events: auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
transform: translate(0px, -8px);
opacity: 0;
animation: silktide-slideInUp-center 300ms ease-out forwards;
box-shadow: var(--boxShadow);
font-family: var(--fontFamily);
color: var(--textColor);
flex-direction: column;
padding: 28px;
background-color: var(--backgroundColor);
box-sizing: border-box;
}

/* --------------------------------
Modal - Header
-------------------------------- */
#silktide-modal header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
gap: 12px;
}

#silktide-modal h1 {
font-family: var(--fontFamily);
color: var(--textColor);
font-size: 22px;
font-weight: 600;
margin: 0px;
text-shadow: none;
}

#silktide-modal .modal-close {
display: inline-flex;
border: none;
padding: 10px;
border: 0px;
cursor: pointer;
background: var(--backgroundColor);
color: var(--primaryColor);
border-radius: 10px;
}

#silktide-modal .modal-close svg {
fill: var(--primaryColor);
}

/* --------------------------------
Modal - Content
-------------------------------- */

#silktide-modal section {
flex: 1;
overflow-y: auto;
margin-top: 24px;
padding-right: 7px; /* Prevents scrollbar from appearing over the switches */
}

#silktide-modal section::-webkit-scrollbar {
display: block; /* Force scrollbars to show /
width: 5px; / Width of the scrollbar */
}

#silktide-modal section::-webkit-scrollbar-thumb {
background-color: #c7cdd4; /* subtler scrollbar /
border-radius: 10px; / Rounded corners for the thumb */
}

#silktide-modal p {
font-size: 14px;
line-height: 22px;
color: var(--textColor);
margin: 0px 0px 14px;
}

#silktide-modal p:last-of-type {
margin: 0px;
}

#silktide-modal fieldset {
padding: 0px;
border: none;
margin: 0px 0px 24px;
}

#silktide-modal fieldset:last-of-type {
margin: 0px;
}

#silktide-modal legend {
padding: 0px;
margin: 0px 0px 8px;
font-weight: 700;
color: var(--textColor);
font-size: 15px;
}

#silktide-modal .cookie-type-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}

/* --------------------------------
Modal - Switches
-------------------------------- */
#silktide-modal .switch {
flex-shrink: 0;
position: relative;
display: inline-block;
height: 34px;
width: 74px;
cursor: pointer;
}

#silktide-modal .switch:focus-within {
outline: none;
box-shadow: var(--focus);
border-radius: 9999px;
}

#silktide-modal .switch input {
opacity: 0;
position: absolute;
}

#silktide-modal .switch__pill {
  position: relative;
  display: block;
  height: 34px;
  width: 74px;
  background: #d1d5db;
  border-radius: 9999px;
  transition: background-color .15s ease;
}

#silktide-modal .switch__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  display: block;
  height: 30px;
  width: 30px;
  background: var(--backgroundColor);
  border-radius: 50%;
  transition: left 150ms ease-out, box-shadow .15s ease;
  box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.10);
}


#silktide-modal .switch__off,
#silktide-modal .switch__on {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  color: var(--backgroundColor);
  position: absolute;
  top: 9px;
  right: 10px;
  transition: right 150ms ease-out, opacity 150ms ease-out;
  letter-spacing: .4px;
}

#silktide-modal .switch__off {
  opacity: 1;
}

#silktide-modal .switch__on {
  opacity: 0;
}

/* Checked Switch Styles */
#silktide-modal .switch input:checked + .switch__pill {
  background: var(--primaryColor);
}

#silktide-modal .switch input:checked ~ .switch__dot {
  left: calc(100% - 32px);
}

#silktide-modal .switch input:checked ~ .switch__off {
  right: calc(100% - 32px);
  opacity: 0;
}

#silktide-modal .switch input:checked ~ .switch__on {
  right: calc(100% - 34px);
  opacity: 1;
}

/* Disabled Switch Styles */
#silktide-modal .switch input:disabled + .switch__pill {
  opacity: 0.65;
  cursor: not-allowed;
}

/* --------------------------------
Modal - Footer
-------------------------------- */
#silktide-modal footer {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 18px;
}

@media (min-width: 600px) {
#silktide-modal footer {
flex-direction: row;
align-items: center;
}
}

#silktide-modal footer a {
margin-left: auto;
}

#silktide-cookie-icon { display: none !important; }
/* --------------------------------
Backdrop
-------------------------------- */
#silktide-backdrop {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--backdropBackgroundColor);
backdrop-filter: blur(var(--backdropBackgroundBlur));
pointer-events: all;
}

@media (max-width: 600px) {
  #silktide-modal {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    padding: 20px;
  }
  #silktide-modal section {
    font-size: 14px;
    line-height: 20px;
    max-height: calc(100% - 100px);
    overflow-y: auto;
    overflow-x: hidden; /* verhindert horizontale Scrollleiste */
  }
  #silktide-modal section::-webkit-scrollbar {
    width: 3px; /* Breite in Chrome/Safari/Edge */
  }

  #silktide-modal section::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
}


/* --------------------------------
Animations
-------------------------------- */
@keyframes silktide-fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

@keyframes silktide-slideInDown {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes silktide-slideInDown-center {
from {
opacity: 0;
transform: translate(-50%, calc(-50% - 8px));
}
to {
opacity: 1;
transform: translate(-50%, -50%);
}
}

@keyframes silktide-slideInDown-bottomCenter {
from {
opacity: 0;
transform: translate(-50%, -8px);
}
to {
opacity: 1;
transform: translate(-50%, 0);
}
}

@keyframes silktide-slideInUp-center {
from {
opacity: 0;
transform: translate(0px, 8px);
}
to {
opacity: 1;
transform: translate(0px, 0px);
}
}