/* =========================
   Globale Input-Styles
   ========================= */

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
input.wuerstchen-input,
.wuerstchen-order-form input:not([type="checkbox"]):not([type="radio"]),
.wuerstchen-login-form input:not([type="checkbox"]):not([type="radio"]) {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    outline: none !important;
    box-shadow: none !important;
}






/* =========================
   Container-Boxen
   ========================= */

.wuerstchen-container,
.wuerstchen-event-create,
.wuerstchen-login-container,
.wuerstchen-register-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
    text-align: center;
	
}


/* =========================
   Überschriften
   ========================= */

.wuerstchen-container h2,
.wuerstchen-container h4,
.wuerstchen-event-create h2,
.wuerstchen-login-container h2,
.wuerstchen-register-container h2,
.wuerstchen-register-container h3,
.wuerstchen-register-container h4 {
    color: #0073aa;
    margin-bottom: 20px;
    text-align: center;
}

/* Spezifische Überschrift im Event-Create-Formular */
.wuerstchen-event-create h4 {
    color: #000 !important; /* Schwarz */
}


/* =========================
   Formulare: Labels & Inputs
   ========================= */

form label {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    margin-bottom: 12px;
    font-weight: bold;
    text-align: right;
    color: #333;
}

/* Allgemeine Formular-Inputs (werden von den globalen Styles oben abgedeckt, aber mit leichten Abweichungen) */
input,
select,
textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    box-sizing: border-box;
}


::placeholder {
    color: #aaa; /* Heller für besseren Kontrast auf schwarzem Grund */
}


/* =========================
   Buttons
   ========================= */

.wuerstchen-button,
.wuerstchen-button-blue,
.wuerstchen-button-green,
.wuerstchen-event-create button,
.wuerstchen-event-create a.wuerstchen-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background-color: #0073aa;
    transition: background-color 0.2s ease-in-out;
}

.wuerstchen-button:hover,
.wuerstchen-button-blue:hover,
.wuerstchen-button-green:hover,
.wuerstchen-event-create button:hover,
.wuerstchen-event-create a.wuerstchen-button:hover {
    background-color: #005177;
}


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

.wuerstchen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
}

.wuerstchen-table th,
.wuerstchen-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    color: #000000;
}

.wuerstchen-table th {
    background: #e6f2ff;
    font-weight: bold;
    color: #0073aa;
}

.wuerstchen-total-row {
    background: #dbeeff;
    font-weight: bold;
    color: #000000;
}


/* =========================
   Event-Formular spezielle Styles
   ========================= */

.wuerstchen-event-create label {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    margin-bottom: 12px;
    font-weight: bold;
    text-align: right;
    color: #000 !important;
}

.wuerstchen-event-create input,
.wuerstchen-event-create select,
.wuerstchen-event-create textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    box-sizing: border-box;
	
}

/* Event-Formular Checkboxen */
.wuerstchen-event-create input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #0073aa;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    margin: 0;
}

/* Tabellen-Checkboxen wieder Standard */
.wuerstchen-table input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: auto !important;
    height: auto !important;
}


/* Haken für die eigene Checkbox */
.wuerstchen-event-create input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid #0073aa;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Mobile-Optimierung für Checkbox-Label */
@media (max-width: 768px) {
    .wuerstchen-event-create label.checkbox-label {
        margin-top: 12px !important;
    }
}


/* =========================
   Bestellformular & Autofill Fix
   ========================= */

/* Spezifische Styles für Bestellformular-Inputs */
.wuerstchen-order-form input,
.wuerstchen-order-form select,
.wuerstchen-order-form textarea {
    padding: 8px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

/* Chrome Autofill fix */
.wuerstchen-order-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
}
/* =========================
   Korrektur für Tabellen-Checkboxes
   ========================= */
.wuerstchen-order-form input[type="radio"] {
    -webkit-appearance: radio !important;
    appearance: radio !important;
    width: auto !important; /* Setzt die Breite zurück */
    height: auto !important; /* Setzt die Höhe zurück */
}
/* Diese Regel stellt das Standard-Aussehen für Checkboxen
  speziell innerhalb der ".wuerstchen-table" wieder her.
*/
.wuerstchen-table input[type="checkbox"] {
    -webkit-appearance: checkbox !important; /* Für Chrome/Safari */
    -moz-appearance: checkbox !important;    /* Für Firefox */
    appearance: checkbox !important;         /* Standard-Eigenschaft */
    
    /* Setzt eventuell vererbte Größen zurück */
    width: auto !important;
    height: auto !important;
}
.wuerstchen-bestellung,
.wuerstchen-bestellung * {
    color: #000000 !important;
}

.wuerstchen-table,
.wuerstchen-table * {
    color: #000000 !important;
}
.wuerstchen-order-form label {
    color: #000000 !important;
}

.wuerstchen-error {
    color: #ff0000 !important;
    font-weight: bold;
}
.wuerstchen-order-form label {
    text-align: left !important;
}


.wuerstchen-event-create input:focus,
.wuerstchen-event-create input.wuerstchen-input:focus,
.wuerstchen-event-create input[type="text"]:focus,
.wuerstchen-event-create input[type="number"]:focus,
.wuerstchen-event-create input[type="password"]:focus,
.wuerstchen-event-create input[type="url"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}
.wuerstchen-register-form input:focus,
.wuerstchen-register-form input[type="text"]:focus,
.wuerstchen-register-form input[type="email"]:focus
{  
	outline: none !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}




