/* 1. Grund-Layout und Typografie anpassen */
.pdb-record, .pdb-signup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
}

/* 2. Altes Tabellen-Layout aufbrechen und in modernes Block-Layout verwandeln */
.pdb-record table.form-table,
.pdb-record table.form-table tbody,
.pdb-record table.form-table tr,
.pdb-record table.form-table th,
.pdb-record table.form-table td,
.pdb-signup table.form-table,
.pdb-signup table.form-table tbody,
.pdb-signup table.form-table tr,
.pdb-signup table.form-table th,
.pdb-signup table.form-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* Abstand zwischen den einzelnen Formular-Reihen */
.pdb-record table.form-table tr,
.pdb-signup table.form-table tr {
    margin-bottom: 24px;
}

/* 3. Beschriftungen (Labels) modernisieren */
.pdb-record table.form-table th,
.pdb-signup table.form-table th {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #111827; /* Dunkles Grau/Fast Schwarz */
}

/* 4. Eingabefelder (Text, Email, Dropdowns etc.) */
.pdb-record input[type="text"],
.pdb-record input[type="email"],
.pdb-record input[type="url"],
.pdb-record input[type="tel"],
.pdb-record select,
.pdb-record textarea,
.pdb-signup input[type="text"],
.pdb-signup input[type="email"],
.pdb-signup input[type="url"],
.pdb-signup input[type="tel"],
.pdb-signup select,
.pdb-signup textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB; /* Helles Grau */
    border-radius: 8px; /* Leichte Rundung wie auf eurer Seite */
    font-size: 15px;
    background-color: #F9FAFB; /* Sehr sanftes Grau für Tiefe */
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Fokus-Zustand (wenn man in ein Feld klickt) in eurem Blau */
.pdb-record input[type="text"]:focus,
.pdb-record input[type="email"]:focus,
.pdb-record input[type="url"]:focus,
.pdb-record input[type="tel"]:focus,
.pdb-record select:focus,
.pdb-record textarea:focus,
.pdb-signup input[type="text"]:focus,
.pdb-signup input[type="email"]:focus,
.pdb-signup select:focus {
    outline: none;
    border-color: rgb(0, 74, 153);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.15); /* Blauer Schein außenrum */
    background-color: #ffffff;
}

/* 5. Hilfetexte (Helptext) unter den Feldern */
.pdb-record .helptext,
.pdb-signup .helptext {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
    line-height: 1.5;
}

/* 6. Checkboxen und Radio-Buttons aufhübschen */
.pdb-record input[type="checkbox"],
.pdb-record input[type="radio"],
.pdb-signup input[type="checkbox"],
.pdb-signup input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: rgb(0, 74, 153); /* Färbt die Checkboxen in eurem Blau (moderne Browser) */
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
}

/* Die Box mit den vielen Checkboxen (z.B. Hobbys) als schönes Grid */
.pdb-record .checkbox-group,
.pdb-signup .checkbox-group {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 16px;
    border-radius: 8px;
}

.pdb-record .checkbox-group fieldset,
.pdb-signup .checkbox-group fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px; /* Abstand zwischen den Checkboxen */
}

.pdb-record .checkbox-group label,
.pdb-signup .checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
}

/* "Andere" Textfeld bei den Checkboxen */
.pdb-record .othercontrol,
.pdb-signup .othercontrol {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdb-record .othercontrol input[type="text"],
.pdb-signup .othercontrol input[type="text"] {
    width: auto;
    flex-grow: 1;
}

/* 7. Link-Elemente (Doppelfeld URL & Text) nebeneinander */
.pdb-record .link-element,
.pdb-signup .link-element {
    display: flex;
    gap: 15px;
}
.pdb-record .link-element input,
.pdb-signup .link-element input {
    flex: 1;
}

/* 8. Der Speichern / Absenden Button */
.pdb-record table.form-table .submit-buttons,
.pdb-signup table.form-table .submit-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB; /* Trennlinie über dem Button */
}

.pdb-record input.button-primary.pdb-submit,
.pdb-signup input.button-primary.pdb-submit {
    background-color: rgb(0, 74, 153); /* Konferenz-Blau */
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px !important; /* Stark abgerundet wie im Design */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    width: auto;
    text-transform: none;
}

.pdb-record input.button-primary.pdb-submit:hover,
.pdb-signup input.button-primary.pdb-submit:hover {
    background-color: rgb(0, 50, 110); /* Etwas dunkler beim Hover */
    transform: translateY(-2px); /* Hebt sich leicht an */
}

/* Zwischenüberschriften im Formular (falls genutzt) */
.pdb-record h3, 
.pdb-signup h3 {
    font-size: 20px;
    color: rgb(0, 74, 153);
    margin: 30px 0 15px 0;
    font-weight: 700;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
    .pdb-record .link-element,
    .pdb-signup .link-element {
        flex-direction: column;
        gap: 10px;
    }
    .pdb-record input.button-primary.pdb-submit,
    .pdb-signup input.button-primary.pdb-submit {
        width: 100%; /* Button über die ganze Breite auf Handys */
    }
}