/* --------------------------------------------------
   Variablen: aus design_config.json via JS gesetzt
   -------------------------------------------------- */
   :root {
    --bgColor:       #ffffff;
    --mainColor:     #bf1b1c;
    --hoverColor:    #9d1212;
    --midFlipColor:  #000000;
    --textColor:     #ffffff;
    --borderColor:    #cccccc;
    --canvasBgColor:  #ffffff;
    --spinnerBgColor: #f3f3f3;
    --boxBgColor:     #fff4f4;
  }
  
  /* ===================================================================
     Variables & Base Styles
     =================================================================== */
  body.bdew {
    background-color: var(--bgColor);
    font-family: sans-serif;
    margin: 0;
    padding: 2rem;
    color: var(--textColor);
    text-align: center;
  }
  
  /* File Input */
  input[type="file"] {
    margin: 1rem auto;
  }
  
  /* ===================================================================
     Filters & Canvas Preview
     =================================================================== */
  #filters {
    margin: 1rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  canvas {
    max-width: 90vw;
    border: 1px solid var(--borderColor);
    border-radius: 8px; /* fest codiert */
    background: var(--canvasBgColor);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* fest codiert */
    margin-top: 1rem;
  }
  
  /* ===================================================================
     Buttons
     =================================================================== */
  .button {
    padding: 0.6rem 1.2rem;
    margin: 0.25rem;
    cursor: pointer;
    border: none;
    border-radius: 5px; /* fest codiert */
    background-color: var(--mainColor);
    color: var(--textColor);
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease; /* fest codiert */
  }
  
  .button:hover {
    background-color: var(--hoverColor);
  }
  
  .button.outline {
    background: var(--bgColor);
    color: var(--mainColor);
    border: 2px solid var(--mainColor);
  }

  /* Dropzone */
#dropzone {
  border: 2px dashed var(--mainColor);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background-color: var(--boxBgColor);  /* statt #fff7f7 */
  color: #333;
}

/* How-to Box */
.howto {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: var(--boxBgColor);        /* statt #fff4f4 */
  border-left: 5px solid var(--mainColor);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* LinkedIn Section */
.linkedin-section {
  position: relative;
  margin: 2rem auto;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  border: 2px dashed var(--mainColor);
  border-radius: 10px;
  background-color: var(--boxBgColor);  /* statt #fff7f7 */
  color: #333;
  text-align: left;
  font-family: 'Helvetica Neue', sans-serif;
}
  
  /* ===================================================================
     Spinner
     =================================================================== */
  .spinner {
    border: 4px solid var(--spinnerBgColor);
    border-top: 4px solid var(--mainColor);
    border-radius: 50%; /* fest codiert */
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 1rem auto;
  }
  
  @keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* ===================================================================
     Actions & Back Button
     =================================================================== */
  .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
  
  .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--bgColor);
    border: none;
    border-radius: 50%;  /* fest codiert */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* fest codiert */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }
  
  .back-button svg {
    width: 24px;
    height: 24px;
    fill: var(--midFlipColor);
  }
  
  /* ===================================================================
     Editor Modal Close Button
     =================================================================== */
  .editor-close {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1001;
    background-color: var(--mainColor);
    color: var(--textColor);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%; /* fest codiert */
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* fest codiert */
  }
  
  .editor-close:hover {
    background-color: var(--hoverColor);
  }
  
  /* ===================================================================
     Header / Title / Subtitle
     =================================================================== */
  .header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2.5rem;
    color: var(--mainColor);
  }
  
  .icon {
    width: 1.5em;
    height: 1.5em;
  }
  
  .subtitle {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #555555; /* fest codiert */
  }
  
  /* ===================================================================
     LinkedIn Section
     =================================================================== */
  .linkedin-section {
    position: relative;
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    border: 2px dashed var(--mainColor);
    border-radius: 10px; /* fest codiert */
    background-color: var(--boxBgColor); /* fest codiert */
    color: #333333; /* fest codiert */
    text-align: left;
    font-family: 'Helvetica Neue', sans-serif; /* fest codiert */
  }
  
  #rotateLinkedin {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--mainColor);
  }
  
  #rotateLinkedin svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  .linkedin-section h2 {
    margin-top: 0;
    color: var(--mainColor);
    font-size: 1.25rem;
  }
  
  .linkedin-text-wrapper {
    position: relative;
  }
  
  .linkedin-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid var(--borderColor);
    border-radius: 4px;
    resize: vertical;
  }
  
  .linkedin-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .countdown-timer {
    margin: 3rem auto 0 auto;
    padding: 1rem 2rem;
    max-width: 400px;
    border-radius: 10px; /* fest codiert */
    background-color: #fff7f7; /* fest codiert */
    border: 2px dashed var(--mainColor);
    color: var(--mainColor);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* fest codiert */
  }
  
  