/* ==========================================================================
   VCServer – Modernisiertes Order-Layout (bereinigte Version)
   ========================================================================== */

/* Grundlegende Typografie + Body-Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #0a0f1a;
    background-color: #fafbff;
    line-height: 1.6;

    /* Footer-Fix */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#content {
    flex: 1;
}

/* =========================================================
   Responsive Struktur
   ========================================================= */
@media (min-width: 990px) {
  #order-content-block {
    float: left;
    width: 580px;
    padding: 0;
  }
}

@media (min-width: 766px) and (max-width: 989px) {
  #order-content-block {
    float: left;
    width: 500px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  #order-content-block {
    float: left;
    width: 100%;
    padding: 0;
  }
}

/* =========================================================
   Warenkorb-Block
   ========================================================= */
#warenkorb-position-block {
  float: right;
  width: 280px;
  display: inline-block;
  margin-bottom: 20px;
}

#warenkorb-content-block {
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 16px 18px 20px;
  margin-bottom: 30px;
  transition: all 0.2s ease-in-out;
}

#warenkorb-content-block:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}



/* =========================================================
   Radiobuttons / Formularelemente
   ========================================================= */
.radio_container {
  margin-top: 4px;
}

.radio_container legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #0a0f1a;
}

.radio_container span {
  display: block;
  margin-bottom: 6px;
}

.radio_container.horizontal span {
  display: inline-block;
  margin-right: 15px;
}

.radio_container input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  margin-right: 6px;
  width: 18px;
  height: 18px;
  border: 2px solid #b4c2d0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.radio_container input[type="radio"]:checked {
  border-color: #38bdf8;
  background-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.radio_container label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #0a0f1a;
}

/* =========================================================
   Buttons / Submit
   ========================================================= */
.button,
input[type="submit"],
input.submit,
.submit_container input {
  display: inline-block;
  width: 100% !important;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button:hover,
input[type="submit"]:hover,
input.submit:hover,
.submit_container input:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-1px);
}

/* =========================================================
   Legenden & Feldsets
   ========================================================= */
legend {
  padding-left: 2px;
  padding-right: 2px;
  border: none;
  color: #101010;
  font-weight: 600;
  font-size: 14px;
}

fieldset {
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 1.5rem;
  background-color: #fafbff;
}

/* Hinweisbox – Fehler (rot) */
.notice-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
}

/* Hinweisbox – Erfolg (grün) */
.notice-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
}

/* =========================================================
   Warenkorb / Tabellen
   ========================================================= */

#warenkorb-content-block p,
#order-content-block p {
  margin-bottom: 10px;
}

#warenkorb-content-block table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  margin-top: 6px;
}

#warenkorb-content-block td {
  padding: 4px 6px;
  border-bottom: 1px solid #f0f2f5;
}

#warenkorb-content-block tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   Strukturüberarbeitung
   ========================================================= */

#order-content-block {
  float: none;
  width: 100%;
  margin-bottom: 2rem;

  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

#order-content-block::before {
  content: "";
  display: block;
  width: 45px;
  height: 3px;
  border-radius: 3px;
  background: #38bdf8;
  margin-bottom: 16px;
}

/* Tabellen im Orderblock neutralisieren */
#order-content-block table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border: none;
  margin-bottom: 1rem;
}

#order-content-block td {
  border: none !important;
  background: transparent !important;
  padding: 6px 0;
  font-size: 15px;
  color: #0a0f1a;
}

/* Warnhinweisboxen */
#order-content-block div[id="providerwechsel"],
#order-content-block div[id="neuesuche"] {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
}

/* =========================================================
   Country Box
   ========================================================= */

.country-box {
    max-width: 420px;
    margin: 20px auto;
    padding: 25px 30px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    text-align: center;
}

.country-select select {
    width: 100%;
    max-width: 380px;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111;
    appearance: none;

    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='14' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l6 6 6-6' stroke='%23838B9B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.country-select select:hover { border-color: #3b82f6; }
.country-select select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.next-button {
    background: #1e73e8;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background 0.2s;
}

.next-button:hover {
    background: #155ec4;
}

/* =========================================================
   Stepper
   ========================================================= */

.stepper {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 30px;
    gap: 5px;
}

.stepper .step {
    padding: 8px 10px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.stepper .step.active {
    background: #1e73e8;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 880px) {
    .stepper { display: none; }
}

.step-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* =========================================================
   Domainboxen
   ========================================================= */

.domain-options-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.domain-option-box {
    flex: 1 1 calc(50% - 20px);
    min-width: 230px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 18px 20px;
    background: #f9f9f9;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
}

.domain-option-box:hover {
    background: #f1f1f1;
    border-color: #999;
}

.domain-radio {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;

    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    appearance: radio !important;   /* WICHTIG!! */
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;

    transform: scale(1.4) !important;
    cursor: pointer;
}

.domain-option-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
}

.domain-option-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* =========================================================
   Domaincheck
   ========================================================= */

.domain-check-form {
    width: 100%;
}

/* Zeile: prefix + input + button */
.domain-check-row {
    display: flex;
    align-items: center;     /* <<< sorgt für perfekte vertikale Zentrierung */
    gap: 10px;
}

/* Prefix */
.domain-check-row .prefix {
    white-space: nowrap;
    font-size: 15px;
    color: #34495e;
}

/* Eingabefeld */
.domain-check-row input[type="text"] {
    height: 44px !important;
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box !important;
}

/* Button – exakt wie das Input-Feld */
.domain-check-row button.button {
    width: auto !important;
    height: 44px !important;               /* <<< gleiche Höhe */
    padding: 0 22px !important;            /* nur horizontal */
    margin: 0 !important;

    display: flex !important;              /* <<< damit Text zentriert ist */
    align-items: center !important;
    justify-content: center !important;

    font-size: 15px;
    font-weight: 600;

    line-height: 44px !important;          /* <<< identische Textlinie */
    white-space: nowrap;

    box-sizing: border-box !important;     /* <<< verhindert Übergröße */
}

/* =========================================================
   Warenkorb rechts: MwSt. Info
   ========================================================= */

.warenkorb-mwsinfo {
    margin-top: 15px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* =========================================================
   FINALER FIX – Content links, Warenkorb rechts / mobil unten
   ========================================================= */

#main-block {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#order-content-block {
    flex: 1;
}

#warenkorb-position-block {
    width: 320px;
    flex-shrink: 0;
}

/* Mobile: Warenkorb UNTER dem Content */
@media (max-width: 900px) {

    #main-block {
        flex-direction: column;
    }

    #warenkorb-position-block {
        width: 100%;
    }
}

/* ============================
   RECHTER WARENKORB – FIXES
   ============================ */

/* Grundbox */
.order-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Titel */
.order-summary h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 18px;
}

/* DOMAINBLOCK neu */
.order-item.domain {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Domainname oben */
.item-title-full {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

/* Preiszeile */
.item-price-row {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px;
    margin-bottom: 3px;
}

/* Preis */
.item-price-row span {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* DELETE Button (input type="image") */
.item-price-row .remove-btn {
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;   /* <-- HARDCENTER-FIX */
    align-items: center !important;    /* <-- vertikal */
    justify-content: center !important;/* <-- horizontal */
    object-fit: contain !important;
    vertical-align: middle !important; /* <-- wichtig */
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    opacity: .7;
    cursor: pointer;
}
.item-price-row .remove-btn:hover {
    opacity: 1;
}

/* Einmalige Kosten */
.item-onetime {
    text-align: right;
    font-size: 13px;
    color: #64748b;
    margin-top: -2px;
}

/* Abstand unter letzter Domain */
.order-note {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

/* sorgt dafür, dass Formular + Image auf gleicher Höhe sind */
.remove-form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* moderner X-Button */
.remove-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #e11d48;
    cursor: pointer;

    display: flex;           /* <-- garantiert Center */
    align-items: center;     /* <-- vertikale Mitte */
    justify-content: center; /* <-- horizontale Mitte */

    width: 18px;             /* absolute Kontrolle */
    height: 18px;
    padding: 0;
}

/* Hover */
.remove-btn:hover {
    color: #be123c;
}

/* ============================================
   OBERER TARIFBEREICH – SAUBERE DARSTELLUNG
   ============================================ */

.order-item.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.order-item.top .item-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.order-item.top .item-price {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
    color: #0f172a;
}

/* Unterinfos */
.order-subinfo-top {
    display: flex;
    justify-content: space-between;
    padding: 2px 0 6px;
    font-size: 14px;
    color: #475569;
}

.order-subinfo-top span {
    white-space: nowrap;
    font-weight: 500;
    color: #334155;
}

.order-info-box {
    width: 100%;
    padding: 12px 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #0c4a6e;
}

/* ==========================================================================
   Stammdaten
   ========================================================================== */

.modern-form {
    width: 100%;
}

.form-row {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: 15px;
    margin-bottom: 4px;
    color: #222;
}

input, select {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

/* PLZ / Ort */
.two-cols {
    display: flex;
    gap: 10px;
}

.two-cols > div {
    flex: 1;
}

.full-width .button {
    width: 100%;
}

.firma-field,
.verein-field,
.gemeinde-field {
    display: none;
}

.land-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-country-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    cursor: pointer;
    text-decoration: none;
    transition: 0.15s ease-in-out;
}

/* dezenter Hover, wie dein X-Button */
.edit-country-btn:hover {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #222;
}

/* -----------------------------------------------------
    Abschluss-Seite
----------------------------------------------------- */

.summary-section {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #374151;
}

.summary-value {
    color: #111827;
}

/* Highlighted Hinweisbox */
.hinweis-box {
    background: #f1f7ff;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}


.summary-section .checkline:last-child {
    border-bottom: none;
}

.summary-section input[type="checkbox"],
.summary-section input[type="radio"] {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: content-box !important;
}

.summary-section .checkline {
    display: flex;
    align-items: center;     /* <<< Text & Checkbox zentriert */
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.summary-section .checkline span {
    line-height: 1.4;
    display: block;
}

/* ==========================================================================
   Globale Felder:gleicher Stil
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    color: #111 !important;
}

/* Keine Hover-Effekte, alles ruhig wie beim Whois */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: #d1d5db !important;
}

/* Kein blauer Fokus, nur der Standard-Rahmen */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #d1d5db !important;
    box-shadow: none !important;
    outline: none !important;
}

/* textarea größer */
textarea {
    min-height: 90px;
    resize: vertical;
}

/* Einheitliche Labels */
label:not(.check-item) {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0f1a;
}

.form-group {
    margin-bottom: 18px;
}

/* ==========================================================================
   Select2 – exakt im Stil wie das Whois-Eingabefeld
   ========================================================================== */

/* Container (Höhe, Hintergrund, Border, Radius) */
.select2-container .select2-selection--single {
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Text im Select2 */
.select2-container .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 12px !important;
    font-size: 15px !important;
    color: #111 !important;
}

/* Das Dropdown-Pfeil-Symbol */
.select2-container .select2-selection__arrow {
    height: 44px !important;
    right: 10px !important;
}

/* Kein blauer Fokusrahmen */
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    border-color: #d1d5db !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Kein Hover-Effekt */
.select2-container .select2-selection--single:hover {
    border-color: #d1d5db !important;
}

/* Dropdown-Liste */
.select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
}

/* Items in der Liste */
.select2-results__option {
    padding: 10px 12px !important;
    font-size: 15px !important;
}

/* Hover in der Liste – dezent */
.select2-results__option--highlighted {
    background: #f5f6f7 !important;
    color: #111 !important;
}

/* Markiertes Element */
.select2-results__option[aria-selected="true"] {
    background: #e5e7eb !important;
    color: #111 !important;
}