#domain-preloader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed; /* Jetzt über den gesamten Bildschirm */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Stärkere Abdunklung */
    z-index: 9999;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.domain-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--e-global-color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Haupt-Domain */
.main-domain {
    padding: 20px;
    width: 100%;
    max-width: none;
    margin-bottom: 15px;
    border: 2px solid;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    transition: box-shadow 0.3s ease;
}

.main-domain.available {
    border-color: #28a745;
    background-color: #e9f9ec;
    color: #28a745;
}

.main-domain.unavailable {
    border-color: var(--e-global-color-accent);
    background-color: #fbe9eb;
    color: var(--e-global-color-accent);
}

.main-domain:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Zusätzliche Domains */
.additional-domains {
    width: 100%;
    max-width: none;
    margin: 0px 0;
    padding: 0px;
    border-radius: 10px;
}

.additional-domains h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

/* Domain-Items */
.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
  
    transition: all 0.3s ease;
}

.domain-item.available {
    border-color: #28a745;
    
    color: #fff;
}
.domain-item.available:hover {
    border-color: #28a745;
    background: #28a74520;
    color: #fff;
}

.domain-item.unavailable:hover {
    border-color: var(--e-global-color-accent);
    background: #dc354520;
    color: #fff;
}

.domain-item.unavailable {
    border-color: var(--e-global-color-accent);
    color: #fff;
}

.domain-item:hover {
     transform: scale(1.01);
    background-color: #fff;
}

/* Domain-Namen */
.domain-name {
    font-weight: bold;
    flex: 0.5;
}

/* Domain-Status */
.domain-status {
    flex: 2;
    text-align: left;
    font-size: 14px;
}

.domain-price {
    font-weight: bold;
    margin-left: 5px;
    font-size: 1.1rem;
}

.mobile-break {
    display: none;
}

.register-domain-button,
.transfer-domain-button {
    width: 180px; /* Einheitliche Breite */
    padding: 6px 12px;
    background-color: #28a745;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.3s;
}

.transfer-domain-button {
    background-color: var(--e-global-color-accent); /* Andere Farbe für Transfer */
}

.register-domain-button:hover,
.transfer-domain-button:hover {
    background-color: #0056b3; /* Hover-Farbe */
}


/*FORMULAR WIDGET*/
.custom-domain-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.custom-domain-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 0px 8px;
    width: 100%;
    background: #fff;
    margin-top: 10px;
}

.custom-domain-wrapper .prefix {
    font-weight: bold;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 5px 0 0 5px;
    color: #333;
}

.custom-domain-wrapper input[type="text"] {
    flex-grow: 1;
    padding: 0px 8px;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600 !important;
    color: #333;
}

.custom-domain-wrapper .suffix,
.custom-domain-wrapper select {
    font-weight: bold;
    padding: 8px 5px 8px 0px;
    border-radius: 0 5px 5px 0;
    color: #333;
    border: none;
    outline: none;
    cursor: pointer;
}

.custom-domain-wrapper select {
    border-radius: 0 5px 5px 0;
    font-family: 'lexend';
}

.custom-domain-form {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Abstand zwischen Elementen */
}

.custom-domain-button {
    padding: 14px 22px;
    background-color: #ff0077;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px 5px 5px 5px !important;
    cursor: pointer;
    margin-left: 20px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.custom-domain-button:hover {
    background-color: #8BFF97 !important;
}


/* Breiteres TLD-Dropdown mit besserer Nutzerfreundlichkeit */
.custom-domain-select {
    max-width: 200px; /* Vergrößerte Breite */
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    background: #fff;
    font-size: 14px;
    border: 1px solid #ccc;
}

/* Dropdown-Optionen mit besserer Lesbarkeit */
.custom-domain-select option {
    padding: 10px;
    font-size: 14px;
}

/* Falls viele TLDs → Dropdown mit Scroll */
.custom-domain-select {
    max-height: 250px;
    overflow-y: auto;
}

.domain-check-messages{
 width:100%;
 margin-top: 25px;
}

@media (max-width: 768px) {

    .main-domain,
   .domain-item {
       flex-direction: column; /* Stapelt die Elemente */
       align-items: flex-start;
       text-align: left;
       padding: 15px;
   }

   .domain-name {
       font-size: 16px;
       display: block;
       width: 100%; /* Name soll ganze Breite nutzen */
       margin-bottom: 5px;
   }

   .domain-status {
       font-size: 14px;
       display: block;
       width: 100%; /* Status in eigene Zeile */
       margin-bottom: 5px;
   }

   .register-domain-button,
   .transfer-domain-button {
       width: 100%; /* Button über gesamte Breite */
       text-align: center;
       display: block;
       margin-top: 8px;
   }
   
   .custom-domain-wrapper {
       display: flex;
       flex-wrap: wrap;
       align-items: center;
       justify-content: space-between;
   }

   .custom-domain-wrapper .prefix {
       order: 1;
       flex-shrink: 0;
   }

   .custom-domain-wrapper input[type="text"] {
       order: 2;
       flex-grow: 1; /* Nutzt verfügbaren Platz */
       /*min-width: 190px;  Damit es nicht zu klein wird */
       /*max-width: 315px; /* Volle Breite innerhalb des Containers */
       padding-left: 0px !important;
       font-size: 16px;
   }

   .custom-domain-wrapper .suffix {
       order: 3;
       
   }

   .custom-domain-wrapper select, .custom-domain-selects  {
       order: 4;
       flex-grow: 0; /* Kein unnötiges Wachsen */
       width: auto; /* Dynamische Breite */
       min-width: 50px; /* Damit es lesbar bleibt */
   }

   .custom-domain-button {
       order: 5;
       width: 100%; /* Bleibt unterhalb */
       margin: 10px;
   }
   .mobile-break {
    display: inline;
}
}

